I'm using an SWF handler to load my pages(MovieClips) into the Main Movie. I'm using Actionscript 2.0. My problem is when I click the button the swf is loaded into the handler but my actionscript is not executing its _x axis move.(graphics should slide in from the right), Here is the code I have applied to the sliding graphic:
I have loaded a jpeg image in flash. Now I need the handler after the loading complete. I have used ActionScript Code: var imageLoader:Loader = new Loader(); var req:URLRequest=new URLRequest(arr[0]); imageLoader.load(req); mc.addChild(imageLoader); imageLoader.addEventListener(Event.COMPLETE, image_func); function image_func(e:Event):void { trace("image laoded complete"); } The above code is not working for loading complete.
3. I use some code to detect an event : onClipEvent(mouseDown) content.onMouse...
Everything works.
4. Then I load a different movie: root.contents.loadMovie("hardware.swf");
5. Now my handler from #3 doesn't work, it can't do content.onMouse...
How can I set something...? variable? so that when the blank movie clip is loaded with different movies I can name it to "content" to still use the original eventhandler so that #3 above still works?
I am writing a flex application that has a MainMovie that loads flex programs (ChildMovie) depending on what the user selects in the MainMovie.
class MainMovie{ private var request:URLRequest = new URLRequest(); public function callPHPfile(param:String, loader:URLLoader,
[code]....
I can see that the callPHPfile function is being executed and received xml data from in httpFox, the problem is that the code in the handlerInChild function is not being executed.
Here's the code public function onKeyPress( keyboardEvent:KeyboardEvent ):void { if (keyboardEvent.keyCode == Keyboard.A) { //DO MY STUFF NAO }}
Error: 1119: Access of the possibly undefined property A through a reference with static type class. When I put Keyboard.RIGHT or Keyboard.SHIFT etc. It works fine. I tried it with keyboard.Event.keyCode == 97 and such and it still didn't work.
I created an array with movie clips now how can i target one movie clip with event handler function . so that when i clicked on one movie clip a message should be displayed
I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player
i am making a site with transitions that loads external .swf files(exactly like the tutorial). after the first part of the transition plays it uses:
[Code]...
So i guess my questions is should i add the load movie code before this code or what. how do i make this apply to loading the actuall external swf files??
I created a Flash movie (header.swf) that did some animation then at the end, loaded another into it using this command: loadMovie ("scrolling3. swf","_root.dropZone");It loads and plays just fine. Then I created another movie (video2.swf), that loads a movie in the same fashion: loadMovie ("tom2.swf","_root.mcTom");By itself, this movie (video2.swf) runs just fine.But now, when I wanted header.swf to load video2.swf it loads it, but the movie clip tom2.swf does not run. It just shows up as a white square in the corner. What am I doing wrong?I have tried many of the examples from threads that I have read hear and cannot get it to work.
I was wondering about the flexability of loading movies into a movie clip. Currently, I am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
i shot from the hip and tried this code, but didnt have any luck:
My _root movie is nothing more than a interface with navigation buttons. When someone clicks a button another swf is loaded into an empty movie clip on _root.
My Problem:I understand loaders and use them all the time, however, I still to this day have never gotten a loader to work with loading an external movie into a currently playing movie. (ie: in my _root movie you press the "Searching" button and searching.swf is loaded into _root.contents --> contents is the empty movie clip)So anyways... where does the loader go? The only results I've ever had is as SOON as the loadMovie method is called the movie hangs until the entire movie clip is loaded. Then the loader runs... thus making it totally useless.
I have a button ( 3 buttons ) and each button is assigned to Load a movie. When you click one of the buttons, the LoadMovie on Level 1 is good. Now here is my problem, how will I unload the current movie before Loading the next one. I want to UNLOAD the CURRENT MOVIE first before loading another MOVIE.
I'm loading movies into a container loader BUT when I load in one of my games it runs real slow. Is it because I should have removed other movies first ie: They seem to be all in there and stacked on top of each other.
import flash.net.URLRequest;import flash.display.Loader;import flash.events.Event; MyButton.addEventListener(MouseEvent.CLICK, this.startLoad);function startLoad(e:MouseEvent){ var mLoader:Loader = new Loader()
I have and SWF file I created from a PDF through Print2Flash. I am trying to bring it into another SWF file which is my navigation shell.
I am trying a simple test to load it and it work fine all the way up to when its time to resize. This is AS3 and this is the code I am working on:
[Code]...
This seems to work as long as I dont try to resize the container. repositioning the containg alone the X and Y works....but when I add the resize of the container to 800 x 800, I get nocompiler errors but the SWF doesnt seem to load either. Can someone let me know why this would be the case? I have found other threads concerning this but still the SWF I am bringing in just will not show when I add the width and height resize.
My scenario is that i have host swf that is of as3 and need to load an as2 movie into it.Now I need to control the as2 movie for keeping the host as3 swf and the as2 swf in sync. To do that I am using a local connection. But the problem i'm facing is that, when as2 loaded via as3 movie, I don't see as2 events being fired. For example, I kept a trace in onEnterFrame in as2 movie. Stand-alone I could see the traces. But when loaded from as3 movie, I could not see any of them.
I have 3 movie clips Loader as3 movie AS2 wrapper movie (Generic for all AS2 movies that will have local connection code.this will get msgs from as3 and internally does what ever we wanted) the actual as2 movie to be loaded into as3
I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.
I have a main movie (called: "team.swf") with several buttons. When I click a button, it loads an external movie (called: "lampe.swf") and plays in my main movie. Now, what I want to do is this: when the movie "lampe.swf" is done with playing, it loads another movie (called:" description_ lampe.swf") onto the main movie. So what i do is ad a script to load the "description_lampe.swf", but it opens in the same window.[code]
I have a problem where I have 2 movies on a page (each in their own frame). I want the second movie to start after the first one has finished, but right now they both start at the same time.Is there a way to check if movie1.swf _framesloaded = _totalframes and if true start the next movie?
I have a main movie (called: "team.swf") with several buttons. When I click a button, it loads an external movie (called: "lampe.swf") and plays in my main movie. Now, what I want to do is this: when the movie "lampe.swf" is done with playing, it loads another movie (called:"description_lampe.swf") onto the main movie. So what i do is ad a script to load the "description_lampe.swf", but it opens in the same window... This is my code
Code: _root.loadMovie("description_lampe.swf", "description"); I guess it has something to do with the "_root"... how can I show to that movie that it has
I've been trying to load a movie clip from a movie clip that has been loaded. I am trying to provide a simple means to change the look / feel of the flash application by placing the graphics and controls into a second swf. Each different screen is represented by a different movie clip that is in the second swf. So I've got app.swf loading ui.swf. I want to load screen1_mc from ui.swf.
The app.swf is loaded by a master swf. There may be multiple copies of the app.swf that can be loaded by the master.swf and each app.swf could be configured differently. For each "unique" app.swf it is stored under a unique folder that is not known to me in advance. Since I don't know the unique folder in advance, I can't use import / export for runtime sharing. Is there any way to load the movie clips from the loaded movie clip? (Basically, I want to treat the ui.swf as an extension to the library.)
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me. So, I have a main menu flash file that functions like the one in this tutorial: http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it.
I have been asked by a local web development company to code some flash banners for use with there banner ad site they are doing. I have been sent a banner to add the actionscript and also the actionscript as well. What I have is a fla doc with a button that covers the whole banner. Then on the banner I have this actionscript:-
I am now using FancyUpload (flash upload) to allow user to upload files in a small project. I use Generic Handler to handler in server when user uploads his file, but I'm getting error: Can't get session in Generic Handler (.ashx) when using Firefox or Chrome etc except IE I read so many solution and finally found out that Flash has some bug that can't send cookie in Firefox or Chrome except IE. Maybe I can check the session in Flash before it's start to send the file to the server or check session in Generic Handler before save it, How to do it?
I have a MovieClip that has a button inside of it with an animation, this button takes me to a determined labeled frame that is on Scene 2...and also I want it to load a movie there but I cant seem to do it right...heres my code in the button:
PHP Code:
on (rollOver) { gotoAndPlay(2); } on (rollOut) {
[Code].....
I placed the empty MovieClip in the Scene 2 and is called "container"...the one im trying to load inside is "intentos.swf"