ActionScript 3.0 :: Unloads The Movieplayer .swf And Forwards The Main .swf To A New Frame Marker?
Jun 8, 2010
I have AS2 code that does the following:
1. The Main .swf loads a new .swf into a higher layer (level5)
2. That new .swf is a holder for a movie controls - which play through the quicktime and...
3. At the end of the movie there is code that Unloads the movieplayer .swf and forwards the Main .swf to a new frame marker.
I now need to change this to AS3.My loading code in the Main .swf for AS3 is this (and it seems to work fine):
Actionscript Code:
var MOVIEloader:Loader = new Loader();MOVIEloader.load(new URLRequest("ANIMATION_01.swf"));MOVIEloader.x = 0;MOVIEloader.y = 0;addChild(MOVIEloader)[code]...........
i found a script that unloads my external swf inside a movieclip when i click a button on my main screen. this script causes the external flash inside my moviclip to close and unload when i click the close button, which is what i want!. the only pain in the butt is it preloads the external flash when you go the flash site and i dont want that. i only want the script to close the external swf. if anyone is curious book.swf is the swf in the movieclip i am trying to close.[code]
I have my main swf embedded into a html page, and what I want is that when a user selects a certain button it unloads my main swf and loads up a different one in the same HTML page.
I am having an issue loading and unloading external SWF's. Here is what I'm trying to do:
Frame One Loads external SWF Code: contentTutorial.loadMovie ("tutorial.swf",1);
Frame Two: Shows data Frame Three: Unloads frame one SWF and loads a new SWF. Code: contentTutorial.unloadMovie("tutorial.swf"); contentProblem3.loadMovie("problem3.swf",0);
This works but the problem I'm having is that when problem3.swf loads it will not play. You see the first frame but no animation.
If I switched SWF files and loaded problem3.swf in frame one and tutorial.swf in frame 3 the animation plays fine for problem3 but hangs for tutorial.
I've tried multiple methods (createEmptyMovieClip, loadMovieNum) of loading/unloading these with all the same outcome.
I had the idea of a circular menu, and when the user clicks on a menu item, that one rotates to the top, and becomes highlighted (hopefully with easing). I've searched around here for reversing timelines, etc. but can only find ones that go to the next set frame.How do I get it to skip past the menu items in between? For example if #1 is at the top and I click on #4, I want it to skip past #2 and #3.
I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.
For example, how would I set condition C's icon to the standard marker:
public function iconSetter():void { if (condition A blah blah){myIcon=star; myPointsBuilder(); return;} if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}
[Code].....
I don't know how to revert to the default marker where I wrote "STANDARD MARKER".
I've used this code to go from one frame to the next
function backframe(event:MouseEvent):void { this.prevFrame()
[code]....
Now it works fine until I get to the last frame. Once I get to the last frame then click to go back, it won't let me go forward until I go all the way back to frame 1.
i ask for patience I will summarize as briefly as possible Imagine an animated presentation, interactive and extensive, with multiple ways or different possibilities The method I'm using is to divide in several different SWFs, otherwise it would be ridiculously heavy.But there lies the problem: When I want to load another SWF, it ends up overwriting the original and will become increasingly slow and overloaded, because it will consume too much memory and frames per second decreasing each new SWF loaded ..I wonder if there is any method to unload the SWF itself by button and go to the next OuvirLer foneticamente
I have a set of buttons on a map that when clicked load in a zoomed version jpg file into an empty movie clip. When the loaded jpg / mc is clicked, I want the loaded movie to fade out as it unloads. The fade in is working fine, but I've tried several examples I've found online for the fade out and none of worked yet.
How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
how to execute the code below from a javascript funtion when the body unloads this is a flash function but I would like it executed from a js function.
i have a problem using AS to send some variables to a PHP form.when i click on my button the entire movie unloads from the stage. let's take a look to the AS of the button:[code]
I have place a movieclip in several locations (scenes). When I click from one place to another it seems to be catching up to a location in time. The location of the site is: [URL]..
how do i get the backwards and forward buttons to work in firefox? I am using the anchors property but still doesnt work in firefox.IE is no problem though. I am a newbie,Been doing Flash for only 2 or 3 months. Trying to build a flash site for my business cause I can't stand HTML
I have a image gallery where you can click a foward button or a backwards one. I have each image on every 15th frame. So when the person clicks the next button it plays from 1-15 where it stops if they click back it will go to 15-1 etc. I got it working with the 2 images so I can go between them but when I add a third it won't do anything. I execpt it's something to do with removing the event listener, but I'm not sure.
Code: stop(); var bRewind:Boolean = false; this.back_mc.addEventListener(MouseEvent.CLICK, onMouseOver); this.forward_mc.addEventListener(MouseEvent.CLICK, onMouseOut); function fireEvent(event:Event):void{ [Code] .....
I am looking to control a movie clip with a backwards and forwards button. I need the clip to stop at every 5 second increment both backwards and forwards. my movie clip is 25 seconds long.
I have found script for playing a movie in reverse and have tried to change this so it will stop in the above points instead of playing to the beginning or end, but my knowledge in as3 is very limited.
Do i need to put some script that plays with percentage?
I have multiple text input fields (up to 40, depending on visibility)that tab backwards instead of forwards. Is there a simple solution to this mis-direction?
Is it possible to put some sort of a marker along the timeline on a certain frame? I want to select all the frames of all my layers within a certain range so I can paste them in a new document,
I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");