Embedded Movie Clip To Play Maintimeline
Hello everyone, once again im really lost.
I have an embedded movie clip with two buttons. One button call a webpage which works beautiful. The Other button is supposed to Go Back to first frame of the main timeline. This does not work at all.
every time i try gotoAndPlay() method I get a undefined error so how do i get flash to know to look at the main timeline.
If anyone has an answer it will be greatly appreciated.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 10-28-2008, 03:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Changing The Color Of A Movie Clip On The Maintimeline....?
Could someone please point me in the right direction...
I have a mc that contains sub-menu buttons...what I would like these buttons to do is : on release, change a mc in the maintime line a different color. Now, these mc's that contain the sub-menu buttons have also been placed in the maintime line......does any of this make sense? I'd appreciate any help...thanks!
Calling A Frame From The Maintimeline From Inside A Movie Clip.
I am have a stop action on the main timeline. from there i have a button that jumps and stops at the next frame where a movie clip plays. inside this movie clip, at the last frame, i want a button which when released will go to the next frame which is labeled Step2 in the main timeline, but i am having a tough time figuring out the right path.
any help would be appreciated. i tried the
on (release) {
gotoAndStop("Scene 1", "Step2");
}
but for some reason it stays within the current MC timeline instead of going to the main timeline
Any Way To View Embedded Things In The Maintimeline?
I'm probably going about this the hard way, but is there anyway to view imbedded objects like mc's within a scene while dragging the timeline?
Delimna: I am creating a second scene, but want to carry over certain elements from the final frame of the first scene to the second to display them in the first frame of the 2nd scene as static elements, then begin new animation from there. I've accomplished this so far by copying and pasting in place from the last frame/first scene to the second scene. However, if it is an image embedded in a mc, it doesnt show up in the maintimeline of the 1st scene, unless I test scene/test movie. This would really help with placement in the second scene, without having to go through the painstaking task of dragging new elements into the second scene and, going back and forth to the 1st to check size and positioning etc. Is there a way to see this stuff in the first scene, or an easier way to copy the final element placements from the 1st to the 2nd scene?
Flash MX 2004
Thanks in advance!
Ken
Maintimeline & Movieclips Universal Pause/play
I have a main scene which has movieclips embedded within the timeline. I wish to create universal pause and play buttons situated in the main scene's timeline that can pause playback of the main timeline as well as the timeline of the embedded moviecip which is currently playing.
The problem is using
pause_btn.onRelease = function(){
stop();
_root.drip_mc.stop();
}
only pauses the main timeline but the movieclip continues running independently.
Any Ideas?
Need answers ASAP, it's for an assignment. =)
Thanks
Actionscript 2
Flash v.9
Possible To Have A Sound Play Without It Being Embedded In Movie?
Ok here's the situation. Say I have a CD track listing and each track is a button. I want the button, when clicked, to play a sample of that track. What I'd like to know is if it's possible to have the buttons load the track when clicked on, instead of when the movie initially loads (a loading...please wait message would be fine at the time they click on a track).
If I have 12 tracks and each track is 30 seconds long, it would not only make the entire movie much larger, but it would also force me to create a preloader for an already small movie. Plus, if someone isn't going to listen to all 12 tracks, loading up all that audio is just wasted space.
So, does anyone know if this is possible and if so, how? Any help is appreciated, thanks.
Can I Get Embedded Flash Movie To Only Play Once?
Hi,
i have a Dreamweaver template with a Flash header. when i click to another page the Flash movie reloads and ideally i would like it to remain on the last frame.
is this possible to do?
thanks for any help.
janice
Play Embedded Movie In Full Screen
Just a quick question - I have a projector movie set up to play one of three video files which it runs with loadMovie. At the moment it plays them in their original size within the projector window. I've been trying to add a Full Screen button with no luck. The projector file itself displays full screen but I'd like to add the same option for the movies.
EDIT: Actually, that title's a bit misleading - the movies aren't 'embedded', they're external and called by the main fla.
How To Make Embedded Movie Play Indefinitely
In one of the timelines of my main movie, I placed an tiny animated movie clip. I want this tiny movie clip to loop indefinitely. But I am finding that once the main movieclip has reached the end of its timeline, the tiny movie clip also stops.
How can I have this tiny movie clip continue to loop indefinately even thou the main movie clip has reach the end of its timeline.
From A Loaded Swf Clip, Access/reference Variable In The MainTimeline
Hello all, want to ask you a question:
In the mainTimeLine, I have a string variable like this:
var myString:String="Hello!";
Now I load an external swf to the mainTimeline:
var ContentLoader:Loader=new Loader();
ContentLoader.load(new URLRequest("externalClip.swf"));
Now, I can pass the value of variable "myString" to the "ContentLoader.content", no problem.
My question is, if I am not passing the value to the loaded clip, can I use some script (within the loaded swf) to reference the "myString" in the main movie?
it seems to me now it's only one way street in AS3 - I have to pass that variable to the loaded swf, not the other way around... which means, I can't use the AScript in the loaded clip to control anything on the main timeline?
any thoughts?
Sam
Play Movie Clips To Fade Off THEN Play New Movie Clip
Hey guys, I've been doing a little searching and I can't find the answer to my dilemma.
I've made up some buttons that play a little movie clip animation when pressed. The scenario is like this: Push the "Illustration" button and little files pop onto the screen. Each file will be a button that opens up an image. Push the "Pictures" button and the "Illustration files" should fade off the screen so the "Pictures files" could pop in in it's place.
I can't find a way to make the "Pictures" movie WAIT for the "Illustration" movie to be done before it pop in. One goes in, and the other simultaneously goes out and I don't want that.
Is there any way?
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.
-Thanks
Embedded Video In Movie Clip
hi,
is there any way to place embedded video in a movie clip (rather than into the main timeline)and still utilize video controls as well (play/pause/stop)? i'm doing a cd-rom with several video excerpts, and want to keep the projector size down. thanks.
Controlling An Embedded Movie Clip
I'm new to the flash game, but I'm hacking my way through it fairly well.
My current problem is -- I have a little movie clip animation -- it's about 15-20 frames. I have it saved as a Symbol and I want to use it over and over again, in my main scene.
Now, I suppose I could just keep placing new instances of the symbol to play the animation over and over as needed... HOWEVER... I'd rather just be able to control the clip from the Main scene.
What I'd like to do is this: While the main root scene plays straight through -- it is a 200 frame animation -- I want to have complete control over the short nested clip. For instance, I might have it play through then freeze on a frame or "rewind" to frame 0 and play again as needed. Can I script such an action? Can someone give the procedure because everything I've tried is not working.
Thank you.
[F8] Movie Clip Embedded In A Button
Hello, everyone! I'm new around here, and relatively new to Flash as well.
I am currently working on making a map. I've gotten the map completed, with basic navigation functions and whatnot, and now I'm working on imporving the map. The first way I though to improve the map would be to make it draggable, so that people don't have to necessarily use the navigation buttons to move the map around.
The map itself is a Movie Clip with embedded buttons and movie clips. After messing around with it for a bit, I learned that, in order to make the map draggabe, it needs to be a buttoon, so I could apply on (press) and on (release) actions to it. However, after doing this, I ran into a bit of a problem. Everything about the map works perfectly fine, except the optional selectable icons (such as parking lots and smoking areas, for example) can no longer be toggled on and off by the viewer.
I know what the problem is, I just don't know how to fix it. So, the button for the map is labeled "btn_map" and the movie clip is labeled "mc_map". Now, before I made the btn_map with the embedded mc_map, all I did was use the collowing code (dissmoking being the X next to the text that pops up when the item is visible):
on (press) {
if (this._parent.mc_map.smoking_mc._visible == false) {
this._parent.mc_map.smoking_mc._visible = true;
dissmoking._visible = true;
} else {
this._parent.mc_map.smoking_mc._visible = false;
dissmoking._visible = false;
}}
The problem is that, after embedding the mc_map into the btn_map, I can no longer direct the action script to the "smoking_mc" movie clip using this line of code: this._parent.mc_map.smoking_mc. I tried using the target locator as well, but the btn_map doesn't have the little plus sign next to it, indicating that I can expand it and select something withing the button itself, so I can't get access to the mc_map embedded in it. I've also tried adding in btn_map between _parent and smoking_mc, but to no avail. I know that it's either something really simple that I've just overlooked, or it just can't be done, lol.
If anyone could give me a hand here, I would greatly appreciate it!
Location Of An Embedded Movie Clip
I need to find the x and y of an embedded movie clip in relation to the stage. _x and _y just give where the movie clip is in relation to its parent.
I tried:
_x + _parent._x and _y+_parent._y, but that didn't work
any help would be appreciated
Quiz Embedded In A Movie Clip
Hi guys,
I have got a quiz made by the quiz template, just by itself it's ok.
When I want to load this quiz into a movie clip in another document it won't work.
It loads the quiz, but when I click the next button,the button greyes out and doesn't change the frame.
Am I doing something wrong?
Cheers
Embedded Movie Clip Rollovers
I have a movie clip symbol (bar27), that when rolled over causes bar29 and bar30 to move over....
bar27.onRollOver= function(){
bar29._x +=8
bar30._x +=10
}
bar27.onRollOut= function(){
bar29._x -=8
bar30._x -=10
}
but also bar27 is a movieclip that has a rollover embedded in it....
main1.onRollOver = function() {
gotoAndPlay(2);
}
does the first rollover cause the 2nd rollover in the bar27 movieclip to not function correctly? if so, how do I get it to work correctly?
Embedded Button In Movie Clip
Hi,
I created an equalizer with a button in an external file. I am loading this clip into a container into another movie. The music starts to play automatically (which is what i want), but i have to push the "play" button twice to get the equalizer visual effects to start (after it starts, everything works fine). In addition, the standalone swf of the equalizer (when run by itself) works perfectly. I am not sure how to identify the button and either change it to "playing", which is in the action script or how to identify the button and call a "double click".
I am using the loadMovie("equalizer.swf",mc_eq) mc_eq is the container.
Thanks in advance for any assistance.
-mike
Buttons Embedded In Movie Clip
Question: Can you reference multiple buttons inside one movie clip? If yes, how do you do it, since the buttons would give up their instance name inside the mc, right? Or am I not thinking right?
Any insight would be helpful. No article I have found discusses this.
Embedded Movie Clip Riddle. (Flash MX)
Hi all,
While self studying embedded movie clips I created 2 cars moving accross the screen. In each car I have an embedded spinning wheel.
At the end of the race one of the car has its wheel still spinning!?!
I'm starring at my timeline, the movie explorer and can't see what's going wrong...
My example is in the cars.fla file.
Loading Movieclip Within Embedded Movie Clip
Hello, as an interface to a website I am creating, I have a movieclip that holds several movie clips that when the button they contain is clicked, it slides the movie clip left/right for people to see the content within. However, some of the content will be far too large in size to all load at the start. So, Is there a way to load external .swfs into embedded movieclips of root? that way, the loaded swf doesnt layer over top of all the sliding tabs, I need something that will be loaded according to the layer it is in.
Thanks
www.dangerradio.com/index2.html <-what I'm talking about if what I said doesnt make sense
Button Embedded In Movie Clip Not Responding
I've been using Flash for a while but not very intensely so I'm stil rather new to it.
I have several animated buttons inside of a movie clip which is inside a nother movie clip. When I play the SWF file, the buttons aren't active. For the over state of them, I have them turn white to let me know when they're working and when I play the file, they don't turn white when I move the mouse over them.
Can anyon tell me why this might not be working?
I'm running Flash MX 2004 btw.
Embedded Text Not Loading In A Movie-clip...
This script should work:
loadVariablesNum("http://www.jemcreations.com/jamesnews.txt", "type");
but all it does is load the .txt file in a new browser window.
Can someone explain levels to me also? thanks.
Controlling A Button Embedded In A Movie Clip
Hello all!
I am creating a game where there is a box, and when you click on the box your score raises and the box moves to another random position.
I am using Flash 7.0.
I use attachMovie() to place the box, and I want to be able to access the button embedded in the movie clip that I attached. But how? Whenever I try it ends up doing nothing. This is kind of hard to explain, so tell me if you don't understand.
Thanks,
Blake
Targeting Embedded Button In A Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:
this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}
That works fine.
Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:
this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}
The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.
Thanks!
Pausing A Movie Clip Embedded In A .swf When The .swf Is Paused
Hi everyone,
I'm new to this site so I hope I'm in the right place - I've tried searching for this answer but have got nowhere.
I'm stuck on a problem I'm having with a flash animation I'm working on.
I have embedded several movie clip for various things inside the main movie.
My problem is that when the main movie is paused, the embedded movie clips keep on playing.
Is there a way to somehow link the embedded clips to the main movie so that if the main movie is paused, the embedded clips will pause at the same place?
Do I have to redo the entire movie un-embedding the movie clips to solve this problem?
Thanks for your help!
Meriel
Button Embedded Inside A Movie Clip?
For the getProperty tutorial, he has a button inside a movie clip containing the
on (release) {
_root.xpos = getProperty ( _target, _x );
}
Does anyone know why the button has to be inside a movie clip to work?
I placed the code in the button without being in a movie clip and I kept getting 0 as my x position.
thanks for you help!
Targeting Embedded Button In Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:
this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}
That works fine.
Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:
this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}
The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.
Thanks!
Attaching An Embedded Movie Clip To An Empty One
HI,
I am new to Flash and would like some help about the following. A have an embeded movie clip in my library that i want to attach to an empty movie clip I am creating with ActionScript. I want to fix the size of the empty movie clip, that I will use as a container to for my embedded movie clip. It turns out that when I fix the size of the empty movie clip container and I use attachMovie to load the embedded movie clip to it, the image doesn't show, I can hear the sound but not the image.
So the question is , if I have a movie clip container of a different size than the movie clipse I want to load into it, what do I need to do to make sure the movie clip will fit into the empty container.
thanks
-malena
Embedded Movie Clip Not Playing Properly
I'm at a complete loss as to why this isn't working, so hopefully one of you guys can offer some insight. I have a button in frame one that, when pressed, takes the viewer to frame two. This bit works fine. However frame two has a movie clip which refuses to play. I wanted an extract of text to fade into the animation when the viewer clicks on the button and the only way I could think of doing it easily was to create a movie. When I click on the button the text still appears but does not play the movie clip of it fading in. The frame it is embedded in also has the stop(); function assigned to it on a seperate layer, would this have prevented the clip from playing properly?
I'm reletively new to using Flash as an animation tool (I use it mainly for line art to be exported to Photoshop) and my knowledge of any kind of scripting is limited to html and css, so any help will be greatly appreciated.
[edit]So now it's working fine. I'm not sure what I did but I guess that means this post is null and void! Thanks to the people who checked it out, even if they had no solution.
Trying To Reach A Child/embedded Movie Clip
Hey guys... i'm new to the AS3 format and wow has it changed. but i don't know how to correctly ask this question, so forgive me if this is addressed in another post...but please provide the link..hahaha
here's my problem I'm trying to reference a dynamically created movie clip
function getContentData(xmlData):void {
for (var i:int = 0; i < xmlData.*.length(); i++) {
var mc:MovieClip=new navButtonAction();
mc.name = "mc"+i
mc.x=500 +(i*250);
mc.y=10;
mc.currentBut.text = xmlData.*[i].name();
//mc.imageShell.pctFieldText.text = "show % loaded here";
navMenu.addChild(mc);
loadImage("photo.jpg");
}
}
function loadImage(url:String):void {
// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(Pro gressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Eve nt.COMPLETE, imageLoaded);
}
function imageLoading(erogressEvent):void
{
***so the question is... how would i talk to the dynamically created "mc" here.***
so i can pass the preloading tally.
}
Referencing Embedded Movie Clip Function.
How fo I reference a function that's inside an embedded movie clip?
I have a mc_placeholder called Page1, on that page 1 is the embedded movie clip Textarea.swf. Textarea.swf just creates a text area on it. I just want to reference a function inside Textarea.swf.
The function i'm trying to call is called hello();
I've tried:
this.Page1.hello();
_root.Page1.hello();
this.hello();
_root.hello();
this.Page1.textarea0.hello();
_root.Page1.textarea0.hello();
hello();
None of these work. What's the correct syntax?
Thanks
Button Embedded In Movie Clip Not Solved
Very URGENT PLZ HELP Me......hi i had make a movie clip in flash that when the mouse roll on the clip the movie stop play and when the mouse roll over movie start playing in that i want to give link to seperate URL means for each photos in clip diff. url should be there i also tried that and i got 50% succeess the problem is that when i move mouse to clip the movie stops but the link doesnt work.
plz help me in sorting these problem....
Button Embedded In Movie Clip Not Responding
I've been using Flash for a while but not very intensely so I'm stil rather new to it.
I have several animated buttons inside of a movie clip which is inside a nother movie clip. When I play the SWF file, the buttons aren't active. For the over state of them, I have them turn white to let me know when they're working and when I play the file, they don't turn white when I move the mouse over them.
Can anyon tell me why this might not be working?
I'm running Flash MX 2004 btw.
Button Embedded In Movie Clip...not Working
I'm a pretty experienced Flash user, but mostly self taught and not at all an expert on ActionScript. Here's what I have going:
I have a movie with many multiple scenes embedded. In one of the scenes, I have a layer that has a movie clip inserted to a keyframe. In that movie clip, is a button that slowly floats around. I want to make it so that when someone clicks on the button, wherever it is on the page, it can load the scene that I specify. However, when I set up the action, and then click on the button, it just reloads the scene that the button is in.
Does anyone know an action I can use to correct this? Or do I just need to take the button out of the movie clip keframe, and just create the animation and motion in the scene timeline itself.
Hopefully someone can help. I'm thinking it's an easy fix, just probably something I've never come across before. Thanks!
[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip
lets say that there are 4 buttons are in movieA, and the other clip is called movieB
when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on
so far my code for button1 is:
on (release){
this._parent.movieB.gotoAndStop(5);
}
on (release){
_root.movieB.gotoAndStop(5);
}
button2:
on (release){
this._parent.movieB.gotoAndStop(10);
}
on (release){
_root.movieB.gotoAndStop(10);
}
with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame
can anyone shed some light on this?
Embedded Swf File Or Movie Clip That Can Open Html
Hey, i'm doing a website right now that so far the layout is entirely in flash. What i'd like to be able to do is have the content section of the site (the part in the middle) a movie clip that is opens an HTML site inside of it. What I have now is a top bar, and a navigation bar at the left,
http://members.shaw.ca/lyfe/retail/Untitled-1.html
So i'd like to be able to load an html file into the middle section. There are several reasons for this. First, it makes it so others without flash or flash knowledge can update the content, and will also separate the website into modules instead of one big swf.
If this is not possible, was thinking about starting in dreamweaver, importing the flash buttons, and somehow connecting those to the content section of the site.
Can someone please direct me to a post, tutorial or something else that could help me mix HTML and flash? Thanks!
Url Links In Movie Clip Do Not Work Once Embedded In Html
Hi, i am creating a website and using a small flash intro. I have created a flash intro movie and embedded this into a blank html page. The movie is embedded fine the play/begin intro button i have used works fine along with the actual intro, however the get shockwave, and enter (to my actual html website) url links do not work at all. They do show up as buttons as the cursor chages to a hand symbol but they seem to not function. However in the actual swf file for the intro and testing the movie in flash the buttons work fine. I have searched but found no help.
Hope to hear frm someone soon, please feel free to email me at locked_on_aj@hotmail.com. Maybe i could send someone my fla file to look at?
kind regards -Ajay
Random Number To Choose Embedded Movie Clip
Hello Flash Experts!
I'm under the gun again. I have thrown together some simple flash in the past before, but I'm no actionscript expert. Here's what I need to build by tomorrow:
A script that, when you click on a button, selects a random number from a range of 1-1200. I assume I need to pass this number into a variable, because depending on where that number falls (say 1-210 = clip 1, 211-460 = clip 2, and 461-1200 = clip 3) I need to have flash play the corresponding movie clip.
I'm finding plenty of scripts for generating random numbers in a range but I don't know how to populate that into a variable or write a conditional statement to play the correct clip. The more complete the help you can give, the more I thank you!
Dynamic Text Box In Embedded Movie Clip Symbol.
I'm sure the solution to this is obvious but I'm afraid I'm quite new to ActionScript,
I have created a dynamic text box which updates from the computer clock and always displays the correct time, this works fine with the code;
var myTimer:Timer = new Timer(500);
myTimer.addEventListener(TimerEvent.TIMER,tick);
myTimer.start();
updateTime();
function tick(event:TimerEvent):void {
updateTime();
}
function updateTime():void{
var date = new Date();
var mins:uint = date.getMinutes();
var hours:uint = date.getHours();
timetext.text = pad(hours) + " : " + pad(mins);
}
function pad(number:Number){
var new_num:String = String(number);
if(new_num.length < 2){
new_num = "0" + new_num;
}
return new_num;
}
I've then embedded this in a flash movie and imported it to a website I'm working on, now that its embedded the time is no longer displayed, I've checked through the code and nothing has been changed, it's still on the same computer i originally made the movie clip on so the font itself shouldn't be missing i don't think...
any ideas? I'm a bit stuck here.
thank you for any help or opinions!
Dynamic Text Is Undefined In Embedded Movie Clip
I have a movie clip. When I add a dynamic text field to the root level the field works correctly, but when I add the field to an embedded movie clip it becomes undefined.
I've tried using relative and absolute paths in case that made a difference but it does not.
In an as file I have:
lyricsBox.text=lyrics;
and the dynamic text box has an instance name of lyricsBox.
How do I get this to display in a nested movie clip?
Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.
The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.
Thru a search from the forum i came across this script
first frame:
Quote:
function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};
function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};
for the button:
Quote:
on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}
everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.
Jumping From Scene To Scen With Buttons Embedded In Movie Clip
I could do this in Flash 4 but it isn't working in Flash 5. I'm trying to get from scene to scene with a button that's embedded in a movie clip. In the first scene the movie clip begins to play and the button appears. I want to be able to click that button and move to the next scene.
Here's my code:
on (release) {
gotoAndPlay ("scene2", 1);
}
What am I doing wrong here?
Passing Variables To Control Motion In Embedded Movie Clip
Hello,
I have this problem: I have embedded a movie clip and I use a lot of its instances in a single movie. I want to pass some variables to the movie clip so to control the movement (beginning and ending of a Motion Tween) of a dynamic text input inside it. I don't know how to do that.
Please help me!!!
Thanks in Advance,
Stratos Filalithis
|