PSX5Central
Non Gaming Discussions => Off-Topic => Topic started by: ##RaCeR## on September 29, 2002, 07:39:59 PM
-
Ok, I have created a button in Flash, how do I assign it to take me to a URL when\'s its pressed?
I have tried everything, and it just does nothing. Can anyone help me please? I am going skitszo...
-
If you have AIM hit me up at MrMenshun and I\'ll tell you what to do.
-
Can you PM me? I dont have AIM. I dont even know what that is... :)
-
Donno what progie u use.. This is how i do it in flashscript.
Double-click the Button to get its Properties dialog and select the Action tab.
Use the drop down menu to add a "Get URL" Action.
Then enter FULL URL
Click, OK then publish to view if it works..
-
Thats what I have been doing and it doesnt work.
-
lol, guess your screwed.. Cause that\'s how u do it. :)
-
Nah you forgot a step. Double click on the button. Make sure its "Object " Properties.
Now you want to add:
On mouse event (release)
{
GetUrl("http://yadda yadda",)
}
^^^probably not the exact code; but very similar
For the mouse event------- release can be anything from press to rollover". These two actions should be under the basic actions tab.
-
Let me know if it worked or not.
Even though I already know it works. :D
-
Double clicking on the button just takes me to the Up, Down edit.
What am I doing wrong?
-
Up, down edit?
Double click on the frame(in the timeline). That should bring up "Frame Properties(or actions, I can\'t remember)"
Once that window is open, click on the button and it should change to "Object Properties/Actions"
Once that is done put in the code from above and viola.
-
Gohan, yes, its now working, but not as I wanted...
I wanted to be directed to a URL once I click the button, this just links me once it gets to that part of the frame, so you dont even have to click \'enter\' (its an intro movie to a website). Once the movie finishes it just automatically takes you.
Its ok, but I did want to click it thats all. Thanks.
-
Alright let me try to walk you through it step-by-step.
1. Make sure you are on the frame where the button should appear.
2. Be sure that there is a stop action somewhere to get the movie to stop on this frame.
3. In the bottom right of the main project window there are 7 icons.
4. You want to click on the second from the right. The arrow. It is the show actions button.
5. When the window opens it should say "Frame Actions" in the top right corner.
6. Click on the button that you created. The window should now say "Object Actions".
7. Under basic actions, double click on "On Mouse Event"
8. Under basic actions double-click on "Get URL"
9. Change the settings under each action to suit your needs.
The exact code should look like this:
on (release) {
getURL ("http://www.FILLINHERE.com");
}
BTW, Are you POSITIVE that the symbol you are trying to attach the action to is a "Button" symbol? If not you will have to do a little more to get it to work.
-
Hehehe, its working now. Geez I am dumb, I forgot to add \'on mouse event\'
I used to program Delphi in school last year in between shower wrestling so you would think I would know that. I wasn\'t very good at Delphi...
Thanks