ActionScript 3.0 :: Load In External SWFs Slowing Project Down

Mar 13, 2011

I have created a small website using Flash CS4/AS3. Each of the pages is a seperate swf which i am loading into a container swf file when a button is clicked.

However when i test the site, it gets progressively slower every time another page is loaded in.

All my buttons are located in the external swf files and call the 'page load functions' in my container swf

Here is the code from my container swf where all the swfs are loaded into[code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Preload Project, But Wait For Said Project To Load External Assets?

Jun 15, 2009

I am working on this one project that has a couple of movieclips (already placed on stage) which have a custom class set to export via the Library. Each of those custom classes loads an external SWF using URLRequest().

Is it possible (or, what is the best way) to preload the whole project first, including the external SWFs?

View 7 Replies

ActionScript 2.0 :: Using External SWFs To Navigate Through Project?

Mar 10, 2005

I've been working on this project, and I've been using external swf's to navigate thru my project. I started working on it, and everything was good, but I noticed that when I was navigating around the project, it was starting to get really slow with the animations.

The way that I had it set up was this:
I had a file called "home.swf" that held a movie clip called "container", and then i would load everything thru that.
Then I put that same "container" movie clip on my other swf's, and scripted it out so that other swf's could load thru the "container" MC on those pages.

That is what I was doing, and I was thinking that was good, but it's making my animations run slow. I was scripting everything out like this for the navigation on the buttons:
on (press) {
container.unloadMovie("promotions.swf");
} on (release) {
container.loadMovie("apparel.swf");
}

My question is do I need to not have the "contianer" MC on each one of my swf pages? Here what I have done so far: [URL]. Not all of the pages work just yet (I'm still working on it), but if you click thru the pages "print", "apparel", "promotions", all the ones that are on the top of the white center area, you can see what I'm talking about.

View 4 Replies

ActionScript 3.0 :: External Swfs Load - Remove The Swfs And Sound After A New Button Is Clicked

Nov 13, 2010

I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.

[Code]...

View 5 Replies

ActionScript 3.0 :: Project Slowing Down After A Minute Or Two?

Mar 2, 2009

I'm making a tile based platformer game in AS3. I started it in CS3, but just installed CS4. It works great for a minute, but then it starts slowly losing frame rate..

View 1 Replies

Professional :: SWFs In Tilelist Slowing Down?

Jul 13, 2010

I have a tileList that I'm loading swfs into. One of my swfs has a particle system in it and every time it is loaded into the tilelist the particle system slows down. Every time the swfs are loaded I use tileList.removeAll() to clear it and then tileList.addItem() to repopulate the tileList. My guess is that this isn't actually unloading the swfs completely so they are building up in memory. What do I have to do to unload the swfs completely to prevent them from slowing down?

View 1 Replies

Flash8 :: 'clouds' Motion Tween Is Slowing Down Entire Project

Jul 5, 2010

I'm making a very simple Flash game which is just somewhat of a training project for myself. All it involves is clicking a button which takes away a random bit of health from an opponent, and I'm quite proud of myself for figuring out how to subtract the random number hit away from his total health and show the resulting number above his head. (lol i fail)But my problem has nothing to do with actionscript, it's my cloud layer which I've motion tweened across 150 frames inside the "cloud" movieclip. All the clouds do is slowly move across the stage (I created the cloud movieclip to where it doesn't jump back to it's original form when the 150 frames are done, so it looks like one continuous cloud scene). Whenever I test the project, it goes at about 5 fps, which is very slow (supposed to be at 30 fps).I know it's the clouds that caused the laggyness because I temporarily removed them and it goes just like normal.

View 2 Replies

ActionScript 3.0 :: External Swfs Load In Different Places On 2nd Load

Oct 19, 2009

I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.

This is the bare bones of it:

Code:

sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);

[Code].....

View 1 Replies

ActionScript 3.0 :: Load External Swfs Which Load Videos

Apr 11, 2009

Okay so I am trying to load external swfs which load videos dynamically.

I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error

[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]

Is there some specific method to casting within external swfs?

My code for loading the videos is this:

[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);

[Code].....

View 1 Replies

ActionScript 1/2 :: Load External SWFs Through XML

Feb 15, 2010

I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..

View 7 Replies

ActionScript 3.0 :: Cannot Get External .swfs To Load

Apr 29, 2010

Im trying to load an external .swf, from one of those lazy-do-it-for-you photo gallery creators. Well, it just simply refuses to work
 
Ive tried using AS3 code straight off adobes site and i get this:

[CODE]
var request:URLRequest = new URLRequest("4melogo.jpg");
var loader:Loader = new Loader()
loader.load(request);

[Code]....

View 12 Replies

ActionScript 2.0 :: Using XML To Load External SWFs?

Jul 6, 2010

I've got this down using ActionScript 3, but I am in over my head trying to revert back to ActionScript 2.

I have a main swf that acts as a shell and calls up external swfs via XML upon a button click.

I've read a number of tutorials over the past few hours, and have learned the basics of how to trace the XML information; however, I'm struggling getting the content to appear on stage.

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha...

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code]...

View 1 Replies

Actionscript 3.0 :: External SWFs Won't Load

Jul 16, 2009

I'm loading external swfs into my main swf and they should just be playing automatically. When I test in Flash, the system works. Upon loading the swf into an HTML page, the system seems to shut down. It seems liike the exteranl swfs aren't even loading. This is what I've got so far.

