dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: get url for movie clip?

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    343

    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?
    Losse

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    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");

    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    343
    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?
    Losse

  4. #4
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    sounds like you put my code on a movieclip rather than on the timeline.
    Evolve Designs Interactive Media
    the natural selection

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center