-
navigation url
I am making a navigation system for a website using adobe flash CS3 professional, and I do not know how to create a url destination for each button using the actionscript.
Any tips and help will be greatly appreciated.
Thank you.
-
Prid - Outing
On the button:
Actionscript Code:
on(release){ getURL("someotherpage.html", "_self"); }
- OR -
On Frame:
Actionscript Code:
[HIGHLIGHT=Actionscript]btn_instance.onRelease = function(){ getURL("someotherpage.html", "_self"); }
[/HIGHLIGHT]
_self means that the new page will load in the same window as the current one (another value is _blank, which loads the new page in another window without affecting the current one)
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Thank you. I do this, but instead of going to the url I type in, it goes to yourcompanyname.com Do you know if there is somewhere that I can change this setting?
-
Prid - Outing
What do you mean? Could you post the code attempt you tried?
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
this is what is typed in
onClipEvent (load) {
getURL("index.html", "_self");
}
It now goes to the correct page, but it opens automatically before I am able to click the button.
-
Prid - Outing
Because onClipEvent(load) is executed once your movieclip loads, and that is like instantaneously, so of course it will fire off at once. Try this instead:
Actionscript Code:
on(release){ getURL("index.html", "_self"); }
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|