ActionScript 3.0 :: Loader Not Clearing Old SWF

Jul 15, 2009

AS3 noobie here..So i am trying to load external SWFs into a DisplayObjectContainer.When i re-instantiate the Loader object it won't clear the old SWF.basically, in this version, i've resorted to adding a new containerover the old one (very bad, i know). I'd love to know how to solvethis issue properly.[code]...

View 21 Replies


Similar Posts:


Flex :: Clearing RSL In Cache

Nov 13, 2009

I have built a flex application which has a "main" project and it is assosciated with a few RSL's which are loaded and cached once i run my "main" application. The problem i am facing is that the newer versions of my RSL's are not being loaded as the cache holds the older version of my RSL and execxutes the same. Each time i have got to clear the cache to execute the new version of my RSL's, which is irritating.

View 1 Replies

ActionScript 2.0 :: Clearing Xml And Swf Cache?

Jan 28, 2009

I have a website that is currently all flash-based. Unfortunately if you return to that website, it won't change a thing until you delete your temporary internet files, being that it is flash. So for every update, I have a new .swf file ie: 2801091.swf and this works perfectly fine. However when you enter the calendar, it loads the .xml file but it's always what's been cached.

1) Everything about the flash file can be revised if it's the newest version so dated .swf files aren't created every time there's an update?

2) A way to clear the .xml cache or refresh it every time the calendar is opened?

View 5 Replies

ActionScript 2.0 :: Clearing A Function?

May 12, 2004

I set a function for

this.onEnterFrame = function(){
code;
}

[code]....

View 4 Replies

ActionScript 2.0 :: Clearing Out An Array?

Apr 24, 2005

I might me going crazy, but I've scoured the trying to find a way to clear out or reset or empty an array. I've tried a for loop

for(i=0; i<_root.imageList.length; i++){
_root.imageList.shift();
}

Doesn't always work. So how do I "reset" an array, just clear it out completely so I can reuse it?

View 3 Replies

ActionScript 2.0 :: ClearInterval Not Clearing?

Jul 8, 2005

here is my problem. I have a slideshow that I wish to pause when I rollOver a button, and to resume when I rollOut.

here is the the interval part of the code:
var ssInt = new Number();
ssInt = 100;

[code].....

View 5 Replies

ActionScript 3.0 :: Clearing Everything And Re-loading?

Jul 6, 2009

In a simplistic view, what I want to do is when the 'previous' or 'next' button is pressed, increase or decrease the page number by 1, which is easy enough, and start afresh...I though it should be a case of removing all the children from the scene and then executing the functions at the start of the script, after all the variables have been set.However, when I do this, I get the following error:

## [Tweener] Error: : [object preloaderMain_12] raised an error while executing the'onComplete'handler.
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

[code].....

View 5 Replies

ActionScript 2.0 :: Possible To Clearing A Function?

May 12, 2004

I set a function for

this.onEnterFrame = function(){
code;
}

but later I want this onEnterFrame to stop functioning to conserve on processor resources.setInterval isn't too good of an option from the way I have things set up, so right now I just set it to a new function with a trace action which overwrites the old one.

View 4 Replies

ActionScript 3.0 :: Clearing And Replacing XML Data?

Jul 24, 2009

I'm creating a gallery of thumbnails and main images from a loaded XML file.The initial load is fine and all is working, Thumbnails are produced in a masked movieclip and the first image is defaulted to display at start perfectly well. The gallery also has several categories in it which a user can view by clicking a button for each. eg Sites, Designs, Cards etc. Each of these categories information are held within different separate XML files. eg sites.xml, designs.xml and cards.xml etc.

Now here lies the problem. When a user clicks a new button the new XML loads the new information and the files display, but on top of the thumbnails/main images that were already present because the file that was initially open has not cleared. So what I want to do is simply remove the data that is currently being displayed, so in essence removes the images etc. Then replace those with the images from the new XML file.Is this at all possible because from searching the last week I haven't been able to find it. I guess I can't see the wood for the trees at the moment.

