-
script for getting url on mouse down
I use flash MX on a Mac.
This is what I'm trying to do:
I have a button on the stage. When a person clicks on it , I want
a URL to be retrieved.
When I use their action script panel it says the script should be
.onRelease = getURL(http://www.little-men.com/bannedtest.html) {
}
When I render the scene I get the following error output comments
Scene=•••INTRO/PLAY, Layer=ABOUT BOE, Frame=276: Line 1: Unexpected '.' encountered
.onRelease = getURL(http://www.little-men.com/bannedtest.html) {
Please give me the answer in simple baby terms, I'm not a programmer .
Thank you very much inadvance.
-
Senior Member
You forgot the " character. And your code seems to be for haveing button actios on a frame. Heres the code to put ON a button.
on(release){
getURL("http://www.little-men.com/bannedtest.html");
}
-
Thanks for the help
Thank you for taking the time to help me.
It worked great!!
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
|