ActionScript 3.0 :: Flex Accessing A Movies Library Through SWFLoader

Apr 11, 2010

I'm looking into using Flex as a level editor for a flash game project I'm doing for my degree.

However I would like to load the actual game.swf (where all the artwork is done) into the Flex editor, populating a tree/list with all the symbols in the library so they can be visibly referenced in the engine while you are building up your maps and levels.

Is this even possible? I've been doing some research for the past few days and I've found bits. Like this:

Code:
var loader:Loader = new Loader();
loader.load(url);
loader.addEventListener(Event.INIT, callbackFunction);

[Code]....

This works if you know the instance names of each symbol in the library, is there a way of getting a list of them all so I can loop through something like the code above or simple getting an array of all the symbols?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Movies - Accessing A Button After Have Attached It To The Stage From The Library

Jun 1, 2007

I am having problems accessing a button after I have attached it to the stage from the library... My code is as such:

[Code]...

On the rollover - the movie recognises nothing as executable. OK >> Yes - I have linked in the properties, an identifier for AS Export .. for the original map_functions, inside it is an MC called close_mc - This MC is linked for AS Export as close_mc Why is this not working? PS. the function calls are from Lacos Tween engine.

View 6 Replies

Flex :: Swfloader - Load A .swf And Use Its Library?

Jun 12, 2009

I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list and control it's timeline?

View 2 Replies

Flash :: Accessing .FLV Movies On A Virtual Directory In IIS 7.5 Using FlowPlayer

Aug 30, 2011

I have a website setup in IIS 7.5 with a virtual directory pointing to a local folder outside of the www root of my website e.g:

the website is c:website

the virtual directory is in c:images

I use flowplayer to play my movies, when I put the movie path in my website root directory structure, say c:websitemoviesa.flv it works fine in the player, but if I put them inside the virtual directory and point the player to play it from there using a relative URL, it doesn't work

I suspect that this has to do with either permissions or flash configurations to allow it to access directories outside of the scope of the website, but I have no idea where to edit such settings

View 1 Replies

ActionScript 3.0 :: Loading Movies From Library Into Movieclip

Feb 5, 2011

I have a series of movies in my library (called page1, page2, page3... page87) and I'm looking to load the first one into a blank movie (called pageHolder).Using 'next' and 'previous' buttons, I then want to unload and load the next in the series of 'pages'. I'm trying to work out the best way to do this using addChild and removeChild, but not having much luck. I've read that the best way to do this entire sequence is to set up an array, but I have no previous experience with arrays.

View 2 Replies

ActionScript 3.0 :: Loading Movies From Library According To Array

Mar 16, 2011

I have 5 movies in my library, called question0, question1, question2, question3, question4. I linked them with export for actionscript. I have an Array, called questions. Then I have a button that calls the getQuestion function. But I get the following error:

[Code]....

View 2 Replies

Flex :: Flex: Swfloader - Flash File Overlaps It's Configured Size?

Dec 7, 2009

i'm using swfloader to load swf file in the middle of the screen using the following command:

<mx:SWFLoader id="game_swf" source="crazy_counting.swf" x="198" y="0" width="721" maxWidth="721" height="531" maxHeight="531" />

now stage of the flash file takes the exact size that i stated by the flash file itself is overlapping the stage with some graphics

View 3 Replies

Flex :: SWFLoader - How Integration Is Done

Oct 10, 2010

Flex is good at produce code, whereas Flash is good at animation, how the integration is done? If I want to insert the animation produced by flash, what's the recommend way to do the integration? Do I need to use SWFLoader?

View 1 Replies

ActionScript 2.0 :: Loading Random Pictures - Load Movies That Are Already Imported In The Library?

Sep 22, 2004

i know this code loads movies dynamically:

[Code]...

but how would you load movies that are already imported in the library???

View 1 Replies

Flex :: Control SWFLoader Volume?

Jul 2, 2009

I am doing a elearning project in flex and it consist in a secuence of swf files and a player that load it based in a xml file, the problem is all swf files contents narrations and I need to control the volume of narrations from the player interface, anybody know how I can control the volume of a swf file from flex??

View 1 Replies

Flex :: Take Screenshot From Loaded Swf From Swfloader?

Dec 27, 2009

can i save a screenshot from a loaded swf using the SWFLoader class ?

View 1 Replies

Flex :: Swf - Hide Component From SWFLoader

Jun 15, 2010

How can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file?

View 1 Replies

Flex :: SWFLoader Border Resize?

Aug 29, 2010

I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets resized to 1027X660, but the border remains 800x500, and the remainig area of the window stays blank.

View 1 Replies

Flex :: Difference Between SwfLoader And ModulLoader?

Feb 18, 2011

what is difference between swfLoader(load application) and ModuleLoader(load module)?

View 1 Replies

Flex :: Unload Swf File In SWFLoader?

Mar 10, 2011

In Flex 3 I have a SWFLoader[url]...

and after some time I invoke player.unloadAndStop(). And I always get this error:

ReferenceError: Error #1056: Cannot create property __tweenLite_mc on _swftest_mx_managers_SystemManager.

View 1 Replies

Flex :: Swfloader With A Swf Which Loads Another Swf File?

Mar 23, 2011

