Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2003, 07:24 AM
Authorized User
 
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Do I Use 'OnClick' in Flash?

Hi there

I'm a complete newbie to flash so please forgive me if this is a really basic question.

At the moment i've got an html page with the following graphic and href:
<a href="#" onClick="menuChange('urlhere')">BANNER GRAPHIC</a>

I've imported this graphic into Flash MX, made it into a button and want it to do the same as the above.

Does anyone know the code i'd use in ActionScript to do this? Also, i'd like to put an ALT tag on my button in flash so that when the mouse rolls over, some text appears.

Thanks in advance

Lucy

 
Old January 25th, 2004, 11:59 PM
Registered User
 
Join Date: Jan 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ExxWhyZee
Default

hello there,
    make a button out of that text, or the image, and then ya can edit that button. when the mouse is over it. which is the over selection, ya can put text there with it. so when the mouse is over the button, text should appear.
the code to use for the button:

on (release) {

    //Goto Webpage Behavior
    getURL("http://www.macromedia.com","_self");
    //End Behavior

}

:End code
"http://www.macromedia.com" is page to
"_self" is target, can be taken out

*-*ExxWhyZee*-*





Similar Threads
Thread Thread Starter Forum Replies Last Post
onClick crmpicco Javascript How-To 1 March 21st, 2005 09:18 AM
onClick crmpicco HTML Code Clinic 2 February 24th, 2005 11:28 AM
How do I use onClick in Flash? Ben Horne Flash (all versions) 3 April 16th, 2004 10:12 PM
table onClick miguel.ossa ASP.NET 1.0 and 1.1 Basics 4 January 23rd, 2004 05:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.