ActionScript 3.0 :: Use A Variable In A Swf Loaded Using Loader?

Jul 2, 2010

I am sending a variable from my main swf into a loaded swf using the following code with its output at the bottom.I am having trouble getting my Course_ID_NO variable out of the function "inputid" in the loaded swf.

//-------Main swf
course_begin.addEventListener( MouseEvent.CLICK,cb_btn_click ); function cb_btn_click (e:MouseEvent):void { var mc_course:MovieClip; var request:URLRequest = new

[code].......

View 7 Replies


Similar Posts:


ActionScript 3.0 :: How To Access A Loader Loaded By A Loader

Aug 13, 2009

How to access a loader loaded by a loader

View 4 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

ActionScript 2.0 :: Basing A Numeric Variable On A Loaded Variable?

Dec 21, 2009

Working in AS2, using CS3 Flash Pro I've simplified this to just the one little thing I'm trying to do.

countervariables.txt has this text in it:

[Code]...

The trace shows itemsPerMili as 'NAN' and totalForYear as 'undefined'. I know itemsPerMili yields 'Not A Number' because totalForYear comes up undefined, but oddly, the loaded variable does show up correctly in a dynamic text field assigned to the variable. I don't understand why it should show up in the dynamic text field correctly when it won't trace.

I want to see the number "3.80517503" in my trace for itemsPerMili.

View 3 Replies

Get Rid Of Pre Loader Bar When Page Loaded?

Dec 19, 2011

Ok why wont this work? (flash CS5 and action script 2)Trying to do aNavigation 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.

siteLoader.loadMovie("AboutMe5.swf",4);
Frame_movie._alpha = 100;
loadingBar._alpha = 100;

[code]....

View 2 Replies

Loader For Externally Loaded SWF?

Dec 2, 2009

if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 18 Replies

IDE :: Loader For Externally Loaded SWF?

Dec 2, 2009

I have a fairly chunky swf that I am loading through the loadMovie function. Just wondering if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 1 Replies

ActionScript 3.0 :: Determine If Loader Is Loaded?

Oct 14, 2009

I am using the Loader class to load images into a photo gallery. When a user navigates to the next image in the gallery, I need to unload the Loader using the "unload" method and then load the next image.The code for this is simply:

myLoader.unload();
myLoader.load(new URLRequest(url...));

My question is if there is someway to determine if a Loader is already loaded? That is, I don't need to unload the Loader if nothing has been loaded so I am wondering if there is some sort of conditional statement I could use to control when the unload method is used.

View 5 Replies

Flex :: AddEventListener To Loader? Or Loaded Swf?

Dec 19, 2009

I am loading an external swf file using the following code:

//add close button
var reqButton:URLRequest = new URLRequest(btn_close);
var loader2:Loader = new Loader();

[code]....

View 2 Replies

Actionscript 3 :: Loader Do Not Load If Already Loaded?

Aug 13, 2010

Is there some way to check if what you are loading is already in memory and don't need to be loaded a second time?

View 1 Replies

ActionScript 3.0 :: Get Loaded Sprite From Loader?

Dec 21, 2011

I want to get my star to use one of the loaded sprites, I manage to find the correct urlLoader in my loader, but are unsure what I should return to give it the sprite.[code]...

View 2 Replies

ActionScript 3.0 :: Variable For Loader Content?

Jan 7, 2009

Is it possible to create a variable that references a loader content ? For instance, in the example below, is it possible of having something like:

var LoaderContent:SOMETYPE = new SOMETYPE();
LoaderContent = pictLdr.content;

And then using LoaderContent variable instead ? What type of variable should it be ?

var container:Sprite = new Sprite();
addChild(container);
var pictLdr:Loader = new Loader();[code]........

View 5 Replies

ActionScript 3.0 :: Unloading A Loader-Loaded Child?

Jun 16, 2010

I have a master swf that uses Loader to load in an external swf. I need to load a back button on top of that stack as a separate Child - and I have code in that loaded Child that needs to Unload the Loader-Loaded swf, unload the Buttons, and move the main timeline to another frame.

View 2 Replies

Professional :: Unable To Debug Swf Loaded With Loader

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

ActionScript 1/2 :: Loader Not Linking To External Swf Being Loaded

Jul 13, 2010

I am trying to make this website, which has separate files for different screen resolutions. I am using a first.swf file to load the right file, depending on the screen resolution, it goes to a different frame for diff resolutions. There I have placed a loadMovie function.The code for the loader follows the loadMovie call. loadingbar is a movieclip on screen, which presently does nothing.[code]This was displaying nothing, so I replaced the _root.loadMovie with mcholder.loadMovie("filename.swf"). This is not working either, the screen flashes for one second and then disappears. I put a stop(); before the code, and the screen remained, but the movie still did not load.I txt1.text shows 100. meaning percentage did reach hundred, but I am guessing that is for first.swf, and not for the file which is being loaded.

View 3 Replies

ActionScript 3.0 :: Loader Locks Images It Has Loaded?

Jan 12, 2012

I am trying to create a simple flash that loads an image from my HardDrive. The following is my simple program:

package {
import flash.display.Sprite; import flash.events.*; import flash.display.Loader; import flash.net.URLRequest; import flash.display.Bitmap;

[code].....

View 6 Replies

Flash - Parameter To Swf Loaded With Loader Class

Apr 15, 2010

im loading a child swf into my parent swf and I want to pass some parameters to the child swf.

Here is my code:

var req:URLRequest = new URLRequest( "test.swf" );
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadComplete );
loader.load(req);

[Code]....

View 1 Replies

Actionscript 3 :: Using Loader, Can't Access Properties Of Loaded Swf?

Apr 29, 2010

Main movieclip onstage is : design_mc. Within it is a movieclip already in place onstage with an instance name clipart_mc.also loading a ListBox to the stage and each time a selection is made from listbox myLoader9 is used to load selected .swf intodesign_mc.clipArt_mc.Now within each of the .swf files loaded into design_mc.clipArt_mc there is a mc ike to color transform called color_mc.So now the listbox is onstage and I make a selection that places heart.swf inside of design_mc.clipArt_mc. I want to access heart.swf so I did this:

var child:DisplayObject = myLoader9.content.contentLoaderInfo.content.color_mc;
var colorTrans3:ColorTransform = new ColorTransform();
var trans3:Transform = new Transform(child);

[code].....

View 2 Replies

Flash - Auto-resize Of Loader And Loaded SWF?

Jun 10, 2011

is there a way to set the loaded SWF's height and width to always use 100% of the Loader's height and width? pretty much like when you're embedding a swf to an HTML page... I know that you can do this by setting the width and height of the Loader on every stage resize, but is there another way wherein you can just specify height and width is 100% and then loaded SWF will automatically resize according to stage and Loader's current dimensions?

try loaded a SWF file which has coordinates based listeners and it seems that the loaded SWF doesn't reposition its listeners correctly even if the stage is already resized... take this swf for example [URL] i tried using an SWFLoader in flex which scales the content and also a normal AS3 flash.display.Loader and it seems that both fails to reposition the listeners correctly.

View 2 Replies

Actionscript 3 :: Get Child Of Loader From Externally Loaded Swf?

Mar 17, 2012

READY? Here it is:var TheLoader:Object = parentObj.TheExit as Object;This line gets me to the swf I loaded and I can now change the alpha, move it etc...BUT HOW HOW HOW... do I get one of its children and control get that same control?Example Code:TheLoader.TheChild.alpha = .3; // Does not work!5 days on this issue is WAY TOO LONG! Here is the 3rd post with the same issue but more detail. as3 externally loaded swf from network to control externally loaded swf from network

View 1 Replies

ActionScript 3.0 :: Object Loader Loaded And Not Loading

Jan 27, 2009

I loaded 5 JPG's into specific locations of an array via the URLRequest. So now when I trace my array:

[Code]...

THE PROBLEM: when I scan getXMLlinksArray and see that its NOT null, and i try to addChil to xmlImgHolder and then to spriteHolderArray, I just get a blank space. The debuger is showing that spriteHolderArray contains some loader info and the appropriate URL up until I load it with the existing loader from getXMLlinksArray. Then it says it doesn't have any conentedLoadedInfo.

View 1 Replies

ActionScript 3.0 :: Resize An Image Loaded In Via Loader?

Feb 21, 2009

I need to add the image to an object as a child.. then resize it.. I know how to add it as a child (easy rly)[code]...

View 3 Replies

ActionScript 3.0 :: Loader Object Sometimes Does Not Display Even Though It Is Loaded?

Oct 21, 2009

I have a site loading a large number of thumbs and even a video at the top. Every once in a while the loader object gets stuck. I have an EVENT.COMPLETE on it and it doesn't appear to get called.

Any help? This appears to happen primarily on the first time loading. I am using Safari on Mac for the browser as well, if this makes a difference

View 1 Replies

ActionScript 3.0 :: Stop The Swf At CurrentFrame Which Is Loaded In A LOADER?

May 23, 2010

I've loaded an swf in a loader. Is there any way to stop the loaded swf at the currentframe?

View 2 Replies

Actionscript 3.0 :: Access Png Loaded Into Loader Queue?

Feb 22, 2009

So, i'm currently working on an xml based banner. The banner has seven "pages," each with it's own image and url (specified in the xml file).A preloader loads in the swf, and then another loader in the main swf loads in the xml and images (displaying percent loaded and whatnot).

The problem that I'm running into is that I can't figure out how to access the previously loaded images when I want to call my transition function... I added as many comments in the fla as I could, if there are any questions feel free to post, I'll be here all night.

All in all, I need a second set of eyes to skim my project and help me streamline the process.

[URL]

View 2 Replies

ActionScript 3.0 :: Pass A Variable From One Swf Into Another Using Loader Method?

Jun 17, 2010

I am loading a swf from another swf using the folowing method:[code]How do i pass a variable from the first swf into the second??

View 3 Replies

ActionScript 3.0 :: Passing A Variable To A Loader From The Preloader Swf

Feb 9, 2009

I have a preloader.swf which loads in media_player.swf which is fine. thats all working I also have the preloader loading in a variable from the webpage using flashvars and thats also fine i have that outputting onto a text box so i can see it but what im trying to do is set the source of a uiloader inside the media_player.swf to the variable that im loading into the preloader.swf.

View 1 Replies

ActionScript 3.0 :: Thumbnail Loader Based On Bytes Loaded?

Jul 23, 2010

I have found out that I can not use loaderInfo.getBytesLoaded in as3. I have a gallery located here: [URL]the functionality is almost complete, but my gallery still has issues loading all the thumbnails. It seems that sometimes they wont load while sometimes they do. I have split my thumbnail process into:

LoadThumbs: Loads the thumbs
Callthumbs:Arranges the thumbs

Each function is called once per thumbnail. My problem is that I can not find the bytes loaded information for the thumbnail as it loads. Event completion and preloaders dont seem to help. I doubt it's my alpha tween because the thumbs are un click-able when they are not there. This is the info for my function, with the comments indicating the parts that bring up errors.

Code:

function loadThumbs()
{
x_counter = 0;
y_counter = 0;

[code]...

How do I get the loaded info of each thumb as it loads? Do i need to make a new class file?

View 2 Replies

ActionScript 3.0 :: Loader Not Throwing An Event.COMPLETE When Loaded?

Jun 5, 2009

I've got a loader that I put an event listener on for Event.COMPLETE.  I then add it as child of the stage and call the load method.  The swf it's loading appears on the stage, but the Event.COMPLETE listener is never called.  I can attach a MouseEvent.CLICK event to the loader and that works just fine. 

[Code]...

View 3 Replies

ActionScript 3.0 :: Swf Loaded Via Loader Class Tell The Main Movie?

Jun 10, 2009

If I load an external swf:
 
my_loader.load(new URLRequest("abc.swf"));
addChild(my_loader);
 
abc.swf starts playing - how do I get it to tell the main movie that it reached the end of its timeline and finished playing?  Added bonus: the loaded swf is AS1 and the main movie is AS3.  I'm not sure if I could convert the loaded swf to AS3.

View 2 Replies







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