View 7 Replies

ActionScript 3.0 :: Completely Clearing Out A Child?

Sep 28, 2009

I've having a problem when I am removing a child. There is an area where you can choose a button to click(there are multiple buttons here). Once you click a button it loads workss_mc and you can go back from there and workss_mc is being removed then work_mc is being added again. The problem is once it is added again and you click on any of the other buttons the frame label from the previous session when it was clicked is still at that location.

[Code]...

View 11 Replies

ActionScript 3.0 :: Clearing Object On Next Frame

Apr 1, 2011

Here is the flash file I am working on for a local kids charity so you can see [URL]. If you press the next button 9 times it will bring you to a drag and drop game I have made, you have to match the targets so it spells cat, this works fine, the problem I am having is that the objects you match stays there for the rest of the frames (try it yourself by pressing next) I am just wondering how to clear this?

View 1 Replies

Flash :: Clearing Cache By Code?

Feb 23, 2012

I am using a Flash Component in our web site to show videos but I need a way to clear flash cache every time the page is loaded. Such a Flash Component configuration is based on an XML file to get the videos that will be played. Is there a way to do it using C# code?

View 6 Replies

ActionScript 3.0 :: Clearing Out Object In Holder?

Sep 2, 2009

I am trying to create a flash visual showing a time series of data on a world map. I have created a flash file which 1) creates proportional circles for each country of interest (in this case 6 countries) and 2) has a timeline so that the circles change through time. I have successfully gotten the timeline to work with the proportional circles, however the circles to not clear out before displaying the new circles when adjusting the timeline. I am not able to figure out how to properly clear out the circles. I have tried using the holder.removeChild(c) command before I create my new circles, but get an error which states 'Parameter child must be non-null'.

ActionScript Code:
import XMLLoader;
import ProportionalCircle;

[code]........

View 1 Replies

ActionScript 3.0 :: Clearing A Tfl Text Field?

Oct 28, 2010

I am working with the new tfl text fields in Flash 10, and have realized that I cannot completely clear the text field from script.

using classic text, I could do something like this:

ActionScript Code:
myTextBox.text = "";

however, with tfl text, that does not clear the field and returns no errors. What does work is using a space:

ActionScript Code:
myTextBox.text = " ";

But that wont work for what Im doing because it is a text entry box, and I need there to be no leading characters when a user starts to type.

View 0 Replies

ActionScript 3.0 :: Clearing Vector Object

Apr 15, 2011

If I have declared my vectos object as such ActionScript Code:

private var _delsUI:Vector.<Single> = new Vector.<Single>();

fill it with data like:

ActionScript Code:
_delsUI.push(newListing);

Then later on I decide to use this:
ActionScript Code:
_delsUI = new Vector.<Single>();

Will this essentially destroy all objects and prepare them for GC if there are no other references any where else? or do I have to loop through the entire Vector and delete and set null each object?

View 9 Replies

ActionScript 2.0 :: Clearing SetInterval From A Different Function?

Jun 25, 2006

how to clear the interval in this code? I'd also like to know if there is a better way of firing makeStars() than using setInterval in a function - like I'm doing. I've looked at the Kirupa tutorial and I'm not seeing what should be done.

Basically, this attaches a number of stars within the Stage width and height properties. When the browser resizes I rewrite the stars to the screen with the new bounds. But I can't get the interval to stop, so the stars just keep getting replaced - disappearing and relocating abruptly.

It all works great outside of the resizeIt() function, but once inside she goes down hill from there. A couple of things I need cleared up (pun intended) are:

1. Am I creating a new interval each time resizeIt() is executed?

2.What is the scope of the interval(s), and does how you access them change depending on where you are in the code, or are they more global?

stop();
//number of stars to make
var numstars:Number = 100;
_root.attachMovie("background","bkgd",this.getNext HighestDepth());

[Code].....

View 4 Replies

ActionScript 2.0 :: Clearing Sound Position Value

