ActionScript 2.0 :: Huge Lagging - Loading An External .swf File Onto Stage
Jul 24, 2006
I am loading an external .swf file onto my stage. This is the script I am using:
[Code]...
It loads everything great, but it lags so bad when it plays!!! Am I loading everything prperly? The external .swf file is just under 200 kb, but that should be ok, right? there is a way to prevent lagging. maybe a way to ask for more ram from the computer?
View 7 Replies
Similar Posts:
Sep 3, 2010
I m loading an external swf file on main stage which has some links, I want if I click on any of these links the timeline of the main stage should chenge.
View 1 Replies
Jan 7, 2009
I am loading an external swf file/movieclip onto the main stage - it is a simple transition and once it has finished playing, I want to jump to a frame in the main stage.I've loaded the movieclip onto the stage, but don't know how to jump to another frame after it has played and stopped...what's needs to be added to this to goto a frame on the main stage........
on (release) {
loadMovie("black.swf", holder);
}
View 2 Replies
Jan 15, 2005
i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.
how would i go about this, since the external file would be read as a string by flash?
View 3 Replies
Jan 15, 2005
i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.how would i go about this, since the external file would be read as a string by flash?
View 3 Replies
Sep 28, 2009
I imported 26 .mp3 files into my library, and linked their classes via AS3 to 26 instances of buttons.
My file size went from about 2MB before I imported them to about 1.6 GB after I imported them. Each of the files is only about 2-3 MB.
View 2 Replies
Mar 16, 2009
I'm trying to make an xml based tracklist for a music mix on a website. The code loads the info from the XML file, and displays it in the text field, and I have a UIScrollbar component as well. When I test movie, everything seems to be working fine. However, the swf file is 14.1 MB. The .FLA is only 690kb... so where the hell is the size coming from? I only have text in the xml file, and the code is pretty compact. Why is the swf so big?[code];If anyone knows how this could be done so I can create one shell swf file, and load the xml file in the html/php code.
View 5 Replies
Mar 31, 2012
What is the reason for the enormass bloating of FLA file size, when many edits and saves are made to a FLA file, yet assets are not being added to the library? What is the best technique to keep FLA files smaller in size? (with the problem described below. I am not talking about published SWF files or asset management)Over many edits and many saves of my FLA files, they become 30 times the size on disk from where they start out. Example 750k can get as high as 34mb. In the past "save and compact" used to fill the role of reducing FLA file sizes but now that feature is gone.When I save as a CS4 file then back to CS5 the file becomes much smaller after it has become bloated, BUT I take a risk every time I do this that the file will become corrupted (I've had corruptions happen).I have read that files which were created in CS5 and are never in the format of CS4 don't have this problem, but I find that theory unlikely since I have tried to follow this rule to no success.
I have also read that every FLA file tracks its "history" of assets. So adding and removing assets to the library will sometimes cause bloating because old assets that are removed from the library remain in the FLA file. This seems bogus because there is no purpose to this, but could be an indication of a bug in Adobe Flash Professional CS5, and CS5.5.Personal details: the files I am editing contain personally created flash components, images, audio, many symbols (20+) but no embedded video.For me personally, this bloating is a problem because I'm dealing with hundreds of flash FLA files that should be about 1-4mb in size but are instead much larger. The overall effect is that I end up with gigabytes of files instead of hundreds of mbs.
View 1 Replies
Nov 20, 2009
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 Replies
Feb 21, 2011
I'm building my brother a flash AS2 website for his construction company....everything is going smoothly up until now where he wants to have a "cover flow" - iTunes album art style gallery to display the images of his work portfolio.
I am building his website COMPLETELY out of flash, from what I know - I'm not pro enough to build the cover flow style gallery myself so I'm looking for a nice external flash gallery that I can modify and load the gallery swf into my main stage / website... or directly place the entire flash gallery into one frame of the main website.
I came across this application called "Gallery Studio" by ijoysoft [URL] that very easily lets you automate flash galleries with your images and you can export it as a single .swf file. IT IS PERFECT! It has something very similar to cover flow and my brother loves it.
Now I've worked with loading external .swf's onto the main stage of my websites before.. but for some reason I cannot load THIS automated swf onto my flash stage. I can't figure out why it wont appear.on the main timeline of the website "AHRENS.fla" frame 252 is where I want the gallery to appear "gallerytest.swf" (gallery automated from the Gallery Studio program) I am using a simple:
loadMovieNum("gallerytest.swf", 400); to call it in.
I get no errors.. and nothing appears.
AHRENS.fla <- flash website file
gallerytest.swf <- automated gallery to place in frame 252 of AHRENS.fla
if I could just figure out this one problem... it will solve all my headache and pain, as I've run into loading external galleries before. Since I work making my website COMPLETELY in flash, making image galleries have always been a problem for me, I have to do them by scratch unless it requires something fancy.like cover flow, where then I look for freeware galleries off the internet but they always require javascript, their own webpage, html, css, divs etc that can't be integrated into my all flash websites. Now that I've found GALLERY STUDIO it is perfect to do special effect galleries..
View 8 Replies
Jan 10, 2011
I am trying to load a photo gallery saved to an external .swf file onto the stage of a website I am building. But every time I run the movie I get this message:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Users/art.i.choke/Documents/Tracey%20Bones%20Website/gallery.xml
at gallery_fla::MainTimeline/frame1()
The .swf file is located photos/gallery.swf in relation to the site .fla.Here's the code I am using to load the .swf:
var my_Loader:Loader = new Loader();
var my_url:URLRequest=new URLRequest("photos/gallery.swf");
my_Loader.contentLoaderInfo.addEventListener(Event .COMPLETE, finishLoading);[code].....
View 4 Replies
Aug 24, 2006
I'm using Flash MX 2004 professional, and actionscript 2.
I'd like to load an external jpg to the stage. I don't need a load bar or anything like that.
View 2 Replies
Aug 7, 2009
"I am new to flash, " and am having a (minor?) problem. I am using ActionScript 2.0.Currently I am having issues with the way my external swf. is being loaded. I am using a MovieClip Loader. I want the external SWF that is loaded into the movie clip holder to be placed on top of the stage and covering everything beneath it. To get a better clue of what I am dealing with you may check URL...- that is what i am working with currently, and if you click the thumbnail image you can see a green box with body text which is loading. however I would like it to load on top instead of below![code]Within the Home swf is another SWF being loaded.URL...
View 3 Replies
Oct 18, 2010
I am trying to load an external .swf (actually it is only an image that I published as a swf file, not a complicated movie) but I get errors. I am trying to load the .swf into a movieclip and the movieclip appears on the stage. I have put the code in frame 1 where the image should appear (in the movieclip). The code that I used is below and works fine with a .jpg and when I load it directly on the stage, that is to say, when I put the code in a frame on the stage. Why does it not 'work' right now?
I have added 'parent' in 'parent.event.target.content.y = 200;' in the first frame of the movieclip timeline, to make sure that it will appear on the (main)stage. The error that i get is this one:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at galerie2010_fla::mcBallon1_11/frame1()
This is the code in frame 1 in mcBallon1:
var imageRequest1a:URLRequest = new URLRequest("images/SWFoverig/ballon1_702x368.swf");
var imageLoader1a:Loader = new Loader();
imageLoader1a.load(imageRequest1a);
addChild(imageLoader1a);
imageLoader1a.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete1a);
function onComplete1a(event:Event):void{
parent.event.target.content.y = 200;
parent.event.target.content.x = 205;}
View 2 Replies
Nov 17, 2011
I'm unable to load forces.swf (assume I can't edit it, as I don't have the source code) through an external swf, due to Stage reference in the base class how would I go about loading it (and any other possible SWF) without errors being thrown?
Here is a link to the problem I am trying to fix:[URL]..
View 1 Replies
Aug 10, 2006
I am loading a swf into another swf. The swf I am loading has objects off the stage, and when i load the swf into the other it shows the objects off the stage and screws up my positioning logic. Is there any way to load the swf and hide all the objects that arent on the stage?
View 1 Replies
Mar 2, 2009
My problem is simple and annoying:
I have two swf files, where one (lets call it A) is supposed to load and display the other(B).
The first swf (A) is using the Loader class in AS3 to load the other. In fact the loading code in A is an exact copy of the Adobe example code from the livedocs for Loader.
The other swf (B) just spins some meaninless graphics in a loop, and has a document class that has one line of code in its constructor:
trace("B's stage is: " + stage);
When I start swf A, the loading of swf B starts fine. The progress is reported as traces all the way up to 100% before swf B's constructor is called and the following is traced:
B's stage is: null
THEN the complete handler is triggered (yes. AFTER the constructor was called for B with no stage).
The problem is that I really need B to have a stage for my project to work, as I will actually use stage, instead of just tracing it. I have really tried everything to get this working. Is there no way so soothe B into having a valid stage before its constructor is loaded?
[URL]
View 4 Replies
Nov 17, 2011
I'm unable to load forces.swf (assume I can't edit it, as I don't have the source code) through an external swf, due to Stage reference in the base class.
How would I go about loading it (and any other possible SWF) without errors being thrown?
Here is a link to the problem I am trying to fix:
[URL]
View 14 Replies
Feb 12, 2010
The problem is this: I am loading 4 external SWFs into an empty MC on the main stage for each of the 4 projects.So you press a button on the main stage for a project, and it loads that specific SWF.These SWFs contain an opening text for each project, a button to "continue" to the gallery, then the text fades out and the gallery loads.That's all within the SWF itself.The SWFs work fine on their own, but the problem is that when I load the SWFs into the empty MC on the main stage, the "continue" button doesn't work correctly The SWFs load fine, it's just the button At first when I pressed the button it would send my main stage back to the first frame, so I thought it was because the AS for the button in the SWF was probably conflicting with the main stage and confusing it. I went back into the SWFs and tagged part of the SWF timeline with the name "togallery" so that when you click the "continue" button, in theory, Flash knows specifically where to go within the timeline of the SWF and not the timeline of the main stage.
That hasn't worked either. The button just doesn't work at all now, at least not when the SWF has been loaded onto the main stage. Again, it works fine on its own. So what can I do? How can I get a button within an external SWF to reference only it's own timeline and not that of the main stage?
View 1 Replies
Nov 10, 2010
My main swf is 960x600 and loads full screen. it is a projector or swf, local. I have the code on frame 1 to ensure full screen and show all:
stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.displayState = StageDisplayState.FULL_SCREEN;
Then I load an external swf into a mc, and it goes full screen as expected. BUT the main swf that loaded that external one, at the time of load, suddenly gets scaled back down to its normal size: 960x600, on the top left corner of the Player Window (or the full screen), so somehow at 0,0. Whn I unload the external swf, I can put the code stage.scaleMode = StageScaleMode.SHOW_ALL; to get it back to where it was. But unfortunately I have some buttons from the Main swf that are supposed to be on top of the loaded one, and should stay where they are. But now they all move because of this scaling down.
the mc that is being used as a container for the loaded external swf is an empty mc located at 0,0. The external swf has the same size as the main one: 960x600
I searched and tried things but could not get it to stay in show-all mode when loading this external swf...
View 0 Replies
Apr 2, 2009
I have all the time some problems but this is going to be really frustrating to me. I have bought one flash item from a website (3D image gallery for AS3) and I havenīt got it work still not yet.Iīm trying to load a .swf file called (Gallery3D.swf) and .xml file named (gallery.xml) onto stage. I have managed to do a code like this.[code]Still some errors appear on output window as I try to test the movie for example (FLASH CANNOT ACCESS A PROPERTY OF A NULL OBJECT)That code works fine itself on a browser but not on my website project I guess it needs to do some stipulations like if statement or Event.ADDED_TO_STAGE or Event.REMOVED_FROM_STAGE?
View 1 Replies
Jun 19, 2011
I am very new to Flash and am looking for some help with linking a class I made that will shake the mc when hovered. Right now, I have all 8 mc on the stage. I had it working with repeating the code for each button but I wanted to make it into a class that way I could emininate some of the code.
I have linked each button by selecting "export for actionscript" and set the base class to "ShakeButton" and each class is named after the mc name. the mc names are just 1_mc - 8_mc.I am getting an error of 1120: Access of undefined property shaker_mc.Here is the code that I have in the ShakeButton.as file
[code]....
View 2 Replies
Jun 10, 2010
I have a .as file which calls up different screens onto a main stage. Where would I place the coding to get an external .swf file to appear on the stage? my code looks as follows...
For the main page...
package {
import flash.display.*;
import flash.events.*;
public class Main extends MovieClip {
private var intro:Intro;
[Code] .....
I just can't seem to combine them properly in order to get the .swf file to load.
View 9 Replies
Sep 21, 2008
In my website I would like to import a external file into the stage .The appearance of this file is an image divided into a grid of 6 rectangles (each one a mcl). What I would like to do is, on mouse over, each mcl could rotate to show its back. The idea is when you click , let's say, Adobe the Adobe logo will appear divided in 6 rectangles and when you go over with the mouse they rotates to show Adobe products.
View 7 Replies
Sep 24, 2009
How do I get this code to work?
[Code]...
I can't tell how to get the code to interact with the objects on the stage.
View 4 Replies
Jan 21, 2011
When I add an object from the library to the stage in the timeline (by putting the script in the timeline) it works but when I try to add it from this .as file nothing happens.
[Code]...
View 1 Replies
Apr 11, 2009
loading external php file,this mean,when we load the file all info at php will load actionscript in swf file.
View 2 Replies
Apr 5, 2011
im loading photos of different aspect ratios with a loader onto a child holder frame_mc. I wanted to know what AS3 commands do i need to work on to get the frame_mc to resize to the new childs dimensions and centerize itself on the main stage? (as in event listeners, functions, vars etc)
View 3 Replies
Sep 21, 2011
For the life of me I can't work out why this script is not working: In the library are two movieclips: pink_sprite and green_sprite each of which has a attached class pinkSprite and greenSprite. These classes in turn are extenders of the hitTest.as class below.
[Code]...
View 3 Replies
Nov 8, 2011
I have one fla called index.swf it import another swf called (home.swf) through addChild()In home.swf, there is a button.i am trying to make this button activate an event in index.swf I tried using root but not worked I tried use stage but neither worked.
View 4 Replies