Movieclip Control [going Back]
hi i'm trying to insert an action on a button placed on a movieclip! what i want this button to do is create the opposite of the Play(); action effect..
can anyone help?!!
thanxs,,
Catarina
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 08-20-2003, 12:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mc Control Help, Back To
I require a mc inside a mc inside a mc. For help I will call them mc1, mc2, and mc3.
In mc2 buttons to go to certain instances in mc3. Now in mc3 I need to return to mc2 at a certain point, frame 215 (were all animation is stopped) inside each mc3 instance. It is ment to resemble a "close" window function.
I used this simple behavior yet it does not do anything.
on (release) {
//Movieclip GotoAndStop Behavior
_root.mcback.gotoAndStop("backreturn");
//End Behavior
}
If you need to see this in action, the site rough is available at http://www.doggydeelites.com/index3.html
Getting Control Back From External Swf
Hello everybody
I am just starting on AS3 and have runned into a problem. I am building a Website and because it is complex and bilingual, I decided to use external swf files and load them as needed. Now I am able to load the first external movie but I am unable to return control to the main timeline so that it can continue with the process. This is the code from the main timeline. Evidently, <preloader1Control> was already defined in a previous frame: preloader1Control = loadedEvent.target.content
ActionScript Code:
// This will import necessary classes
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.IOErrorEvent;
// This will start movie
stage.addChild(preloader1Loader);
preloader1Control.gotoAndPlay(1);
//preloader1Control.addEventListener(Event.COMPLETE, done);
if (preloader1Control.currentFrame == preloader1Control.totalFrames)
{
stage.removeChild(preloader1Loader);
gotoAndStop("GameShow_Main");
}
Can anybody help?
Thanks
Rick
Control A Nested MovieClip From A Button Component Inside A Seperate MovieClip.
I am a beginner in using Flash and Action Scripting.
This is the Scenerio:
I want to control a movieclip that is inside of another movie clip.
I control it from a button component that is inside of a seperate movie clip.
test = button component instance name
test1 = function
test2 = Movieclip instance name
test3 = Movieclip instance name
testbutton = movieclip name where button component is located
I am able to control a movieclip on the main timeline with the following AS 3.0:
test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.gotoAndPlay(2);
}
I want to control a movieclip inside MovieClip1.
I tried this:
test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.test3.gotoAndPlay(2);
}
The movie loaded fine when I tested but got this error when I pressed the button:
TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::testbutton_26/test1().
Please help!!!!!!!!!
Timeline Control Back Button Help
I am looking to have a back button that moves back (3) frames every time the button is clicked. This is for a photo gallery where you can go forward or backward. It is on a timeline so to go back to the previous image you need to move back 3 frames. I have only been able to find a (previous) script to go to the last frame.
anyone know how to do this?
Thanks for any suggestions
Control/sinc Video Movieclip And Text Movieclip
Here´s a tricky one:
I need to sincronize/control a movieclip with texts and a swf (a video) that I loaded, both on the main timeline.
I have a swf (a video) that I loaded in a movieclip into my flash file and a movieclip with texts in it. Both are on the main timeline. Trouble is if the movie is playing and I want to pause it, for example, the swf video pauses but the texts movieclip keeps on playing. If I rewind it, the swf video goes back, the text movieclip still keeps on going. You get the picture.
For control I´m using a camtasia component - camtasia is the software I made the video with. I´m not putting the movie straight into the flash file because the swf made with camtasia turns to be way smaller that if I just loaded into flash.
I´ve attached a txt file with the controller script. Also i´ve put for download the flash file i´m talking about (flashsinc.zip) so you can better understand what I mean. Here´s the adress:
http://www.altoqi.com.br/temp/flashsinc.zip
Thanks a lot.
Flv Play Back Control Remain On Stage After Removed?
hey Guys,
Ive some playback control in my movie, but when I move from the frame with these on to another, the dragable parts of the seekbar and volume remain on the stage?
I cannot remove them to save my life...has anyone got any suggestions?
Zaid
[F8] Control Movieclip From Button Inside Another Movieclip
ok. I have the Main Timeline..on the stage i have "side_menu_mc" inside that i have "menu_menu_mc"."slider" is menu_menu_mc's Instance name.
Inside "menu_menu_mc" i have a button (services_btn)."button_1" is its instance name. Upon clickin on this button, i want a frame labelled "services" (frame 18) in "side_menu_mc"'s timeline to display.
i attempted this.after some googling.but it does sweet nothing.
Quote:
Originally Posted by my shizer code
menu_menu_mc.services_btn.onRelease = function() {
trace("button pressed");
_root.gotoAndStop("services");
}
Back Of Movieclip
I have a movieclip which contains a .png square with some text on top of it.
I flip the card(square) over slowly using ._xscale.
I would like some text written on the other side of the card. I could add it after it has turned over but it looks rubbish and you can see the text on the front for the first half of the flip so I want the text on the back to be visible for the second half of the flip.
I have tried putting text behind the .png but it does not show up when the movieclip is shown flipped over.
Does anyone know what I am doing wrong and how I can fix my problem?
Thank you very much,
Westen
Push Movieclip Back
I have a mine that drops from behind a ship when a button is pressed. My problem is, right now it can drop on top of the barrier or the walls. I tried to make the mine movieclip backtrack, but with no luck. This is the script I am using:
function minefire () {
attachMovie("mineLink", "mineDrop", 0);
mineDrop._x = _root.ship._x+(-50.0*Math.cos(2.0*Math.PI*(ship._rotation)/360.0));
mineDrop._y = _root.ship._y+(-50.0*Math.sin(2.0*Math.PI*(ship._rotation)/360.0));
minedropped = true;
function movemineback
if (mineDrop.hitTest(_root["barrier"+i])) {
mineDrop._x = _root.mineDrop._x+(-10.0*Math.cos(2.0*Math.PI*(ship._rotation)/360.0));
mineDrop._y = _root.mineDrop._y+(-10.0*Math.sin(2.0*Math.PI*(ship._rotation)/360.0));
movemineback()
any clues how I would do this? My main problem is the barriers can be hit on both sides, so I need the mine to come back towards the ship. Thanks,
Andy
Movieclip Back To Scene
I have a problem returning from movieclip to a scene.
The conflict is : the moviclip play until actionscript: _root.gotoandstop (25) . The dilema is, i need to play the frame 25 in scene 2 and the _root. send me to the scene 1 .
Question : how can i write the actionscript in the movieclip end to get back to scene 2 ( wich contains the movieclip)...
urgent!
thanks
Linking Back To A Movieclip
Let me set this up first
I have Scene 1 and Scene 2
On scene 1 frame 1 I've placed a movieclip which is my menu. The first part of the menu is faded in for the first visit. Anyway, I've used the _root.gotoandplay("scene2", 1") to go from that movieclip to scene 2. Now my question, I have a menu on scene 2 (on the main frames) which links back to scene 1. I want to skip the whole fade in thing and go to the 34th frame in the movie clip. How would I do that?
MovieClip And IE Back Button
Hi!
I have 6 frames, on second frame I create movie clips to show some thumbnails:
_root.createEmptyMovieClip("thumb_mc" + i, this.getNextHighestDepth());
_root["thumb_mc" + i].createEmptyMovieClip("cont", this.getNextHighestDepth());
I do not need them visible on other frames, and I just unload them using:
for (var i:Number = 0; i < RL; i++)
{
unloadMovie(_root["thumb_mc" + i]);
}
when I navigate between frames. It works fine. The problem arise when I use IE Back button after visiting frame with thumbnails. I can get to the previous frame, but thumbs remain visible laying on the very top of everything.
Any ideas?
Thank you!
MovieClip Still Accesible From The Back
I have two MovieClips A & B. A at the top and B at the bottom. For argument sake, they have to remain that way. I want B's event listeners to still listen to the mouse despite A being on top of it. I have been reading about MouseEnabled, however I dont think I am enabling it correctly. Any help with this would be greatly appreciated.
Why My MovieClip Get Back To Its Old Pos, After Dragging.
Hello!
I’ve got a movieclip entering the stage the stage from a random position that animates itself to a random position. To do so, I use the following code:
ActionScript Code:
onClipEvent(load){
//
stageWidth = Stage.width;
stageHeight = Stage.height;
_x = random(stageWidth);
_y= random(stageHeight);
//
endX = 500 - random (200);
endY = 200 - random (100);
}
onClipEvent (enterFrame){
dist = endX - _x;
_x += dist / 10;
dist2 =endY-_y;
_y+=dist2/10;
}
When the movieclip has stopped at it’s final destination, I want it to be drag able (the user can put the mc at another position). After dragging, (the user releases his mouse) the movieclip gets back to the position it has been dragged from. I guess it has to do with the “enterFrame-event” which is still working. Can anyone tell me how to stop this event, so the user can drag the movie clip to a position where it stays.
Thanks!
Gettign The MovieClip Back
When you use the AS 2.0 class Linkage method
How do I get the functions of my movieClip back?
My hitTest won't work because he won,t use the MovieClip part of the class to call hitTest
So how do I MAKE HIM use that method?
Can't Send Movieclip To Back
Hi
My problem:
I've got some movieclips where everytime when you click on one, that movieclip has to be send to the back.
Most logic solution is MovieClip.swapDepth(1), so you swap with the movie wich is at the lowest depth, but for one reason or another, this results in the movieclip jumping to the front.
Please can someone help me!
An examplefile is in attachment.
this is my script:
mc1.onRelease = function() {
mc1.swapDepths(1);
};
mc2.onRelease = function() {
mc2.swapDepths(1);
};
mc3.onRelease = function() {
mc3.swapDepths(1);
};
Back Stepping A Movieclip
Hi I have this code on a button that exist witin the movie clip that i want the action to take place.
onClipEvent (data) {
_root.goin.gotoAndPlay(12);
}
if I use (_root.this) it does not work either.
how do I back track the function?
like ../ or .. in a file directory?
Control Movieclip From Button In Another Movieclip
I've been searching and searching for the answer to this newbie problem, but I can't find it, so I hope someone won't mind pointing me in the right direction.
I have 5 buttons within movieclip (1); movieclip (1) is located on the main timeline. I'm trying to get the buttons to jump to a certain frame of movieclip (2) which is also located on the main timeline.
The code I've been using for, say, the first button is:
Code:
Code:
on (release) { _root.mainwindow_rooms.gotoAndPlay("lounge"); }
"mainwindow_rooms" is both the library name and the linkage identifier of movieclip (2). It doesn't have an instance name on the stage (is that relevant?)
I can't get this to work. Can someone please help me with this? I have no idea what I'm doing wrong, I'm not very good with Flash.
Back Button With MovieClip Levels?
Hey All,
I'm trying to get my flash site to work with the back button in internet explorer/firefox. I've been checking out various methods, including the use of 'named anchors', but I've got a problem.
My site works as a series of levels, loaded into an empty movieclip. So, when the user clicks a button, the next 'section' loads in the empty movie-clip, via the 'loadmovie' function.
Using named anchors, I placed one on the first frame of each section. While they seem to register correctly, once the next section loads -- that named anchor becomes the default with the back-button.
For example:
LEVEL ONE - MAIN PAGE - named anchor "Main"
user clicks to goto SECOND PAGE - second page loads into the empty movieclip.
I have a named anchor called "Second" in the Secondpage.swf that loads, but since it's its own movie, the browser only recgonizes THAT anchor, and will not go back to my MAIN PAGE.
Does this make sense? Is it possible to use named anchors or another method in conjunction with the 'loadmovie' feature?
thanks so much!!
-ax1
Button To Play Back Movieclip
Hi,
I have a button that plays my movieclip and it works perfectly. Now I need another button that will play it backward. Here is the code that I used for going forward:
pub_Btn.addEventListener(MouseEvent.MOUSE_DOWN, startMovie);
pub_Btn.addEventListener(MouseEvent.MOUSE_UP, stopMovie);
function startMovie(e:MouseEvent)
{
Publications_mc.play();
}
function stopMovie(e:MouseEvent)
{
Publications_mc.stop();
}
What word should I use instead of "play" for the other button to go backward or is there another way to write the action script?
Any idea? Thanks so muc in advance!
Button Within MovieClip - Back To Start.
I know that this is probably something pretty simple - but I can't work it out. I've tried for a while. I'm a bit of a newbie to flash.
ok - this is sorta hard to explain - but i'll try.
ok... i'm making a new flash site for myself. on the title page u have 5 options/buttons to click on, like design, photography, contact etc... when you click on these a short movie plays (hiding the buttons) then it goes into the desired section. this is a separate movie clip within the original movie clip. (goes to it by using comments on the frames) once I am in that movie clip viewing the section - blah d blah, as per normal... - I want to know what I need to put in the actionscript to make a button go back to the start of the original movie clip. (the first one)
So in theory - on a button in a movie clip within another movie clip - how do i make that button go back to the start. the complete start. I thought that I would just use, on release goto & play start (which is what I named the comment on the timeline) but it does not work at all for some reason. is there some root stuff i need to put in? or do i ned to be using instance names etc....?
Any help wuld be appreciated. thanks!
Buttons In A Movieclip Pointing Back..
so i have a movieclip(padclip) which contains the navigation to my site. there are buttons with padclip that point to different moveclips. one of them being (btn101).. soo below is my issue
i tried using
_parent.btn101.gotoAndPlay();
but received the following error in debug.
1120:Access of undefined property _parent.
if i just use
btn101.gotoAndPlay();
i get the same error but its
1120: Access of undefined property btn101
also.. padClip is not in a folder while btn101 is in a folder..
any ideas?
A Preloader That Plays Back A Movieclip?...
how do you make a preloader that plays back a movie clip instead of a bar?
for example, the preloader would play a movieclips frames equal to the percentage loaded.
does anyone have a fla example? or code?
thanks
mosez
Changing Movieclip Colors Back To Original
Im trying to set some movieclips back to their origianl - multicoloured state - does anyone know a way? I.e. I can use the "setRGB" command, but this tints the movieclip to a new color, is there a way of removing this in actionscript or anything? help!
Movieclip.variable Issue: Cant Find Them Back
Hello!
This is for an "experimental" project, so bear with me it's not that complicated, it's just not the every day image gallery.
i'm loading a bunch of images according to an xml file which basically tells me in which folders are the images and how many there are.
now, i need to display each image in a strip: one next to each other. At first, each image is squeezed to 4 percent (_xscale:4). When the user clicks anywhere, the images should be rendered back to normal (_xscale:100) and thus repositioned in _x.
everything works fine until the click: normally the _x of each image is stored as a variable to its corresponding object, both in squeezed and full modes.
Yet it traces to "undefined" at the time i need that value.
Here is my code:
ActionScript Code:
var project = obj.firstChild;
var sequences = project.childNodes;
var project_title:String = project.attributes['ptitle'];
var project_folder:String = project.attributes['folder'];
var project_FullWidth:Number = 0;
var project_CompressedWidth:Number = 0;
var pointerXpos:Number = 0;
var pointerXposStart:Number = 0;
var totalImageCounter:Number = 0;
var imageHolders:Array = new Array();
var compressedFramePercent:Number = 4;
for (var i = 0; i<sequences.length; i++)
{
// create each strip image MovieClip and assign each with its nested variables
var folder:String = sequences[i].attributes['folder'];
var numOfImages:Number = Number(sequences[i].attributes['numOfImages']);
var namePattern:String = sequences[i].attributes['namePattern'];
var imgWidth:Number = Number(sequences[i].attributes['imgWidth']);
var imgHeight:Number = Number(sequences[i].attributes['imgHeight']);
var sequenceWidth:Number = Number(numOfImages*imgWidth);
project_FullWidth += sequenceWidth;
var sequenceCompressedWidth:Number = Number(numOfImages*compressedFramePercent);
project_CompressedWidth += sequenceCompressedWidth;
for (var j = 1; j<=numOfImages; j++)
{
totalImageCounter++;
var filename:String = namePattern.replace('#', j);
var fileToLoad:String = absoluteUrl+'/'+project_folder+'/'+folder+'/'+filename;
instance = 'image'+totalImageCounter;
var myImage:MovieClip= stripContainer.createEmptyMovieClip(instance, stripContainer.getNextHighestDepth());
myImage.ID = totalImageCounter;
myImage.fileToLoad = fileToLoad;
myImage.xPos = pointerXpos;
myImage.xPosStart = pointerXposStart;
myImage.startWidth = compressedFramePercent;
pointerXposStart = Number(pointerXposStart+compressedFramePercent);
pointerXpos = Number(pointerXpos+imgWidth);
imageHolders.push(stripContainer[instance]);
}
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++
// INITIALISE A GENERIC LOADER TO SYNCHRONISE SEQUENTIAL LOADING
//+++++++++++++++++++++++++++++++++++++++++++++++++++
var imgLoader = new MovieClipLoader();
imgLoader.onLoadComplete = function(targetMC)
{
i++;
loadImg();
};
// START IMAGE DOWNLOAD, ONE BY ONE
var finishedLoading:Boolean = false;
loadImg = function ()
{
if (i<imageHolders.length)
{
var myObj:MovieClip = imageHolders[i];
myObj._x = myObj.xPosStart;
myObj._xscale = myObj.startWidth;
imgLoader.loadClip(myObj.fileToLoad,myObj);
}
else
{
finishedLoading = true;
}
};
loadImg();
//+++++++++++++++++++++++++++++++++++++++++++++++++++
// LISTEN FOR THE "EXPAND" CLICK
//+++++++++++++++++++++++++++++++++++++++++++++++++++
stripContainer.onRelease = function()
{
if (ViewingCompressed === true)
{
// **************PROBLEM COMES HERE ********
for (var a = 0; a<imageHolders.length; a++)
{
var myObj:MovieClip = imageHolders[a];
//** THE FOLLOWING SHOULD WORK, BUT DON'T !!!
myObj._xscale = 100;
myObj._x = myObj.xPos;
trace ('myObj.xPos: '+myObj.xPos);
}
ViewingCompressed = false;
}
};
If i count the number of items in imageHolders array, it renders the right number of elements, but they have all lost their nested variables...
i'm a bit desperate here .I hope someone has a clue. Thank you!
Linking From Buttons Ina Movieclip Back To The Scene Probs
Here's my situation:
I made a whole site interface with buttons etc bla bla, few movie clips etc, the buttons are also in a movieclip wich plays once when you enter the site, my problem is now that if i place the button actions on the buttons inside the movieclip like:
on (release) {
gotoAndPlay("site", 2);
}
It doesnt go back to the scene but it just plays from the 2nd frame in the movieclip itself, wich ofcourse is something i do not want to happen, i want it to go to the 2nd frame in the scene called "site" though i told MX to do it it still doesnt, what am i forgetting or doing wrong here?
Any help is appreciated,
Thanks,
Marcell
Turn Grapic/movieclip Symbol Into Movie Back Again
I have created a small animation and turned it into a 'graphic symbol' . Now I want it as a separate flash movie (something like 'un-symbolize') (so that I can edit it, perhaps add some scenes etc..). How can I do that? Please help me..
Can You Use The Back Button In A Browser To Go Back To Go Back In A Flash Movie?
Hi
In html pages it is easy to go back (the back button in the browser) to the last page you were on. But when you have got a flash site in a html page you cannot go back to the last page in the flash site using the 'back' button in the browser. Is there anyway you can change this so that you can use the back button in a browser to go back to the last flash frame?
Button Press Remove Movieclip, Bring It Back When Not Pressed
Hello,
I am wondering if there is a code so that when a button is pressed a movieclip is removed, and then when it isn't pressed the movieclip remains.
Am i on the right track here?
Code:
onClipEvent (enterFrame) {
if (keyDown "x") {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
}else{
}
}
Movieclip Control
lets say if I have a APPEAR button set to on release: telltarget "instancename" gotoandplay frame 10.
The movieclip "instancename" has already been loaded in the same level as the APPEAR button but action has been given to go to stop at the beginning of that level. When the APPEAR button is being click now, the "instancename" will play and it will cover the current button and hide it.
How do I set actions to another "back" button in the "instancename" movieclip so that it will unload and show up the APPEAR button in the previous level again?
Hope I make sense.
Thanks
Control Movieclip
can anybody help me with the script to make a button on my main movie play a movieclip inside a movieclip? cant figure it out. i just need a button to tell a movieclip to goto and play. anybody?
thanks for your time,
j-son
How To Control A Movieclip Outside Of It?
i have a button on the main stage and a movieclip. Now wich string do i need for the button to start playing the movieclip from frame nr.91 for example???
i've tried this
with "can" as the movieclip instancename
on (rollOver) {_root.can.gotoAndPlay(91);
}
MovieClip Control
I'm trying to get a similar effect to the fly mc on this site:
http://www.24-7media.de/
When you touch the fly with the cusor, it plays. Then stops and waits to be touched again to play the next segment of its timeline.
My problem is that I can only make it continue to play if it IS being touched. Once it flys away from the mouse the if hittest statement I'm using is no longer true. So that's obviously not the right direction I should be going with this. I'm stuck.
Any ideas?
Movieclip Control
say you have a button on level 20, How do you tell the movieclip "ball" on level 10 to go and play a specific keyframe?
Thanks in advance!
Movieclip Control
Hello everyone. I am building a menu that involves having several buttons nested inside a movieclip. Inside the movieclip , the buttons alpha increase from 0 to 100 while they move into position on the stage. I put a stop() command on the last frame of the movieclip. This part is simple, heres where i get confused. Behind the movieclip,on a seperate layer, i have an invisible button. On rollover, i tell flash ,
_root.menu._visible = true;
_root.menu.play();
(menu is the instance name of the movieclip). This works fine except as the mouse continues to move from one button to next the script keeps looping, causing the movieclip to play over. I understand why its doing it, the invisible button loses focus when the user rollovers one of the nested buttons, then whey they rollover the invisible button it runs the script again. Is there a better way to this ?
Movieclip Control
hi, i'm having trouble controlling movie clips that are within my main movie using a button. i need to be able to play them and choose which frame to play them at but all i can figure out is how to change their properties ie. visibility and alpha value. can this be done? if so how. thanks for your help.
jeremy boyd
MovieClip Control
HELP ANYONE!!!!!!!!!!!
I am new to Flash and my background is really in print. So I'm trying to expand my horizons, but FlashMX is giving me a headach.
I have a movieClip(MC) navbar on my stage. In navbar is is a MC navslider that consists of 8 buttons. navslider is also behind a mask that will limit what is seen on the stage. Also in the navbar is a MC 1101 that contains 2 layers/3 frames(1-blank, 2-MC 1101-over, 3-MC 1101-out) each frame has a stop action.
I am trying to make the rollover/out happen in the navbar so that the mask is not in the way. This is my code that will not work:
on (rollOver) {targetPath(_root.navbar.1101){gotoAndStop(2);}
}
on (rollOut) {targetPath(_root.navbar.1101){gotoAndStop(3);}
}
I get
**Error** Symbol=navslider, layer=Layer 1, frame=1:Line 3: ')' or ',' expected
on (rollOver) {targetPath(_root.navbar.1101){gotoAndStop(2);}
I want the rollover to play one clip and rollout to play the other.
1101 is the name of the MC that has the Over and Out MC and it is the name of the instance of MC-1101 on the timeline for MC-navbar.
I have also tried to put it on the main timeline and just call it to the _root. and I've tried without "targetPath" but nothing works.
Then to add to the injury I want the _x value of the MC 1101 to alway be the same as the button that controls it. The buttons slide back and forth so you can only see 3 at a time.
Movieclip Control
Hi all
I have created two buttons which in turn control two movieclips
button A controls the fade in and out properties of called "content"
button B controls the fade in and out properties of called "content2"
I have been able to tell button A to fade out the movieclip called "content"
and then to fade in the movieclip called "content2"
I can also tell button B to fade out the movieclip called "content2"
and then to fade in the movieclip called "content"
What I am struggling to do is when you FIRST press either button at the start to just play that buttons specific movieclip e.g
button A = mc_content
button B = mc_content2
I know that I am needing a conditional statement of some sort but I got no clue on how to approach it. Any help, advice examples etc would be very helpful to me
thanks all
w9914420
a sample of my file
Movieclip Control...
I know it's a pretty simple question, but I can't remember how to do it. I have a movieclip that I've dragged onto my main timeline and have a button movielcip that I want to, when clicked, have play the contents of the other movieclip on the main timeline. Do I have to give the movieclip instance a name or what? In the end, this entire swf will be loaded into another swf, so maybe _root won't work? I dunno. Any help would be great! thanks!
Movieclip Control
Not sure if this is possible but here goes...Is there any way to play a movieclip to the end then have it play backwards, back to the start again.
Control A Movieclip
Hi,
I've created a presentation which is in a movieclip called "Presentation".
Now I need to create controls for the movieclip.
I need the following controls:
PLAY/PAUSE (this I can do)
Go back to the beginning of the movie (this I can also do)
But I need to create a progression bar, which I can grab with the mouse and scroll back or forward anywhere (while the movie is played) - how is this possible? Also I would like the progression bar to go from 0 to 100 % as the movie is loaded?
Will appreciate any help or references :-)
Cheers,
Mads
How To Control One Movieclip From Another?
I have 2 movieclips on the stage. When i get to a certain frame in one movieclip, I want it to tell the other movieclip to stop. How do I do this? Let's call them mc_1 and mc_2. On frame 10 of mc_1 I was trying to call:
MovieClip(this.parent.mc_2).stop();
but I get an error that says "1119: Access of possibly undefined property mc_2 through a reference with static type flash.displayisplayObjectContainer."
Both movieclips are on the stage in the same frame. Can someone help? This should be simple but I don't know what I'm doing wrong.
[F8] AS2 MovieClip Control Help
I have the movie clip moving left right a decent attack
But....
how do i keep him facing left when i have pressed left key and vice versa
And before anyone says i have tried myself and it didnt work
it failed..... Epically
below is what i have just for those who might have download or saving problems
Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 8;
this.gotoAndStop(3);
} else if (Key.isDown(Key.LEFT)) {
this._x -= 8;
this.gotoAndStop(2);
} else if (Key.isToggled(Key.SPACE)) {
this.gotoAndStop(4)
} else {
this.gotoAndStop(1);
}
}
Its for a Spirte game i'm making just need a little help
MovieClip Control...
I'm only a newbie as'r I know how to load movieClip externally/internally. But what I'm trying to do is load an animation onRollover from a nav, then when I onRollout I want the animation to reverse.
But not only this I want it so that when I'm rolling onto another btn in the nav the animation will 'wait' untill the previous reverse animation has finished.
Can anyone get me started on this??
MovieClip Control
This one is easy, I am sure. So here goes.
In my main timeline, I have a movieclip attached to a frame. When a button is released, the playhead goes to this frame and plays the movie. This is where I am having a little trouble. When the movie is done, I want the playhead to go back to my scene and play the next frame. How do I do that?
Any help would be great.....THANKS! I love this site. A lot of helpful people.
Control A Movieclip
Maybe sound very basic but right now I'm
If I have a movieclip that I want to start and when that have done I want my actionscript do something else
Like to have so much actionscript in same place
|