Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Pass Parmeter In External Swf



Hi,I m working on a module in which i have to load a swf file and access that swf's contain with parameter from main swf file. so i just googleed it but did't get any help. so any one can tell who it is done. or any suggestion



Adobe > ActionScript 3
Posted on: 01/19/2009 10:39:16 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pass External Value Into SWF?
I seem to recall that it is possible to set a variable value within the <object><param></object> on the HTML page and have that value used by the SWF movie. Unfortunately, I can recall where I read it.

Here's what I want to do. I have a Flash button that will appear on a web site. The getURL() needs to have a variable that is externally set so that by changing the variable within the HTML <param> (or however it's done) it can change the page on the web site to which the visitor goes.

I have read about template variables in the Flash5 manual (, but it doesn't really explain how to use them. So, I am not sure if I can use this function or not.

Suggestions?

Pass Xml Into External Swf
I can pass xml into my my main movie, but would like to pass xml into any external swf loaded into my main movie.

I'm doing this now by placing xml loader code into the external .swf file itself.

For example, when the user clicks "about" I want load xml into the blank text boxes on the external about.swf file. I want the xml loading code to only exist in one place(the main movie), not in each of the external .swf files

Thank you
-D

How Do You Pass On Variables From An External Swf To Another?
hi,

i got one swf that contains a container and a menu to load external swfs.

i wonder if it is possible to pass a variable from external movie clip y to external mc z and then to the container.

how do you pass on variables from an external swf to another?

cheers

External AS Code Will Not Pass Through
I can't figure out why script that works in Flash does NOT work when placed in an external AS!? As an example:

employment_alpha_btn.onRelease = function() {
gotoAndPlay("eaccess_rollout_to_employment");
}

This will work when placed on a frame in Flash, but it will NOT work when put in an external AS. However, I have other commands in the same external AS that work just fine:

corpcomp_alpha.onRollOver = function() {
gotoAndPlay("corpcomp_grow");
};

Can anyone help? Can you not do onRelase in an external AS? I'm stuck...

How To Pass Variable Between External Swf Movieclips?
Hello, I'd like to know how to solve this:

I've got a main SWF movie, and inside, there's a menu where each time you choose an option, a scrollPane is created to load another SWF within.

To simplify, I want to load always the same SWF (for instance: content.swf), instead of different ones for each option. So I need to pass a variable or something to this movie in order to let know which content has to be loaded.

How can I do this? I thought on loadVars and a variable stored in a .txt file. But I think different users would interfere with each other.

What Variable To Use To Pass Data From External Swf
The MAIN flash site I am making uses a lot of external .swf movie clips (MAIN flash movie loads the external .swf files into empty movieClip holder, plays and then unloads them).
I wonder if there is a way to set some variable in the external .swf file and pass its data *or its contexts* to the MAIN flash movie (the MAIN web site that called that external .swf movie clip).
Let's say if an user clicks "Close" botton which is a part of external .SWF file, then actionScript code attached to this CLOSE button of the external .swf file declares some varibale and assings some value to it, lets say "33". Then CLOSE button executes followed by command such as gotoAndPlay(2), which makes MAIN flash movie to leave external MovieClip holder and proceed to the MAIN timeline of the website itself.
There, on frame # 2 the value "33" will be assinged to another variable or is being used somewhere else by the MAIN movie.
I tried Global variables, but they seem to be invisiable to the MAIN flash movie if their declaration or value assignment happened in the external .swf file.
Any help will be appreciated.

Pass External Variables Into Flash
hi all,
i have a variable i want to pass into my flash movie. in my xhtml page i have:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="767" height="184">
<param name="movie" value="images/header.swf?myVar=5" />
<param name="quality" value="high" />
<param name="WMode" value="Transparent">
</object>
so im passing in the variable 'myVar'. in my flash movie, how do i get at this variable and display it in, say, a dynamic text field?
many thanks
- D

Is XML The Only Way You Can Pass External Data To Flash In An Array?
Is XML the only way you can pass external data to flash in an array?
Or is there another way?

Import External File To Then Pass Data?
I want to import a .txt or .xml file (so it's real text) that has a form on it. I also want to style the text on this form (will this real text be affected by the html's css or do I have to state it in flash? I also want to pass that form information to another scene, at which point the user will add their email and name and *then* click "submit".

Any good advice?
I do this all the time outside of flash but this is the first time I've done it in flash.
Any links/tutorials/advice is appreciated!

Firing An External App From Flash And Pass Parameters
Hi all,
I need to fire an exe from flash projector and pass it a lot of parameters(need to regenerate an image). Could someone tell me what would be the best solution for this... can I make a php executable which could use all the gd functions? If yes, can you please write a brief tut or provide some guidelines.
Thanks

Load External AS2 SWF, Pass It A Root Variable
Hello all,

I am creating an AS3 program, but unfortunately I need to load some legacy SWF files that I can't alter. These old files are dynamic charts, and each one is fed an XML file with it's data.

The original implementation had these chart files on HTML pages, and each one was given it's datafile URL on the query string, like so:

<PARAM NAME=movie VALUE="FC2MSColumn.swf?dataUrl=../ChartXML/ideationbyage.xml">

My problem is that I now need to load these same SWF files into my AS3 program, and somehow feed it this _root variable in the same way it would have gotten them in the original HTML implementation. I'm kind of stumped on how to accomplish this though. I've heard grumbling about the Localconnection methods, but in my case I don't need to read anything from my old AS2 files, I need to set that initial value, just as if I'd put the file on a webpage and given it a flashvar or query string value.

Any pointer or tips would be greatly appreciated! I'd be stunned if this was not possible.

Pass An External Variable To A Flash Movie
I have a flash movie inside my ASP page that displays a JPG file, but want to make this a variable.  I access info from a database and then want to pass the file name for a JPG image into the movie for it to display.  What is the syntax to do this? thanks.

[F8]How To Access Functions In External Swfs And Pass Them Variables?
Hi,

Im very close to the end of building my site, although i have one major issue i have to deal with.

Basically the homepage has links to different work in the portfolio and i need each of these to link to the correct sections of the external portfolio.swf (without having to create new swfs for each possibility...). I have a function called loadPortfolioSelection(); in the portfolio.swf:

function loadPortfolioSelection(selectedWork:String):Void {
currentPage = selectedWork;
this[selectedWork + "_mc"].gotoAndStop(7);
this[selectedWork + "Text_mc"].gotoAndPlay("_in");
mcLoader.loadClip(this[selectedWork+".swf"], this[selectedWork + "Loader_mc"]);
trace("It worked");
}


My problem is that i am unable to call this function from the main swf and pass it a variable.

My code inside home.swf is

portfolioLoader_mc.loadPortfolioSelection(page);

*The page variable holds the value i want (tested it with a trace(page))


I can't even trigger the trace command in loadPortfolioSelection(); so its obviously not executing this function. I've tried a number of different ways to execute the function but i just can't get it working.


Any help would be greatly appreciated.

Newbie Q: How To Pass Variables From External SWF To Main Page?
Hi,

Ive got a main flash page into which I load external swf files using the "Loader" component.

My question is how to get the external swf to communicate variables to the main page?

For instance, say I have defined x = 1 in the external swf, how do I get it to trace out this value for x in the main page? Heres what I tried initially, and it just says "undefined":

ActionScript in External SWF: (called "blue.swf")
x = 1;

ActionScriot in Main SWF:
myLoader.contentPath = "blue.swf";
trace(x);


Ive looked on the net and other posts on this forum and tried various combinations of "_parent, _root, _level0" etc but wasnt sure exactly where I put them!

Please help!

Can An External Executable To Pass A Variable Directly To A Flash Projector
I have produced a flash front end for an item of software: click on a button to install the software, you know the stuff.

Now, there is a piece of software called BDE that is required for the main software to run, and you can easily detect if it is installed. So, what I want the flash front end to do is only enable the install software button if the BDE software is detected.

I have written a little .EXE that checks to see if BDE is installed, and it is a simple matter to have the executable to create a text file on the HDD, and then have the projector read that file, and check for a specific value.

But what I want to know is: is it possible for an external executable to pass a variable directly to a flash projector without creating an intermediary text file. The purpose being to enable the install software button if BDE is installed.

The reason why I want to do this, is OSs like Win2k / NT file permissions might not allow the creation of an intermediary text file.

Pass URL String From External File To AS Variable (dynamic File Names)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?


Code:
var vfile:String = string("path");

supervideo = function () {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream (netConn);
video.attachVideo(netStream);
netStream.setBufferTime(10);
netStream.play(vfile);

};

loadText.load(_global.text_url1);
loadText.onLoad = function(success) {
if(success){
showtitle.text = this.title1;
vfile = this.flv_name;
supervideo();
}
}
The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I know the value of vfile is being passed from the php file and getting into the supervideo(); function because i have a textbox echoing vfile. I have tried defining the variable with and without the ":String". Please let me know if you can see any errors. Thanks!

Dynamic Video File Name (pass URL From External File To Variable)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes or maybe i just don't get how to pass a variable to a function.


ActionScript Code:
var vfile = "path";supervideo = function () {    var netConn:NetConnection = new NetConnection();    netConn.connect(null);    var netStream:NetStream = new NetStream (netConn);    video.attachVideo(netStream);    netStream.setBufferTime(10);    netStream.play(vfile);    };loadText.load(_global.text_url1);loadText.onLoad = function(success) {    if(success){            showtitle.text = this.title1;        vfile = this.flv_name;        supervideo();        }    }


The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I have tried defining the variable w/ and w/out the ":String". The video portion of the code seems to not use the variable correctly when it is in a function. If you have suggestions or see any errors please let me know. Thanks!

File is here (in MX format, though i am using MX2004) if you have time to take a look.

Dynamic Video File Name (pass URL From External File To Variable)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes or maybe i just don't get how to pass a variable to a function.


ActionScript Code:
var vfile = "path";supervideo = function () {    var netConn:NetConnection = new NetConnection();    netConn.connect(null);    var netStream:NetStream = new NetStream (netConn);    video.attachVideo(netStream);    netStream.setBufferTime(10);    netStream.play(vfile);    };loadText.load(_global.text_url1);loadText.onLoad = function(success) {    if(success){            showtitle.text = this.title1;        vfile = this.flv_name;        supervideo();        }    }


The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I have tried defining the variable w/ and w/out the ":String". The video portion of the code seems to not use the variable correctly when it is in a function. If you have suggestions or see any errors please let me know. Thanks!

File is here (in MX format, though i am using MX2004) if you have time to take a look.

Pass URL From External File To AS Variable (dyn. File Name)
I have a movie player that works fine when i hard-code the url value in the video code, but when i try to pass that url/file path from an external file to the video code in a function, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?code: var vfile = "path";

supervideo = function () {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream (netConn);
video.attachVideo(netStream);
netStream.setBufferTime(10);
netStream.play(vfile);

};

loadText.load(_global.text_url1);
loadText.onLoad = function(success) {
if(success){
showtitle.text = this.title1;
vfile = this.flv_name;
supervideo();
}
}
php value:
PHP Code:



&flv_name="elements/flv/superape.flv"&




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I know the value of vfile is being passed from the php file and getting into the supervideo(); function because i have a textbox echoing vfile, but it doesn't load when called from a fuction. I have tried defining the variable with and without the ":String". When i run the function on its own, it doesn't load the video, but if i take that code out of the function it runs fine. Please let me know if you can see any errors or have better suggestions. Thanks in advance!

I've posted a zip below of the file if anyone can take a look.
Quote:




http://www.polishoperative.com/flv/videoissue.zip

Pass By Reference Vs Pass By Value
do flash functions pass parameters by reference or by value?
How do you specify which you want, anyway?

Can't Get A Pass
Hi,

I have been trying for weeks to devise a method for a user to enter a login and pass to gain access to specific scenes. I have tried everything I can think of with no luck. Does anyone have an idea. I am trying to keep all files locally or read from a text file. I am also trying to set this up for many users. I have looked at many different tutes and examples, still, no luck.

Does A Value Value If You Cant Use A Value ? Pass Value From Btn Plz Help Thanks
Ok i have this code
Code:
while (i<myVars.endbtn){
var thmdesc = attachMovie("description","desc"+[i],getNextHighestDepth(),{_x:xtext, _y:ytext, _width:309, _height:30});
thmdesc.desc1.text = myVars["buttondesc" + i];
ytext=(ytext+35);
//btny=(btny+35);
//desctext.text="testing ";
var thmbut = attachMovie("btn","btn"+[i],getNextHighestDepth(),{_x:btnx, _y:btny, _width:100, _height:20});
var ds:DropShadowFilter = new DropShadowFilter(2,35,0x000000,5,5,5,.8,3,false,false,false);
thmbut.btntext.text = myVars["buttonthm" + i];
thmbut.filters = [ds];
thmbut.onRelease = function(){
selected.filters = [];
thmbut.btntext.text = "test";
desc1.text = thmbut.btntext.text;
}//end function
btny=(btny+35);
i++;}
how can i get the value of the clicked button ?

an easy example of what im trying to do is create buttons using actionscript and then when they are clicked pass the value to something.

I have a suggestion on how to answer this ? If you would please dont worry about my code just make me a example that creates 3 buttons using actionscript and then a dynamic text box that displays the button that was clicked, after being clicked of course .... thanks so much

im a experinced php/hml/mysql coder and ive been using the lamp setup now in php i would have just made a html button <input type=submit value=yourvalue name=button1> then a if (isset($_POST[button1]) {echo $_POST[button1];} but that wont do me any good for actionscript

How Do I Pass A Var From One Mc To Another?
Ok, so I have this little quiz I made in flash and it's a movie clip. Now I have a variable (score) that I use to tally up the score. What I'm trying to do next is tell ANOTHER movie clip that if the score is a certain number, play a certain frame in the NEW movie clip.

Right? So how do I pass that variable from the one movie clip to another movie clip and tell that clip to play at a certain frame if score=x?

I have to have this done by friday night so if anyone has ideas PLEASE let me know!

Thanks!

Pass This
How can I pass a varible to a get URL to pass to javascript
example

ActionScript Code:


ActionScript Code:
<font size="2"><font size="3">on (release) {</font><font size="3">var newW = 800;</font><font size="3">var newH = 400;</font><font size="3">getURL("javascript:restartScale(newW, newH, finalX, finalY);");</font><font size="3">}</font></font>


That doesnt work. It does work however if I just use this

ActionScript Code:


ActionScript Code:
<font size="2"><font size="3">on (release) {</font><font size="3">getURL("javascript:restartScale(800, 400, finalX, finalY);");</font><font size="3">}</font></font>

How To Pass This
This wont work

ActionScript Code:
on (release) { var newW = 800; var newH = 400; getURL("javascript:restartScale(newW, newH, finalX, finalY);");}

But this does

ActionScript Code:
on (release) { getURL("javascript:restartScale(800, 400, finalX, finalY);");}

I need those numbers to be dynamic

How Do I Pass By Val
so i am using a FLEX 3 app to open a large photo then shrink it down and save a thumb nail
i have been able to get it to open and save a new one but when i try to scale it down i get a image that is the right size but it is only the top left corner

to accomplish that much i open a file and load it with an <mx:Image/> tag then take a snapshot of that image tags contents after i have scaled the image down to the right size to take the snap shot i use the mx.graphics.ImageSnapshot and set the default encoding to the JPEGEncoder then open a filestream and save the snapshot with a ByteArray.

but the image will not scale right.

How Do I Pass A Var From One Mc To Another?
Ok, so I have this little quiz I made in flash and it's a movie clip. Now I have a variable (score) that I use to tally up the score. What I'm trying to do next is tell ANOTHER movie clip that if the score is a certain number, play a certain frame in the NEW movie clip.

Right? So how do I pass that variable from the one movie clip to another movie clip and tell that clip to play at a certain frame if score=x?

I have to have this done by friday night so if anyone has ideas PLEASE let me know!

Thanks!

Pass Variables From One SWF To Another
I have SWF1 that calls SWF2 by loadMovie("SWF2.swf",_root).
How can I pass any variables from 1 to 2 ?

Can't Pass Variable
Hi,

I have a movie where I define a variable "botsim=20" in one of the first frames. Then, later in the movie I want to call this variable from a movieclip timeline by using it in something like "john=botsim+5". However the movieclip hasn't been able to call the "botsim" variable. Is it not possible to pass a variable from the movie timeline to a movie clip timeline?

Dan Riley

Variable Pass
Hi

I have several drag and drop movie clips which ask the User to place coded books (Dewey referencing code) onto numbered targets on a bookshelf.

I can program the movie so that it can check how many items are in the correct sequential order and gives the user three chances to get it right before loading the next movie clip.

What I am *desperate* to know is ... how do I keep a running score of correct attempts to be displayed at the end of the movie sequence?

*Any* suggestions would be appreciated ... I just need to carry the score from movie to movie (I think???)

--Rhi~

How Do I Pass Variables From One Swf To Another?
I need to pass variables from one swf to another! I tried get URL and POST, but that is not working, any help is appreciated. Thanks, Matt.

Pass Variable From JS To AS
Please Help!
Does anybody know how I can pass a variable from JavaScript to ActionScript (getVariable?)!
THX

How Would I Pass A Parameter...
How would I pass a parameter (or any method) into a scrolling text box?
The parameter would come from a .jsp file. It would function exactly like an <iframe>

It would work like this.... (I run a affiliate program)
I send out an email to my clients with new links.
The problem is some 1000 of my clients have Yahoo and Hotmail accounts, and both services will replace my links with theres. So I will create a flash text box that will be independent of those meddlesome kids.
When the email is delivered it calls the flash file which in turn fills the text boxes with dyn. data. And my clients cut and paste the untouched code into there pages.

Pass Variables Between Different Swf >> HELP
This is quite simple.

I'm loading 02.swf inside 01.swf...

Code:
loadMovie ("02.swf", _root.screen)
That's OK

Now I want to pass some information from 02.swf to 01.swf before it's starts

In other words, I want to pass some variables to the main swf

Does anyone have an idea?

Thanks
Renato

Can't Seem To Pass A Variable Into Another Mc.....
Hey,

I'm experiencing a peculiar little variable problem:

I have a button:


Code:
on(release){
WinName = "lea";
_root.attachMovie("Gallery", WinName,559);
_root[WinName]._x = 200;
_root[WinName]._y = 200;
_root[WinName].ModelName = "lea";
this.NumThumbs = 5;
for (i=this.NumThumbs+1; i<=16; i++){
_root[WinName]["Thumb"+i]._visible=0;
}
}
this is the line i'm having trouble with:
_root[WinName].ModelName = "lea";

the "Gallery" clip attaches itself properly and receives this variable. And then the peculiar behaviour starts.

on the top layer, i use that variable to fill a text field. This works.

the layer below that, i have a movie clip which contains a button. the movie clip as:

Code:
onClipEvent(load){
this.ThumbNumber = 1;
this.ImageNumber = "01";
trace(ModelName);
}
the trace on ModelName comes up as undefined. I can't do a full path reference to the variable because the instance name of the clip is the same as ModelName.

it does work if i make ModelName a global variable, but that messes up the rest of the movie.

Any suggestions?
Cheers,
Ben

Pass A Variable
I have a button on a index.swf on level 1. I want this button to load awards.swf on level 2 and send a variable to awards.swf so that it opens at a certain point in a scrollable text.

I can get this to work if the variable value is set in awards.swf. Is it possible to send a variable value across different movies? If so, how.

Thanks

Robert

Pass Variable From One Swf To Another
hi

Well i am making a cd presentation in flash ...

i have 4 main movies(swf) with sound clips each has a mute button... if the mute button is clicked its stops sounds and passes a variable _root.check="off" ... but when i click on the link to other movies its gets enable again and the sound starts playing again ... i want this variable i.e _root.check to pass accross all the movie i click.

which means if i have click the mute button all the other swf files or movies i load should be muted...

please help me soon.

regards
kapil

ps deathline is tomm..

Pass Variables From One Swf To A Second Swf?
Help! I have two movies and I want the first to pass a variable to the second movie.

loadMovieNum("second_movie.swf", 0, "POST") just doesn't seem to do it. My second movie plays but does not receive the variable.

I have tried loading the second movie into a new level rather than replaceing the first but that doesn't work either.

GET also will not work.

I'm trying to do this locally so I can run the swfs from a CD.

How Do I Pass A Variable From...
..the main timeline to a loaded movie clip.

Layout: Main timeline contains audio voice over. Keyframes swap the value of silent from 0 (talking) to 1(not talking).

Movie clip is an 4 keyframe, 8 frame movie made to loop randomly. Frame 1 contains the mouth not talking, frames 3,5 and 7 have the mouth in various vocal positions (2 frames each mouth position).


In each frame of the movie clip I have the following script:

while (_level0.silence==0) {
var mouth=Math.round(Math.random()*3)
gotoAndPlay((mouth*)+1);
}
gotoAndPlay(1);

When I test the movie, I get an error message "A script in this movie is causing your computer to run slowly. Abort this script?"

Upon aborting the movie clip plays, but looping sequentially.

How can I fix this?? Tell me this is an easy one....

How Can I Pass Variables
can someone tell me how can i pass variables to a flash movie through html or asp pages?
merry christmas and thanks in advance

Baljit Singh Grewal

Boy, Do I Need To Pass A Variable
Okay~
so I started messin with the "menu dropdown" file included in Flash MX. Its the nice vertical heirarchy navigator with clickable entries. Its all controlled via an .xml file.

What Id like to do to make the interface more user friendly is to have it not collapse the menu items upon reload.

Each time the user clicks a link it reloads the .swf and effectively closes the section the user was looking at.

Macromedia uses this interface and theirs seems to remain open through page loads...anyone know how?

The link above is what Im working on. Its not complete so dont flame me for dead links, or errors.

Doug

How To Pass Data From One Swf To Another
hi,
I have an external .swf file that has a button (really a movie clip) on it. I'm loading it into a scrollpane component in my main swf file. When i click on the button i need to load something into my main swf and that works fine. However, when i click the button (in my external swf file), i also want to pass data to the main. In addition, i need to be able to capture that each time i click the button (the data that the button will pass will change over time).
Any ideas? Thanks.

Possible?: Pass Url Var To Another Button?
nevermind...i figured it out

on(press) {
getURL(_root.TempNewsURL)
}

where "TemNewsURL" is the name of the text box containing the temp url

cheers

Pass A String ?
Help!

I thought I knew how to do this, but don't...

I have a Flash 5 entrance page that I want to link to a Javascript page. But it gets better. The Javascript page is simply thumbnails.html (yes it's a portfolio site, no it's not mine).
The thumbnails.html page uses javascript to populate it's content based on a string that's passed in the URL. Example:
thumbnails.html?L -> will bring up landscapes. The problem is that Flash doesn't want to seem to pass the "?L" part of the string.

Is there a way around this? I have tried both as a text URL and as a button URL. I have also tried Window=_blank, nothing seems to work?
Please HELP!

Thanks!!!!

-Eric

Pass Variable Value From One Swf To Another
I have two swf's 1 and 2 and I want to pass a variable value from 2 to 1 while I load 1 over 2 in _level0.

Here is the code:

button in swf 2:
on (release) {
loadMovieNum ("miramarcd1.swf", 0, "GET");
}

variable in _root.main in swf 2:
from2=1;

actions in _root.main in swf 1:

if (from2) {
_root.main.slideshow.gotoAndStop(10);
}

What I am trying to accomplish with this code is when I press the button in swf 2 I load swf 1 in _level0 thus replacing swf 2. While doing this I want to pass the value of variable "from2" in swf 2 to swf 1.

This doesnt seem to work.

Only Pass Certain Vars
hi

I use getURL to call a .php script to which I pass on variables via POST. But I have really a lot of them in _root and I wonder if there is a way to only pass on some of the variables I choose.

Can I set variables "private"?

Any Suggestions are appreciated.

greets

andreas

Pass Parameters.........
Hello,

I have a trigger function when MOUSE DOWN even occurs. But I don't want how to pass parameters. Could any one help me?


Code:
myMC.onMouseDown = function(para1, para2, para3) {
// My code here
}
Thanks

Pass Command To PC
Hi,
How can I pass a command from flash that goes in the command prompt for example "shutdown" or "net send". I want to make a simple Flash projector file that I can use to shutdown my PC something like sleep module. There will be a text field where you enter the amounth of time and then when you press a button it should send the right command to the PC. but what command in flash should I use to do this?

P.S.
I am using Flash MX

I Need To Pass A Variable From One To Another
I have an .swf with a few buttons. each button pops open a new html page with another .swf embeded in it. depending on which button is pushed, i need to pass a variable from the original flash file to the one that opens in the new window. I'm assuming this requires some javascript. can someone give me an example of how I can pass information from one flash file to the other? Thanks guys ...kuramu

Copyright © 2005-08 www.BigResource.com, All rights reserved