ActionScript 3.0 :: Passing Var To Class1 From Class2?

Apr 3, 2011

how to pass the value of a variable in class1 to class2?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: When Xml Is Loaded Class2 Dispatches A Complete Event

Nov 30, 2008

My class is dispatching 2 events. One event is captured by another class, and the second event not.I have 2 classes. Class1 creates an object of Class2 and calls a function to load an xml. When xml is loaded class2 dispatches a Complete event. This event is listened by Class1 and then it calls another function of Class2. When the second function executes completely Class2 dispatches second event. Now the problem starts. Class1 is not able to capture this second event. Whereas while dispatchEvent is called from class2, it return true as a notification that the event is dispatched successfully.

View 6 Replies

Flash :: Passing A "control" As Parameter Vs Passing Id Of The Control?

Jan 2, 2012

1) Passing a control itself as parameter into a function 2) Passing an id ( managed manually) of the control as a parameter into a function . Say for an array of controls I have ctrl_Array = [ my_btn, my_mc, my_dtg ] and corresponding id_Array[0,1,2] PS: If my question is difficult to understand, i just wanna know, if it is a good programming practice to pass control references among the classes as function parameters ?

View 1 Replies

CS3 Passing A Variable Through A URL Into A SWF

Aug 22, 2009

I have a flash file that has an XML driven menuing system to select and play various FLVs. I want to be able to craft different URLs to open the swf and start playing different FLVs. (The others will be accessible from the menu once the sfw is opened, but I am looking to control what plays on opening, dependent on what link a user click.) Not really sure about the best way to get the selection into the swf.

View 4 Replies

Actionscript 3 :: Passing Var To Php?

Jul 28, 2011

This is my php code to check how many time the page is calling.

if($_SESSION['test']==''){
$_SESSION['test'] = 1;
echo " cond 1 ";
}

[code]....

My problem is , I am calling the php page only once, but it is calling the page 2 times.

View 2 Replies

IDE :: Passing Vars From A SWF To New SWF?

Feb 26, 2008

I think this should not be a big deal, but I do not get it to work. I got a "MainFlash" witch loades an XML with about 60 variables (Settings), in base of a paramater then this "MainFlash" loades another "FlashMovie" and this one needs, all, the same Variables too.

How do I properly pass all the Vars in the new/other "FlashMovie"?

