Replay Movie From Within Clip
I have a button within a movie clip in the main time line of the second scene of my FlashMX .fla.
When you click it I want it to replay the whole movie ie. go back to frame one of Scene 1 and play. If I move the button out of the movie clip and onto the main timeline it works but if it's inside a movie clip it doesn't. What gives??!
cz
FlashKit > Flash Help > Flash MX
Posted on: 02-13-2004, 07:59 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Clip Replay
I know how to replay the whole entire movie over after it finishes playing by pausing...but how do i restart a movie clip only...i tried the code for what i use for the whole movie but it restarts the movie instead of just the movie clip....?
OR if there is a way to replay the movie clip WITHOUT clearing the feild...like it plays then it starts replaying again while the other finishes?...wait i think i know of a way....might be sloppy though....still someone help?
can anyone help me out here?
thanks
-Lupusk
HELP: Need To Replay 1 Frame Movie Clip.
Hi. I am pretty new to actionscripting. I need some help. I have this banner ad I have created using tweeens and a delay. I need to make it so that the banner add restarts after the lastt delay. I have been playing with this for a while and can't figurre out how to do this. Since the movie clip is in one frame I can't use gotoAndPlay. Any help would be highly appreciated. I f you have any ideas let me know. Thanks
Chris
bkg.getURL("http://www.cnn.com", "_blank");
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xPosT:Tween = new Tween(mcScout, "_x", Strong.easeInOut, 473, 17.5, 1, true);
var xPosT:Tween = new Tween(mcMonitor, "_x", Strong.easeInOut, 473, 140, 1, true);
var xPosT:Tween = new Tween(mcManage, "_x", Strong.easeInOut, 473, 295, 1, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2000);
function delayfunction() {
var xPosT:Tween = new Tween(mcScout, "_alpha", Strong.easeOut, 100, 0, 1, true);
var xPosT:Tween = new Tween(mcMonitor, "_alpha", Strong.easeOut, 100, 0, 1, true);
var xPosT:Tween = new Tween(mcManage, "_alpha", Strong.easeOut, 100, 0, 1, true);
xPosT.onMotionFinished = function() {
unloadMovie(root.container01);
clearInterval(delInterval);
var xPosT:Tween = new Tween(mcCopy2, "_x", Strong.easeInOut, 473, 19, 1, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2500);
function delayfunction() {
var xPosT:Tween = new Tween(mcCopy2, "_alpha", Strong.easeOut, 100, 0, 1, true);
unloadMovie(root.container01);
clearInterval(delInterval);
var xPosT:Tween = new Tween(mcBkg, "_y", Strong.easeInOut, -59, -2, 1.5, true);
var xPosT:Tween = new Tween(mcCopy3, "_y", Strong.easeInOut, -59, -2, 1.5, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2500);
function delayfunction() {
gotoAndPlay(1);
}
};
}
};
};
}
};
Replay Button/movie Clip
Is it possible to make a button that's also a movie clip, rather than just the text REPLAY being shown? In other words, something is supposed to morph into the button, and then you click on it to first, end the movie clip and then start the animation over.
What code should I use (in the movie clip) that will start the animation over? Because I when I use "gotoAndPlay(1);", it goes to the first frame of the movie clip and not the actual movie itself. Any ideas on what to do?
Stop Replay And Replay Button
How to i stop the movie from automaticly replaying itself? And then how could I make it so they hit a button that says replay and then it starts over? Then how would i restart auto replay *if i wanted it back*
Replay Button Does Not Replay Sound
Hello:
I have created a replay button to replay from the beginning. But after I click on the replay button, the animation replays, but the sound doesn't.
How do I get the sound to replay as well? Do I need to put any script in the Sound layer?
thank you
Replay Movie?
i'm making a movie file and i want to add a button where you can click on it and it will replay the whole movie clip again. how do you do that?
Replay Movie
K im new at flash and I'm currently just experimenting with a few things so that later I can create more advance things.
I've been trying for ages to get it so that after a little
animation is played, a button appears to be pressed so the animation can be played again.
Now instead of me just explaining what I've done I've attached the source so that maybe someone can reply and tell me what I'm doing wrong
thnx
Replay Movie
I want to keep my movie ads playing over and over after movie ends, What code do I need to do this, or I really would like this to happen is, after the movie advertisement is over it goes to a .gif or jpg image of our choice to stay in movie area until it is revisted or refreshed.
www.bittyfind.com
Here is the .as
//--------------------------------------------------------------------------
// initial variables that might be useful to change
//--------------------------------------------------------------------------
// toggle for which file to play if none was set in html
// you can change the 'test.flv' in your filename
if(!_root.file) { file = 'ads2.flv' } else { file = _root.file; }
// toggle for autostarting the video
// you can change the 'true' in 'false'
if(_root.autoStart == 'true') {
autoStart = true;
} else {
autoStart = false;
}
// toggle for the width and height of the video
// you can change them to the width and height you want
w = Stage.width;
h = Stage.height;
//--------------------------------------------------------------------------
// stream setup and functions
//--------------------------------------------------------------------------
// create and set netstream
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
// create and set sound object
this.createEmptyMovieClip("snd", 0);
snd.attachAudio(ns);
audio = new Sound(snd);
audio.setVolume(80);
//attach videodisplay
videoDisplay.attachVideo(ns);
// Retrieve duration meta data from netstream
ns.onMetaData = function(obj) {
this.totalTime = obj.duration;
// these three lines were used for automatically sizing
// it is now done by sizing the video to stage dimensions
// if(obj.height > 0 && obj.height < Stage.height-20) {
// setDims(obj.width, obj.height);
// }
};
// retrieve status messages from netstream
ns.onStatus = function(object) {
if(object.code == "NetStream.Play.Stop") {
// rewind and pause on when movie is finished
ns.seek(0);
if(_root.repeat == 'true') { return; }
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
videoDisplay._visible = false;
playText.txt.text = "click to play";
}
};
//--------------------------------------------------------------------------
// controlbar functionality
//--------------------------------------------------------------------------
// play the movie and hide playbutton
function playMovie() {
if(!isStarted) {
ns.play(file);
playText.txt.text = "loading ..";
isStarted = true;
} else {
ns.pause();
}
pauseBut._visible = true;
playBut._visible = false;
videoDisplay._visible = true;
}
// pause the movie and hide pausebutton
function pauseMovie() {
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
};
// video click action
videoBg.onPress = function() {
if(pauseBut._visible == false) {
playMovie();
} else {
pauseMovie();
}
};
// pause button action
pauseBut.onPress = function() {
pauseMovie();
};
// play button action
playBut.onPress = function() {
playMovie();
};
// file load progress
progressBar.onEnterFrame = function() {
loaded = this._parent.ns.bytesLoaded;
total = this._parent.ns.bytesTotal;
if (loaded == total && loaded > 1000) {
this.loa._xscale = 100;
delete this.onEnterFrame;
} else {
this.loa._xscale = int(loaded/total*100);
}
};
// play progress function
progressBar.tme.onEnterFrame = function() {
this._xscale = ns.time/ns.totalTime*100;
};
// start playhead scrubbing
progressBar.loa.onPress = function() {
this.onEnterFrame = function() {
scl = (this._xmouse/this._width)*(this._xscale/100)*(this._xscale/100);
if(scl < 0.02) { scl = 0; }
ns.seek(scl*ns.totalTime);
};
};
// stop playhead scrubbing
progressBar.loa.onRelease = progressBar.loa.onReleaseOutside = function () {
delete this.onEnterFrame;
pauseBut._visible == false ? videoDisplay.pause() : null;
};
// volume scrubbing
volumeBar.back.onPress = function() {
this.onEnterFrame = function() {
var xm = this._xmouse;
if(xm>=0 && xm <= 20) {
this._parent.mask._width = this._xmouse;
this._parent._parent.audio.setVolume(this._xmouse* 5);
}
};
}
volumeBar.back.onRelease = volumeBar.back.onReleaseOutside = function() {
delete this.onEnterFrame;
}
//--------------------------------------------------------------------------
// resize and position all items
//--------------------------------------------------------------------------
function setDims(w,h) {
// set videodisplay dimensions
videoDisplay._width = videoBg._width = w;
videoDisplay._height = videoBg._height = h-20;
playText._x = w/2-120;
playText._y = h/2-20;
// resize the items on the left ..
playBut._y = pauseBut._y = progressBar._y = volumeBar._y = h-20;
progressBar._width = w-56;
volumeBar._x = w-38;
}
// here you can ovverride the dimensions of the video
setDims(w,h);
//--------------------------------------------------------------------------
// all done ? start the movie !
//--------------------------------------------------------------------------
// start playing the movie
// if no autoStart it searches for a placeholder jpg
// and hides the pauseBut
pauseBut._visible = false;
if(_root.image) {
imageStr = _root.image;
} else {
imageStr = substring(file,0,file.length-3)+"jpg";
}
imageClip.loadMovie(imageStr);
if (autoStart == true) { playMovie(); }
Replay Movie
Hi,
I have a movie scripted with by somebody else in a external document class. It starts with a begin movieclip then the content and after that the final movieclip where it stops. Now i want to have a replay button in the final movieclip that replay the entire movie again from the beginning.
The thing is that the entire movie is scripted in the mainscene in just 1 frame, so i cant use gotoandplay (1).
does anybody have another solution..??
Don't Replay Movie
hiya!
Using Flash 5 - Sort of new to actionscript and get really confused! I used to know this but I need someone to remind me since it's been a while:
On release I want to check if a grballs.swf is already loaded on layer 1 - if it is then load pfol.swf on layer 2
BUT!
if grballs.swf is NOT already loaded on layer 1 then load grballs.swf on layer 1 first and then when it's finished load pfol.swf on layer 2.
help please..
Thanks!
Replay Movie - Flash5
Hi every one,
I made a flash greeting card and I want to add a button to replay the movie when it ends, which code should I use?
How To Replay A Movie From A Child Movie In Flash 5?
Hi
I'm using Flash 5 and I have a movie inside a movie where the replay button is placed. In the on release event I don't know what code to use. I've tried the following but it didn't work:
gotoAndPlay (1);
gotoAndPlay ("Scene 1", 1);
_root.gotoAndPlay (1);
_parent.gotoAndPlay (1);
And other variations of this, but nothing seems to do the job.
Could someone help with this please.
Thanks
Replay Button Is A Flash Movie.
Hi i know how to create a replay button... thats easy..
The problem that I have is that i want to create a replay button that will appear whe the .flv movie ends(i have created my own media player using some tutorials)... its a toughy. i really dont know how to do this one.
So just to run through what i want tto happen:
1. the page loads and plays the movie on a progressive download
2. when the movies come to the end i want a menu to appear so that the user can choose to replay the movie they just saw...
I know.... seems pretty simple. But im new.
thanks
Replay Button For Flash Movie
Hi
I have placed a flash movie on my webpage. I want to include a play button on my site so that movie only plays when it is clicked. Can someone guide me how I can do that
Thanks
Prevent Replay Of Movie On Refresh
I've been trying to make my flash movie not play once it has played once and the page changes or refreshes. I found some code to do it but I cannot make it work with my loader. Here is the code I'm using and I was putting it on frame 1 row but I think my loader is preventing it from working? I've tried to mesh it with my loader but that failed also. Any suggestions?
Prevent Code on frame 1
localSharedObject = sharedobject.getLocal("flashcookie" );
if (localSharedObject.data.beenHere){
gotoAndStop(_totalframes);
}else{
play();
}
localSharedObject.data.beenHere = true;
=====================================================
Loader also on frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
After Movie Done, Show Replay Button And Stop?
I'm REALLY new at flash, and I got a preloader example and put it in, and on next scenes I want the movie I'm gonna make, and then the last scene I want it to to show a "Replay?" button, but I don't know how. Can anyone help, please?
Stop Replay Of Movie On Page Reload
Hello.
Just a warning: Not for the faint-hearted. I have a very specific problem and I am desperate for some very specific help. I have searched high and low for the answer to this problem, but there just isn't a complete solution published anywhere on the web. I even posted a question on macromedia's forum and got no replies.
I have a flash movie embedded in a client's website. It plays through a short animation and then finishes with a small looping effect on their logo. View the movie here: http://www.thatsmeproductions.com/ems I'm happy to share the fla file with you as well: http://www.thatsmeproductions.com/title.fla (save target as)
I need the movie to play through only once per user per browser session. If the user has been through the movie once already, I want it to skip to the ending looped animation. But if the same user returns later the same day, it's fine for the movie to replay from the beginning.
I'm sure the answer has something to do with using a shared object variable, but after reading through macromedia's tutorial on those, I am only further confused. I'm good at the movie making stuff, but lousy at the actionscript stuff.
Thank you for taking the time to read through this.
[F5] Simple - Just Want To Make A Replay Movie Button
I do use flash, but never had to make a replay button that will appear on my movie after it reaches the last frame and stops until now. It doesn't have to be an image button - it could be text. Whatever is easiest. Using Flash 5. Gotta figure it out tonight.
Replay Button On Multi-scene Movie?
I'm new to flash in general and I have no clue how to add a replay button in a multi scene movie. I found a way to go to the beginning of the current scene but not the first scene. I also want to be able to say what frame in the scene that it goes to because the first 2 frames are the first play button.
and how would I make it so that the music stops playing before the movie plays again?
I heard that in AS1 and 2 that this was easy but in 3 it's a bit of a hassle... please tell me its not that hard!!!
thanks
bubs
Don't Replay Movie On Refresh Of Page - Going Absolutely Crazy
Hi, total n00b here to AS3, hopefully someone can help me.
This seems like a simple script I want to write, but for the past 2 days I can't seem to get it started...
Here's what I want to do:
I have a flash movie that I want to play once. If someone refreshes the page, I want it to check to see if it has already been viewed that day and if so, just go to the last frame of the movie instead of playing all over again.
Here's sort of a flowchart:
1. Start a flash cookie
2. Set a variable for a "check date" and "if viewed"
3. Check "if viewed" - no=play yes=checkdate
4. If checkdate = today=don't play goto last frame
newday=replay movie and set played for that day.
Make any sense?
<: HeLp plz?
Creating A Refresh/Replay/Restart Of Flash Movie Using Actionscript
Hi,
I would like to know how to restart a movie after clicking on a restart button. I am familiar with the Timeline based frame labels and actions to take you back. However, I have my include # "file.as" in frame 1.
I have an onstage movieclip instance containing an embedded movieclip with a restart button. That button contains the following code on it.
on (release) {
_root.container_mc._visible = false;
_root.gotoAndPlay(1);
}
however, it does not reload the movie. I am not sure how to make this reload the current content on and restart the movie.
How is this done???
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
Music Doesn't Play On "replay" Of Movie..
Please help!
I've got a f8 movie with song in bkg. When the replay button is released at the end, the movie replays... but without the music.
If you can help in any way, I'd be so grateful. Thanks!
My Music Doesn't Play On "replay" Of Movie.. Help
Please help!
I've got a f8 movie with song in bkg. When the replay button is released at the end, the movie replays... but without the music.
If you can help in any way, I'd be so grateful. Thanks!
*** I found my problem.. thanks.
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.
I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).
Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:
myMovieClip.stop()
to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.
Any suggestions?
Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
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!
Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.
Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?
Thanks!
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.
Attach Code
var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc
stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}
Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?
How Can I A Movie Clip Splash Prior To Attaching The Choose Movie Clip..Help
I have a presentation which I would like to publish on CD. What I want is to have movies attached to the container_mc on the stage upon clicking the desired navigation buttone. But before movie gets attached, I would like to have a logo_mc animation (from the library) to play itself before playing the selected clip.
I think I need to write up a function which will call the animation splash clip prior to attaching the clicked movie.
Appreaciate all the help.
Thanks so much.
Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.
1. A main movie clip that has a target empty movie clip where an external swf loads.
2. A menu movie clip that is built from button symbols and has its own timeline.
3. The external movie.
When a user clicks on the menu, the external swf loads into the empty movie clip target. This part works fine. Here's the code:
on (release) {
loadMovie ("Lesson1.swf", "_root.container");
}
I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads. I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.
Any help you can offer will be much appreciated.
Thanks
Sheila
Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)
I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having
on(release) {
gotoAndPlay("scene 5", 1);
}
this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.
Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.
This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);
But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.
I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.
If anybody could help, I would appreciate it. Thanks.
|