assign onclick to geturl action

Posted on 2004-04-24
Medium Priority
Last Modified: 2008-03-10
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

Question by:phillystyle123
  • 2

Accepted Solution

Demon1s earned 200 total points
ID: 10910569
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");

Expert Comment

ID: 10910572
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.

Expert Comment

ID: 10910766

 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.


Author Comment

ID: 10913538
thanks all,

Demon1s - got there 1st


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question