www.webdeveloper.com
Results 1 to 2 of 2

Thread: 2 buttons 2 movie clips 1 working other not help!

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    24

    Talking 2 buttons 2 movie clips 1 working other not help!

    Ok so I have 2 buttons and both of them are to attach movie clips here is the code for the 1st button that works

    Code:
    on(release){
     this.attachMovie("AboutUsMovieClip", "AboutUs_mc", -5, {_x:399, _y:361});
    }
    Now when I put the code on the 2nd button and change the name of the moviec clip, new movieclip name, and depth the button wont work.

    I tried copying the same code from the 1st button to the 2nd and it worked. Of course its still playing the same movieclip.For some reason it wont play another movie clip. I am not really sure about the whole depth thing, but I changed that multiple times too and nothing helped. Any ideas why this isn't working? Thanks in adavance!

  2. #2
    Join Date
    Mar 2007
    Location
    Athens, Greece
    Posts
    177
    Hi,

    Try to ensure that you have exported (Linkage..) the clip in library, for the script to be able to access it.

    I mean that the "attachMovie" command requires the symbol to have been exported for action script access.

    Open the library, right click the movie clip you want, select "Linkage..." and check the "Export for ActionScript" (and "Export in first frame") options.

    Seems that the problem is this, but of course can be anything else..

    Kostas
    K. Zotos online portfolio (3D, Web, Programming): http://www.in3d.eu/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles