homepage Welcome to WebmasterWorld Guest from 54.226.136.179
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
onRelease Flash CS3
tonynoriega

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3840512 posted 6:09 pm on Feb 2, 2009 (gmt 0)

ok, i have a movie clip that consist of 5 layers...

(yes i stole it, but it doesnt even look like the original anymore... )

im trying to learn onRelease.

the layer i want the user to click is a text layer.

static text.

and onRelease i want to getUrl.

but when i try to user the guided scripting, i.e.:

ActionScript 2.0 Classes > Movie > MovieClip > Event Handlers > onRelase

i get:

not_set_yet.onRelease = function(){
}

where do i set the text layer to be the layer to invoke the onRelase?

or does the entire movie clip have to be set?

 

tonynoriega

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3840512 posted 9:30 pm on Feb 2, 2009 (gmt 0)

i found the answer:

this.onRelease=function(){
getURL("http://www.example.com","_self");
}

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved