Groups | Blog | Home
all groups > flash actionscript > september 2006 >

flash actionscript : strange timeline problem


cosu
9/16/2006 10:59:18 PM
Hello!

I'm running into the following problem:

I have the main movie. Let's say that in frame 5 of the main timeline I
attach a movieClip that has it's own timeline and plays through it's last
frame. Main movie stops on frame 10. Clicking menu items current frame on
main timeline becomes 10,11 or 12. Now, whenever I change the current frame
for the main movie (even if this is never going back to frame 5) the movie clip
loaded in frame 5 starts to play from the start, and I don't want that.
There's no actionscript that tells it to do so, I never go back to or before
frame 5 in main timeline that would cause mc to reload.

Please, somebody, tell me what's wrong.

Thanks
kglad
9/17/2006 12:00:00 AM
are you using attachMovie() to attach that movieclip or do you mean that you
bring that movieclip to the stage in the authoring environment on frame 5?

if it's the later, put the movieclip in its own level so it's not
re-instatiated with subsequent keyframes that you may have added later (in the
authoring environment).
cosu
9/17/2006 12:00:00 AM
cosu
9/17/2006 12:00:00 AM
http://trudog.ro/flashtest/test.fla

I've attached a link to my .fla file. Everything seems so right to me. I
just don't figure out what's wrong. Clik on "invita un prieten" at the bottom
of the page then clik on any other menu than "homepage". You'll notice that
the mc on "tell friend" layer starts over, even if the main timeline only moves
between frames 79 and 71.

Thanks for your help.

[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
are you using attachMovie() to attach that movieclip or do you mean that you
bring that movieclip to the stage in the authoring environment on frame 5?

if it's the later, put the movieclip in its own layer so it's not
re-instatiated with subsequent keyframes that you may have added later (in the
authoring environment).[/q]


cosu
9/17/2006 12:25:07 PM
I discovered why is this happening, but have no idea how to fix it.

So, the layers that containd the triggers (buttons) were masked layers. As
soon as I unmasked those layers the problem dissapeared.

Is this a bug?

Test it yourself... the files is still on the server...
kglad
9/17/2006 5:34:41 PM
cosu
9/17/2006 6:01:09 PM
the error is there. the "invita un prieten" mc shouldn't do anything when
changing the page from "homepage" to any other page and viceversa... As I've
said, the problem is the masking. As soon as I unmasked the menu layer and the
tell friend layer... the problem was gone...

[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
i don't see a problem with your linked file. but i also don't see anything
that you mentioned in your above message. did you link the wrong file?[/q]


AddThis Social Bookmark Button