-
get url for movie clip?
Hi
I know you can use the following code to make a button access a URL on release:
Code:
on (release) {
getURL("url.com");
}
Just wondering if there is any other code or actionscript you can put on a movie clip so that on release, it accomplished the same thing?
-
Ryan Thomson
sure, you would give the movieclip an instance name on the properties bar, then on the main timeline put:
PHP Code:
mcInstanceName.onRelease = function(){ getURL("url.com"); }
-
cool thanks... I did that... still get this error
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler
mc1.onRelease = function() {
but it works?
-
Ryan Thomson
sounds like you put my code on a movieclip rather than on the timeline.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|