Go To Next Frame Of Movieclip
I have a movieclip(2) within another movieclip(1) on frame 4 with a stop action. When movieclip(2) ends I want to continue to frame 5 in movieclip(1). Normally, I use _root.gotoAndPlay(5) if I had a movieclip on scene1, but im not working on the root level of scene 1 yet, Im working from movieclip inside another movieclip.any ideas?Thanks Brian
Adobe > ActionScript 1 and 2
Posted on: 09/07/2007 01:30:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Wait Till Movieclip Gets To Particular Frame Then Play Another Section Of Movieclip
Hi,
I'm trying to reconstruct http://www.kswissfreerunning.com/AU/ with movies of my own.
Basically I have an array that contains the letters the user enters and I have the movie in a separate moviecilps with labels representing the letters.
I have a (what I think) logical set of code here to run through each letter in the user enters:
Code:
for(var k=0; k < letterArray.length; k++){
movie_mc.gotoAndPlay(letterArray[k]);
}
The problem is that it will only play the last letter the user enters. How am I able to make my flash wait till it gets to the end of a section of the movieclip, then play the next one, without it rushing to go straight to the last letter.
My pseudocode looks like this:
For the length of the array
play the next letter
when that letter movie gets to the end
play the next letter
Thanks in advance.
Play Specific Frame Of Movieclip From Other Movieclip
now this may look like simple stuff but it is not happening.
i ve made two movieclips 'menuball' which is animates the small ball inside the scene (like a bullet for menu item) and 'menumain' where 'menuball' is embedded and small text which is button.
now i want when this button in 'menumain' is pressed. the 'menuball' clip shud be played from 12th frame onwards. this will basically withfraw the ball from the scene.
i ve used simple code
on(release)
{menuball.gotoAndPlay(12);
}
or
this.menuball.gotoAndPlay(12);
or
_root.menumain.menuball.gotoAndPlay(12);
and many more like this
but none is working
i am attaching the small fla file. please help me in this. i am not getting any solution. and my whole work is stuck coz of this.
Go To A Frame And Play A Certain Frame In A Movieclip?
Hi,
This may be a really simple question but I'm trying to go to a frame on the timeline which has a movieClip object in it and then goto a specific frame in that movieClip and I can't figure out how to code it. I thought something like:
gotoAndPlay("movieClipframe");
this.theMovieClip.gotoAndPlay("theFrame");
but I get a null reference error.
Does anybody know what I'm doing wrong or if I'm?
Thanks for any advice
Targeting A Frame In One Movieclip From A Movieclip
I am trying to target a frame in one movie clip from a button in another movie clip....
I used this action on the button but it still does not work...
on (release) {
_root.nameofmc.gotoAndPlay(nameofframe);
}
what am i doing wrong?
UGH
thanks...
Jen
Target Frame From Movieclip To Movieclip
Hi again Sofiebel.
I could appreciate yours or anyones help on the following problem.
On my main time line i have 2 Movie clips one is for all the navigation and 1 is for an orderform.
within The navmc has a button which should link to a certain frame (brotchen) in the orderformmc
orderform movieclip is labeled "orderform"
navigation mc is called "navmc"
my problem is that i read on the above messages that all i have to do is use the root and direct any action to the mc.
I added the code on the button within the navmc so:
on (release)
_root.orderform.gotoAndPlay("brotchen");
this had no effect. so i tried doing a hop from the navmc to the maintimeline and then from the main timeline to the orderform mc like this.
on (release)
_root.gotoAndPlay("hop1");
on the main timeline frame Hop1 i had
on (release)
_root.orderform.gotoAndPlay("brotchen");
this worked only to the extent that it would load the orderform Mc but would not move to the appropriate frame label "brotchen" (visible as (link2 text) when you scroll the form down)
The swf is on the following link.
under faxbestellung try using the link brötchenpallette.
http://www.rasanta.de/XDC/nimmer/index.html
The fla is also there under
www.rasanta.de/xdc/nimmer/feb27.fla
Thanks again for your help Sofiebel
Dave
Targeting An Object/frame In A Symbol MovieClip From Another Symbol MovieClip
I have a base flash file within it are 2 symbol>movieClips I did it this way so that i can coltrol my animations more effectively, but I am trying to have one of these access the other, IE one is a menu the other is a main "page"(set up as a frame. so as I click on something in hte menu I want it to load the correct page/frame from the other movieClip
here is a sample of what I've written:
Zachary Bobo
Attach Code
import flash.display.MovieClip;
fountain_button.addEventListener(MouseEvent.ROLL_OVER,fountain_start);
function fountain_start(event:MouseEvent):void {
gotoAndStop fountain
}
Edited: 03/31/2008 at 05:54:53 PM by boa743
Go To A Particular Frame Of A Movieclip
From the main time line, if I make a button, can I make it direct it to go to a specific frame of a specific clip.
Let's say the movieclip in the library is called orange.
Trying To Tell A Movieclip To Go To A Frame
Hello Good People,
I'm trying to tell a movie clip (instance name = "main") to go to a frame when I roll over a button. I have no idea how to do this any help would be greatly appreciated.
Thanks
Use A Movieclip In Another Frame.
Hello everyone,
I'm making a Flash Lite application right now. I need to display some pictures in that application. The URL of those pictures are in a phpMyAdmin database and I read those URL's with a PHP file. I created a square with no fill and converted is as a MovieClip called 'fotoLoader'.
I need to download everything on 1 frame but display the content on different frames. Below this message is the download code I use on the download frame page.
I use this line to load a picture into the movieclip:
fotoLoader.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
Anyway, when I'm edit a new frame and I drag the movieclip from the library and give it the instance name 'fotoLoader' it won't display the photo! Why not?
I tried everything and i'm stuck for about 2 days now but nothing seems to help. I don't use any unload or remove funtions.
I hope someone can help me.
Thanks.
Attach Code
/*Downloaden*/
_focusrect = false;
fscommand2("ResetSoftKeys");
fscommand2 ("SetQuality", "high");
fscommand2 ("FullScreen", true);
// Gegevens ophalen van server
var gegevens = new XML();
gegevens.ignoreWhite = true;
gegevens.load("http://www.eventeffects.nl/Server.php?service_info=1&huiscode=" + huiscode);
gegevens.onLoad = function(success)
{
if(success)
{
adres = gegevens.childNodes[0].childNodes[1].firstChild.nodeValue;
postcode = gegevens.childNodes[0].childNodes[2].firstChild.nodeValue;
plaats = gegevens.childNodes[0].childNodes[3].firstChild.nodeValue;
omschrijving = gegevens.childNodes[0].childNodes[4].firstChild.nodeValue;
koopprijs = gegevens.childNodes[0].childNodes[5].firstChild.nodeValue;
aanvaarding = gegevens.childNodes[0].childNodes[6].firstChild.nodeValue;
ztatus = gegevens.childNodes[0].childNodes[7].firstChild.nodeValue;
soort = gegevens.childNodes[0].childNodes[8].firstChild.nodeValue;
bouwvorm = gegevens.childNodes[0].childNodes[9].firstChild.nodeValue;
bouwjaar = gegevens.childNodes[0].childNodes[10].firstChild.nodeValue;
ligging = gegevens.childNodes[0].childNodes[11].firstChild.nodeValue;
woonoppervlakte = gegevens.childNodes[0].childNodes[12].firstChild.nodeValue;
perceeloppervlakte = gegevens.childNodes[0].childNodes[13].firstChild.nodeValue;
inhoud = gegevens.childNodes[0].childNodes[14].firstChild.nodeValue;
kamers = gegevens.childNodes[0].childNodes[15].firstChild.nodeValue;
verdiepingen = gegevens.childNodes[0].childNodes[16].firstChild.nodeValue;
isolatie = gegevens.childNodes[0].childNodes[17].firstChild.nodeValue;
verwarming = gegevens.childNodes[0].childNodes[18].firstChild.nodeValue;
energielabel = gegevens.childNodes[0].childNodes[19].firstChild.nodeValue;
tuin = gegevens.childNodes[0].childNodes[20].firstChild.nodeValue;
patio_atrium = gegevens.childNodes[0].childNodes[21].firstChild.nodeValue;
schuur_berging = gegevens.childNodes[0].childNodes[22].firstChild.nodeValue;
garage = gegevens.childNodes[0].childNodes[23].firstChild.nodeValue;
eigendomssituatie = gegevens.childNodes[0].childNodes[24].firstChild.nodeValue;
fotoLoader.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
ID_mk = gegevens.childNodes[0].childNodes[26].firstChild.nodeValue;
foto1_huis.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
voltooid_text.text = "Het downloaden is voltooid.";
}
else
{
mislukt_text.text = "Het downloaden is mislukt.";
}
}
//Soft-Key afhandeling
Key.removeListener(myListener);
fscommand2 ("SetSoftKeys", "Volgende", "Startscherm");
var myListener:Object = new Object ();
myListener.onKeyDown = function ()
{
if (Key.getCode () == ExtendedKey.SOFT1)
{
gotoAndStop ("Overzicht");
}
else if (Key.getCode () == ExtendedKey.SOFT2)
{
gotoAndStop ("Startscherm");
}
}
Key.addListener (myListener);
stop();
Tell Frame Movieclip
ok, i am making another website, and i have a transition when you first access the site. The blurred site clears up basically. This transition is a movieclip. But, I want to have all the content pop-up after the transition. So, on my main timeline, I have on frame 1, the movieclip, and frame 2, the stuff i need to come on after the transition. How do i tell the script to go to the frame 2 AFTER the movieclip is done. Ok, so make frame 1 on main timeline, go to frame 2 on main timeline, once the movieclip in frame 1 is over. How do i do this
thanks
Movieclip Appear In Only One Frame.
how do i make it so that the movie clip i want to appear in only one frame does so and not appear in the rest of the frames.
what script do you use?
Movieclip Going To Frame Two Of Movieclip
I am not thinking right...
moviea loads and on a page you load movieclipB... on movieclipb
frame 1, there is a button that should take you to movieclipb frame2.
I use the on release goto play frame 2... well it goes to frame 2
of the main movie... how do you say frame 2 of the movieclip?
Going To A Certain Frame Of One Movieclip From Another Movieclip?
Hello everybody!
I'm new to Flash and I stumbled upon a problem with movieclips and gotoAndStop! :S I've got two layers in frame 1 of scene 1. They are put on stop(); so that the timeline doesn't go further. Layer 1 consists of movieclip-1, which, in turn, has got movieclip-1a inside of it. Layer 2 consists of movieclip-2. Movieclip-2 has got instance name "movieclip".
At the end of the movieclip-1a I've got a button. When I click on this button I want to go to frame 2 of movieclip-2 (which is located in the main scene, of course). In my actionscript before gotoAndStop(2); I click on the target option to find the correct path. I get a result that looks like this:
on (release) {
this._parent._parent.movieclip.gotoAndStop(2);
}
And it doesn't work! Flash doesn't give me any errors, but when i click at the button nothing happens. What could be the problem
Thanks a lot!
Kagri.
How To Use Advance Frame From Within A Movieclip?
Can someone please help me out with this one?
Here's the situation:
I have 2 movieclips, each on its own layer. From within each MC, at different frames in the timeline, I'm trying to advance thru the main timeline but I can' do it!
This is what I've tried using:
_root.nextFrame();
_root.gotoAndStop(n);
nextFrame();
After debugging, I've figured out that having just one MC allows the script to work, however having both MC's prevents the other from working. Does anyone have a clue, cuz I sure don't?
Here's the actionscript for MC1, on Layer 2, Frame 1:
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha>=0) {
this._alpha -= _root.fadeRate;
} else {
_root.gotoAndStop(2);
}
_root.alphaCurrent = this._alpha;
}
-------------------------------
Here's the actionscript for MC2, on Layer 1, Frame 2:
onClipEvent (load) {
// record the current time
startTime = getTimer();
// initiliaze a variable to keep track of how much time has passed
elapsed = 0;
}
onClipEvent (enterFrame) {
// check how much time has passed
elapsed = getTimer()-startTime;
// check to see if the time pass is less than the length of the duration
if (elapsed<_root.duration*1000) {
_root.counter = _root.duration-Math.floor(elapsed/1000);
} else {
_root.gotoAndStop(3);
}
}
TIA,
Tom
[Edited by tomta on 02-23-2002 at 06:53 PM]
How Do I Wait For A Movieclip To Get To A Frame, Then Next?
Hello,
Can someone tell me how I could wait for one movieclip to get to a certain frame before I do something else? I'm trying to play an external swf but not until a frame drops down behind it. It is part of a menu system so there are many different movies.
Thanks
Load MovieClip Fm Frame?
Hi,
How to solve the problem if my external movie attached with few heavy movieclip inside. Can we just load the movieclip first?
for example:: load my external movie clip in the 2nd frame of my main movie, means load it from begin, so that the movie will play smooth.
Why my preloader seen like didn't load my movieclip into it. and begin to play my external.swf, when reach to frame there's a heavy movieclip will slowdown the whole movie. Anyone can help me.
Hope U understand what my problem is.
Amiwai
If And Variables In Movieclip Frame
OK, this is what i would like to proceed. I have a variable with the name "count" in the head movie. In a movieclip on the stage I have a keyframe wich contains an if action. If the number of the variable "count" is 7, the movie has to go to frame 10. I even tried it with _root:count, and even if the action is in the first frame of the head movie it still doesn't work. Can somebody help me? I would be really pleased to be helped with this problem.
(by the way, i thought i knew flash a bit, but when I read all the actions here i feel more like a dummie, hehe) TNX, with kind regard, Laurens
How To Address Frame 2 Of A Movieclip?
When loading my movieclip "mv" I want frame 2 to be addressed. what would be the action script for that, based on my
on (release) {
_root.leer.attachMovie("mv",1,"get");
}
thanks
Aribert
How To Control Frame From One Movieclip To Another
please help!
this is what i want to do: somemc.gotoandstop(4);
however that script is being carried out by a button thats in another movieclip, and nothing happens.. don't know if this is making sense..
like i have:
/ some_mc
scene1
some_other_mc
so how do i secify the path if it needs to go back one, like back to the parent, then out to a different child? please reply if i need to clarify, thanks alot!
Play A Frame In Movieclip
How do I play a frame inside a movie clip? This used to be handled by TellTarget in the previous Flash version. Now in Flash MX I can't figure out how to do this.
I have a movieclip on the stage and when the movieclip loads I want it to play frame 10 of the loaded movieclip rather than frame 1. Does anybody know how to do this in this version? I'm sure its easy but I have looked everywhere. Or send me to a tutorial that does this.
thanks
_current Frame Of Movieclip ?
Hi !
Does some know a possibility to read out the _currentframe of a movieclip ??
In my main timeline i have only a movie clip and a button.
The _currentframe variable is as a effect of this always "1".
I have tried to get the data with ..for example "_root.movieclipinstance._currentframe"
but this does not work.
I hope u understand my problems !
thx for your help
Greetings
Steel
How Can I Print Just One Frame Within A Movieclip?
I'm creating a training piece that has a certificate of completion at the end. The certificate enables the user to enter their name, click a button, then the name is filled in on the certificate and they are prompted to print it. I have a frame labeled #P, but it seems to want to print the entire flash file (over 250 pages) when the print button is clicked. Any ideas on how to fix this would be much appreciated!
Is this a movie clip thing? I've found that if I move the certificate out of the movie clip and onto the main scene it works. Is there any way to print a frame within a movie clip?
Is It Possible To Keep A Movieclip From Loading In On The First Frame?
I've got a flash site with a lot of movie clips embeded into it, and it takes a really long time to initially load the site up. I've tried putting preloaders in front of the movie clips, to kind of "take some of the weight off" of the initial load, but I think I might be missing something, because the preloaders seem to just zip by, and all the loading time is still in the initial load. How can I make it so that those movie clips don't load until they are told to play?
Frame And MovieClip Control
Here's a discription of my situation. Please read and help out in any way. Should be an easy one for you guys. Just trying to make my MC's more accessable in one scene, instead of having a hundred+ frame
"Scene 1" has 15 frames
Each frame contains one 20frame Movie Clip
I would like at the end of each Movie Clip to go back to "Scene 1"
and play the next Frame or next Movie Clip,
I have a "Stop" action on each Frame in Scene 1 to allow the movie clips to play though.
I tried...
gotoAndPlay("scene 1", 2);
On the last frame of the first Movie Clip but it just Plays frame 2 of that Movie Clip. Not the 2nd frame of Scene 1. I need MC_one to play through and then play MC_two, then MC_three and so on and so on.
and then go back to "Frame 1" of "Scene 1". Im sure its simple but im still fairly new.
Any help would be great, Thx
Not Advancing To Next Frame. Cause=Movieclip?
I have a movie clip. It plays and stops, all nicely. Then the whole flash stops. Is it becuase of the moveclip? How do I get the movie clip to stop and stay on the screen, but still advance to the next frame, where I have a different layer doing stuff? Thanks. If this is a confusing question, tell me, and I'll try to rephrase it.
Smaug, the dragon
Path To Frame 2 In MovieClip
I have this code on a button. Why wont it start on frame 2 of the movieclip I have on the frame labelled "movie2".
It starts playing at frame 1 no matter what digit I set it to.
on (keyPress "2") {
_root.gotoAndPlay("movie2", 2);
}
Help With Next Frame After Movieclip Ends
Ok, I looked and found some post that were close but nothing that helped me.
I have a website that I'm building. On the first frame is my preloader, the second frame has an animated external swf. and on the third frame is my home page.
my question is: how do I get it to move on to the 3rd frame after the animated swf has finished?
here's the code I have on the second frame
stop();
container2.loadMovie("SBlogo.swf");
btw, this is in Flash MX.
Random Movieclip Frame
Hello all,
I am trying to write some code that when a movie clip is clicked, it chooses a random frame to go to within the movieclip. My problem is making sure that the same frame cant be selected one after the other (which in results in having to click again). My code is as follows:
PHP Code:
on (press) {
previousnum = randomnumber;
randomnumber = Number(random(3)+2);
trace("Previous - " + previousnum);
trace("Random - " + randomnumber);
if (previousnum == randomnumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(randomnumber);
}}
With this code, the random works, though it is not checking to see if the number has been picked allready.
Any idea's?
How To Control A Movieclip In A Frame
Dear all,
I create a movieclip contains 5 frame. and each frame has an other movieclip,how to control the movieclip go to a special frame?
I try to dispatcherEvent(new Event("abc"));
and catched outside, but I didn't know how to control it? would you tell me a good way?
Stop Movieclip On Frame
I've got a movieclip of a moving leg (voorbeen) and i want it to stop on a frame. So at frame actions, i enter
ActionScript Code:
onClipEvent (enterFrame){
voorbeen.stop();
}
Using Swfobject To Set Movieclip Frame?
I'm trying to use swfobject to pass a variable to my swf file to tell a movieclip to gotoAndStop at a certain frame. I'm not having success as I don't quite no how to get the swf file to recognize the variable.
Here's the code that calls swfobject and sets the variable:value.
Code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {
page_name: "home";
}
var params = {};
var attributes = {};
swfobject.registerObject("myFlashContent", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
Here's the code in the first frame of the root of the swf to declare the variable in flash
ActionScript Code:
var page_name:String;
Here's the code to control the look of the link
ActionScript Code:
onClipEvent(load) {
num=1
this.mcNum.gotoAndStop(num); // sets the text for this link
this.mcName.gotoAndStop(num); // sets the text for this link
if(_root.page_name == "home") {
this.gotoAndStop(4);
}
else {
this.gotoAndStop(1);
}
}
on(rollOver) {
this.gotoAndStop(2);
}
on(rollOut) {
if(_root.page_name == "home") {
this.gotoAndStop(4);
}
else {
this.gotoAndStop(1);
}
}
on(press) {
this.gotoAndStop(3);
}
on(release) {
getURL("home.htm");
}
Jumping From MovieClip To Different Frame
I need help with the family Christmas card!! (and please keep in mind that I am a beginner)
This is what I want to happen...
I want to click a button for a race between my wife, my daughter, and me, to start. The winner will be random.
What I have done so far.
I have made three movie clips. Each of them has the three of us on reindeer in a race and each one of us winning and doing a 5 second celebration.
I have the button to randomly play either of the three movies....
That's where I am stuck. Once the movie is over and the celebration is done, I can't tell it to play go to the next scene/frame.
To the guys who are running this site - you are doing a great job. If you are ever in Jakarta I will take you out for some beers (if you are old enough...hahaha...)
Skipping Every Other Frame In A MovieClip
I am trying to implement a custom animated button. In normal/up state, a MovieClip containing a bitmap animation is played. When you mouse over the button, I want to double the speed of the animation by skipping a frame every frame. And when your mouse leaves the button, I want the speed to go back to normal. I am trying to do it inside the ENTER_FRAME event:
public function OnEnterFrame(event:Event):void
{
/// this is to prevent reentrant calls
if (m_bTest)
{
return;
}
m_bTest = true;
/// This manages the acceleration of the animation when the mouse is over it
if (m_bOver)
{
m_Animation.nextFrame();
m_Animation.play();
}
m_bTest = false;
}
This blocks the animation as soon as I mouse over it instead of doubling the speed... I have also tried m_Animation.gotoAndPlay(m_Animation.currentFrame+1 ) instead of nextFrame but the results are the same.
I added the m_bTest test just to make sure OnEnterFrame does not get called from nextFrame or from gotoAndPlay...
Any suggestion on how to get this to work?
thanks!
franck-
Loadmovie Then Specifying Movieclip And Frame
hey there. got this problem spent two days trying to figure it out and can not get it, so i figured that i would try you guys.
situation: i have two files, index.swf and graphicdesign.swf. i have a scrolling picture menu on the bottom of index.swf that allows users to choose the picture they want to see larger. when they click on the image it should load the correct movie, in this case graphicdesign.swf, and then goto the movieclip (called mc_gd) and then goto the proper frame. in the index.swf file i have this:
on(release){
loadMovieNum("graphicdesign.swf", 0);
}
which takes you to the correct .swf but doesn't load the proper material. i want it to load graphicdesign.swf then the movieclip mc_gd and then start at a frame entitled "hep". is there any way to do this?
i tried variables, for example:
index.swf would have this attached to the button:
on (release) {
x=hep;
loadMovieNum("graphicdesign.swf", 0 ["POST"]);
}
and graphicdesign.swf would have this:
if (x=hep) {
mc_gd.gotoAndPlay("hep");
}
but it doesn't work. opened to suggestions.
thanks in advanced,
nikki
How To See Every Frame Of An Inserted Movieclip?
Suppose I have a flash movie with 100 frames and on frame 20 I insert a movieclip with 10 frames.
When I scrub through my timeline and get to frame 20-30 i only see the first frame of my inserted movieclip.
Is there anyway of enabling so that you see each frame of all movieclips no matter how many you have
inserted inside each other?
Thx for listening :)
Target A Frame In A MovieClip
I have buttons in a movie clip which are placed on the main time line. I also have movieclips placed on single frames (25, 30, 35, etc) on the main time. When a button is released I want two things to happen -
- the playhead to go to a frame on the main time line where the movie clip is placed - which I can do with this code -
on (release) {
this._parent.gotoAndStop("25");
- then I'd like it to target a certain frame inside the movieClip with a var number (var number already generated). This is where I'm stuck. What is the path I use to target the frame inside the movie clip???
Thanks for any help,
Dave
MovieClip Enabled At Certain Frame?
Hey!
I have a nested movie clip that acts like a button (rollover/out).
It goes from left to right (50 frames inside the main mc - 1 frame on the stage) and it's disabled, I have "button.enabled = false;" on that single frame on the stage.
I need it to go all the way to the right and become enabled when it gets to that last frame.
Now, I've tried putting "button.enabled = true;" on that last frame.. doesn't work.
Tried using and calling a function which checks if the button._currentframe == 50;... doesn't work.
What is the problem here?
What am I doing wrong?
Anyone, please?
Which Frame The MovieClip Is Currently Displaying
Howdy!
I have a MovieClip ("PlanRightPopoutMenu_mc") with two framesets labelled ("closed" & "opened"); I've been trying to add some code to a button that will check which frame the MovieClip is currently displaying...
on(release) {
if (_root.Plan_mc.PlanContent.PlanRightPopoutMenu_mc._currentframe == ("closed")) {
_root.Plan_mc.PlanContent.PlanRightPopoutMenu_mc.gotoAndStop("opened");
} else if (_root.Plan_mc.PlanContent.PlanRightPopoutMenu_mc._currentframe == ("opened")) {
_root.root.Plan_mc.PlanContent.PlanRightPopoutMenu_mc.gotoAndStop("closed");
}
}
Doesn't work : (
Can someone point out what I'm doing wrong as something like this would appear to be very simple.....thanks!!
Phill
Accessing Second Frame In Movieclip
I have a movieclip placed on the stage called splashScreen. Inside this movieclip i have a button called easy_btn on the second frame but every time i try and access this button from the main timeline using actionscript i get the message
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I'm not sure why because i think i have referenced it properly. Here's my code -
splashScreen.easy_btn.addEventListener(MouseEvent.CLICK, chooseEasy);
function chooseEasy(evt:MouseEvent):void{
for (var i:int = 0; i < 5; i++)
{
etc.....
Can anyone help?
Movieclip Rollovers Appear In Next Frame
Hi all,
I've got his code on movieclips on my portfolio: http://www.mucreative.com/chris_portfolio.html
It is used in the graphics section for some rollOvers, but you'll notice that each time you move to the next frame, the last mc that you rolled on stays visible. I've tried removing the swapDepths action from the script below but it doesn't make any difference. (the variable "spring" is defined in the first frame - about .2).
ActionScript Code:
onClipEvent (load){ this._xscale = this._yscale = 80; this.targetScale = 60;}onClipEvent (enterFrame) { diff = this.targetScale-this._xscale; growth = diff*_root.spring; this._xscale += growth; this._yscale += growth;}on (rollOver){ this.targetScale = 80; this.swapDepths(4);}on (rollOut, release, dragOut){ this.targetScale = 60;}
Thanks
Play A Frame In A Movieclip
Is there anyway where I can play a frame in a movie clip using the same logic as full flash site? For example,
Code:
on (release) {
_root.contents.loadMovie("locations.swf");
}
Instead of loading locations.swf, how can I load a frame from another scene? Thanks in advance
How To Get The Frame Label Name Of A MovieClip?
Hello.
I have a MovieClip created, and the second Frame has a label ("tree0001" for any who care). I'm wondering how I can retrieve the name of this label by asking which frame in the movieclip is loaded (which would be frame #2) and then getting that Frame Label.
|