Welcome to WebmasterWorld Guest from 54.167.5.15

Forum Moderators: open

Message Too Old, No Replies

onRelease Flash CS3

     

tonynoriega

6:09 pm on Feb 2, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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

9:30 pm on Feb 2, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



i found the answer:

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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month