I have one Swfloader. This swfloader loads file A.swf.On creationComplete event, File A.swf loads another swf(file B.swf).

Everything works fine when I run the application once in the same machine.But when I run two or more instance of the application, the first works fine (both file A and B are loaded) but the second swf (file B) is not loaded by file A.why the first swf (file A) doesn't load file B, when the application is running in multiple instance ?

View 1 Replies

Flex - Transparent Background For SWFLoader?

May 20, 2009

I created a "Loading" spinner in a SWF. I display this spinner in my main application SWF using SWFLoader.How do I make the SWFLoader transparent? Currently it uses Flex's default background color even though I've set backgroundAlpha="0".

My spinner SWF's main MXML: (Note the use of backgroundAlpha)

[Code]...

View 2 Replies

ActionScript 3.0 :: Hide Flex Component From SWFLoader?

Jun 20, 2010

How can I hide (visible=false) a component and what AS3 code to use to hide a Flex Component from an external swf file?I have found out this doc, but I have no idea on how to implement it:

View 1 Replies

Flex :: Control SwfLoader And Sound Content

Aug 25, 2009

i am doing a project and i am loading .swf files in a FLEX 3 SWFLoader. i made a HSlider as a seeker to control the .swf file (forward and backword); BUT... if the swf file has sound and i drag the seeker forward or back word the sound does not effect i want to control the sound as i control the swf file note:: the sound is in the .swf file not loaded

View 1 Replies

Flex :: Detecting The Size Of SWFLoader Content?

Sep 23, 2009

I want to load in a SWF and set it to fit in the window, whilst keeping it's aspect ratio.When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it's aspect ratio).However I can't find a way to detect the height and width of that SWF now it has been resized. The size of the SWFLoader reflects what I set it to, and the SWFLoader.LoaderInfo size seems to be totally random.

I have also tried the loaderInfo.content, but again I don't get a value that compares to the size of the SWF I have loaded (or at lease the size of what is visible).The only thing I can think to do is to know the height and width before and then figure out the aspect ratio, so if I resize the width to 50% of the window, I can do the maths on the height to make the swf loader the same height as it's scaled content.

View 1 Replies

Flex :: AIR SWFLoader CPU Usage Takes Over 50 Percent

Mar 5, 2010

I have an AIR application, I use SwfLoader to load another swf file to display in this app. The problem is the CPU Usage always takes over 50%, but it only takes 15% when the swf file runs in standalone mode.

View 1 Replies

Flex :: Play Youtube Video Using SWFLoader?

Nov 2, 2010

How can i play youtube video using SWFLoader?

Currently, i can play only 1 video at a time (suppose its name is A), if i try to play video B it doesnt play it. but if again i play vidoe A, it works.

View 1 Replies

Flex :: Specify ApplicationDomain.currentDomain When Loading Via SWFLoader?

Jan 26, 2011

I'm using Flex Builder 3 to build what will be a fairly large project. I'm suffering from modules stepping on each other and a conflict between application/module. My structure looks something like the following:

[Code]...

View 1 Replies

Flex :: Modifying Variables In A Running Swf From An SWFLoader?

Jun 23, 2011

I have a flex application that's compiled with flex 4.1.I want that flex application to load an swf that contains the variable score and i want to be able to modify this variable.I wrote two versions of swf, one compiled with as2 code and the other with as3. this is my flex application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]......

View 1 Replies

Flex :: Alert Gives PopUpManager Error When Used With SWFLoader

Jul 13, 2011

I am using SWFLoader to load a swf file. The code is below:[code]

View 2 Replies

Flex :: Memory Leak When Using SWFLoader In Adobe AIR

Aug 11, 2011

I'm trying to load windowed sub-application in another windowed application, The requirement is to replace one loaded application with another on user action.

I tried the documented method of unloadAndStop() on the swfLoader in the main windowed application, but somehow during memory profiling I could see the instances of those applications were maintained in the memory even after explicitly running garbage collection.

Where as If I make those windowed application as modules, and then try to load them using the Moduleloader things work smoothly and unloaded modules are removed from memory.

View 2 Replies

Flex :: Event Sets The Dimensions Of A Swfloader?

Aug 18, 2011

I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.

View 1 Replies

Flash :: Flex SWFLoader Speeding Up Animation?

Nov 30, 2011

I am using SWFLoader to load a little animation into my flex environment but for some reason the animation is sped up a lot. This is the case with all of the animations I tried. Is there a way to slow it down or fix this?

View 1 Replies

Flex :: Getting Handles To Dynamically Created Swfloader?

Dec 31, 2011

How I can change frame of dynamically created swfloader in Flash Builder 4.5?

View 1 Replies

Flex :: Scroller On Swfloader Dying On Zoom?

Feb 23, 2012

I have a swfloader object on to which i want to zoom into (with respect to a point).... this i achievedinternet.But now i notice that when i zoom into a point the scroller on the swf loader doesnt work anymore....Code i am using below..on how i could correct this problem???

<s:Scroller id="scrollme" width="100%" height="100%" >
<s:HGroup id="mapView" width="100%" height="100%" clipAndEnableScrolling="true" >
<s:SWFLoader id="img" autoLoad="true" addedToStage="img_addedToStageHandler(event)"

[code].....

View 2 Replies







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