Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 957
  • Last Modified:

assign onclick to geturl action

knowing absolutely zip about flash i've assigned a "geturl" action to open a page in a new window and this works fine but i need it to work with "onclick" not the way it currently works which is with onload.

getURL ("http://goodsamaritan.healthstatus.com", "_blank"); is what it looks like now

0
phillystyle123
Asked:
phillystyle123
  • 2
1 Solution
 
Demon1sCommented:
make a button, and click it, the put this as the action script:

on(Release) ///might have been release with no caps
{
    getURL ("http://goodsamaritan.healthstatus.com", "_blank");
}
0
 
Demon1sCommented:
note: by button i ment make a box or somthing, hit f8 and specify button.

if your using a flash MX button component, use on(click) instead.
0
 
krishnaprathabCommented:
Hi,

 Follow the steps below:

1) Using the rectange tool in Flash create a rectangle on the stage.

2) Select the rectangle (or any other graphics which you want to act as a button) , now press F8 and in the popups select "Button" as the behaviour and click "OK".

3) Now select the button on the stage and press F9 , this will open up the actions panel.

4) Now write the following action (the same one which demon has mentioned) :

on (release)
{
    getURL ("http://goodsamaritan.healthstatus.com", "_blank");
}

Now, when you click on this button it will open up the page in a new window.

Thanks,
KP
0
 
phillystyle123Author Commented:
thanks all,


Demon1s - got there 1st

:-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now