ActionScript and Timeline
I am facing a problem that I have a hard time understanding.
I am currently working on a project that involves dropping objects (scrabble letters) onto different cells in a table. My project also involved multiple levels.
My layout is rather basic. I have a a bunch of tiles (25 letters) above a 2-columns table (left side for definition, right for answers). The table is static from frame 1 til the end (no keyframe, blankframe, etc.).
The problem is as follows: The exercise starts fine with the first Level, then I click a button to access the next level, and so on... Going FORWARD on the timeline seems to be working OK, I am able to complete each levels in succession. However, if I decide to go backwards (replay a previous level) I can no longer place tiles on my table (hitTestPoint not returning what it should). I checked a开发者_如何转开发nd my "target" is indeed there but somehow the hit test does not register.
I probably have the concept all wrong... Can someone explain what is happening to objects as the timeline advances (or rewinds) via ActionScript?
TIA
Michel
Like in other languages, variables in as can be limited by scope.
From your question I gather your table is a static graphic, and have different levels on different frames?
Its hard to tell without the code or knowing the class names you have assigned. If you could post some code it might help. Alternatively, if this is an important issue, mail me the flash file. Its been almost a year since iv done as3, but I might be able to help.
精彩评论