putting a movie in a button so when it's clicked, it plays?

  • gazzajones
  • Born
  • Born
  • gazzajones
  • Posts: 2

Post 3+ Months Ago

hey people. pretty basic stuff i know but im an amature. im tryin to put a movie into a button so when the button is clicked, it plays the movie then goes where i want it to. has anyone got any ideas on how i would do this?
it would be VERY helpful

cheers

gazza
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

yea, instead of creating a button, create a movie clip calle btnAnimated, place your movie in it, name the instance of the movie btnAnimated (in the properties Panel), then, in the timline, in a keyframe where the button exists, place this code:
btnAnimated.onPress = function()
{
this.gotoAndPlay(5); // or any other frame
}
  • gazzajones
  • Born
  • Born
  • gazzajones
  • Posts: 2

Post 3+ Months Ago

can i then make a link to another scene usin ordinary codin?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

omg ... i think i should change my signature with this new one:
"why use scenes when movie clips behave exactly the same, and with no problems while scenes behaviour is not that good? tip: copy paste all your frames from a scene to a movie clip"
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

I'm sure Adobe is looking for something to scrap out of Flash before the release of v9

Maybe we could petition them to start with scenes?

:-)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.