Solved

assign onclick to geturl action

Posted on 2004-04-24
4
934 Views
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

0
Comment
Question by:phillystyle123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Demon1s earned 50 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");
}
0
 
LVL 5

Expert Comment

by:Demon1s
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.
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10910766
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
 

Author Comment

by:phillystyle123
ID: 10913538
thanks all,


Demon1s - got there 1st

:-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

710 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