Aug 26, 2006

I am using previous/next buttons to navigate through various screens. Each screen has its own voice over track.If I hit the "Next" button in the middle of the track playing, then try to go back, the audio won't play - most likely because the position is still sitting at wherever it was when the sound was stopped.Is there a way I can reset the position? I am assigning the positiong to a variable (mySoundPosition), and have tried stting it to 0 (mySoundPosition=0), but that doesn't seem to help. I know that the position is read-only, so I was hoping that somehow clearing the value of the variable would work.Basically, I just need a way to start the sound over without having to envoke multiple start(); commands because that causes the sounds to essentially play twice, simultaneously, which doubles the volume.

View 13 Replies

ActionScript 3.0 :: Loader Or Loader Context - Container Loads The Module From An Absolute Path

Jan 23, 2009

I have two swf files, each one almost with the same classes, the most important one is a Singleton class, each swf does "singleton.getInstance()". The diference is that one swf is like a container and the other one is like a module. So when the container loads the module from an absolute path like loader.load("file://c:/modules/module.swf") or loader.load("[URL]"), two different singletons (same class) are created

But when the container loads from a relative path like loader.load("module.swf") , just one singleton is created (that is what I want) I am just intrigued with this behavior, could someone explain me this? PD: I believe is something related to loaderContext and applicationDomain but It also appears that isn't working right. -Patricio Foieri , Vertigo Labs

View 1 Replies

ActionScript 3.0 :: Loader Event.INIT Fires But Loader.content Is Null?

May 9, 2009

The title describes the problem: Loader.load() is firing the INIT event, but in my listener it's reporting loader.content as null. The description for INIT event is "Dispatched by the associated LoaderInfo object when the properties and methods of the loaded SWF file are accessible."I'm loading a lot of JPG images, and 95 percent of the time it works fine; the init listener fires and reports valid loader. content.I absolutely need loader.content available because I need to set the bitmap smoothing property to true.I've tried using Event.COMPLETE and it has the exact same problematic behavior.

View 13 Replies

ActionScript 3.0 :: Game App Runs Fast In Simple Loader And Slow In Other Loader?

Apr 28, 2010

I'm feeling a bit low now as I have been suffering this for months. A simple loader loads my simple game and runs VERY FAST on even slow pcs BUT when I build this other loader, it goes quite slowly and I don't know where the app is going wrong. WHERE is the processing consumptoin coming from out of my app.

[Code]...

View 1 Replies

ActionScript 3.0 :: Loader Disappearing - Set The Dimensions Of The Loader So The External Swf Doesn't 'spill Over', The Result Is A Blank Screen?

Mar 26, 2010

I have the following code which simply loads an external swf, puts it in the right place and should all be hunky dory.This works:

Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest=new URLRequest("foobar.swf");[code].....

to set the dimensions of the loader so the external swf doesn't 'spill over', the result is a blank screen. No matter how high I set those dimensions it just doesn't display anything.

View 4 Replies

ActionScript 3.0 :: ADDED Event In Loader.load And Loader.loadBytes

Sep 13, 2010

I got this very strange behavior from FlashPlayer debugger 10.1 r82. When I call loader.load method, no ADDED event is dispatched to the loader object. But if I open the file and call loader.loadBytes instead, an ADDED event is dispatched to the loader object. I suspect the ADDED event is dispatched because the content is being set as the child of Loader object, but why in the other case it is not dispatched?

View 4 Replies

Actionscript 3 :: Only The Loader Images Are Being Exported In Frame 1 But The Loader Still Only Shows Up At 100%?

Apr 7, 2012

the file loads correctly but the loading screen only flashes up at the end.The only thing being exported in frame 1 is the loader image, and that is extremely small.Is it possible that there's a queue of things being loaded and the loader image is at the bottom of that queue? Since that was one of the last things added to the project

View 1 Replies

ActionScript 3.0 :: When Loader.swf Loads The RSL And The Other 10 Swfs The Loader Throws Errors?

