A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: AS ver2 mouse down plays a movie clip?

  1. #1
    The White Flame JohnyT9760's Avatar
    Join Date
    Mar 2002
    Location
    NA
    Posts
    349

    AS ver2 mouse down plays a movie clip?

    What action script would you use (ver2) to make a mouse down on a button play a movie clip?

    Thx for the help

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    7
    are you using a video loader to play the video or do you want it to load a new video on top of the current?

  3. #3
    The White Flame JohnyT9760's Avatar
    Join Date
    Mar 2002
    Location
    NA
    Posts
    349

    I'm not using video.

    I'm not using video the movie clip I'm refering to is a movie clip instance in flash.

  4. #4
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    try using something like this:
    ( code goes on frame )

    yourButton.onPress = function()
    {
    yourMovieClip.play();
    }



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


  5. #5
    The White Flame JohnyT9760's Avatar
    Join Date
    Mar 2002
    Location
    NA
    Posts
    349

    I got it

    I guess what I was trying to do was get a button (movieclip) to control the main time line,the code I was looking for was this. In the button there was a hit state that was triggering the the hit area of the movie clip I simply attacked the _root.goToAndPlay("home") AS so that way it would go to the frame labled "home" in the main time line and then play the content from there.

    on (rollOver){
    this.gotoAndPlay("over")
    }
    on (releaseOutside, release, rollOut){
    this.gotoAndPlay("release")
    }
    on (release){
    this.gotoAndPlay("release")
    _root.gotoAndPlay("home")
    }

    Thx for the help bro take it easy

    John

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