Old 11-23-2008, 03:29 PM   #1 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default anchors

Hi,

is it possible somehow to use gotoAndPlay instead of geturl?
I'm using the menu in a flash project and I want to navigate thought the flash frames.

Thx!
-Simon
fatmansky is offline   Reply With Quote
Old 11-24-2008, 12:15 PM   #2 (permalink)
OXYLUS Staff
 
Razvan's Avatar
 
Join Date: May 2008
Posts: 1,266
Send a message via Skype™ to Razvan
Default

Of course, just go to button.as and fin the onPress function, replace getURL with gotoAndPlay or gotoAndStop.
Razvan is offline   Reply With Quote
Old 02-22-2010, 05:18 PM   #3 (permalink)
Junior Member
 
Join Date: Feb 2010
Posts: 1
Default

Hi at all,
I bought the module and I have the same question, I tried to apply your advice but I failed. :-s
I ask you to give me more information on:
I opened the file "button.as";

private function onPress ()
(

if ((this! main.current =) & & (main.state == 1))
(
getUrl (node.attributes.url, node.attributes.target);
main.state = 0;
Tweener.addTween (arrow, (_alpha: 0, _y: -3 * arrow._height, time: t, transition: EAS, rounded: true));
Tweener.addTween (arr, (_alpha: 0, _y: -3 * arrow._height, time: t, transition: EAS, rounded: true));

Tweener.addTween (arr2, (_alpha: 0, _y: arm._height, time: t, transition: EAS, rounded: true));
Tweener.addTween (arm, (_alpha: 0, _y: arm._height, time: t, transition: EAS, rounded: true));

comeback ();


and I changed "getUrl (node.attributes.url, node.attributes.target);"
in "gotoAndPlay (node.attributes.url, node.attributes.target);"

Then I opened the file "data2.xml"
and point "<button title="Home" active="1" url="http://www.google.com/" target="_blank"> </ button>"

how I behave? How do I change the code to tell him to go to frame 2 for instance?

Thanks

Truecolor
truecolor is offline   Reply With Quote
Old 02-23-2010, 08:24 AM   #4 (permalink)
OXYLUS Staff
 
Razvan's Avatar
 
Join Date: May 2008
Posts: 1,266
Send a message via Skype™ to Razvan
Default

Hi, this is the correct sintax Macromedia Flash - ActionScript Dictionary : gotoAndPlay

please use:
gotoAndPlay (node.attributes.url)

and

<button title="Home" active="1" url="10" target="_blank"> </ button>"

10 is the frame number
__________________
- Custom work and support at: razvan@oxylus.ro
- Search before posting.
- POST A SAMPLE LINK of the problem.
- DO NOT post links to the source files!
- Forum comes first in solving your problems but if you need asap support post it on the forum and e-mail me with the link.
- Solutions within 48h, sometimes it could take longer.
- If your thread has not received an answer for a long time please renew it, with a new post, in friendly manner.
- BE POLITE !
Razvan 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:50 AM.