Aug 12, 2009

i have a main loader swf file called loader.swf and it loads an RSL.swf (runtime shared library for my swf files) and then 10 swf files, each one to a container (fE.: movieclip '01' in loader.swf, then movieclip '02' and so on). the 10 swf files have a lot of references to RSL.swf, and i have to use RSL.the problem is when loader.swf loads the RSL and the other 10 swfs the loader throws errors like this:

Code:
*** Security Sandbox Violation ***[code]...

then i put in EVERY swf files (loader,RSL and the other 10) the code Security.allowDomain ("*") but throws the same errors...

View 1 Replies

ActionScript 3.0 :: Keeping Loader Contents After Loader Removed From Memory

Aug 21, 2009

I'm loading some images with Loaders, cloning the BitmapData to a new Bitmap, and adding the Bitmap as a child of a Sprite. So far, so good. I want the Loaders I'm using to be removed by garbage collection, which they seem to be. The problem, or so it seems, is that when the Loaders are cleaned up, the Bitmaps I'm creating lose their data.

Edit: All this is happening when a class is instanced, and many copies of this class are being used as actors in a game. As the Actors are being created the older ones are losing their BitmapData to garbage cleanup. When all of them are finally loaded, only the last few are visible. I've rewritten my posted code as a class. If I prevent the Loaders from being cleaned up by somehow keeping a reference to them, the Bitmaps don't lose the data, but I don't want these Loaders hanging around.

[Code]..

View 1 Replies

ActionScript 3.0 :: Clearing The Stage (in Preparation For The Next Level)?

Dec 29, 2009

I'm trying to clear the stage of all objects on there, so that I can show the next part of the game (albeit in a new frame, or by adding new MCs onto the stage).Basically, I have a loop checking to see whether or not the player has reached the end of the current level, as well as checking if the stage has been cleared yet:

Code:
else if((stop_all == true)&&(empty_stage == false)){
cleanup();

[code].....

View 3 Replies

ActionScript 2.0 :: Multiline Text Isn't Clearing With Code

Oct 26, 2010

Actionscript Code:
form_comments.onSetFocus = function() {if (form_comments.text == "Your comments") {form_comments.text = "";}};

my input field instance is form_comments and the default text I have in the field is "Your comments" the same code (with obvious changes) is working fine on my single line fields... just not this last one?

View 10 Replies

ActionScript 3.0 :: Clearing A Drag And Drop Object?

Mar 29, 2011

[URL]I got it working but the problem is, is when i go to the next frame the items that are matched succesfully stay there, I want to know how to clear them, so they don't get in the way of the next frames.

View 10 Replies

ActionScript 3.0 :: Clearing A Drag And Drop Object?

Mar 29, 2011

I got it working but the problem is, is when i go to the next frame the items that are matched succesfully stay there, I want to know how to clear them, so they don't get in the way of the next frames. Maybe it is something simple?

View 22 Replies

ActionScript 3.0 :: Clearing Imported SWF On Exiting Frame

Nov 18, 2011

I have a need to have a section in an app I am creating where I have imported an external (print2flash)SWF into my main SWF timeline. When the button is pushed, it moves to a new frame on the main timeline. Problem is, when I forward to the next frame, the SWF stays on any future frame I go to. In essence I need to clear what was imported when I leave one frame and enter another.

This is the code I am using to import the print2flash SWF
import Print2Flash.* stage.scaleMode=StageScaleMode.NO_SCALEstage.align=StageAlign.TOP_LEFT var P2FDocLoader:Print2FlashDoc3=new Print2FlashDoc3("modules/FlashDoc.swf",300,120,650,520,this)P2FDocLoader.addEventListener(Print2FlashDoc3.ONLOADEVENT, OnLoaded);
var P2FDoc:MovieClipvar totalPages:Number=0
function OnLoaded(e:Event) {
P2FDoc=P2FDocLoader.getDoc()}
Is there away to add on on leave frame unload function?

View 2 Replies







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