Old 07-03-2009, 11:50 AM   #1 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 3
Default Adding AS to the button in front...

Hello

forgive a beginner's question, but I got really stuck. Here is my question:

I'm using ImageFolio V2 as a navigation part in a bigger FLA. In the first frame I use the following code:

Quote:
Image.clickHandler = function(dat){
gotoAndPlay(dat);
}
to goto a special frame in the timeline. I use the "data" field in the XML file to match the Anchor name of the target frame. So far, this works perfectly, but if the user clicks twice on the same foremost button, the timeline jumps to the next anchor frame, if he clicks again, it jumps back to the previous target frame.

Why does this happen and how could I avoid it?

Thanks, Thomas

Last edited by tcgass; 07-03-2009 at 01:05 PM.
tcgass is offline   Reply With Quote
Old 07-03-2009, 03:22 PM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Could you post a sample please ?
Adrian is offline   Reply With Quote
Old 07-03-2009, 03:50 PM   #3 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 3
Default

Sure, here we go: I've just taken the original template and added anchor frames named accordingly to the data fields "data01, data02..." a.s.o.

Try to click on a foremost button - the timeline jumps to the anchor frame - then click again the same button - the timeline jumps to the next anchor frame.

Thomas

Last edited by Adrian; 07-03-2009 at 05:37 PM. Reason: NO SOURCE FILES
tcgass is offline   Reply With Quote
Old 07-03-2009, 05:39 PM   #4 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

1. DO NOT UPLOAD SOURCE FILES
2. Your file was saved with CS4 which I don not have, and I am sure it was missing some files
3. Export a swf, upload it to a server and post here the link so I can see what you mean
Adrian is offline   Reply With Quote
Old 07-05-2009, 04:25 PM   #5 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 3
Default

Sorry, I've got the problem solved: GotoAndStop instead of GotoAndPlay - I'm a beginner as I told you, but I'm learning ;-)
Thanks anyway for your support

Thomas

Last edited by tcgass; 07-06-2009 at 03:10 PM. Reason: Problem solved
tcgass is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:46 PM.