ActionScript 3.0 :: Loading An External Swf With Enter Frame?

Feb 28, 2011

I'm trying to load an external SWF file once my Flash timeline reaches frame 29. I've tried a number of approaches at this, but they all end with the SWF file staying there when other pages are clicked. The SWF file (home_page.swf) can also be seen flashing between pages when buttons are clicked.

As you can see from the code below my other pages are called by Mouse Events on buttons. What is the best approach at having home_page.swf load at frame 27 and not conflict with the other buttons based pages? I would like home_page.swf to disappear when another SWF is loaded

I have been tinkering with ENTER_FRAME, just not sure how to set up a variable for it to work with my other pages.

Here is an example of a MouseEvent based page that I am using...

ActionScript Code:
var myLoader:Loader = new Loader();
var ContactPage:URLRequest = new URLRequest("contact_page.swf");
contact_btn.addEventListener(MouseEvent.CLICK, loadContactPage);

[Code]....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Enter Frame In A External Swf

Dec 29, 2006

I have external swfs that loads in a container on a main swf. When I press a button on the main swf, I would like to load a specific frame from an external swf.Here is what I have so far:

[code]...

View 2 Replies

Flash - Loading Info Per Enter Frame

Jul 21, 2011

I want to make a loading bar but at first I need to have loading info per enter frame. This is how I do it but it seem not working.
var mapLoader : Loader = new Loader( );
var mapLoaderInfoLoad:Number;
var mapLoaderInfoTotal:Number;
public function engine() {
[Code] .....

View 3 Replies

Professional :: Loading CSV Works On Enter Frame But On Button Click Text Disappears

Nov 17, 2010

I have a files that is loading and parsing a huge amount of data from a csv file and creating and plotting a graph using the data.  All is well if I have the file loaded on the first frame of the movie.  But if I pass in the URL by entering the file name in a text input field and clicking a button.  The X and Y axis values disappear as do intermittent notes placed above the bar graph.  I still see the x and y axis and it's hash marks and the bar graph (shapes)  but all of the text is gone.

View 3 Replies

ActionScript 3.0 :: Partially Loading An External SWF (frame By Frame)?

Dec 2, 2009

I have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.

View 3 Replies

ActionScript 2.0 :: Enable The Timeline To Automatically Enter A Frame Label On Entering A Certain Frame

Jun 11, 2006

is there an action script code that enables the timeline to automatically enter a frame label on entering a certain frame.

View 1 Replies

Actionscript 3 :: ENTER FRAME Event Still Firing When Frame Changed

Oct 26, 2010

Why won't this ENTER_FRAME event stop firing when I call view_stats_exit before going to view_start? public function view_start [code]

View 1 Replies

Actionscript 3 :: Flash - MC Enter Frame And Advance To Next Frame Of Root

Dec 14, 2011

I have a series of MCs in my root timeline. On each frame in the root, I am simply running 'stop();' to allow the MC within the frame to play through all the way. Once the timeline within the MC reaches the last frame, I have the following AS to go back to the root and play the next frame (each frame is labelled):

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading Next Frame On External SWF

May 14, 2010

I've got a .fla with different buttons. when I klick them different loaders loads ext swfs.

Code:
var myloader4:Loader;
this.revista.addEventListener(MouseEvent.CLICK, movie4Click);
function movie4Click(event:MouseEvent):void {
gotoAndStop("white");
var myrequest:URLRequest=new URLRequest("rec.swf");
myloader4 = new Loader();
myloader4.load(myrequest);
stage.addChild(myloader4);

Underneath the loaders on the label "white" I have to buttons, next and prev. I want to, when I press them, to go to the next frame of the loaded swf. I've got 6 diff ones. (myloader1-myloader6).

View 1 Replies

Loading A Specific Frame In An External SWF

Sep 13, 2009

I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.

View 2 Replies

ActionScript 3.0 :: Loading External SWF At Certain Frame

Aug 11, 2010

I am loading external file swf at frame 30 (as one of my pages). When I click button at example 50 or 61 (another pages) how do I remove the loader. I've got lots of errors.

View 1 Replies

ActionScript 2.0 :: Loading An External SWF Frame # And XY?

Sep 28, 2003

Is it possible to load an external swf and specify a frame within that swf to jump to? and can you jump to an X Y coordinate as well?

View 3 Replies

ActionScript 3.0 :: Go To Specific Frame When Loading External SWF?

Apr 20, 2009

I have a main movie which loads various external SWF's. What I would like to achieve is that when returning to the main movie (using URLRequest & Loader class) that the main movie starts at specific frame.[code]I believe that the way global variables work in AS3 is very different. Is it true that I need to achieve this via an external class ?

View 5 Replies

ActionScript 3.0 :: Loading External Swf At Specific Frame?

Oct 1, 2009

Using AS3 how can you load an external swf file at a specific frame of the newly loaded swf file.Using the AS3 loader class I have no problem loading an external image or swf movie onto the stage.But what I want to do is when the swf is loaded, go to the second frame (labeled "two") of that loaded swf.

For example, My main movie "main.swf" is blank.My external movie "loadMe.swf" has a circle on frame one and a square on frame 2.On the main movie (main.swf) is a button and when you click on it I want the square on frame two of "loadMe.swf" to appear.

View 5 Replies

ActionScript 3.0 :: Loading A External Swf Then Go To A Specific Frame?

Sep 24, 2009

I'm made a dropdown menu and i have resolved the navigation for the main buttons, but i have problems with the menu sub buttons , my question is: After the movie is loaded, how can i make the sub button go to specific frame. This is the script:

[Code]...

View 4 Replies

ActionScript 2.0 :: Loading External Images (JPG) To Each Frame

Apr 12, 2005

My boss bought some pre-made actionscript that traces the mouse position when it's held down to display a certain frame at a certain position. He uses this for 360 product display. Then he asks me to find a way to load the jpg images each frame externally.

I did, one jpg per frame using this:
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
logo_mc.createEmptyMovieClip("container_mc",0);
logo_mc.container_mc.loadMovie("0.jpg");
logo_mc.onPress = function() {
trace("It works");};

However, when you switch from one frame to another, there's a delay in loading the next jpg, even when it's local. So, when you go from one frame to another, there's this strobe light effect. I'm assuming that what one would do to solve this is to load an array and set each jpg visibility to 0 until the frame calls to that movie to set the visablity on a specfic container.

View 3 Replies

ActionScript 3.0 :: Loading External File Swf At Frame 30?

Aug 10, 2010

I am loading external file swf at frame 30(as one of my pages). When I click button at example 50 or 61 (another pages) how do I remove the loader.

View 4 Replies

IDE :: Stop External FLV From Loading On Exit Frame?

Sep 14, 2004

I am using the video component player and it is working fine using this code:

Code:
video.setMedia("elements/flv/episode_1.flv", "FLV");

The problem is, if someone is playing the video and goes to another part of the flash movie, the video keeps playing or loading in the background. The video image doesn't show, but i can hear the audio or see in the browser that it is still loading.

How can i kill the video from loading once the playhead moves from the frame that the video player is on (it is sitting on a single frame)?

View 7 Replies

ActionScript 3.0 :: Call External Swf And Loading On A Frame Label?

Oct 2, 2009

I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label?

View 6 Replies

Professional :: Loading External Swf Then Going To Frame In Root Timeline?

May 10, 2011

when a button is clicked, I want an external swf to load and play, then I want to go back to a particular frame in the original timeline.

View 2 Replies

Flash :: Professional - Loading External Content In Frame

Sep 5, 2011

I have been searching on how to do this but I haven't found anything that I can use yet. I have a flash template that has about 6 different flash files. There is a menu on the right side that allows you to call the other files like this.

[Code]...

View 3 Replies

Actionscript 3.0 :: Loading And Playing External Swf After Going To Frame Label?

Feb 8, 2011

I have a button on the main timeline. When clicking it, I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

var myrequest_history:URLRequest=new URLRequest
("http://floramultimedia.com/musicGarden/main/swfs/slideshow1.swf");
var myloader_history:Loader=new Loader();
myloader_history.load(myrequest_history);

[Code]....

View 1 Replies

ActionScript 3.0 :: Calling External Swf And Loading On A Frame Label?

Oct 2, 2009

I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label? I want to load a file called original.swf and start playing on a frame label called wheels.

View 2 Replies

ActionScript 2.0 :: Loading Specific Frame Of External .swf Into Main Movie?

Aug 3, 2003

how to load frame label "one" of external.swf into main movie.

buton.onPress = function () { loadMovie("external.swf.......??

View 12 Replies

ActionScript 3.0 :: Flash Loading And Playing External Swf After Going To Frame Label?

Feb 7, 2011

I have a button on the main timeline. I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading External Swf And Detecting Current Frame Of A Movieclip In Loaded Swf?

Jul 27, 2009

detect current frame number of a movie clip inside a loaded external swf?

its like this, i have a main swf, lets call it "loader_swf", inside the loader_swf i create a movie clip called "holder_mc" which loads an external swf, lets call it "ex_swf". The ex_swf has a movie clip in frame 2 which is the main animation of ex_swf. Is it possible to get the current frame number of the movie clip holding the animation on frame 2? the only thing i know is to get the current frame of main timeline of ex_swf.

View 1 Replies

Input Text Field On Frame 1 And Enter Text In It Then I Have A Button That Say Sends To Frame 2?

May 12, 2009

If I have an input text field on frame 1 and I enter text in it then I have a button that say sends me to frame 2. On frame 2 I have a button which sends me back to frame 1. Why when I got back to frame 1 is my text not shown?Why does an input text field go blank when leaving the frame? How can I make it so when i enter text on frame 1 and then go to frame 2 and then back to frame 1 the text i entered is still there?

View 7 Replies

Random Numbers On Enter Frame?

Nov 5, 2009

i'm just trying to do something really basic and I'm stumped.all i want to do is create a radom number onEnterFrameits to go at the end of a game i've made and the score will be radom at the end screenso far I have this below but it will not stop it just keeps going and going i've put stop(); in but that does not seem to work. I know its simple but I just can't see it.

this.onEnterFrame = function() {
display = Math.round (Math.random (10)*9)+1;
}

View 1 Replies

ActionScript 3.0 :: 'on Enter Frame Event'

Oct 14, 2009

what I'm trying to do: I have an animation thats 173 frames long - an intro to a html based website. This swf file is embedded in the index.html, and is to load my "main-html", when the animation is complete.To try and do this iv'e tried with the following code in a blank keyframe in my as3 code layer on the last frame of the animation: [code]Upon completed animation it just goes into a frantic loop which seems to be trying to connect to my "main.html", but never have a chance to completely connect before it tires again.I have used similar code for my buttons, inside the page itself, which works just fine.

View 3 Replies

ActionScript 3.0 :: Using On Enter Frame Or Timer?

Jul 13, 2010

So I've about hundred of map tiles and each title has some object which does some stuff. And one of things it should do is to update text (a time after which you need to do something) in text field. How should i do it better - with enter frame event and on each enter frame update it or set up a timer object which on each second would update the text in text field?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved