ActionScript 3.0 :: Passing Variables To External Swf Files

Apr 14, 2011

I am loading an external child swf file into a MovieClip container in my main swf.I have a button in my child swf that when clicked, needs to be able to access a movieclip or variable that is in my main parent swf. How would I do this??

View 1 Replies


Similar Posts:


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

IDE :: Passing Variables Between SWF Files?

May 21, 2009

I have a flash file that I made that displays a scrolling newsfeed (I'll call it newsfeed.swf)... I published it to an SWF. Now, I created a new flash file that I would like to use to show many instances of newsfeed.swf. In my new flash file, I have the following code:

this.onLoad=function(){
mcNewsfeed.loadMovie(http://www.whatever.com/newsfeed.swf?s=MSFT);
}

In theory, when newsfeed.swf starts up, the ?s=MSFT variable should be passed in at the _root level such that I should be able to reference it and build the newsfeed to be displayed dynamically. I've tried several different things, but no matter what I do, the following code (the _root.s part) in newsfeed.swf returns "undefined":

newsfeedURL = "http://finance.yahoo.com/rss/headline?s=" + _root.s

I would prefer to not have to pass XML files between the swf files or use system objects as that would add a level of complexity I'm not ready to deal with (I'm a total noob at this stuff)...

View 2 Replies

IDE :: Passing (URL) Variables Between Two Swf (html) Files?

Mar 22, 2009

how do I passing variables between two swf (html) files For instance how can I request the variable "var_1" in the file blikvanger.swf (or blikvanger.html).Here is my code of one as file (contact.as):

Code:
...
homelink.addEventListener(TextEvent.LINK, linkHandler);
homelink.htmlText = "<a href="event:../blikvanger.html">THUIS</a><br>";
homelink.styleSheet = myCSS;

[code]....

View 5 Replies

ActionScript 3.0 :: Loading An External Swf File And Passing It Some Variables

Oct 30, 2010

I'am trying to load an external swf file and passing it some variables. He is my code:

[Code]...

When i load a simple swf, it work fine, but when i try to give him some variable it does not work anymore.(i'am also muting sound)

View 1 Replies

ActionScript 2.0 :: Passing Variables From External Swfs To Main And Vice Versa

Jan 12, 2010

I wonder if it is possible to pass values from external .swf files to the main projector (.exe) file.? I would also like to know how a button of an external swf file can control the playhead of the main .exe file.

I have this map of tasks. and each map have these houses which when clicked will take you to a certain task(external swf). and when accomplished should have a button to take you back to the map(main swf), and also the button to send a value to the main swf that the task is accomplished.

View 2 Replies

ActionScript 3.0 :: Referencing Variables/objects From External FLA Files?

Dec 1, 2010

I am trying to display in 'Reciever.swf' the value a shared object updated in 'TextSO.swf'. The following is my code for the Reciever

Reciever.as-----------------
package {
import flash.events.SyncEvent; import flash.events.NetStatusEvent; import flash.events.MouseEvent; import flash.net.SharedObject; import

[Code]....

I am getting an error that says that 'text_so' is an undefined property and that I can't access it. Yes, I have not declared 'text_so' in 'Reciever.as'. However it is the shared object instance from the 'Text_SO.as' file. How do I reference it from the 'Reciever.as' so that I won't get this error anymore?

View 1 Replies

ActionScript 3.0 :: Referencing Variables / Objects From External FLA Files?

Dec 1, 2010

I am trying to display in 'Reciever.swf' the value a shared object updated in 'TextSO.swf' . The following is my code for the Reciever[code].,...

I am getting an error that says that 'text_so' is an undefined property and that I can't access it. Yes, I have not declared 'text_so' in 'Reciever.as'. However it is the shared object instance from the 'Text_SO.as' file. How do I reference it from the 'Reciever.as' so that I won't get this error anymore?

View 4 Replies

ActionScript 2.0 :: [external Variables] Loading Textformats From .txt Files?

Jun 2, 2004

I want to make a small flash animation in which the user can specify what text and what font/color will be used throughout the animation, by typing in the text file.On with the code which is of interest:

Code:
//Mouse.hide();
since1_txt = "";
since2_txt = "";
thename = "";

[code]...

Of course, the movie clips contain this text and all works fine if I specify it this way.So I have this in my "actions" layer on the first frame and apart from the fact that it works if I specify the formatting within the actions, it's all good. But now comes the fact that I want to specify my textformat options within the text (.txt) file. So I'd specify two color sets (in RGB hexa sets, 0xFF0000 for example), the font (in this case, tahoma) and the three sizes, and have them assigned to myTextFormat's dynamically through loading, using, for example,

Code:

myTextFormat = new TextFormat();
myTextFormat.align = left;
myTextFormat.color = theColor1;

[code]...

Which doesn't work because i can't seem to get the myTextFormat.font = Tahoma; to work if i use myTextFormat.font = theFont; because it is, perhaps, searching for a font called "theFont" instead of taking the reference to the variable within the text file.

View 6 Replies

ActionScript 2.0 :: [external Variables]Loading Textformats From .txt Files?

Jun 2, 2004

I have just recently joined and am enjoying the multiple forum q&a's and the tutorials around here. I want to make a small flash animation in which the user can specify what text and what font/color will be used throughout the animation, by typing in the text file.On with the code which is of interest:

Code:
//Mouse.hide();
since1_txt = "";

[code].....

View 6 Replies

ActionScript 3.0 :: Use Stage Variables And Function from External loaded Swf Files?

Jul 13, 2010

How can use stage variables and function  from external  loaded swf files.& Can Possible  without using parent.parent fromat, can possible root.format if  possible how .

View 1 Replies

ActionScript 3.0 :: Use Stage Variables And Function from External  Loaded Swf Files?

Jul 13, 2010

How can use stage variables and function from external loaded swf files.& Can Possible without using parent.parent fromat, can possible root.format

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

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

ActionScript 3.0 :: Passing Variables To PHP?

Nov 19, 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 four days.. Here's what I have done.

header.fla [Actionscript in the timeline]

Code:
stop();
import flash.events.Event;
import flash.display.Sprite;

[Code].....

View 5 Replies

ActionScript 2.0 :: Passing Variables From SWF To SWF

Sep 4, 2005

I am using FLASHVARS to pass a variable (Status) from ASP to Flash.This piece of Flash (named Header), calls another SWF (named InOutPencil) using this command:[code]My problem occurs when I try to use the Variable 'Status' in the InOutPencil SWF (below).[code]I need a way of passing the value of the variable 'Status' from Header to InOutPencil.

View 3 Replies

ActionScript 2.0 :: Passing Php Variables?

Feb 24, 2006

I need to pass the following php information into flash...

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$link = "<img src ="$mosConfig_live_site/images/comprofiler/tn";
$link_gallery = "<img src ="$mosConfig_live_site/images/comprofiler/";

[Code]....

This php script displays the top 20 users from a database based on their hit count. The script passes their avatar (image), username and link, as well as total hits.

I wanted to create a flash file with one movieclip that would parse the php file and display the results in an i++ fashion, so that I could make changes to only one mc instead of 20, when needed.

I have tried making a dynamic text field an mc, and assigning the loadvars object to that mc... but can't get any information to display... and I know the php file works like a charm.

View 10 Replies

ActionScript 2.0 :: Passing Variables Into A MC?

Nov 21, 2007

in my main movie, i have done a survey, see my previous thread which collects data from a series of radioButton groups. i can display this data using dynamic text boxes no problem, however i also wish to display this data in a separate swf which has been loaded into the main movie via a movieclip using

Code:
_root.cm_handler.loadMovie("movie2.swf");

View 1 Replies

ActionScript 3.0 :: Passing Variables From PHP?

Aug 31, 2008

i got this working in AS2 and PHP, but i can't use the VAR option on the dynamic text ... so how would i do this in AS3 ?

here's the simple code

using AS2 and PHP 5.2.6

ActionScript Code:
//
// create an object to store the variables
varReceiver = new LoadVars();
// load the variables from the text file

[code]....

and the PHP Code in info.php

PHP Code:

<?php$fName = "nuno";$lname = "mira";$age = 24;// echo or print the variablesecho ("&fName=$fName&lName=$lName&age=$age&");?>

View 6 Replies

ActionScript 2.0 :: Passing Variables Between .swf's?

May 11, 2002

I'm trying to get one movie to send a variable to another movie. how to check the string that's being sent, and have the movie do stuff based on what string is being sent (if (string=="bla"){gotoAndPlay("bla");}.

View 5 Replies

IDE :: Passing Variables To Flash?

Aug 7, 2009

So, I read the tutorial about passing variables by changing the url of the .swf with the following code:

Code:
if (movie==1 or movie=="") {
trace("default");
}

[Code]....

My question is, is there anything special if I want it to respond to the url of a .php page? So, if I have a page that ends in "?page_id=2" could I do the same thing or does it have to be an .swf?

Code:
if (page_id==1 or page_id=="") {
trace("default");
}

[Code]....

View 2 Replies

ActionScript 3.0 :: Only Some Variables Passing Through Php?

Feb 25, 2010

i have even hardcoded in data and it wont pass through. i have 5 other variables that pass through and i cant get these other 2 to pass.

View 1 Replies

ActionScript 3.0 :: Passing Variables To SWF

Jun 11, 2010

I have been trying to pass a variable to a SWF. From the research I have done it seems pretty straight forward, but I cannot seem to get it to work. I am wondering if it has something to do with the way the SWF is added to the HTML page. Would someone take a look at this for me?

[Code]...

View 2 Replies

ActionScript 3.0 :: Passing Variables From Php To Flash

Feb 14, 2008

I have a problem using a very simple URLVariables script with php.The thing is this sample do works on some servers and doesn't on other:Instead of having the correct values with trace, I get the php code itself.That means I get the following string in trace():[code]I know it comes from the php configuration on my server because I tested it on another server and it works, but I can't find what I must change in my php.ini file to get the good results in trace();

View 3 Replies

ActionScript 2.0 :: Flash8 : Passing Variables To PHP?

Mar 3, 2009

Ive got a script lined up:

Code:
onEnterFrame = function(){
if(aktiverPublisering == "true"){
function avpubliser(){

[code]....

Ive checked if "aktiverPublisering" traces "true", and it does (it declares "true" through a button)... So, here's the weird part...i cant get a trace inside the IF statement i.e. its not working...

View 2 Replies







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