Professional :: How Do You Know Which Loader Has Completed?
Dec 7, 2010
I'm loading a bunch of swfs into my movie and when they are finished loading I need to change each swfs color based on my xml data. My problem is when my Event.COMPLETE fires I don't know which loader it belongs to to retrieve the correct xml. I've tried giving my loaders names but I can't seem to access the name from the Event.Complete function. My trace causes the error: Property name not found on flash.display.LoaderInfo and there is no default value. How do I access my loader name?
for(var w3:int = 0; w3<cartXML..item.length(); [code].....
View 3 Replies
Similar Posts:
Apr 7, 2011
1, Is it possible to change the dimensions of a .swf/.fla file once completed?
View 1 Replies
Apr 28, 2010
I am working in an Articulate program that is flash based. I don't get much control over the way parts of it function, so I have added a lot of extras to it via flash movies I inserted.
There is one thing I am trying to figure out. I want to add an object that tells the LMS to mark the course complete. I don't need it to check if the score has been submitted or anything like that, by the time a student gets to this object, the test should be done. I just need a flash movie object I guess with the script that writes the completed status to the LMS.
View 1 Replies
Jun 19, 2010
The following action script for loader is working fine:
var l:Loader=new Loader();
addChild(l);
l.load(new URLRequest("MyLogo.swf"));
But when I added one more loader to it like the following...It doesn't show anything but gives an error:
[Code]....
View 5 Replies
Aug 16, 2010
I'm a designer who uses ID to create eBrochures. I can of course export SWF files and associated resources from ID to upload for web usage, but what I'm trying to do is create Full Screen projectors (amac and PC of these files). I have Flash Cs5, but know nothing about it. I can of course use the Flash PLayer Debugger to openthe ID created SWF and use the 'Create Projector Command' to make a self contained Projector, which is *almost* what I need.
Only problem is the SWF is not / cannot be set from ID to open in Full Screen mode, so the projector inherits that characteristic. Is there some easy way to add some script to the ID file so it open full screen? Or is there some kind of shell FLA I can get that would simply say something like "open content.swf and play full screen" then I can use that standardised name for my SWFs and make a projector of that ?
View 2 Replies
Dec 19, 2011
[b]Ok why wont this work?
Trying to do a
Navigation bar button , to preloader to abour me page with a photo component.
Not on the pre loader page the bar works, only it wont disappear.[/b]
[pre]s[color=blue]iteLoader.loadMovie("AboutMe5.swf",4);
Frame_movie._alpha = 100;
loadingBar._alpha = 100;
[Code]....
it appears to be the if script thats the problem not triggering the fad or gettig red of the pre loader altogether.
View 34 Replies
Mar 5, 2009
I have an swf, lets call it 1.swf, that has a button that calls another swf to level one. In that second swf, lets call it whatever.swf, on layer 1 it has an flv file of about 40 seconds. on layer two it has a button that has this action:
on (release) {
unloadMovie(1);
loadMovie("../swf/1.swf", 1);
}
So if that button is pushed, then it unloads whatever.swf as I need it to.
the problem is that if that button is not pressed, then when that 40 second flv finishes, it just sits there with a black stage and the button. What i need it to do is that when that 40 second flv is finished, it automatically unloads whatever.swf on level 1, again showing 1.swf on level 0.
Also, before anyone anwers, the way i did the flv is that in whatever.swf the flv was imported to the stage, i slected the "already deployed" put in the URL and then it created a flash video component which is on the stage.
View 3 Replies
May 11, 2011
I have a banner as the header on a website. The file is about 150K. I want the banner to load (relatively) instantly (without the animations). My current solution is to take a screenshot of the first frame and create a preloader that just displays the screenshot. A really simple solution to this would be a setting (or something) that just caches the first frame as a bitmap and loads that first, then displays it until the entire file is loaded.
View 1 Replies
Feb 20, 2012
I have figured out how to use loader to bring external .swf files into my project, but I have lots of buttons bringing lots of different swf files in and I want to have a home button that will kill them all no matter what order they have been loaded in. Here is my code so far.... returns errors (but it still works) and will cause trouble as I get more .swf's loading. I would really like to keep track of the last loader loaded and be able to move forward and backward through the order and also kill them all at once?
sub
var Gstar1:Boolean = false;
var Gload1:Boolean = false;
var gs_ProLoader:ProLoader;
var gl_ProLoader:ProLoader;
[Code] .....
View 5 Replies
Apr 2, 2007
im having trouble adding a progressbar components to a loader...all the images load and the progress bars too but the progress bars only change when they reach 100% and they do not disapper either..
View 2 Replies
Feb 4, 2010
I am unable to debug a swf (Test.swf) loaded with Loader (from TestLoader.swf) if Test.swf imports a class from another swf (OneLoop.swf).If I set breakpoints in Test.swf, they will not be hit when debugging TestLoader.swf.I have attached a Test.zip file which contains the necessary FLA and AS files to demonstrate the bug. To reproduce the bug.Load up Test.as, OneLoop.fla, Test.fla, and TestLoader.fla.Then put a breakpoint on line 17 of Test.as (removeEventListener)Then Publish OneLoop.fla.Then Debug Movie on Test.fla.You will see that the breakpoint stops at line 17.Then Debug Movie on TestLoader.fla.You will see that the debugger will stop at line 18 (where I throw an Error), but failed to stop at line 17.I'm using CS4 Pro 10.0.2.This problem only occurs when I import a class from the third swf.Does anyone else know how to fix the problem (without removing the imports or merging the FLAs )?
View 6 Replies
Mar 22, 2010
I have a nice as3 swf that reads and xml file, and loads images with transitionsfor a slide show on an html banner page.This works fine. There are some users that see white space (the stage) before thefirst image loads. Depending on the clients connection, etc this can take aslong as 2 or 3 sec.
I was thinking about placing a jpeg in the fla, and adding it to the stageas a symbol or graphic, so instead of white space (or a color other than white)the user sees an image on the page, and when the xml loader places the first image on the page, the user sees the image, and the slideshow, etc.
View 3 Replies
May 4, 2010
I have a main movie (e.g called main.swf) and a couple of other movies which need to be loaded inside my main movie.Some of these should load inside a movieclip, and some should load inside a scrollpane. Now, whatever I do, i just can't make my Preloader show the amount of loaded movies properly.I even used the built in methods of scrollpane but it doesn't work at all.I use AS2, and flash CS3.The loader stops at 0% and after same time it goes to 100%.
View 3 Replies
May 20, 2010
I am trying to create a flash pre-loader exactly like the one in the tutorial at this link: ( I am using CS4 and AS3 as he is in the video)
[URL]
When I go to simulate download, the loading page screen will show as the page loads, but the dynamic text fields will not update or show anything - they are just whited out as if they are not there.
I have checked the code about ten times. And I have also named all the movie clips exactly has he has them named in the movie. The only problem I can think of is that I am not if I need to name my .swf file that plays on frame two to something else or somehow "connect" it to the action script or loading page so the loading page understands what the dynamic text needs to load. If this is not the problem, can anyone think of something else?
View 3 Replies
Aug 19, 2010
I recently added a loader page ("loader.swf") to my flash website. Basically, I created a new file and added a loader which shows the percent loaded, and then it loads in the "index.swf" file. My question is: when I upload my site to the web server, do I use the loader page as the "index" page? My dilemma about that is that I don't want the URL to read "[URL]"...
View 11 Replies
Feb 3, 2010
So I've got a flv embedded on my stage and I want to call a function (a getURL) after it finishes playing
View 2 Replies
Apr 21, 2009
I have tried to import a movie into Flash 8 and the message appears "The operation could not be completed as an error has occurred". It will not pu the movie on to the stage. Do you think there is something wrong with the movie file or am I missing a step? This is what I do:
1) open a new flash file
2) file - import video
3) browse to find the movie file and then click next
4) Click the option 'progressive download from a web server'
5) I dont change any of the default settings and I don't want a skin on it
6) It runs through like it is making the file and then the message appears "The operation could not be completed as an error has occurred".
View 3 Replies
Nov 10, 2009
I am trying to create a video that can be streamed on a website. The video started with a screen grab of the video on frame one. This has the action on stop();. When this screengrab is clicked, gotoAndStop(2); is fired and the timeline moves to frame 2 and the video starts to stream. All is well... Except from when the video finishes...
When the video finishes I have tried using the code
on (complete) {
gotoAndPlay(1);
}
To go back to the origonal screen grab on frame one but it doesnt seem to budge.
View 1 Replies
Aug 30, 2010
i have a mx:AdvancedDataGrid control with animation on resize. And i need to resize another contol A accordingly with mx:AdvancedDataGrid size. But resizing of contol A is too slow.
Threrefore, the addition of resize handler is bad solution. I want to get the time when the animation is completely stopped either the new size of mx:AdvancedDataGrid control.
View 1 Replies
Aug 15, 2006
I am getting some strange results while loading large files dynamically, and testing my movies. Even if I delete the object in which the external file is loading, the bandwidth of the loading seems to continue. Either Im not doing a good job of cleaning up after myself, or the test environment when exporting a movie isn't accurate, or ... there is no way to cancel the effects of
[Code]...
Is this going to be the case online? (difficult for me to test right now) Is there a way to break off the loading once it has begun? (I thought by deleting the object that called the loading function, I would end the loading)
View 2 Replies
Aug 13, 2007
I have multiple functions in one frame. Each function runs an seperate animation. I would like to have the first animation run, and then as soon as that animation is complete, I would like to have the next animation play, and on so on.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.*;
[Code].....
View 6 Replies
Jul 26, 2010
how to load an external using a loader to show while its loading...my swf which is to be loaded is a gallery having jus one frame on which action script is placed..
View 10 Replies
Oct 13, 2010
I have an external swf file loaded in loader component. The external swf loaded in loader component is stopped initially. I want to play it by a button outside the loader component which is located in the main swf movie.
View 1 Replies
Mar 6, 2011
I have confirmed to my satisfaction that the following code never triggers the Event.COMPLETE of var loader:
var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest(contact_url);
var variables:URLVariables = new URLVariables();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
req.method = URLRequestMethod.POST;
[Code] .....
However, it does in fact send the emails it is designed to send! Why doesn't it complete when in fact the work is done?
View 3 Replies
Mar 8, 2011
I Have about 10 images that will be loading into my home page using the code below. the problem that I am getting is that occasionaly the same image will load twice in a row. is these some code I can insert into my existing code so that the images will not load twice in a row?
var movieArray:Array = ['Simage/Simage0','Simage/Simage1','Simage/Simage2'];
var loader:Loader = new Loader(); var index:int = movieArray.length * Math.random();
var url:String = movieArray[index] + '.swf'; trace("Attempting to load", url);
[code].....
View 5 Replies
Jul 9, 2011
In the first frame of that movieclip, I'm importing an external swf with Loader class,(Using actionscript2 but my main flash page using Actionscript3),It is loading well but when i pass to second frame and return to the first frame again, the Loader doesn't work. (i'm using addChild(); to show external swf)
View 9 Replies
May 20, 2010
I have been using this tutorial to get RPG text boxes in my game. So far, so good. The RPGtext.as I'm using comes from that tutorial, and hasn't been altered, while I'm calling the var arrays containing the character speeches from yet another document class. Something like this:
[Code]....
The dialogue begins and it's all good. Now, here's my dilemma: Is there a way to "shut down" the rpgText movieclip when the Dialogues.d1 has no more text to provide? Each time I press the rpgText movieclip, it refreshes with new text, but when it reaches the final text, I want to be able to press it and make it go away (remove movieclip from scene, something like that).
I tried the "if (Dialogues.d1.length == 0)", but it doesn't work. Is there a way to detect if the Dialogues.d1 has reached its final sentence? Will it be necessary to alter the rpgText.as?
View 12 Replies
Jan 6, 2010
I have a slidshow inside of a flash page. It works great on my desktop, but when I upload it to a server I get the infamous Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. I initially assumed that I must have missed uploading a file, so I uploaded the whole folder, Photoshop files and all, thinking that I could start deleting things until I found the culprit. But even after I uploaded everything that I have, the browsers still gave me the same error with no slide show. I'm wondering if my call to the .swf (from inside a .swf) needs to be different on a server.[code]...
View 3 Replies
Jan 22, 2010
I have made this very simple slideshow which loads images via a XML file. Everything works fine locally, the images load nice slideshow. But the problems start when I load it up to my server, once it is uploaded and I try t o play it I get this error:
[QUOTE]Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.[/QUOTE]
It has something to do with the .xml file which I load in AS here:
var request_xml:URLRequest=new URLRequest("setup.xml");
I tried to replace it with ("[URL]") but then I got a sandbox violation error which is not solvable unless you get it signed (I read that somewhere). The way I load images in XML:
<SLIDE_SHOW>
<PICTURE>ImagesBw/Foto1.JPG</PICTURE>
...
</SLIDE_SHOW>
[URL]
View 5 Replies
Jul 23, 2010
I have a tween I am calling in a function and I'd like a scale event to occur once the tween complete.I've never created an event listener dependant on the completion of another actionI'll ultimatley scale cntcnt XandY to the newly created scprop once the TweenLite event completes.
Below is the code which calls the tween. I'd
function clktwn(e:MouseEvent):void{
//create vars for x,y cordinates of clicked county (child)
[code]....
View 4 Replies