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


Similar Posts:


Flash :: Pass Parameters In Flex 3 To Variables In A Swf File Using Swfloader?

Apr 28, 2011

I've created a Flash Animation (CS5, ActionScript 3) and converted it to SWF. The flash animation needs the values of 3 variables (defined in the swf timeline) BEFORE it starts running in my Flex application. I've embedded the swf file using swfloader in Flex, but I need to pass the parameters from Flex into Flash before the animation starts. How do I do this?

The way I have my flex code setup below, the variables are not being updated. I get an exception every time it gets to the changeParams function because it can't find "Type", "Num1", etc.

Part of My flash code:

//These 3 variables need to be populated via Flex BEFORE the animation starts...
var Num2:int;
var Num1:int;

[Code]....

View 2 Replies

Actionscript 3 :: Access Variables Of The 'main' SWF From A Loaded SWF By SWFLoader?

Jan 31, 2012

I'm working on a website built in Flex, but the SWF file after compiling is very large. The websites has multiple pages. So I thought to create a new MXML project for every new page and load it with SWFLoader. I've found this example:

[Code]...

View 1 Replies

ActionScript 2.0 :: Modifying Text File Existing Variables

Dec 3, 2009

I'm trying to make an application, with I could change the value of a variable on a text file. The thing is, at this moment I have to modify the text file variables and then upload this last again and again. The file with variables could be a XML file too. I was thinking make something like a guestbook, the problem is, it would create new variables and I want to modify the existing ones.

View 1 Replies

ActionScript 2.0 :: Modifying Checkboxes Component Code To Assign Single Variables

Oct 13, 2003

could anyone help me modify the code for these checkbox components? right now, the SUBMIT button checks which ones of the checkboxes are checked and gets their label, then writes the appropriate labels in a dynamic text box.[code]For the program I am doing, I need to have a maximum of 6 checkmarks and each one of the checked label must go into its own variable. (see gray part of the swf) I would also like the labels to appear in the right order, right now it's inversed.

View 1 Replies

ActionScript 2.0 :: [mx] Modifying Checkboxes Component Code To Assign Single Variables?

Oct 13, 2003

right now, the SUBMIT button checks which ones of the checkboxes are checked and gets their label, then writes the appropriate labels in a dynamic text box.

// HERE IS THE CODE FOR THE Checkbox Components-----------
// Array of the instance names of the checkboxes
myCheck = [one,two,three,four,five,six,seven,eight,nine]; // Function

[code].....

View 1 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

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

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

Actionscript 3 :: Function Running Before Variables Are Defined?

Jun 15, 2010

I am trying to add an init() function to a MovieClip, but when I run the function from scene1 the variables that were set in the MovieClip are not defined yet... The MovieClip was dragged to the stage from the library.scene1:

mc.init(null);
MovieClip:
var _default = 5;

[code].....

View 1 Replies

ActionScript 3.0 :: Change The Name Of The Variables While The Program Is Running?

Oct 19, 2010

I have this code:

ActionScript Code:
for (var j:int = 0; j < 20; j++){
if (values==j){
var "ingredient"+j:"Ingredient"+j = new "Ingredient"+j();

[Code].....

it doesn't work for what are probably obvious reasons but I show it to give you an idea of what I'm trying to do which is change the name of the variables while the program is running.

View 6 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 :: 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







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