Flash :: Passing Values From 2 Flex Movies?

Oct 28, 2010

I have a flex compiled swf module inside my flex program I just need to pass it some values like I do it when I use chat.swf?username=john : that works !

I tried it with flex swfLoader and Image

SWFLoader source="../bin-debug/chat.swf?username=john"
Image source="../bin-debug/chat.swf?username=john"

This does not work: these values are not passed !

View 1 Replies


Similar Posts:


Flex :: Passing Values Between Functions

Jul 2, 2009

is there any way to locally define a variable in a function and then pass it to the oher function. I mean to say is it possible the pass a local value from one function to other function.

View 3 Replies

Flex :: Passing Values To Function Using Alert Window?

May 12, 2011

I have a function that checks for something when the user clicks a button. if that something is found, an alert comes up saying that it has been found and asks them if they would like to allow this to happen, or undo the action that caused the something to be found. the code looks like this:

Alert.show(thisString1, "Conflict: Multiple Projects", 3, this, conflictAnswer);
upon pressing "Yes" or "No", the conflictAnswer function will be called... it looks like this:
private function conflictAnswer(event:CloseEvent):void[code]....

but it didn't work.

EDIt: After reading the first respond, i've come up with this:

answers[0] = cPositions[i][0];
answers[1] = cPositions[i][1];[code]..........

View 1 Replies

ActionScript 3.0 :: Passing A Parameter Between Flash Movies

Nov 15, 2009

I have a flash movie for drop down menus that is called by all flash/movie banner sections of my site. The banner movies use FlashVars to set the heading and an image. The trouble is that the flash menus also were set to use a flashvar to dictate the context of the menus and leave one top level menu highlighted to show the content to the user. I have not been able to get both of them to use the Flashvars functionality. The html page calls the banner movie directly and it can therefore access the Flashvars. The menu swf however - which is not called from the html page but instead is called from within the banner movie - cannot access the flashvars variables. That leaves me with two choices:
 
1. Either use a different method for passing the context variable to the menu movie.
2. HTML code calls the banner movie. I can continue using flashvars and get the context variable by reading it from within the banner movie - and then somehow pass the value down to the menu movie if that is possible.

View 20 Replies

ActionScript 2.0 :: Passing Variables Between Flash Movies (again)

Dec 23, 2002

Basically I have a button which can be clicked to load an external movie, the external movie loads an ASP script.Dependent upon the button clicked I want to be able to execute different SQL statements.

View 4 Replies

Xml :: Passing Dynamic Values To Xml File - Flex Fusion Charts?

Mar 18, 2011

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

[code]...

how do i pass upperLimit="", dial value="" and maxValue="" values in colorRange dynamically from the flex side. i need these 3 values to plot on the angle gauge fusion chart

View 3 Replies

ActionScript 2.0 :: FMX: Passing Variables Between Flash Movies On Different Html Pages?

Feb 21, 2003

Does anyone know of a good way to pass variables between flash movies on different html pages? Should I use a flash cookie? pass the variables in the URL of the html file and then try to get them back out on the next page?

View 3 Replies

Flash - Passing Values From FLA To AS3

Mar 17, 2011

Can I pass values from fla to AS3. Example I have fla file where the xml faile loaded. Now I want to make button "Button 1" and "Button 2" now if I press the button it sent to AS3 values/variables.
private var xmlURL:String = "xml/Button1.xml";
After buttone 2 is pressed is
private var xmlURL:String = "xml/Button2.xml";

View 1 Replies

ActionScript 1/2 :: Passing Values From Flash To PHP

Oct 19, 2009

I am using AS2 and passing some values from flash to php, flash files is on page file1.php values are passing fine, it pass values when user click button. When button is pressed
{ var myVal:LoadVars = new LoadVars();
myVal.flieName = "fileid1";
myVal.send("file1.php", "_parent", "POST"); }

When it pass the values, it refresh the page and Flash File is also refreshed and Flash file start from frame 1 and all the values on flash becomes default in other words when user click "file1.php" is submitted, so the page is refreshed What is the solution, that after passing values the page remains or flash remains as it is (not refresh the contents).

View 1 Replies

ActionScript 2.0 :: Passing Some Values From Flash To Php?

Oct 19, 2009

I am using AS2 and passing some values from flash to php,flash files is on page file1.php values are passing fine , it pass values when user click button

