Skip to main content
Participant
November 23, 2011
Question

AIR - Major Bug (?) with MovieClip class

  • November 23, 2011
  • 2 replies
  • 851 views

Hello all,

We are a team of developers working on ActionScript 3.0 project using Adobe AIR SDK and Adobe Flex SDK.  During the development we discovered what seems to be a major problem with getting MovieClip instances to play correctly. More specifically,  the problem has to do with the gotoAndStop method. If, using the gotoAndStop method, you perform a for loop over all MovieClip frames (from the 1st frame to the last one) and go back to the 1st frame again, then, after adding MovieClip to the Stage, the 1st frame won't be set, contrary to what's expected. Instead, the MovieClip selects the last frame, which messes things up.  Are there any solutions to the described problem, other than switching to the right frame after the object has been added to Stage?

This seems like a 'no way out' situation - any help would be much appreciated.

A note: MovieClip itself is being imported from the 'swc' file.

This topic has been closed for replies.

2 replies

Participant
December 1, 2011

Hi, Check this out.

https://bugbase.adobe.com/index.cfm?event=bug&id=2953829

Do you import AI file? This seems to cause the issue.

Participant
December 1, 2011

I removed all AI file, but it still didn't work. If I tried to use "gotoAndStop" for frames in MovieClip symbol, gotoAndStop goes crazy. But gotoAndStop works ok on Scene.

chris.campbell
Legend
December 1, 2011

Thanks for the heads up and I'm sorry you guys have run into this issue.  Is this is new to AIR 3.x?

Could you please open a new bug report on this over at bugbase.adobe.com, including a brief description and sample code/app to help us easily reproduce the problem.  Please post back with the URL so that others affected can add their comments and votes.

Thanks,

Chris

Participant
December 1, 2011

I have exactly the same problem. In my case, gotoAndStop even mess up graphics in each frame. For example, I have five frames. My program addChild one of thease five frames depending on which buttons users click. If I keep clicking the buttons, enventually some first frame lose a graphic. In addition, like scherzo7 said, "the 1st frame won't be set" happens as well. I tried flash player, then it work perfectly, but if I use flash AIR 3.1, gotoAndStop mess this up.