Help: Passing Variables (180 Variables) To Function
hi
if i have call function like this
Math.findMax(app1, app2, app3, app4, app5, app6, app7, app8, app9, app10, app11);
but the values i have to app180
i don't want to write all this
Math.findMax(app1, ... , app180); //!!??
how i can to called the function from app1 to app180
Math.findMax(FROMapp1, ... , TOapp180);
thanx
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-06-2004, 05:33 PM
View Complete Forum Thread with Replies
Sponsored Links:
Passing Variables To Function
Hi All,
function ovr() {
_root.b5.arrow.gotoAndPlay(1);
_root.b5.btn.gotoAndPlay(1);
_root.b5.text5.gotoAndPlay(1);
}
if i want to substitute the 5 beside the b5 to any other number depends on what i will pass to the function, how can i write it?
is it like this
function ovr(x) {
_root.b'+x+'.arrow.gotoAndPlay(1);
//or//_root.b+x+.btn.gotoAndPlay(1);
//or//_root.b"+x+".text5.gotoAndPlay(1);
}
or how? it gave me errors, how should i do it?
Thanks
View Replies !
View Related
Passing Variables From One Function To Another?
Hi all,
Just when you think your getting somewhere you get stuck again!
I've created a movie where thumbnails are dynamically created and populated with xml data. What I want to happen is when one of the thumbnails is clicked on the full size image is displayed in the background or some pictureframe_mc (doesnt matter). Below is a snippet of where I'm having an issue, as I press one of the thumbnails, I want to pass the "i" variable from setupHandlers through to the loadmainPicture function. Is this possible? I realise this is a snippet so if you need more info let me know...
Code:
function setupHandlers(){
for (i=0; i < total; i++)
{
holder["square" + i].onRelease = loadMainPicture;
}
}
function loadMainPicture()
{
picture_mc.loadMovie(image[this.i],1);
}
Again any help is appreciated, just a point in the right direction would be great.
View Replies !
View Related
Passing Variables Outside A Function
Hey Guys.
I know this has probably been asked a zillion + 1 times, but I can't seem to find an answer that is simple and makes sense..
Can someone show me the easiest. most basic, talk to me like i'm an idiot way to make the following work:
PHP Code:
var MyVar:Boolean = false;
function dropIt(event:MouseEvent):void {
condition1 = true;
if (condition1 == true) {
MyVar = true;
} else {}
}
trace(myvar); // (Will Return False, I want it to return true.)
I appreciate it.
-sk
View Replies !
View Related
Passing Variables To Function Via XML
Group,
Working on a project where we have a flash player embedded in a CFM page, the player calls the product videos from the itemID passed in the URL of the CFM page. We are trying to make the list of subnodes dynamic by taking them out of the hard-coded flash file and making a dynamic list (probably XML) that flash could pull in. I have included the snippets of the current hard-coding below, with the functions and how the variables are currently coded, I could really use your help guys! Thanks in advance for your help!
if (itemID == undefined) {
_global.itemID = 0;
} else {
_global.itemID = itemID;
}
_global.currentItemID = -1;
function addBrandNode(desc) {
_global.brandAdded = false;
_global.brandName = desc;
}
function addTheRealBrand() {
if (_global.brandAdded == false) {
trace("adding brand: "+_global.brandName);
_global.brandAdded = true;
_global.brandIndex++;
_global.productIndex = -1;
}
}
function addGeneralProductNode(brandName, desc) {
if (_global.brandName == brandName && _global.brandAdded == true) {
addProductNode(desc, 0);
}
}
function addProductNode(desc, theItemID) {
if (_global.itemID == 0 or _global.itemID == theItemID or theItemID == 0) {
trace("adding product: "+desc+":"+theItemID);
addTheRealBrand();
_global.currentItemID = theItemID;
_global.productIndex++;
return true;
} else {
_global.currentItemID = -1;
}
return false;
}
function addSubNode(desc, video) {
if (_global.itemID == 0 or _global.itemID == _global.currentItemID or _global.currentItemID == 0) {
trace("adding subnode: "+_global.currentItemID+":"+desc);
tmpArray = new Array();
tmpArray.push(desc, video);
_global.videoArray.push(tmpArray);
}
}
_global.brandIndex = -1;
_global.productIndex = -1;
_global.videoIndex = -1;
_global.videoArray = new Array();
//// capresso
addBrandNode("Capresso");
addProductNode("C1000", 13);
addSubNode("Promo", "c1000");
addProductNode("CoffeeTeam Luxe", 91);
addSubNode("Intro", "capctl_intro");
addSubNode("Cleaning", "capctl_clean");
addSubNode("Grinding", "capctl_grinding");
addProductNode("CoffeeTEC", 87);
addSubNode("Intro", "capctec_intro");
addSubNode("Cleaning", "capctec_clean");
addSubNode("Frothing Milk", "capctec_froth");
addSubNode("Hot Chocolate", "capctec_hotchoc");
addSubNode("Water Reservoir", "capctec_water");
addProductNode("S9", 9);
addSubNode("Intro", "caps9_intro");
addSubNode("Brewing Espresso", "caps9_brew");
addSubNode("Using FrothXpress", "caps9_fxpres");
addSubNode("Cleaning Frother", "caps9_clean");
addSubNode("Cleaning FrothXpress", "caps9_fxpresclean");
addSubNode("Making a Latte", "caps9_latte");
addSubNode("Frothing Milk", "caps9_froth");
addSubNode("Claris Water Filter", "caps9_claris");
addProductNode("Ultima", 41);
addSubNode("Intro", "capult_intro");
addSubNode("Brewing Espresso", "capult_espresso");
addSubNode("Cleaning", "capult_clean");
addSubNode("Cleaning Tray", "capult_tray");
addSubNode("Empty Grounds", "capult_grounds");
View Replies !
View Related
Passing Variables Through A Setinterval Function
Hi
I was wondering if its possible to send variables to a function using setInterval? Let me explain, I'm currently using something like the following to give me a delay in seconds...
ActionScript Code:
function delay() {
trace("tick");
if ( --counter <= 0 ) {
clearInterval(delayInterval);
trace("done");
}
}
//
var delayInterval:Number;
var counter:Number = 2;
delayInterval = setInterval(delay, 1000);
...but ideally I want to send the counter number to the delay function, so the function call would be something like this:
ActionScript Code:
var delayInterval:Number;
delayInterval = setInterval(delay(2), 1000);
but unfortunately that doesn't work. Basically I want to be able to use the same function several times all at the same time (I want to trigger various animation functions at different time periods)...is this possible?
Thanks in advance
View Replies !
View Related
Passing Variables Class And Function
ok, I'm still learning all this and can't seem to figure out when I have access to my variables. I have the the follow code:
class Slider {
var myVar = 4;
function Slider () {
var myVar = 6;
}
function findValue () {
trace (myVar);
}
}
The slider function is being called first to update the myVar value then the findValue function is called. How do I get the find Value function to output 6 ?
I want a function that updates the main classes' variable so thet I can use it from any function. Any help??
View Replies !
View Related
Passing Variables From EventListener To Function AS3
hey guys,
I am stuck in AS3
I got a function with For loop.. that created instances of a button.. .. now when i press one of these buttons i want to load up an image.. so i used the code below to call the function when you click on the menu item.
Code:
portMenu.addEventListener(MouseEvent.CLICK, displayPort);
the for loop also includes var Title:String = mainXML..item[i]..IMAGE.text();
then here is the function that gets called when the button is pressed..
Code:
function displayPort(event:MouseEvent){
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(" I WANT TO INSERT IMAGE VALUE HERE ");
ldr.load(urlReq);
displayMC.addChild(ldr);
ldr.x = 20;
ldr.y = 100;
}
can anyone help thanks
View Replies !
View Related
Passing Variables To A Function On Creation
Hey, im trying to make a navigation bar in flash and I want it created totally dynamic. So far so good, except I'm having a small issue. Im running a loop to create the buttons, give them text and so on. Just wondering, is it possible to pass variables to a function as its being created from a frame? Here's what i mean...
On the first frame of the _root i have:
Code:
myArray = ["link1.html", "link2.html", "link3.html", "link4.html"];
for (index = 0; index <= 4; ++index) {
myButton.onRelease = function (index) {
getURL (myArray[index]);
}
}
See, it does get the variable, but for some reason, it doesnt use it as its updated. So no matter what index equals, it will always pass 4 as a value because thats what it stops at...
Anyone ever try this or know what im doing wrong? Any help would be greatly appreciated.
View Replies !
View Related
Passing Variables Into A Timer Function
Still getting my head around AS 3.0 (from AS2.0), so would appreciate any help here!
I have a few animation sequences (tweens) which, when finished, start a timer. When I start the timer I also want to pass a couple of variables into my timer function:
1. Delay (number of seconds)
2. myScene (which scene or sequence to load next)
Here's my code so far...
Code:
package{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.utils.Timer;
import flash.events.TimerEvent;
import fl.transitions.*;
import fl.transitions.easing.*;
public class Document extends Sprite{
public function Document():void{
init();
}
public function myTimer(){
var timer:Timer = new Timer(1000, 4); // here's where I'd like to pass in a my delay variable
// designates listeners for the interval and completion events
timer.addEventListener(TimerEvent.TIMER, myTimeOut);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
// starts the timer ticking
timer.start();
}
public function myTimeOut(event:TimerEvent):void{
trace("tick " + event.target.currentCount);
}
public function onTimerComplete(event:TimerEvent):void{
trace("Time's Up!");
}
public function init():void{
// here's where I have all my tweens and my call to timer.start();
}
}
}
Any help very much appreciated!
View Replies !
View Related
Passing Variables From EventListener To Function AS3
hey guys,
I am stuck in AS3
I got a function with For loop.. that created instances of a button.. .. now when i press one of these buttons i want to load up an image.. so i used the code below to call the function when you click on the menu item.
Code:
portMenu.addEventListener(MouseEvent.CLICK, displayPort);
the for loop also includes var Title:String = mainXML..item[i]..IMAGE.text();
then here is the function that gets called when the button is pressed..
Code:
function displayPort(event:MouseEvent){
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(" I WANT TO INSERT IMAGE VALUE HERE ");
ldr.load(urlReq);
displayMC.addChild(ldr);
ldr.x = 20;
ldr.y = 100;
}
can anyone help thanks
View Replies !
View Related
Passing Variables Using The LoadVariables Function On Release
I need some help here in the following:
My bttn12 has a action script attached to the bttn12 button in my flash 8 and this is the following :
on (release){
txt.loadVariables("email.php", "POST");
}
My problem is the PHP file below only sends out the $subject = "Message from Massage Yoga Polarity contact form."; and a email is sent out to the correct email and recpent gets the email just file - but only the subject and no body in the email - what could possable be the problem?
Here is the script for the email.php
<?php
$sendTo = "cleopataura@comcast.net";
$subject = "Message from Massage Yoga Polarity contact form.";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
I need all the information type in sent in the email not just the $subject
View Replies !
View Related
[F8] Passing Variables To A Named Function Handler
Hiya,
struggling to find an answer to this one, possibly because I can't think of the correct words to describe the query (see the thread title!). A quick heads up would be wonderful.
I'm setting up an onRelease handler for a button, and want it to use a named function rather than an anonymous one. Simple. However how do I pass a variable/parameter to that function?
button.onRelease = buttonHandler(theVar);
just runs the function at the time the above assignment happens, obviously. How do I pass the variable through when it's responding to the event?
I'm going to have a lot of handlers doing something similar, just with different strings. I'm sure I could get at the string I want another way, but I'd really like to be able to do this, since I've come across it a few times.
Cheers,
Si
View Replies !
View Related
Simple: Passing Variables To A Function Not Working.. Please Help
ok im trying to make a global function that will dim (alpha) a MC inside hte targeting button simple no? its not working.
here is my function on the root
_global.Rover = function (ob){
ob._alpha = 0
}
and the calling function on the button is
on (rollOver) {
Rover(p7);
}
should set p7 to alpha 0.. but it doesnt what gives? i've tried using _root.ob _level0.ob etc.. no results im sure its very simple but its killing me.
View Replies !
View Related
Passing Variables To A Function From A CLICK Event?
hello,
is it possible to pass additional values/variables with a click listener.
so for example
xxx_mc.addEventListener(MouseEvent.ROLL_OVER, rollOn);
function rollOn(event:MouseEvent, numby:Number):void
{
trace(numby);
}
how do i get the number to the function?
is it like this:
xxx_mc.addEventListener(MouseEvent.ROLL_OVER, rollOn, '1234');
is it even possible?
thanks for any help
Ben
View Replies !
View Related
Passing Variables To Swf
hi !
go here :
http://www.guistuff.com/tools/flashdrop/flashmenu.swf
then go here :
http://www.guistuff.com/tools/flashd...5&makenavurl4=
now can any body tell me what i have to do to the fla in order to send varibale to swf and make menu feilds dyanmically- also i want the variable comming from a db .
any help ?
suhailkaleem
View Replies !
View Related
Passing Variables
Owkee, me again
Hmm I have created a preloader with a movie that loops inside it. In that movie i calculate the percentage loaded and bytes loaded. These calculated values are stored in a variable called 'var4'.
Now is it possible to pass that variable 'var4' to the main movie ? And how do I fix this ?
View Replies !
View Related
Passing Variables
Is it possible to pass a variable from a buttonpush that is in an MC that needs to control the _root movie? In other words: rootmovie/MC/button -->variable assigned to control main (root) movie. For some reason I cannot get flash to recognize my requests....here is the code that I am using in the button:
on (release) {
var x = 5;
_root.gotoAndPlay ("monnonego");
}
Here is the code that asks the question, assigned to a keyframe (later down the root movie):
if (x == 3) {
gotoAndPlay ("profile", 34);
} else {
if (x == 4) {
gotoAndPlay ("portfolio", 34);
} else {
if (x == 5) {
gotoAndPlay ("contact", 34);
}
}
}
Any ideas?? Thanks in advanced!!
- Sigma
View Replies !
View Related
Passing Variables
I have some actionscript that doesn't work. I don't see what's wrong. Can anybody help me? It's about the towers of Hanoi. Here is my script:
var intaantal = AantalSchijven;
var intstart = 1;
var inteinde = 3;
function hanoi (n,intstartstaaf,inteindstaaf) {
if (n == 1) {
van = intstartstaaf;
naar = inteindstaaf;
trace(van);
trace(naar);
} else {
inttussenstaaf = ((6 - intstartstaaf) - inteindstaaf);
hanoi(n-1,intstartstaaf,inttussenstaaf);
van = intstartstaaf;
naar = inteindstaaf;
trace(van);
trace(naar);
//trace(inttussenstaaf);
hanoi(n-1,inttussenstaaf,inteindstaaf);
}
}
hanoi(intaantal,intstart,inteinde);
stop ();
I made a program in VB in the same way and the program works. In the program I use byval for the variable n. Maybe that's the reason why it doesn't work but what can I do?
Greetings,
Geerty.
View Replies !
View Related
PASSING VARIABLES TO CGI
I know this may have been answered before, but I cant seem to find it.
I need to know if anyone knows how to get Flash to pass variable info WITHOUT shifting the characters to their ASCII code... (i.e. a comma becomes %2C)
I have a cgi script (free, of course) that is looking for this:
data_order = "news,newscontent,tips"
whereas when i submit it from a flash form, it becomes this:
data%5Forder=news%2Cnewscontent%2Ctips
I'm sure someone out there has gotten this also.
Thanks in advance for any help or pointing me in the right direction.
KEEP FLASHING!
View Replies !
View Related
Passing Variables Instead Of Gas. Is This Possible?
I have a single frame movie as my start movie that I want to use to establish a variable. It's pretty much just saying
var exno = 2;
and then I load a movie.
When I trace it in the first movie, it's fine. It works. Great. But now I want the newly loaded swf movie to recognize this variable as well. How can I do that?
Any help would be appreciated.
Peter
View Replies !
View Related
Passing Variables
Movie1 (_level0) loads Movie2 to the same level. How can I pass a variable from Movie1 to Movie2? I know that it can be done by loading to a different level but is it possible when loading to the same level?
John
View Replies !
View Related
Passing Variables
i really want to pass variables to my flash movie via the url.
someone told me that if i do something like
asdfoi.swf?name=dog
then the name variable text field will show "dog"
this doesnt work.
can someone help me please
View Replies !
View Related
Passing Variables
I need to know how you pass variables to a swf, I know there is a way then you just have to add the variables name and it's value following the *.swf of the embed tag. But i forgot the syntax...
Can someone help please!!
View Replies !
View Related
Passing Variables
Hello all there!
I have created a countdown flashmovie, it counts from x seconds to zero. But the x differs from time to time, it depends on how many time is left.
What I would like to know: How can I pass a variable from my website to the flashmovie?? Propably simple but I need to know how!
Please help!
VinzZ
View Replies !
View Related
Passing Around Variables?
Ok so here is my question. I need to take an html form and pass the variables to a file and then have flash load those variables. I am looking for a tutorial or explanation so I can learn how to do this. Do I need a perl or php script to set and save these variables? I dont know? Anyway any help would be appreciated.
thanks
Carter
View Replies !
View Related
Passing Around Variables?
Ok so here is my question. I need to take an html form and pass the variables to a file and then have flash load those variables. I am looking for a tutorial or explanation so I can learn how to do this. Do I need a perl or php script to set and save these variables? I dont know? Anyway any help would be appreciated.
thanks
Carter
View Replies !
View Related
Passing Variables ((HELP))
I'm having trouble passing a variable from one text field to another. I have a password protected site where the user must put in his/her userName and password. If the password is correct, I want it to read "Welcome, userName.
userName is the variable name for my input text field in frame 1.
user is the variable name for my dynamic text field name in frame 3.
frame1:
var userName = "";
var user = "";
user = "userName";
stop ();
//this is my latest attempt to pass the name the user puts in to an empty text field called user in frame 3. Needless to say, its not working.
Anyone have any suggestions????
View Replies !
View Related
HELP - Passing Variables
Can anyone tell me how to pass a variable from the main limeline (level0) to a variable in a movie?
I've tried targetting the movie directly, but that isn't working.
Here's the code I have:
In my text file i have the following:
url=movies/slow.swf
On the main time line:
loadvariables("url.txt", 0)
In the movie:
x = level0.url
It keeps telling me that x is undefined.
View Replies !
View Related
Passing Variables From Swf To Swf
I am designing a page with multiple .swf files on it. The main reason that I have decided to compose them outside of Flash (in html) is to still be able to use the right-click zoom feature of the flash player. I have a map in the upper left hand corner of my html page (it is a separate .swf file). I have a panel of buttons, also in a separate .swf file, on the right side of the screen. I also have a descriptive panel below the map. Here is the problem. I need to be able to have buttons in one of the .swf files communicate to another .swf, the map. I want the buttons to be able to send the map .swf to a certain frame. I also need to communicate from the map to the descriptive .swf. How can one .swf file tell another what to do when they are both contained separately in an html file?
Thanks for the help.
View Replies !
View Related
Passing Variables
Well, Well. Sitting here trying to create a Quiz game, but its not easy as a beginner.
Since I want to have quite alot of pictures in my game, I have tried to use LoadMovie. But how do you do to make the variables "move" to the next .swf file. I have tried the "send with GET" but can't get it working.
I made a variable score=5; for example, and in the next .swf movie I want to increase it by putting score=score+10;, How should I do?
By the way, do anyone know if you can export and import scenes?
View Replies !
View Related
Passing Variables HELP
I know this question probably has been posted a thousand times and all the ones I've read haven't helped me.
I have 2 swf files...
the first one has an input textbox with a variable "name"
I also have a button that links to another frame. On that frame has a loadMovieNum ("test.swf", 10);
View Replies !
View Related
Passing Variables From An ASP To A SWF
I have a ASP that checks for the Username and password. If the password is correct it writes a new page and calls a function from another ASP which opens a control pannel on the new page. I have a button in a flash menu that is called from the 1st asp. There is a button that I want to have open a new page with the control panel. I don't want to make the user login twice. How can I grab the output data (Name, Login or Unumber) and pass the variable thru a flash Button?
I know this sounds confusing, but there must be an easy way. If you need more info for you to help me, please feel free to e-mail me at quince@quincewyss.com
Thank you,
Quince Wyss
View Replies !
View Related
Passing Variables On?
I am putting together a CD-ROM that contains several 'Quick-tests'. These have been provided to me by thew client as seperate FLA files. What they want me do do for a section of the CD is have the user run through all the test and then in the final one generate results based on the variables right/wrong given by each test (which is a separate SWF)
Is there a way of gathering these variables and then displaying them at the end???
Or could I load the SWF's intom a host movie and somehow have the host movie store the variables for me?!
Or is the only way to combine the FLA's all into one????
Suggestions welcome?!
View Replies !
View Related
:: Passing Variables - Little Help ?
hey,
A piece I'm working on requires interactive user modes-
I think I know how to do this in theory but i need help putting it into practice.
I think it requires the following _________
3 main actions required to create an interactive/customizable user experience.
A: Nesting one movie within another using the Loadmovie/LoadMovie Num command.
B : Passing a variable from one movie to another and to have the second movie display the variable contents in a text box.
C : Passing a variable from one movie to another and have the second movie use the variable to construct a file path through which the second movie loads a third movie.
_____________________________________________
I could be way off on this as I'm new to actionscript.
Any help would be really appreciated.
:r::
View Replies !
View Related
Passing Variables Between MC's
Hello everyone. I cannot seem to pass a variable from one MC to another. I have a text field in one mc with a variable name of myname. Then I am trying to get a text field in another mc to get the data inputed into the text field located in the first MC. Ths code I am trying to use which is located on the first frame of the second MC is:
newtextfield=_root.mc1.myname;
what am I doing wrong?
View Replies !
View Related
Passing Variables
I am reading a file location from an xml string and placing it into a variable, which seems to work fine
m_DataFile = 'File:\' + x_Setup.attributes.DataFile;
I then try to use the variable in the xml.load() method and it does not work.
m_xmlDoc.Load(m_DataFile);
However, if I hardcode the m_DataFile with a string, the load works correctly.
m_DataFile = "File://C:\development\XMLSchedResults\Indian Wells\TournamentFlash.xml";
What am I doing with the xml that is making the Load method think that the variable is not a string.
View Replies !
View Related
Passing Variables
i have a timeline with a few dynamic text-fields with variables. i also have an extra movieclip placed in this timeline and want the text-field-variables be passed into that movieclip so they can be displayed in it. how can i do this? how can i "load or pass" these text-variables into a certain movieclip and other timelines?
thanx for any support from germany
martin
View Replies !
View Related
Passing Variables Between .swf's
I'm trying to make an .swf that pops up & displays the percentage loaded of another .swf outside of the movie.
So how do I pass variables between two .swf's that are running?
is it possible?
I'm sure this is probably the nth time someone has asked this.
View Replies !
View Related
Passing Variables
Anybody know how to pass variables from one flash movie to another! I have a serious of 21 seperate flash files with volume controls. When the user switches to the next flash file I want to pass a variable to the next movie to tell the volume to stay at the same level. How should I go about doing that?/
Thanks
Caleb
http://www.e-simpson.net
View Replies !
View Related
Passing Variables Between MC
Well, I have this script that spouse to send a variable from a movie clip to another:
// this code is right after grapping the information from an asp file to generate a menu
for (i=0; i<product_length; i++) {
duplicateMovieClip(product, " product" add i, depth);
setProperty("product" add i, _y, yposition);
set("product" add i add ".info", product_array[i]);
tellTarget ("product " add i) {
product _lnk = "myProduct" + product_array[i];
}
depth--;
// Set the y position plus 30
yposition = yposition+20;
}
on the target movie clip I got this script:
on (release) {
getURL("myasp.asp?var=" add product_lnk );
}
NOW, when I test the code I get only the text part of the variable which is “myProduct” and that ‘s it, I’m not sure what am I missing here.
The idea is to generate a dynamic menu from the database using asp and each item in this menu has a different value that already pulled from the same database, think about it as you want to create a dynamic online product broacher where you create one asp page that displays a product using it’s id, but this time I’m trying to use flash
Any help will be appreciated
thanks
View Replies !
View Related
Passing Variables Via Url
I am trying to pass a variable into flash and for some reason it is not working correctly. Here is what I have so far.
OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
ab#version=5,0,0,0"
WIDTH=732 HEIGHT=158>
<PARAM NAME=movie VALUE="aboutmain.swf?toggle=1">
<PARAM NAME=quality VALUE=best>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
EMBED src="aboutmain.swf?toggle=1" quality=best bgcolor=#FFFFFF WIDTH=732
HEIGHT=158 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash"></EMBED
and in flash:
if (_root.toggle==1) {
gotoAndStop("end");
}
but the movie is playing all the way through... am I missing something here....
thanks
chewey
View Replies !
View Related
Passing Variables
is anyone there that can explain me if and how it's possible to send a variable from a movie flash to another?? The two flash are located into the same page but they're not nested.
tia
Giano
View Replies !
View Related
Passing Variables Around In A .swf
Hey people,
i have done some searches over flashkit and the net to search for some tutorials, but i did not find anything.
This is my problem:
--On stage in one of it's frames i have a variable named let's say (COUNTER = "0")
--Then i have a movie clip that plays 100 frames. At the end of that 100 frames i have a script in a frame that tells (COUNTER = "0") to have a value of "1"
--And on the stage and in the movie clip i have a dynamic textbox that shows me the constant value of that variable showing me wether the variable in the movie clip and or on stage is effected.
When the animation is done it does not add the value to the variable on stage. I have figured out that only the variables within the movie clip are effected and what is on stage is not.
is there some kind of line that says "Add "1" to the variable on stage from within this movie clip"?
if there are any tutorials you people can give me that will be amazing.
Thank you
Filosofer
View Replies !
View Related
|