Pause Movie On Mouseover
I'm sure I'm missing something obvious here, but how do I get the movie to pause when the mouse rolls over it?
I'm using Flash 4 on a Mac.
I've tried turning the images into buttons and I can have a mouseover event to stop the image, but how do I get it to start again when the mouse rolls out?
When I try to set up the command in the Actions palette the "On MouseEvent" option is greyed out.
I need the hotspot area to be the same size as the movie and to be on every frame.
Can I set the stop/play commands in Dreamweaver instead?
Copy of the movie file is here:
http://www.miragedesign.com.au/ozpac/
Any help appreciated.
Jane
FlashKit > Flash Help > Flash Newbies
Posted on: 09-22-2005, 07:33 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Pause Movie On Mouseover
First of all, I have 2004 MX Professional.
How do I get the movie to pause when the mouse rolls over it? And then how do I get it to start again when the mouse rolls out?
Any help would greatly be appreciated.
Thanks.
Pause A Flash Movie On Mouseover
Anyone suggest how i might pause a flash movie, in a webpage, when the use moves the mouse over the movie, then contiune when it moves off?
greatly appriciated
alexc
Mouseover Play/pause Control Bar
I have a control bar for a dynamic flv player. I want it to only show up on mouseover. The control bar is titled controll_mc How would I go about doing this? Thanks!
Mouseover In _root Affects Mouseover In Loaded Movie
ok this is perplexing....
i have a mouse over effect to show a popup info text box in the main movie (_root)
and i also have a rollover tsunami effect in a loaded movie.
but at soon as i do a rollover on a button in the main movie
the rollover tsunami effect in the loaded movie does not work....
anyone know what the problem is???
please help
MouseOver Submenu Not Your Average Mouseover Question. Complicated.
Ok heres the link http://www.jcn.net/bryan/test/test.html The problem is I have the button, when you mouse over it I want the submenu to appear, i'm gonna add some cool animation to it once I get the mechanics down. Ok, I have the button, then the submenu. Below the main button I have a mask, and the submenu. I have the mask in the first frame to set its _height and _width to 0. Then onMouseover the main button, the mask changes its _height and _width to show the submenu behind it. OK, well i've also added a invisible button that onmouseover changes the _height and _width back to "0". OK the button works, it displays the submenu on rollover and when I move off the submenu and mouseover the hitbutton the menu disapears. But I want it, to once the mouse moves back over from the submenu to the main button for the submenu to disappear again, and the same thing if another button is highlighted instead. If anyone has any ideas or another approach to doing this please let me know. Heres my code.
first frame:
mask._height = "0";
mask._width = "0";
main button:
on (rollOver) {
mask._height = "152.0";
mask._width = "132.4";
}
hitbutton:
on (rollOver) {
mask._height = "0";
mask._width = "0";
}
Movie On Mouseover
I have created the buttons and movie I want to use but my problem is getting the movie to work like I want. I want my buttons to work like the buttons seen on www.scaled.com .
Basically, I want the movie to play once even if you keep the mouse on the button and on a mouseout event, I want the movie to play till it's finished.
I've succeeded in getting the movie to play till finish on the mouseout but when I keep my mouse on the button the movie loops. Please tell me how (with actionscripts or other) to get this button to play the movie once and stop while the mouse is hovering over it.
I am using Flash MX 2004.
Thanks in advance for any help.
Mouseover A Movie Clip
I have created a menu which is a movie clip on my main timeline. I would like to change the alpha level of an image on another layer to 30% whenever i mouse over the menu movie clip and back to 100% when I mouse out. Is this possible? Thanks in advance for your help.
MouseOver With Movie Clips...
This is probably a really easy question to answer but how do u make a command happen when ur mouse is over a movie clip?
On Mouseover, Play Movie
i am inserting my flash movie into an HTML page,
I would like the image in frame one to show up onto the page
until the user mouses over the image, and then the movie plays.
What code should I use?
Trigger Movie On Mouseover Only
First off, just to warn you, I have been using this program for only two days, so bare with me.
Basically the problem concerns making movies start when the mouse is over the movie, then ending when the mouse rolls out.
I am designing an interactive navigation menu for a site of mine, and I can't get this to work. It seems easy but I've wasted so much time already.
Just to get the jist of what I'm talking about go tohttp://www.phillybma.org/menu.swf for an idea of how far I've gotten. I've animated all the movies. I want the animation to start on rollover for each individual menu option. For example, when you first enter the site, the menu is completely still, but if you were to bring the mouse over "home" for instance, then home will zoom in and out with kind of an elastic feel, returning to a still when you leave the area, or go to the next area ("links" for example). I suppose I need to use actionscript, but I'm not even really sure how to insert that properly. HELP!
For the flash 8 file go to http://www.phillybma.org/menu.fla if you are really curious to see how far I've gotten.
Thanks a bunch, I really dig the solidarity here!
Movie Clip On Mouseover
I have a movie clip , how can i give it an onmouseover effect like buttons have?
onclipevent ?
Play Movie With MouseOver
Back when lack 3 was out lol. i coudl have donw this but now..
I have a video with sound and a small image.
I woudl like to have the image being displayed.
when the mouse is rolled over the image i woudl like a video clip play
can someone give me some step by step on how to do this.
Or atleast a great webiste to check out to do this.
thanks
Mouseover Movie Controls
I am trying to make a custom flash video controller that is not visible until an area is moused over. I made a movie clip with all my controls (play/pause, mute, close, and a link). I then made an inviible button for a mouseover area which has a script telling it to set alpha to either 0 or 100 depending on mouseover status. Everything should work, except when I publish it, the mouseover works but when I go to mouse on the controls, they visibly go away. The buttons do work, you just can't see them This is because the controls layer is on top of the invisible button layer. If I put the invisible button layer on top of the controls layer, none of the buttons work because they are being covered by the invisible button. Make sense?
What I am trying to achieve is a player just like this (the video of the woman at the bottom)
http://www.rovion.com/
Any help would be appreciated!
Movie Not Visible Until Mouseover?
I'm new to Flash and having trouble with my first Flash movie.
The movie is embedded in a ColdFusion web page as the top header. The problem I encounter is that the movie doesn't show until I mouseover the area where it should show.
The problem is only happening on IE. On Firefox 1.0 the movie appears when the page loads without having to "reveal" it with a mouseover.
Any thoughts?
Thanks!
General Settings:
Flash MX Pro 2004 ver 7.2
CFMX 6.1
IE 6.0
--------------- CODE SNIPPET -----------------
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="IntranetHeader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/IntranetHeader.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cfcece" />
<param name="wmode" value="transparent" />
<cfoutput>
<param name="FlashVars" value="welcome_txt=Welcome, #Display_NamePreferred#">
<embed src="/IntranetHeader.swf" FlashVars="welcome_txt=Welcome, #Display_NamePreferred#" loop="false" menu="false" wmode="transparent" quality="high" bgcolor="##cfcece" width="100%" height="100%" name="IntranetHeader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</cfoutput>
</object>
------------------------------------------
Scaling A Movie/image On Mouseover
Is it possible to scale up a movie/image etc., when the mouse is moved over it? and to control the scale?
so if you had a small image or text it would either get bigger or automatically show a bigger scaled version?
Inserting Movie In MouseOver Button
Greetings Flash Gods:
did it before for fun but now, blew a couple of brain cells and cannot seem to do it again.
what I'm attempting to achieve is for buttons, on mouseOver, to project an image out of the button itself and move to the right and increasing in size and in clarity.
so what I had tried in the past was to create a movie that started on the left, similar size as the button, 10% alpha and tweened it to the right increasing in size and in alpha. Made it into a movie and then created my button, edit in place and inserted the movie on mouseOver keyframe. gave the imagebutton action (on mouseOver, play)
But no work....
did it before somehow with a bunch of ball moving..but now cannot replicate it ...not even close...
HELP>>>>>
ty for any response....
How To Get Movie Clips To Play On Mouseover
Can someone point me towards a tut that exlpains hows to get movieclips to play on mouseover? anything will be much appreciated. Also is it possible to convert flash movies to mpeg format? thanks for the help. Chorus.
On MouseOver Play Movie Clip
This must be simple!
All I want to do is have a movie clip play when triggered by a mouseOver event!
I have tried this so many ways and it won't work!!!!!!
eg. this actionscript attached to a button:
on (rollOver) {
star.play();
}
help!
Painting Movie OnPress && MouseOver
my movie instance is single frame... and basically I have about 100 of them on the stage.... and I am giving the user the ability to paint them.... I will try to make the button code work... but I am using right now .onRelease.... and I want to use something like .onPress.... but I want it kinda like a painting script.... with the mouse button down and being over the instace it colors it.. and if you move over the next one it colors that... currently it colors on each click....
swatch.onPress && swatch.onMouseOver = function(){
is there a command similar to that??? I dont think onmouseover exists... but there is onRollOver that may be similar (not for sure)....
this is my existing code... on my movie maybe this will help...
code:
swatch.onRelease = function() {
names = new Array(2+'"', 3+'"', 4+'"', "M", "C", "B");
if (_root._currentframe==41) {
if (i == undefined || i == 5) {
i = 0;
} else {
i++;
}
this._parent.label.text = names[i];
this._parent.labeler = names[i];
}
if (_root._currentframe == 43) {
myColorTransform.ra = _root.r;
myColorTransform.ga = _root.g;
myColorTransform.ba = _root.b;
myColor.setTransform(myColorTransform);
}
I did this post earlier... and was helped but I respoded to the help and I didnt recieve feed back.... so I am sorry if this semi-double post bothers anyone...
Thanks,
Carlos
Help - Scaling Movie Clip On Mouseover
Is it possible to have a movie clip scale to a certain size when you roll over it?
The way I tried to set it up was...
I put the movie clip that I want scaled inside another movie clip. On frame 1, the movie clip is small, then it tweens to full size (at frame 15), and then back down to small (at frame 30). The actions are to stop at frame 1, frame 15, and frame 30.
Then I put a button on top of that movie clip, and had the button invisible, but the same dimensions as the clip, and I had
onRollOver {
GoToAndPlay(1)
}
onRollOut {
GoToAndPlay(15)
}
Can anyone see what I'm trying to do? The problem is that when I roll over the button, the movie clip grows and shrinks as it should, but then the button is covering the whole clip, and I cannot have access to buttons inside that clip...
Essentially this is a music control device, I want it to be small when the mouse is off of it, and full-size when the mouse rolls over, a much similar effect to the icon bar on the bottom of the screen in Mac OS X. Thank you so much to anyone who can help. I'll check back to respond if anyone needs more info.
How Can I Stop Flash Movie On Mouseover ?
dear friends ,
i have made this simple flash movie (160 Kbyte)
please look --> www.cancnc.net
i want it stop when the mouse is over the flash movie
how can i do it ?
Movie Clips Jumping On Mouseover
I have 100 mc's that keep jumping when you move the mouse between the two. It is not a stop action at the end of the motion tween, more like a the mouse is bleeding off between the two of them. I have tried to make the hit boxes as small as possible and I cannot move the text any further apart then they already are (1px gap). Any help or ideas would be greatly appreciated.
you can view it here: http://www.datsunboys.com/flash/numberGrid02.swf
MouseOver Play A Movie Clip
Have gone through the archives for this one but can't find this very simple code, surely someone most have asked this before.
Have a movieclip (a colourbox flying in with some text and stops) which works as a link.
This is what I want:
When the mouse is Over, the clip dissapears and it plays another movie clip.
When the mouse is out it that dissapears and shows the original movie clip again.
Any clues?
On MouseOver Tell Movie Gotoandstop At Frame 2
why is this so difficult?
www.mr-bunny.com/nav.fla
its a 7 meg file
I have tried so hard to get the simplest of answers.
all i want to do is:
on mouse over of each button,
tell the movie called TEXT to goto and stop at a specific frame
so when you point to a navigation button, it tells you what page it goes to.
i used to be able to do this long ago on flash 4
now im beating my head against the wall trying everything.
I know it has to be the stupidest thing why it dosent work.
dear god someone PLEASE help me!
Movie Clip Keeps Looping On Mouseover
Movie clip button works in own timeline (it stops after one pass) but keeps looping on mouseover when imported into website button - how can I run it to frame 8 and stop on mouseover?
How To Make Mouseover Button = Play Movie?
im doin a very very simple index page with textbuttons/links on the left and a picture on the right. now what i want to do is make the movie so that when the user mouse over the buttons on the right, the picture changes on the left. how can i accomplish this?
thanks
Play Movie In Background With Mouseover On A Button...
Hello everyone...
Do anyone know how to play a movie by moving your mouse over a button? (I have a scoccer ball jumping - a movieclip) And iŽd like to make the ball jump, but only when you put your mouse over a button. And still use the button as a link to a webpage.
Hope someone can help me.... Thanks
Btw: Sorry 4 my poor english ;o) Hope yu can read it ;o)
Mouseover State While Playing A Movie Clip
how do i stay on a mouseover state while playing a movie clip. I have attached my file as the example.
i would like the text "LINK" to stay "up" while the 2 links appear, how do i do that? any suggestions?
thanks,
jgatienza
Slow Scroll Movie On Mouseover Button
I have a movie with animation which is longer then the screen, so it is hidden with the help of mask.
I have a Up & Down button.
How do I make the movie scroll slowly once the mouse is over the button?
Thanks
MouseOver Effects Using Movie Clips & ActionScript:
Hey,
I'm a relative newcomer when it comes to Adobe Flash CS3 and it seems to me that since Adobe took Flash over there have been major changes according to the ActionScript.
Long story short is I have setup a navigation bar with the text being white for each link. I set up each link as a Movie Clip (MC) and then adjusted each so on frame 5 within the MC it will lower and fade and then on frame 10 raise back to it's previous position but as orange.
There are 6 MCs in all for each link: news_mc, about_mc, projects_mc, production_mc, extras_mc and contact_mc
What I need is so that when you visit the page, the text is white. Then when you mouse over the link it plays the MC and then stops it if they stay over it. However, if they leave the hover area, the MC plays in reverse back to it's white color. Also, each MC has it's own invisible button that for some reason I cannot add ActionScript onto.
Help!
Thank you in advance.
Part Of Movie Clip Inactive On Mouseover
Hello!
This is what I want to do:
http://www.sammijdesign.com/gjflash/one.php
(Depending on which number you last clicked on / which page your on), when you mouse over 1, the word ONE fades in and out. When you mouseover 2 the word TWO fades in and out.
I don't want anything to happen when you mouseover the words ONE or TWO (when they are not shown) - but instead, what I have, is when you mouse over the words, they fade in and out, but I want nothing to happen.
How I have each of the numbers/buttons set up, is through multiple frames on a movie clip.
Here is my as3 code.
Code:
try {
var keyStr:String;
var valueStr:String;
var webStr:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (keyStr in paramObj) {
valueStr = String(paramObj[keyStr]);
if (keyStr.indexOf(".") != -1){
webStr = keyStr;
keyStr = keyStr.substring(0, keyStr.indexOf(".")); //now it's "home"
}
}
//tf.appendText(keyStr);
} catch (error:Error) {
// tf.appendText(error);
}
var tl:MovieClip = this;
var buttonA = ["one","two"];
for (var i:int=0; i<buttonA.length; i++) {
var childButton:MovieClip = MovieClip(tl.getChildByName(buttonA[i]));
childButton.buttonMode = true;
childButton.addEventListener("mouseOver",handleMouse);
childButton.addEventListener("mouseOut",handleMouse);
childButton.addEventListener("mouseDown",handleMouse);
childButton.addEventListener("mouseUp",handleMouse);
}
function handleMouse(evt:MouseEvent):void{
if(evt.currentTarget != MovieClip(getChildByName(keyStr))){
var frameLabel = '';
switch(evt.type){
case MouseEvent.MOUSE_OUT:
frameLabel = "out";
break;
case MouseEvent.MOUSE_OVER:
frameLabel="over";
break;
case MouseEvent.MOUSE_DOWN:
frameLabel="down";
break;
case MouseEvent.MOUSE_UP:
frameLabel="up";
break;
}
evt.currentTarget.gotoAndPlay(frameLabel);
}
}
one.addEventListener(MouseEvent.CLICK,handleOneMouseClick);
two.addEventListener(MouseEvent.CLICK,handleTwoMouseClick);
function handleOneMouseClick(evt:MouseEvent):void{
if(evt.currentTarget != MovieClip(getChildByName(keyStr))){
navigateToURL(new URLRequest("one.php"),"_self");
return;
}
}
function handleTwoMouseClick(evt:MouseEvent):void{
if(evt.currentTarget != MovieClip(getChildByName(keyStr))){
navigateToURL(new URLRequest("two.php"),"_self");
return;
}
}
function wpdetect() {
trace("webpages Array successfully loaded");
var curpage:String = paramObj['currentPage'];
switch(keyStr) {
case "one":
//blog button in down position here
one.gotoAndStop("down");
trace("User is on the blog page");
break;
case "two":
//blog button in down position here
two.gotoAndStop("down");
trace("User is on the blog page");
break;
default:
trace("Webpage not found. Update Case Statement.");
trace(keyStr);
}
}
wpdetect();
Any help would be amazingly appriciated!!!!
Thanks!!
Activating A Movie Clip By Mouseover Button, Anybody Can Help?
Hi
can anyone help me with this one?
I have a movie with a preloader, then 12 buttons are loaded on the screen and an area reserved to display
12 movies.
buttons are animated on mouse over, by placing animation on over keyframe of button.
I would like for buttons to do 2 things more:
by mouse over each button would start 1 of 12 movies (short animations that display a preview of my garphic desig
n work), each button starts 1 movie all displayed in the same space, all starting with alpha values a 0% so they
are transparent and when mouse over activates the movie the short animation fades in, if mouse moves to anothr
button the movie simply stops (I am not even dreaming at this point of anything more complicated) and the next
mvie starts playing.
Also on click the buttons would open a nw browser window displaying the graphic design in larger size and more
detail.
I cannot manage to get the actonscript down, have tried several tutorials but cant seem to get them to
work,alltough the tutorials seemed pretty good.
The tutorials were using telltarget command but I kept getting error messages with ";" signs aparently missing
somewhere all the time, actually I am sure I was just doiung something wrong and it would have made absolutely no
diffeence even if I had semicolons planted everywhere, as I just dont know actionscript.
The pop up/new browser window sems to be ok alltough have not as of yet tested it fully, logic is that the mouse
over would call a java function that lies on the html page that holds the flash.
If anyone could help me find a way to start a movie that is located on another layer, in 1 frame in the same scene
, well I would be very happy, as then I might have a chance to actally pull my site together sometime.
Thanks for anyone who takes the time to read this, I would appreciate a small tutorial/simple instructions (or a link) on how
to start a movie on mouse over.
Thanks
Sami
Animated Button In Mouseover /movie Clip
http://www.fxnetworks.com/shows/originals/rescueme/ - when you mouse over the graphic for the links, it animates. Is this a button, movie clip, both? This is want I would like to do. How can I do this with cs3 flash?
Eliminating Mouseover Label On Flash Movie?
Hello
I created a flash movie and it resides in an html page. When my mouse rolls over the flash area, I get a small popup label that says "flashmovie". If I move my mouse away, it goes away... but comes back if I get my cursor on it again. It's like a tool tip.
How can I get rid of these?
Thanks!
Mouse Pointer On Mouseover Of Movie Clip
I have created a flash navigation header and i made the "buttons" from movie clips so i could have an animation on the buttons when they are mouse over.
But how do i have the mouse pointer turn into the hand on mouse over?
here is the code i am useing to have the movie clip play the animation on mouseover:
home_mc.addEventListener("mouseOver", homeOver)
function homeOver(evt:MouseEvent)
{
home_mc.gotoAndPlay("home_over");
}
-- thank you for any help
MouseOver To Play Movie, MouseOut To Stop.
How do you go about setting up a flash movie to play when a mouse moves over it and stop when the mouse moves off of it, just like a simple rollover image but the movie plays instead. Thanks for any and all help.
Border Appears On Flash Movie During Mouseover
I am working on a flash movie on IE7 and for some reason everytime I mouseover the movie a thin border appears. I looked at other flash sites and I don't see the same issue on their movies.
Please advise and thanks in advance for the help.
Toggle Mouseover And HTML Form In Flash Movie
Blessings and Peace:
Season Greetings, and Best Wishes for an artistically fulfilling, and prosperous New Year for All.
I have two task, that I'd appreciate a helping hand with:
1) I'd like for viewers to be able to toggle between a small and large version of a graphic, by simply overing over the smaller version of the image. http://www.kdwn.com/visionsvibesO shows the proposed layout, that this effect will be invoked in. By hovering over the cartoon, on the right, I'd like viewers to trigger a much larger (nearly the size of the entire movie area) version of the cartoon. The same with the news clip to the left.
2) I'd like to insert a two-field, HTML generated, form right into a Flash banner. Can HTML content be easily inserted right into a Flash movie (i.e., HTML code into Actionscript), with no ill effect?
Thanks, in advance, for all helping hands.
In Service and Respect,
Rafiki Cai
[MX04] Movie (partly Infinite Loop) As Mouseover, How?
Hello,
This is my first post here and also one of the first things I am doing in flash
I am having a hard time creating a mouseover with a movie in it... and creating the movie itself is not getting anywhere as well, as the first part of the movie is not an infinite loop and the part after is...
Here is a .gif with about what I mean.
As you can see the yellow buttons fade to red ones, this has to happen only once, but after that there will be an infinite loop with the text glowing...
When the mouseover ends it is supposed to fade back to the yellow it started with.
The sketch I did may be a bit unclear, as it's very fast, but with the explanation I provided, I think you should be able to understand me.
Thanks in advance for any help given,
Niels
MouseOver Event For Mutil-level Movie Clips
Is there a way to have a mouseOver event report every movie clip that is under it, not just the movie clip on top?
Basically, I have a game board, full of tiles, with an object on top of a random tile.
When I roll over the object, is there a way for the event handler to report back the object and the tile that it is over? If I trace event.target, I get back the object, with no way to find out which tile I am over.
Also, the object is not a child of the tile.
Thanks for any help
How To Let A Flash Movie Embedded In HTML Start On MouseOver?
I've made a simple FlashMovie and embedded it in HTML within a layer:
<div id="layer">
<object width="100%" height="48">
<param name="movie" value="cyclersdef3.swf">
<embed src="sunmovie.swf" width="200" height="148">
</object>
</div>
The layer is hidden, only on a certain command (MouseOver) the layer is made visible. I would like to make it so that at that time the clip starts playing and when the layer is hidden again the clip stops playing. Could anyone tell me how this can be done?
Map... Information On Mouseover. (Reveal A Box On Mouseover)
I'm making a real-estate website for a friend. He has these aerial pictures of several properties in the same neighborhood. I was thinking of making a flash thing where I would have the aerial image and make it so you could mouseover a property and have an information box pop up in the corner of the flash document. Just like a white box with text.
Would anyone happen to know a way to do what I want? Just want to define a few mouseover spaces that will trigger a info box to pop up, and disappear on mouseout.
Thanks - Kevin
Movie Control - Pause And Play Loaded Swf Movie
I created an swf movie from Camtasia Studio. Now I am loading the movie into a flash movie but I would like to create a button that will control pause and play of the loaded swf movie.
Any sugestions.
How To PAUSE Main Movie, Until Target Movie Is 100% Loaded?
This is probably easy for you flash guru's, but it's driving me nuts..
I have a flash file that loads external jpeg's into a movie inside my main movie. But here's the dilema.. the jpegs might take a few seconds, and I want it to run clean, is there a way I can have it display the % loaded of an external jpeg? then once 100% is loaded it continues to another frame?
something like this? but where am I going wrong? I get no errors but I cannot get the varaible to display for % loaded, even as a dynamic text box..
if (_root.MOVIETARGET.percentLoaded=100) {
gotoAndPlay("loaded");
??
thanks!
On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...
I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.
The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.
What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).
NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!
I appreicate all the help!
Thanks a lot!
How To Make Dynamic Text Appear And Disappear When MouseOver On A Seperate Movie Clip
Hi i hope someone can shed some light on by novice AS writers block.
I am creating a photogallery with thumbnails that reads all the data from XML, this is based on the excellent Kirupa tutorial.
What i want to happen is that the text only appears when you mouseOver the image.
I thought it would be a simple using an if statement but can not get it to work.
you can view the page at http://www.bru-ha.com/roza-flash/art_7.swf
below is the actionscript for the file & the FLA.
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
media = [];
credit = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
media[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
credit[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load('xml/art_7.xml');
///////////////////////////////////// preloader
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
///////////////////////////////////////next and previous image function
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
text_mc.desc_txt.text = description[p];
text_mc.media_txt.text = media[p];
text_mc.credit_txt.text = credit[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
text_mc.desc_txt.text = description[p];
text_mc.media_txt.text = media[p];
text_mc.credit_txt.text = credit[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
text_mc.desc_txt.text = description[0];
text_mc.media_txt.text = media[0];
text_mc.credit_txt.text = credit[0];
picture_num();
}
}
/////////////////////////////////////////////////////////load thumbnails
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+10)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc._alpha = 30;
target_mc.onRollOver = function() {
target_mc.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 15;
//or any other number you like, if it's too fast or too slow
} else {
this._alpha = 100;
this.onEnterFrame = null;
}
};
};
target_mc._alpha = 30;
target_mc.onRollOut = function() {
target_mc.onEnterFrame = function() {
if (this._alpha>30) {
this._alpha -= 15;
//or whatever number you used above
} else {
this._alpha = 30;
this.onEnterFrame = null;
}
};
};
};
//////////////////////////////////////////////////////////text fade
//text_mc._alpha = 0;
//picture.onRollOver = function() {
//picture.onEnterFrame = function() {
//if (text_mc._alpha<100) {
//text_mc._alpha += 15;
//} else {
//text_mc._alpha = 100;
//picture.onEnterFrame = null;
//}
//};
//};
//picture.onRollOut = function() {
//picture.onEnterFrame = function() {
//if (text_mc._alpha>100) {
//text_mc._alpha -= 15;
//} else {
//text_mc._alpha = 100;
//picture.onEnterFrame = null;
//}
//};
//};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
stop();
any pointers are gratefully recieved.
Cheers
Bo-doodle
Pause-n-Play Movie And Movie Clips
i've searched the archives and found bits and pieces but i stii need help...
is there any action script i can add to a pause/play button 9it's just one button) that will pause and play the main movie as well as all the movie clips?
Thanks in advance.
|