when button is pressed {
var myVal:LoadVars = new LoadVars();
myVal.flieName = "fileid1 ";
myVal.send("file1.php", "_parent", "POST");
}

Problem : when it pass the values , it refresh the page and Flash File is also refreshed and Flash file start from frame 1 and all the values on flash becomes default in other words when user click "file1.php" is sumbitted , so the page is refreshedWhat is the solution , that after passing values the page remains or flash reamins as it is ( not refresh the contents )

View 1 Replies

ActionScript 2.0 :: Passing Values From Php To Flash 5?

Aug 5, 2002

I need to know how to get my graphical PHP counter's value from PHP into flash 5.

View 3 Replies

ActionScript 2.0 :: Passing Values From URL To Flash?

Sep 24, 2007

I'm making a Flash invitation to a party, and I want to send it via e-mail.So I want to pass a variable to Flash in the URL like this:

[URL]

Flash contains a list of people invited to the party. So when Flash reads nameID = 23 it shows the name linked to # 23.E.g. "Dear Thomas, please come to my party bla bla bla..."This way I only have to change the nameID in the e-mails I send.

HTML Code:
<param name="movie" value="invitation.swf" />

With this:

HTML Code:
<param name="movie" value="invitation.swf?nameID=23" />

But it is hard coded and I don't know any javascript. make a script, that takes the nameID from the URL and puts it behind the "invitation.swf" in the index.html file?

View 2 Replies

Asp.net :: Passing Values From Flash To Initialize Session

Aug 13, 2011

I implemented a kind of Bio metric login in Flash. Now, my flash is detecting person and authentication him. But all I need if after bio metric authentication some information to be passed from Flash to my ASP.NET as to initialize session. Is it possible to pass authentication code from Flash file to ASP.NET page?

View 3 Replies

Flash :: Passing Values Through Functions In Mxml?

Feb 11, 2012

I currently have a basic application where we have multiple buttons, which have functions activated by "click" event listeners on those buttons. The issue is that each button does more or less the same function; just the data that is loaded for each button is different. How do I make it so I'm able to recycle the same function? In Javascript or AS3 something along these lines would be done...

<s:Button id="btn_1" x="378" y="601" label="Button 1" click="photoSwap(event,"image1.jpg")"/>
<s:Button id="btn_2" x="350" y="601" label="Button 2"

[Code].....

But that's obviously not how it works. I've tried trouble shooting the issue but haven't been able to find anything. It works when I have each button having its own function, but that seems really silly and shouldn't need to be done.

View 1 Replies

ActionScript 3.0 :: Passing Color Values From XML To Flash

Aug 4, 2009

I'm facing a strange little problem trying to transfer values from an XML file to my main Flahs document class.[code]

View 5 Replies

Actionscript 3 - Flash Player Passing Values From Url As GET Method?

Sep 20, 2011

I am making a audio flash player which will play a sound passed to it.How can i pass the values from a browser url?like i have to write

[URL]

in browser and swf will parse it to play the file from the location passed as GET parameter 'file'. How i can do it in as i am using Adobe Flash CS4 Professional with actionscript 3.0

View 2 Replies

ActionScript 2.0 :: [FlashLight 2 + FSCommand2] Passing Values From Flash To JS?

Mar 28, 2007

Does fscommand2 work like fscommand with javascript to execute javascript commands locally? I have tried several methods and not been able to get fscommand2 to pass values back to localized javascript in a way similar to fscommand.

edit: I just realized I used FlashLight instead of Flash Lite.

View 2 Replies

ActionScript 3.0 :: Passing Dynamic Values Into Flash Movie To Play A Video?

Jan 23, 2009

I have a page that list movies when you choose a movie it should play into my flash file the as is below.this is the are that calls my movie

Code:
stream.play("97363-49264.mp4");
Code:

[code]......

View 7 Replies

ActionScript 2.0 :: [mx]passing Variables Between Movies?

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: Passing Movies OnRelease?

Jun 16, 2004

m using the following code for my main four buttons -