U need to know I use LoadMovieNum to Level 0 I do replace the "MainFlash", cause the new loaded "FlashMovie" can have a completly different height and width ( ...I don't think it's possible to change the Document-Setting in a compiled swf, or is it? If this is possible I would not need to load a separate swf to Level 0. the main SWF usually ist about 320x180, the following can be 2x, 3x bigger...

View 2 Replies

ActionScript 2.0 :: Passing XML To Another Swf

Aug 28, 2008

I have my thumbnails loading into one swf and I have another swf on the same page which I want to display the larger image from the thumbnail which is clicked.

I am trying to use local connection - but I am getting stuck on passing the xml or allowing my larger picture swf access to the function which displays the larger image.

It all works fine both larger image and thumbnails in the one thumbnail swf. But this is what I want to break apart into two swf's if possible??

how to pass xml functions which displays images through local connection.

View 1 Replies

ActionScript 2.0 :: F 8 - Passing Variables From One SWF To Another?

Feb 8, 2009

I have a swf with an input text box and a button. When the button is clicked, I need it to open another swf in a new window on a different domain and pass the variables to a dynamic text box in the new window. I looked at local connect but I wasn't sure it would work because the two windows wouldn't necessarily be loaded at the same time and they are on different domains.

View 4 Replies

ActionScript 2.0 :: Passing Variable To Url?

Aug 17, 2009

I have a site that uses an user id that needs to be passed from links with a flash banner. I have it working, but not the way I need it and could use a little assistance.

[Code]...

View 4 Replies

Passing Variables Between .swf Files?

Sep 9, 2009

I am loading images into a movie clip dynamically from an XML file. Based on what image the user clicks, I would like to be able to open a separate window, displaying a different image. Ideally, I'd pass the variable of which image was selected to the new open window.I've done some research online, and am thinking I'm making this harder than it needs to be.

Actionscript from main movie

Code:
chosenImage.onPress = function() {[code]......

I've also seen where I could possibly pass a variable through ASP.NET, but am experiencing the same errors when trying to pass the variable. I suppose I could embed the popup.swf file in a new .aspx page, that would probably be acceptable.

View 1 Replies

ActionScript 3.0 :: Passing Variables On URL?

Jan 6, 2010

I'm using IE 8 and trying to open an HTML file. All files are either local or ran on a server. Problem is I use the URLVariables object, and they still won't get passed. for example:

Code:
var req:URLRequest = new URLRequest("Y:/htmlFile.html");
var urlVars:URLVariables = new URLVariables();

[code].....

View 14 Replies

ActionScript 2.0 :: Passing Variables Between Mc?

Jul 21, 2010

I just want to show the contents of the input data in Movie Clip Movie Clip A into B which is still in one layer.

View 2 Replies

Passing Variables Between MovieClips?

Sep 6, 2010

I'm trying to develop a site map, which draws a tick over the sections of my app that have been completed. I've figured out how to draw the tick and how to pass variables from root to the MovieClip that the function is in.

To make the tick appear only after an mc has been watched, I tried setting a variable equal to 1 ino the last frame of the MovieClip, and telling the function to run if that variable was 1.

I'm not getting compiler errors, but I'm also not getting the tick. And I'm definitely completing the Movie

Here's what I've got so far: In root

Code:
var xcoord = 125;
var ycoord = 300;
var WaterComplete = 0;
In WaterMovie

[Code].....

View 3 Replies

ActionScript 3.0 :: Passing Variables Between Two Swf's?

Nov 25, 2008

I am trying to pass value and string from AS3 main.swf to AS3 child.swf loaded in it. But, Nothing is working and i can't get the value from one to another. As Beginner in AS3, i was working for a long time and
still i face these problems and no output yet.

[Code]...

View 1 Replies

ActionScript 3.0 :: Passing Flashvars From Swf To Swf

Sep 7, 2008

I used almost two weeks to search the Web how to pass some variable/parameter/Flashvar from one swf to another.I have a main swf file, let's call it "main.swf" and here in AS3 I'll call "comonent.swf" with some parameters.All this is easy if I call the component.swf from HTML, but I have to call it from another swf file.[code]My problem is that this doesn't work of course - the method in "getSwfParam" is only tuned to get the parameters if it's coming from the URL string from the HTML page. I can't use "component.swf?age=23" in my call from the main.swf, because it'll confuse AS3 to think that the wole string.IS THE flash file.I tried localconnection and sharedobject too, but I just can't get the sender and receiver part to work together.I only need to send some short codes to my component.swf to tell what it should do.Now I begin to question if it is possible it was in AS2, but now the _root is gone and everything got so d.

View 6 Replies

ActionScript 3.0 :: Passing Parameters To A SWF From A SWF

May 27, 2009

i'm trying to pass variables to another SWF using a Loader/URLVariables combo.
 
I need to know if this way of passing variables should even work. And if not can some recommend a better way.

var uv:URLVariables = new URLVariables();
uv.lang="en";
uv.gameId="123";
uv.profileId="456";

[Code]...

View 5 Replies

ActionScript 3.0 :: Passing A Ref To A MovieClip

Apr 8, 2010

I have two classes, DocumentClass and Icon. In DocumentClass I am instantiating Icon and in doing so passing it a number of arguments. One of the arguments is which symbol (MovieClip) to use in front of the icon being created. The selection of symbols are found in the library panel of the .fla that DocumentClass is attached to.So for example, DocumentClass needs an icon with a symbol of a folder on it, and the name of the folder symbol is Folder.What should DocumentClass pass to Icon as an argument? Should it be a string containing the symbol name, or a reference to Folder? If it is a string, how would Icon turn the string "Folder" into the Folder object? Should all of the icon graphics be instantiated in DocumentClass first?[code]

View 3 Replies

Professional :: Passing URL From FLA To Class

Jul 24, 2010

I have a class that works with an external swf with play, pause and slider. Now that I have all that working, I'd like to be able to pass the URL of the external SWF to the class from the main fla AS. I managed to use a 'set' inside the class to retrieve the name, but it apparently doesn't trigger until after the external SWF gets loaded.

Code snippets follow:
CntlClass:
public var loader:Loader;
private var _urlName:String;
public function CntlClass() {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, movieLoaded);
loader.load(new URLRequest(_urlName));
public function set urlName(value:String):void {
_urlName = value;
}

Main FLA file - other than a controller (cntl_mc) containing a play button, a pause button, and a slider, the only thing in the FLA file is this code in the first frame:
cntl_mc.urlName = "extswf.swf";

View 5 Replies

Professional :: Passing 2 Parameters To A Swf?

Nov 9, 2010

I need to dynamically pass 2 parameter to an swf movie to make it work properly, they are a number and a boolean. To do this I've changed the html page which contains the movie to php, I pass to the page the parameters' values through GET. The values are correctly passed to the page, I've tried to print them.
 
I build the call to the swf in this way collpreloader.swf?connid=<?php echo $_GET['connid'] ?>&animazione=<?php echo $_GET['animazione'] ?>
 
collpreloader.swf correctly reads the connid parameter, but animazione results always true.

[Code]...

View 2 Replies

ActionScript 3.0 :: Passing Variables To PHP

Nov 17, 2010

I am having some trouble in passing variables from AS3 to PHP. I am using flash and php both in the same file [try.php]. I've stuck with this for two days.. Here's what I have done. header.fla [Actionscript in the timeline]

[Code]...

View 5 Replies

ActionScript 1/2 :: Passing Data To Swf

Jul 8, 2011

I would like to pass my SWF file an amount of data (textual).Is there some limit? I am talking about thousands of characters longI know the simple way of file.swf?data="mydata" but I know that you can pass data via "flash vars", when you embed the file in html(<object> How do I pass data in that way? Is it better to just read from a text file?

View 3 Replies

ActionScript 1/2 :: Passing Parameters To An SWF

Sep 16, 2011

I've somewhat decided n Anvsoft flv player for a flash website project. There seem to be many of these players free and otherwise, but they seem to all publish for HTML, not from anothe SWF.. The published html is below, and my question is how to call the SWF from Actionscript 2 rather than HTML? I believe I can figure out the rest of the mechanics to a recent education .

[Code]...

View 17 Replies

ActionScript 3.0 :: Passing XML To Flash Via Php?

Sep 19, 2011

when it comes to using php to pass xml items to flash. Could someone point me in the right direction?i have this xml setup that works fine when pulling in images:

images.xml
<xml>
<image>

[code].....

View 3 Replies

ActionScript 3.0 :: Argument Passing To A .exe?

Feb 26, 2012

I have a .swf file through which i am passing arguments to .exe file which is basically a C++console application, how is it possible, should i tweak the sourcecode in th application file for it to accept the arguments passed?

View 1 Replies

Flex :: Passing A Value From One MXML To Another?

Jul 28, 2009

I am getting a value in a MXML... now i need to pass it to another MXML to invoke an event... how can i do it.

View 4 Replies

Flex :: Passing Array To Php?

Nov 1, 2009

I have a TextInput and a List in my application. I want to send the information written in TextInput and the names of the selected options from the list to a php file.

Following HTTPService sends the TextInput's text and the indices of selected items from list finely to a php file but the selectedItems is not working as i expected. It does not send the names of the selected items

<mx:HTTPService id="configureService" url="configure.php" resultFormat="text" method="POST">
<mx:request xmlns="">
<textInput>

[Code]......

View 2 Replies

PHP :: XML - Passing Variables From Flash

Sep 4, 2010

Creating a flash project where users can visit the site, and turn off/on objects in a house (ie. lights, tv, computer, etc.) The next user who will visit the house in the website, will see what lights or house appliances were left on. Flash variables are passed to PHP, and those variables are saved in an XML file. (For testing to see what is being saved to the XML file, on each click --vars.xml opens.) In the vars.xml file, I see that the house objects that were last turned on--are saved in the XML file- But in the SWF file, only one of the objects that are listed in the XML are turned ON. Only the last object that was clicked on would show ON--not all the objects in the XML file.)

package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.text.*;
import flash.net.*;
public class House extends MovieClip {
[Code] .....

View 1 Replies

Php :: Passing PHP Session Id To FLEX App?

Dec 6, 2010

I'm developing a FLEX application which has a Java Server as back-end.

What I need:

-The FLEX app can only be used if the user it's logged;
-The FLEX app also needs to know which user it's logged, because it will shows especific content about him;
-I need to perform authentication on every webservice call;

However, the webpages are being developed using PHP, as well the login system.

After some digging, I've discovered that I can use the PHP session ID for authenticate every webservice calls, by using the php-java-bridge so both PHP and Java can share the same session.

My problem it's that I don't know how the FLEX app can get the current PHP session ID. I know that it's possible to pass it by flashvars, but I think it's not secure.

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

Flash :: Passing A Variable From PHP To A SWF?

Aug 26, 2011

I'm trying to pass the file name of an image upload PHP script into Flash's UILoader component. So when a user uploads their image, the file name of the file is passed to flash so that the image displays within the Flash UILoader application. Here's the PHP variable I'm trying to pass: $filename= ''; And here's where Flash's UILoader gets it's source (ActionScript 3.0): uiLoader.source = "freshly uploaded file.jpg ($filename)?";

View 1 Replies







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