If the playhead is already in the frame you're telling it to
go to, you
can see this behavior. You can avoid this by putting the
stop action 1
frame later than the framelabel.
on(press){ = yuck! Sorry you're stuck with that kind of
file dude.
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
>>-----Original Message-----
>>From: flashnewbie-bounces chattyfig.figleaf.com
>>[mailto:flashnewbie-bounces chattyfig.figleaf.com] On
Behalf
>>Of George Langley
>>Sent: Monday, September 17, 2007 4:13 PM
>>To: Flashnewbie Mailing List
>>Subject: [Flashnewbie] goToAndPlay(); vrs stop(); in
same frame
>>
>> Hi all. Interesting situation I ran into today
while
>>updating another person's Flash.
>> The main menu buttons are on the root timeline, and
the
>>content is in a MC. Each button has the following:
>>
>>on(press){
>> this.MC.gotoAndPlay("frameName");
>>}
>>
>>telling the MC to go to its matching frame. In the
MC, each
>>labeled frame has a stop(); command.
>> What I'm seeing is - on clicking a button, it goes
to
>>the matching frame. But click it again, and it
proceeds to
>>the next frame. Click it a third time, it goes back
to the
>>matching frame, and so on...
>> Is there a reason it would ignore the stop(); if it
is
>>already on the frame the button calls? Does the AS
only get
>>run when it first enters the frame, and
"going" to the same
>>frame doesn't "re-enter"
>>the frame?
>> Solution was to use gotoAndStop(); instead of
>>gotoAndPlay(); But still, wondering why...? Thanks!
>>
>>
>>George Langley
>>Multimedia Developer, Audio/Video Editor, Musician,
Arranger, Composer
>>
>>http://www.georgelangley.
ca
>>
>>
>>_______________________________________________
>>Flashnewbie chattyfig.figleaf.com
>>To change your subscription options or search the
archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com http://training.figleaf.c
om
>>
_______________________________________________
Flashnewbie chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
|