I've been searching the forum for an answer, but I'm either not searching for the appropiate keywords, or having really really bad luck... so feel free to point me to any threads that might contain the solution to this.
Here's what I'm trying to do:
I have a site which is fully made in flash, and has one big index.swf file. Each section loads dinamically into it with a preloader (this works OK).
I didn't make a preloader for the main index.swf at first because it was really small, but as I've added more and more features to the site, the index.swf grew bigger and bigger, until I felt I need a prealoader for it as well.
However, I NEED the index.swf to load into the ROOT of the main timeline, as there are some functions in the site that call movieclips with absolute paths ("_root....") rather than relative ones ("_parent._parent...."), and I can't change that for various reasons, so I need to keep that hierarchy intact.
But there's an obvious problem if I try to do this via a MovieClipLoader:
If I tell the MovieClipLoader object to load the clip into "_root" like this[code]...
got a problem.. if i load an image into _root.pic_mc movieclip and its loaded i try to load anotherone in the same mc.. now the pic_mc turns white and the picture disappears.. so i tried to make a duplicateMovieClip on the pic_mc but this also didn't work. any other solution on this problem?
Im using a for in loop to grab the names of my mc on the _root timeline and push() them into an array named bricks. i then use a prototype function fade them in one at a time. The problem is that it only works to a piont and then stops.
I thought posible causes could be the time it takes to build the array as i do have 713 mc on my timeline.
this is my code i tried attaching the fla but its to big
fadespeed = 9; function init(){ brick = new Array();
Have a question about the _root.stop(). I have a pause and play feature in a flash player so the user can stop the presentation along with all the voiceover that streams with the presentation. I used the _root.stop() in the flash player hoping it will stop the main timeline, but also other embedded movieclip timelines. It stopped the main timeline, but not the other ones. How do I stop both timelines at the same time? the _root.stop() was not working for me.
I'm using this complex rollover button on my site i found here --> [URL] What i'm looking to do is have this effect trigered when a second button is rolled over as well. Is there a way to target this movie clip effect from the _root timeline? I was able to achieve this halfway by using labels but I am not able to reverse the animation on roll out with this method.
I have a flash Project, and I have external SWF's that are loading and unloading into my project. However I need the external SWF's to be under certain layers. What I would love to be able to do is load my external SWF's into a MovieClip that is already residing on the layer underneath those items. However I have no idea how to do this.
I have the files here. Pretty straight forward, the main SWF("mod_loading_2.swf"), loads and unloads the other two SWF's("m-1_intro.swf", and "m-2_WIB.swf"). There is a layer named loader layer, and I would like to load the external SWF's into a movieClip on that layer. The load and upload code are in the main SWF
How do I load these SWF's into a MovieClip on the timeline?
I got one movieclip with several buttons and another movieclip where i use: this.loadMovie("news1.swf"); What Id like to do is, if its possible, to do, on the main timeline, assign, to the buttons what news.swf to load into the other movieclip where i load it. So i can assign one button to load news1.swf and another load news2.swf.
In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.
var result_lv:LoadVars = new LoadVars(); var send_lv:LoadVars = new LoadVars(); var broj:Number=0; var logo = new Array();
When I try to use loadMovie, it will not load to an instance (unless it's something that's in the same directory). I figured this was some sort of security thing, but I was able to load the movie into _root just fine.
I want to load my movie into _root.I have preload.swf which all it is is the preloader and I want to load home_page.swf. If I loadclip into a movieClip its fine, but not if I do _root...or alternatively, 'this'The reason I want to do _root, is the site I am working on, the previous developer on it used _root everywhere and I dont want to have to go and change everything that has _root in it.
I just need to know where to reference _root to load a swf into an empty mc using an asfunction. Canadian out with this previous question, and the trace seems to be working, however my clips aren't loading. There needs to be a reference to root somewhere right? Everywhere I try to add it yields the same lack of result. Here's Canadian's code:
if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();
If I have a movieclip on the main timeline, is there a way to put this movieclip inside another movieclip on stage (ofcourse during runtime) ? I know that one of the methods of doing this is using bitmapdata class to capture an image of the movieclip (draw method), then attaching the object it to another movieclip that can be anywhere, but this will make the movieclip lose it's interactivity behaviour, and vector quality.
I have two movie clips on stage, each with the same code, I have another movie clip that comes along and interacts with the two of them and changes properties to its speed and such. The problem is, it only seems to work one at a time, for instance I can't have both of the movie clips changing its speed, it works with one and then ignores the others code. *EDIT* I just ran a trace on the two mcs, I can confirm both of them know when the main one hits it, but because I'm trying to change a _root.mc.speed property in each one, it only accepts one of them and ignores the other for some reason :S If I use different properties in each it allows that.
I`m trying to set-up a script that changes the color of a movie clip, depending on the current url of the page... My code is:
Code: var link = "http://localhost/v-v/indexSRP.php?kategorija="; var link2 = "http://localhost/v-v/index.php?kategorija="; if (_root._url.indexOf(link + "3") == 0) {
I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?
I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.
I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.
Why does a child movieclip only show the first frame within the IDE, regardless of where you are in the parent timeline?If you throw a movieclip with 25 frames onto the main timeline, which also has 25 frame, you don't see the nested movieclip's frame-progress while you scroll through the main timeline.Is there a setting somewhere in preferences or somewhere that will enable you to see a nested movieclip's frame position from the main timeline? Like you do with After Effects composites?
Im new in actionsript and I have a problem with _root. I have a swf. with two MC en the main stage: Mc_menu and Mc_pages. The Mc_menu has several buttons with the code "_root.pages=2" which moves the different pages that are in the Mc_pages. If I publish the fla. it works perfectly. Now, when I wanted to load this swf into another with "loadmovie" with an empty MC the pages stop working... I guess is because of the rutes, but i don�t know how to refer them correctly. What I have right now is: in the main stage an empty MC and a button with the code:
I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."
I have a button inside a movieclip, to which I would like to apply a rollover function. When rolled over, this button (inside MOVIECLIP 1) would make (MOVIECLIP 2) jump to second frame. I'm using Flash 8.This is turning onto a real headache for me, since i've searched every single forum and thread concerning this matter, and nothing seems to work.
I have a main timeline with a button. I need the action for this button to gotoAndStop to a frame within a movieclip, within another movieclip. I have tried on the main timeline setting the actions of the button to:
on (release){ clip1.clip2.gotoAndStop("frame1"); }
and tried:
on (release){ _root.clip1.clip2.gotoAndStop("frame1"); }
lastly:
on (release){ _parent.clip1.clip2.gotoAndStop("frame1"); }
If I double-click on the movie clip (clip1) and then double-click on the movie clip (clip2), I have several frames labeled "frame1", "frame2", etc.The button doesn't work.