Code:
button_array = ["home","plans","terms","contact"];
for (var i in button_array){

[code].....

View 4 Replies

ActionScript 2.0 :: Passing Data Between .swf Movies?

Dec 1, 2006

A map of the US comes up and users will select where they work, before getting to the next page, which is a form where they fill out the rest of their contact information. The Submit button sends the form variables to a php file on a different server which then stores their info in a database and will take the "location" variable from the map (in the previous .swf) to send the user the correct demo map.

My vars from the form post to the PHP and a confirmation e-mail is sent to the user etc. etc. this works fine...i'm just confused as to how to send the location variable that was pre-selected to send along with the form.

View 3 Replies

ActionScript 2.0 :: [mx] Passing Variables Between Movies

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: Passing Variables Between Movies?

Sep 4, 2002

I have been receiving great help for the past few days on many different things, and now I have another issue. I am creating a form in an SWF that pops up in a window over my main site. Is there a way to pass the information that the user submits in that form to my main movie? Or will I have to embed the form movie into my main movie? Is there a tutorial dealing with this? Also, since I'm asking, is there a way to save information to a text file using ActionScript or Flash, or whatever? I was thinking the other thing I could do would be to save the information in a text file, then dynamically load it in a text box on the main site.

View 1 Replies

ActionScript 2.0 :: Passing Arrays Between Movies

Jul 16, 2002

I have a SWF movie ("bits.swf") with an array ("things") variable in it. I use loadMovie to load bits.swf into my main movie. Q: how can I read/use/transfer the values in array "things" from my main movie?

View 4 Replies

ActionScript 3.0 :: Passing Information To Movies In UILoader?

Apr 12, 2011

I want to pass information to a Movie Clip (swf) loaded into a UILoader component on the stage. I need to be able to do this so I can synchronize the actions of multiple Movie Clips in the main movie clip. What's the proper way of accomplishing this?
 
An example of how I'd use it is when I'd load a video to the stage and I'd want to tell my audio player to mute the volume on the background audio.

View 3 Replies

ActionScript 2.0 :: Passing Variables Between Movies And Do Action

Apr 14, 2002

I have two movies: m1 and m2. In m1 I set a variable to variable="yes". Now, I want m2 to read the variable and do an action depended on the variable (see the example below).

This is the AS in m1:
on (release) {
docufield = "background.txt";
}
And this is the AS in m2:
this.loadVariables(docufield);

View 7 Replies

ActionScript 2.0 :: Passing Values Via URL?

Aug 17, 2010

I have committed to doing something that I thought would be really easy, but I can't get it to work.I want to be able to call an HTML page containing a Flash movie and have that Flash movie pick up a value from the URL of the page in which it sits.So, I want to create a link to the HTML page such as: then want the Flash movie on mypage.html to read in the value John and put it into the movie variable myname.I can see how to do it using pre-coded parameters as part of the HTML that loads the SWF, but I want the value to be determined by the calling link, not predetermined within the HTML on the movie page.I also don't want to have to create a dynamic HTML page for my movie if I can avoid it.

View 3 Replies

Javascript :: Passing An Array Values From Html Into Flash Array?

Oct 20, 2011

anyone knows how to pass an array values from an HTML into flash? Well, to begin I'll discuss what am I doing. I edited a twitter widget javascript which search tweets based on the hashtag I needed then passing it on an array per tweet and then displaying it using a <div> it updates once every 5 minutes. Now I want to display those tweets on a dynamic text on Flash. Let's say I will have 5 dynamic text placed on my flash file then; I want each of those dynamic text to have the tweets I have based on on my HTML arrays to be displayed in random.

View 2 Replies

ActionScript 3.0 :: Passing Values To Swf While Loading?

Mar 24, 2010

i have done a template for an elearning project. in that iam loading a swf with in another swf when click on a lesson button. the second swf will load a xml file. I want chang the xml file name while loading the second swf within the first swfto pass the variable or a value while loading a swf within a swf. i got struct up.. iam in pressure

View 1 Replies

ActionScript 3.0 :: Passing The Values Using URL Into Swf File?

Jun 30, 2009

I have a scene in flash, where I have two movie clip buttons. Each button is labeled with "over", "down" and "up" state. I am using an URL with a variable at the end: [URL]. When the value is equal 1 I would like to see the "over" state on the first button.

I have following code in AS 3.0

Code:
// VARIABLES
var button = root.loaderInfo.parameters.button;
if(button == null)

[Code]...

But unfortunately it is not working. I created a dynamic text field, where I want to display the value of the variable I am passing, but I dont know why it is not updated, when I type the value in the address bar.

View 1 Replies







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