var clips:Array = ["amerishelf2.swf", "bedHardware.swf"];
var index:int = 0;
var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

[code]....

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load All The Way

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha... Does anyone have any idea what may be the prob lem??

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Load External SWFs (previous, Next)?

Mar 4, 2010

I am delving into AS3 and need a little bit of help. I am building an application that allows users to view content by clicking "next" and "previous" with a visual cue telling the user what slide they have loaded (slide 1 of 15, slide 2 of 15 etc etc) but I am really struggling with it. I want to load each slide as an external SWF because they are heavy.

I found this code online which loads swfs when you hit a "next button" but I have no idea how to get it to work to load swfs when you click a "previous button" and how to add the slide reference:

[Code]...

View 1 Replies

ActionScript 3.0 :: Load Multiple External Swfs At Once/

Jul 26, 2011

I want to load the first swf, if the load is complete, load the second swf, etc. This seems logical but I get a compile error: Scene 1, Layer 'scripts', Frame 1, Line 24 1120: Access of undefined property swfLoader3.[code]...

View 3 Replies

ActionScript 3.0 :: XML Menu To Load External SWFs?

Sep 25, 2009

currently, I have a XML menu. I followed the tutorial from here: [URL]. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.My question is how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?

Here are the codes I have so far:

Index.swf
ActionScript Code:
import flash.display.*;
import flash.net.URLRequest;

[code]....

View 3 Replies

ActionScript 2.0 :: Load And Unload External Swfs?

Oct 2, 2007

I have a small problem,(among many others...) i am loading an external swf using:

this.onRelease = function(){
loadMovieNum ("contentLondon.swf",50)
}

So the ext SWF loads on top of my main SWF, but i have other buttons that will load other ext SWF's. What i would like to do is when an ext SWF is loaded and the user choses to click another link from the main SWF, i would like to have the already loaded one "unload" so that the new one can load in place of it

View 3 Replies

ActionScript 2.0 :: Load Order In External Swfs

Nov 13, 2008

I was wondering if there was a way to specify the order in which I load in external swfs. I have my main swf which loads in music, navigation and content, they all load at the same time, say i wanted to load in the music swf after the content has finished loading, how would i do that?

View 1 Replies

ActionScript 3.0 :: Have The Menu Load Different External SWFs?

Sep 28, 2009

currently, I have a XML menu. I followed the tutorial from here: http://tutorials.flashmymind.com/200...-menu-via-xml/. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.

how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?Here are the codes I have so far:

Index.swf

Code:
import flash.display.*;
import flash.net.URLRequest;
var menuldr:Loader = new Loader();

[code]....

View 8 Replies

ActionScript 2.0 :: Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow?

Sep 2, 2006

[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.

View 1 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 3.0 :: Use One Button To Load And Unload External Swfs?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 1 Replies

ActionScript 3.0 :: Using One Button To Load And Unload External Swfs ?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 5 Replies

ActionScript 3.0 :: Load External SWFs From XML And Place Into PageHolders

Aug 12, 2009

I have a problem loading in external swf's. I have one MovieClip in main.swf that is called pageHolders, and I assigned a class: Main.as. My problem is that I am trying to load external swf's from XML and place them into pageHolders, but I cant understand how.

ActionScript Code:
package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import pageHolders;
[Code] .....

View 4 Replies

ActionScript 2.0 :: Long Gaps Before External Swfs Load?

Sep 4, 2009

I need a bit of help with an issue I am experiencing. I am trying to load external swfs on menu link clicks, inside my main movie. However, the external swfs are taking 8-10 secs gap in loading inside main swf.

The external swfs fetch data from a mysql database. My question is - Should I load the external swfs at the time of loading the main menu to override this problem? The concern here is that it might take longer for the main movie to load then.

View 6 Replies

ActionScript 3.0 :: Load / Unload External SWFs With Transitions?

Nov 3, 2009

I'm trying to load & unload external SWFs with transitions in Actionscript 3.I was able to do this in AS2 on the timeline but can't figure it out in AS3. Or if I can do it with straight Actionscript.[url]...

View 0 Replies

ActionScript 2.0 :: Load Three External SWFs And Select One To Be Visible

Feb 16, 2010

This actionscript loads three external SWF's. It also creates three buttons to select which SWF is visible. How can I: The actionscript sets the alpha to - for the swf's that are not active, so they are invisible. Instead of making them invisible..how can I remove them completely without having to load them again when their designated button is selected? The problem is that they are stacking ontop of each other, even though not visibly, and greatly slowing down the movie that is visible.

Code:
var j = 0;
myarray = [];
cliparray = [];
createEmptyMovieClip("paper", -1);
_global.preloaderf = function(klip) {
[Code] .....

View 0 Replies

ActionScript 2.0 :: Use LoadMovie To Load External SWFs Into 200x200 MCs?

Mar 2, 2007

I've been trying to use loadMovie to load external SWFs into 200x200 MCs arranged on the stage. What I get is a strange placement of the loaded movies, and, the loaded movies don't appear as they should. The loaded movies are really all the same: they display 4 squares that change randomly every 3 seconds.

1) The loaded movies seem to use their center point as the registration point instead of the top left corner. Why? How can this be changed?

2) The loaded SWFs ("1.swf", "2.swf", "3.swf") get transformed from 200x200 pixels to 100x100 pixels. Why?

View 3 Replies







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