Help making my mp3 player appear and dissapear from stage

  • why me?
  • Novice
  • Novice
  • why me?
  • Posts: 18

Post 3+ Months Ago

Hello, Was hoping an actionscript guru could help me out here. I have a button that is playing different frames of movie clips to create this effect of the music player appearing as dissapearing on the screen...see this url:

http://technologydrivenart.com/MDLsite/flash/music.swf

If you mouse over the word music, you will see my "music player" flying down from the top of the screen....(on the left side of the screen is the music player i actually want to load instead of just the picture) the problem is, I have to load an external swf to get the music player to work correctly, or else I would just stick that in a movie clip on my time line...the action script for the button looks like this:

on (rollOver) {
tellTarget ("bg_music") {
gotoAndPlay("start");
}
}
on (rollOut) {
tellTarget ("bg_music") {
gotoAndPlay("stop");
}
}
on (rollOver) {
tellTarget ("music") {
gotoAndPlay("start");
}
}
on (rollOut) {
tellTarget ("music") {
gotoAndPlay("stop");
}
}

Inside the bg_music movieclip I have the action script:

loadMovie("music_controller.swf", "container")

that external swf is set up to be 170 pixels by 128 pixels....

all I want it to do is move up and down where the picture of the radio that pops down with the button...but I can only get it to load on one place in the screen and never moving...I'm looking to make the same music controller effect as seen on beck.com

Any suggestions are GREATLY APPRECIATED!

IF someone can even suggest a good tutorial..... I can't find any good resources...>HELP! Thank You!
  • 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

old school. tellTarget is so deprecated.
use now music.gotoAndPlay("start");
  • why me?
  • Novice
  • Novice
  • why me?
  • Posts: 18

Post 3+ Months Ago

Even if I do that I have to have stop actions in the time line which are affecting music controller even though it is being pulled in as an external file, it is being loaded into a container mc so I can move it up and down on this time line. but everytime the time line reaches the stop action, the mp3 player track starts over:(
  • why me?
  • Novice
  • Novice
  • why me?
  • Posts: 18

Post 3+ Months Ago

not only this but I have now discovered that you cannot use the buttons on the mp3 player when loading it into a movie clip, frustrating!
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

hahahaha. Of course you can use them ... as long as you dont place actions like onRollOver or onPress on the movieclip in which you load it.
About the sound ... sound.stop() read more about Sound class in the help.
  • why me?
  • Novice
  • Novice
  • why me?
  • Posts: 18

Post 3+ Months Ago

Ok, so I have totally updated the script and been able to get my mp3 player working when loaded externally, but now, I have it scripted like this:

emptyMC.container.onRollOver = function(){
emptyMC.onRollOverHandler();
gotoAndPlay("over");
}

this.emptyMC.onRollOut
gotoAndPlay("out");

But the movieclip emptyMC doesn't play the tween animations on the frames?!
What am I doing wrong here?
Its suppose to be moving up and down on the screen, but as you can see...its not :( (BTW~ the mp3 player takes a minute to load)

http://technologydrivenart.com/MDLsite/ ... _test3.swf
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

you cant have onPress, onRollOver, onRollOut .. etc. for nested movies, because the parent with these actions will capture all these events and the movieclips inside it will no longer respond to these events.
capturing events.
Anyway, check again that code, because your code doesnt seem right.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 21 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.