Solved

assign onclick to geturl action

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 how to record live broadcast.
Suggested Courses

630 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