how to jump from one frame a movie clip, rot menu, to a frame of another, main, through a button in rot menu, rot menu is a movie clip in symbol 1 which is in another (cant remeber) in main. from frame 1 of main i want the button to be pressed and it takes you frame 2 of main.
i have my loaded .swf buttons loading 'movie1' and 'movie2'. both 'movie1' and 'movie2' have a tween in frames 1-5, which is a box that slides open and is stopped. in frames 6-10 the box slides backwards in the opposite and dissapears. i would like it if 'movie1' is open and the user clicks the button for 'movie2', 'movie1' plays 6-10 and then loades 'movie2' and vice versa. i just don't a script for this function.
i have my loaded .swf buttons loading 'movie1' and 'movie2'. both 'movie1' and 'movie2' have a tween in frames 1-5, which is a box that slides open and is stopped. in frames 6-10 the box slides backwards in the opposite and dissapears.i would like it if 'movie1' is open and the user clicks the button for 'movie2', 'movie1' plays 6-10 and then loades 'movie2' and vice versa. i just don't a script for this function..
I am creating a Flex application with a component that displays various dynamically loaded SWFs, one at a time (kind of like a kiosk). These loaded SWFs are created in Flash IDE, not Flex. They will not be created by us (we will provide a .fla template but that's it), so I am loading them into a separate SecurityDomain.
My Questions:
I want the application to be able to call methods inside the loaded SWF. To do this, would I just call Security.allowDomain("domain original app was loaded from") in the startup process for the loaded SWF? I want the loaded SWF to be able to throw events that are caught by the application. Can I accomplish this through the SWFLoader.swfBridge property? I am defining an interface for the methods inside the loaded SWF. But, I don't want to leave the implementation up to the customer. Instead, I want to provide another SWF that contains the interface implementation and have it be a constraint that the customer includes it in their SWF. I am not very familiar with the Flash authoring environment, how would it work so that the interface implementation SWF exposes its methods in such a way to be accessible to Flex? Is there a way to sign the SWF so that the Flex application knows that it is dealing with the original, not a spoof? How would the Flex code pass in arguments, since it is across SecurityDomain boundary -- is there marshalling involved (say if I want to pass in a Dictionary or some kind of object graph)? The Flex application may load hundreds of these smaller other SWFs during its lifetime. How do I make sure it doesn't keep using up more memory? I plan on using SWFLoader.unloadAndStop() and clearing all references in the Flex object that refers to it. Is this enough? Will the AppDomain for the loaded SWF be torn down automatically so that the class definitions are no longer in memory?
I m trying to make sense of how to load a swf into a parent MovieClip and allow them to communicate.I ve attached two zip files � one which works fine and the other doesn�t. Unfortunately (for me), the one which doesn�t work is closer to my current project.I need to load movieclips into the parent movieclip. The parent movieclip has controls which rely on values parsed from the child movieclip.In the parent movieclips I wait until the loading is complete and so the values should be passed. However, the values aren�t passed unless I use a button (or timer), to pass the values (see the working exampes).The code which doesn�t work is:
Parent movieclip:
ActionScript Code: stop(); var myLoader:Loader = new Loader();[code].............
I'm loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.
//Dynamically assign external movies to load from //the dynamic buttons for (j=1; j<holderArray.length; j++) {
My main File loads an external swf in a movieClip.Once loaded, it needs to know what language is set by the main movie (a variable on the root of the main movie)What is the location of the main movie, seen from the movie clip I just loaded?[code]
I have loaded an external image into a movieclip (say mcA) using MovieClipLoader.
In AS3, we can use addChild to add a movieclip into another movieclip or sprite, but in AS2, we have to use attachMovie to attach the movieclip from the Library. Since this is an external file on server, I cannot use attachMovie.
I need to add the content of mcA, i.e. the image, to another movieclip (say mcB) so that both mcA and mcB contains the same image.
How can I do this in AS2 without loading again the image from the server?
I am using the following code to goto a frame when two movie clips come into contact. I will post the .fla in a second. But, I have a trashcan (object), and a skateboard (container), which i want to decrease the score and show the frames in the framename sketchy.
My problem is that I have a container, which gets different movieclips loaded into it by linkage. I want to use the container as the skateboard, alowing whatever is currently in the container to be what is coming into contact with the trashcan.
I've not touched AS2 since AS3 appeared, but circumstances brought me back to using AS2,Is there way to invoke the functions/methods in a loaded movieclip? I know you can do that in AS3 by invoking the Loader object's content's function, but I haven't been able to do that successfully in AS2. I'm currently using the AS2 MovieClipLoader object, like so (snippet):[code]as set up, I intended the target movieclip's function 'invokeInternal Function' to run, but it doesn't seem to be doing it although the SWF itself loads successfully.
I'm trying to simply access anything inside this loaded SWF and all I get is 'null'.
I have code in the parent SWF that needs to tell the child SWF movieclip what to do but nothing works. This was a piee of cake in AS2 and I can't seem to get anything to crossover in AS3.
Here's my code:
import com.greensock.TweenMax; import flash.display.MovieClip; var myLoader:Loader = new Loader();
[Code]......
panel2 traces null and all the clips loaded within pull up undefined property errors.
I'm loading content swfs into an Air App. The swfs are loaded into the non-app sandbox, and any communication is via the parent/child sandbox bridge. The swfs have timeline code. This code executes fine. The swfs also have mcs on the timeline - any code inside these mcs, or any child mcs of these mcs, is ignored. Simple traces do not execute below the top level timeline of the loaded swfs. I have tried naming the child mcs. I have tried exporting them in the library. Neither makes any difference. When I run the swf standalone, I see my diagnostic traces. When I load the swf, I only see the traces for the top level timeline.
I have code that loads an external .swf files into my main.swf. Each of the external .swf files has a close out button. When that button is clicked, it calls a function that supplies close out animations for the movie clips for any .swf that is loaded. All code is in main.swf. There is no code in the external.swf(s)
Each external .swf has it's own set of movie clips. The "closeCurrentSWF" function has animations for movie clips that are within .swf files that may not even be loaded, yet I get NO errors when this function is called...which is great!! I'm so stoked this works, why flash isn't throwing me an error...
Code: //Load External SWF// var _swfContainer:Loader = new Loader() _swfContainer.contentLoaderInfo.addEventListener(Event.COMPLETE, finishedLoading); stage.addChild(_swfContainer); var _externalMovie:MovieClip; function loadSWF(nameOfSWF:String){ [Code] .....
I am a newbie to AS 2.0..I only have basic actionscript 2.0 knowledge."I have one main .swf file and several external .swfs which I am loading through this code.[code]Now my problem is that I would like to access one "close_mc movieclip" in ourGroup.swf ...so that clicking that clip, I can exit the externally loaded .swf from the main .swf file."
How does one control a loaded movieclip? After a series of SWFs are loaded they play automatically. I want them to play from the beginning each time they're displayed.
I want to play various sound objects a certain amount of times when the playhead reaches a certain frame and then stop playing (even if the playhead reaches the same frame again).
I hope someone will be kind enough to help me solve this problems I'm having controlling each sound.
Setup Details I'm using the load movie method to load another SWF (welcome.swf) file into a movieclip in the _root SWF timeline (main.swf), and using separate movieclips in the _root SWF as holders for each sound object i declare like so:
welcome.swf (its FLA file holds all the sound files in the library with linkage id's as per the following actionscript located as a frame action in frame 1:
how to dectect if all the desired movieclips have been loaded onto the stage.
For example I have externally loaded 6 movieclips onto the stage as a result of a click action. What I want to do is when all 6 movieclips have been loaded onto the stage I want to the then load a movieclip that says, "Congratulations, you have completed the course." But I don't know how to detect if all 6 movieclips have been loaded or not.
Let's say I have a movieclip in my SWF's library, and its linkage is set to "MyClip" and it's set to export.
I can add it to the stage by saying "addChild (new MyClip as MovieClip)"
Now let's say I load a SWF as a loader object, and that loaded SWF has a similarly linked movieclip. How do I reference the linked movieclip in the loaded SWF?
I am having a newbie problem here. I am loading an external SWF with embedded movieclips (all clips are set to export in the original file). However, I can't figure out how to access those embedded clips in my new, parent, flash file. Here is my code:
Code: var container:MovieClip=new MovieClip() var house_Loader:Loader = new Loader();
I'm working with a script that loads from an XML some jpgs, these ones once loaded move to their positions.
[Code]....
the problem is that i would like put all these movies well aligned in rows and columns, i've seen it's possible to do this with a nested for.. loop, something like this
Situation: I have a project I'm working on where I have buttons which make click sounds on their own, and also take you to other scenes where a sound will immediately play. There are also three movieclips involved, total my base movieclip and two independent ones that load on top of that. Problem: I want to include a Mute button so that you can turn off all sounds, but can't figure out how to do that..As I understand it, stopAllSounds won't work for me, because as soon as someone hits another button, a new sound will play.
I'm still new to flash and I'm working on image transition. I have 3 movie clips on the main stage, frame 1. The 3 clips are called 'mc1', 'mc2' and 'mc3'. I've managed to load images in to the 3 movie clips by calling a php script (Select.php) to pass the image paths back to my flash movie in an array. This is all the actionscript I have on frame 1:
Code: myVars = new LoadVars() // Load the vars from the external Php file myVars.load("Select.php") myVars.onLoad = function(success) { // Split the variables [Code] .....
This seems to work ok. Now I want to fade the images in rather than have them just pop up. I think I'll need to put in some kind of pause to wait until the images are loaded before I try any fading but I don't know how to do that. What I need to do to fade my images in once they have loaded rather than just have them pop up?
I am loading an swf created in flash professional cs5 via the loader class into a flex 4.1 application. The flash file contains multiple movieclips that are exported for actionscript and those movieclips exist in many instances throughout the movie.
Iterating through everything, comparing class types seems to be the most easy but also the most redundant way to solve this. Is there any way of using the class name as a kind of global selector to access the clips?
I could also make the sub-clips in the flash listen for an event on which they perform an action, but I am not really sure what might be best.
I have a compiled swf File (lets call it "cat.swf") that is loaded via the Loader Class of my Main movie. The cat appears without problems. But inside cat.swf there are two movieclips defined (lets call em "head" and "body"), and I have ye to find a way to get control of these from my Main movie.
When I check for numChildren of the loader Object it only gives me back one (an unnamed instance), if I cast that as a Movieclip to check for deeper children it continues all the way down like a tower of turtles.
To just add the articles will only make the page load slower so I used a scrollbar with a textfield and added text and pics to the article to scroll it. This works fine but I need a way where the scroll can call different textfields or movieclips. For instance, the main scroll opens with a textfield that scrolls articles 15 thru 10. I need on the bottom of the page buttons that link articles 9 thru 5 and so on. So when you click a button the textfield or movieclip changes and displays what is in that textfield or mc. I have looked for a tutorial, a video or anything on this and besides coming up with Flash 5 similar mentions but nothing to this point
I have a script that loads images and text from an XML file into movieclips.The following code is what creates the movieclips that contain the elements:
Code: var thumb_mc:MovieClip = _root.mc_conteudo.createEmptyMovieClip("thumb"+(1+i), _root.mc_conteudo.getNextHighestDepth()); var img_mc:MovieClip = thumb_mc.createEmptyMovieClip("img", 0);
I can't seem to find a way to target the thumb_mc or the img_mc so they have rollover effects and actions (they are created for each set in the xml file, so there are multiple mc's)mc_conteudo is the content mc that scrolls.The swf is here: http:[url].....