ok guys i'm havin a dumb moment. How do i make it so that when a button is rolled over it plays a movie clip that is on a different layer but in the same scene?
myButton.onRollOver=function(){ myMc.play() } badabing
just for reference how would i do this through the menus, not typing code straight in thanx by the way mate
can't actually get this working!! clicked on the button i wanted then actions, then on roll over, logo.play and nothing. What obvious thing am i missing?
Hi there, holder.loadMovie("mc.swf",2); btn.onRollOver = function() { holder.play(); } Propably, this is not your case but it might be helpful. holder is an empty movie clip where i load the movie that i want to trigger play when i roll over the button
The code I suggested you place on the main timeline NOT on the button. If you wish to place the code directly on the button you would ned to do this on (rollOver) { _root.myMc.play() //presuming of course your mc is on the root timeline } There are any number of reasons why one would choose to code a buttons functions either on the button or on the main timeline. Code on the button can travel with the button if say cut and pasted however, code on the main timelin keeps all the code in one place - that is sometimes a blessing - often again it is a matter of preference By the way the code in the timeline may not work in older versions of Flash p a u l
Using an empty movieclip in which to load and external swf permits you to control that swf as if it were a movieclip inside your main swf. This is quite useful for large files such as perhaps a videoclip. By saving it externally it keeps the file size of the main swf smaller p a u l
cool thanx for the help guys
Still can't get the dam thing working. On the button i put on (rollOver) { _root.myMc.play() //presuming of course your mc is on the root timeline } and changed myMc to "logobutton" and nothing! Paul
I really do feel stupid people, but i really need a solution. I can't move on until i fix this. Please help! Paul [quoted text, click to view] "paul_the_brickwall" <webforumsuser@macromedia.com> wrote in message news:cje21f$1jl$1@forums.macromedia.com... > Still can't get the dam thing working. On the button i put > > on (rollOver) { > _root.myMc.play() //presuming of course your mc is on the root timeline > > } > > and changed myMc to "logobutton" and nothing! > > Paul >
i tried but the smallest i can get it to is 1.8mb which is too big for the servers
Our email might not permit that. I have attached an example that uses both the on and off buttin code as a demo - have a look and see if you can make any sense of it with regard to your own p a u l
thanx man, i'll have a look
paul, did you remember to call your movieclip logobutton. This might be the problem.
if you mean call it as in it is a movieclip called logobutton then yeah i think so lol
Hey pwiop, When i tried to open the file you sent it just says unexpected file format, must be an error. Do you have another version?
Don't see what you're looking for? Try a search.
|