Passing A Var To A Swf From A URL
I am doing the preent code in my swf movie:
abutton_btn.onRelease = function(){
getURL(clickTag);
};
in the embed tag of the html i do this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="468" height="60" id="clickTAG" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="clickTAG.swf?clickTAG=http://www.flashkit.com" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="clickTAG.swf?clickTAG=http://www.flashkit.com" quality="high" bgcolor="#ffffff" width="468" height="60" name="clickTAG" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
// this being the main snippet of code:
<param name="movie" value="clickTAG.swf?clickTAG=http://www.flashkit.com" />
//
Everythings to work fine however my question is:
I this the proper way to pass a variable from a html page to the embeded swf file?
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-19-2006, 09:58 AM
View Complete Forum Thread with Replies
Sponsored Links:
Passing Property Values And Passing Them Back
Hi,
I am trying to pass property values from one function to another function, let it do it's work then pass it back to original function when called.
Example:
Code:
function displayText()
{
nameCurrentMap.curMapName.text = flashServ.map;
nameCurrentMap.curMapName.embedFonts = true;
nameCurrentMap.curMapName._alpha = 0;
fadeInCurrentMap = setInterval(fadeIn, 50);
}
function fadeIn()
{
if(nameCurrentMap.curMapName._alpha < 100){
nameCurrentMap.curMapName._alpha += 5;
}else{
clearInterval(fadeIn);
}
}
As of right now this code works perfectly. However, I have to hard code my property value. I wish to make it more dynamic so I can use the function "fadIn()" more universally.
The colored (red) text shows on what I wish to make it more dynamic.
I basically want to take the property and be able to use any instance name in place and pass it back.
I hope someone out there understands on what I am trying to explain.
Any Help would be appreciated.
Thanks in advance,
- Alex
View Replies !
View Related
Passing Value Outside Swf
I have two different flash movies on the same html page, one at the top and one at the bottom. In terms of loading this site, I want the top swf to load first and then the bottom swf to load. I was wondering if you could pass a value or variable from one swf to a completly seprate swf on the same html page? Thanks in advance.
View Replies !
View Related
Passing
Hello folks,
I have this function: showDebugFields ("false");"
(It can also be "showDebugFields ("true");"
What happen is that I want to do the following:
function showDebugFields (TorF) {
field._visible = tOrF;
}
I want to set the field 'field' to whatever boolean was passed into "showDebugFields" -
so for example if 'TorF' is "true" - the field 'field' is displayed
otherwise it's not displayed.
But the function "showDebugFields" is not doing it's job.
What happened?
Raymond
View Replies !
View Related
Passing A Var To An Mc
I have a button that sets a variable in its on(Press) event
now I want to pass that variable to an mc elsewhere
how ca I do this? and do I need to set up a global variable? all help is welcome
ta
View Replies !
View Related
Xml Passing...
hi,
...can anyone explain me, how to call xml data in flash mx...i don't have enough knoledge of xml...plz explain me...if possible send me fla file with all the stuff used....
View Replies !
View Related
Passing A Value From Asp.net
i m making a application in whihc user login on ASP page and a one more ASP page opened with differnet frames and one frame i want to run the chat application whihc is made in Flash using flash communication server. i want to pass the User name in the list of Chat People automatically when user login.....Any body help me how can i do this.
appricate the help...
View Replies !
View Related
Passing The Name Of A Mc
hi all,
i am trying to get in the festive spirit and make a flash advent calendar. i am trying to pass the name of a mc to a function. in the function i want to slice the number out. Hopefully you understand
here is the for loop i am using for the door numbers:
PHP Code:
// set loop to run the function open() onRelease
for (a=0; a<=25; a++) {
allDoors_mc["door"+a+"_mc"].btn.onRelease = function () {
// call the function
_root.openDoor();
};
}
so when door 1 is clicked on i want to pass the name of door 1 to the openDoor() function. then i want to slice the name to extract the number 1, to use further on in the function.
cheers
hope some 1 can help.
View Replies !
View Related
Passing Var To A MC
Say I have a variable 1-5. I want to pass this variable to a MC and then have that MC show a certain image. eg. pass variable 3 shows 3 doves in the MC.
How do I pass the variable correctly? Is it a function on the stage AS or on the MC AS??
View Replies !
View Related
Passing A Var Somehow...
Hey guys!
I have a real toe tapper here im just completly stumped on. First lets start with what I'm trying to do:
Im trying to build a little app for a forum that users can put in their sigs that count up from a defined date. Obviously there will need to be some sort of system for users to set this date invidually.
What i have so far is this
ActionScript Code:
oldDate = new Date(2006,10,25);
newDate = new Date();
elapsed = newDate - oldDate;
day.text = Math.floor(elapsed/(1000*60*60*24));
hour.text = Math.floor(elapsed/(1000*60*60)-(day.text*24));
min.text = Math.floor(elapsed/(1000*60)-(day.text*1440)-(hour.text*60));
sec.text = Math.floor(elapsed/(1000)-(day.text*86400)-(hour.text*3600)-(min.text*60));
and all corresponding text fields on the stage and it works fine counting just as i need it to do
*sidenote*(though it uses 2 frames (frame 2 says "gotoAndPlay(1);" how do i make it just auto update the first frame continually?)
My issue is i have defined the start date in the above variable in the flash movie which is why it works. If i am going to have multiple users putting the same SWF into their sigs, how can i get it to use different date(var).
Now, there are 2 ways i could possibly think of to pass the SWF the variable, the first being in the URL (www.someURL.com?oldDate = new Date(2006,10,25)) something of the sort, which i know would work, except i have to put it into sigs by using the direct SWF url which doesnt allow a variable to be passed along with it. The second way was for each user to login somewhere, enter a date and hit generate and it will code the var into the SWF somehow based on the date they provided. I know its not possible to publish an SWF from inside a SWF so i think this idea is out.
I had 2 ideas for getting the info from the user. Now, our forum is a dotnetBB forum for starters. One method i was thinking which i think would be best, would be for somehow adding a field to users profiles where they can store a date and pull the var from that somehow which thinking about it now is pretty much impossible, but anyways. Secondly (and more likely possible) would be to have a page where the users can login, set a date, hit a generate button or something, and it spits out the url to the SWF, which they then copy and place in their sig.
Now again, my issue is this: (especially with the second method) how could i possible get a variable passed to the SWF when its sitting on the forum! its great if somehow sets a date from a few combo boxes in a little flash app with a generate button and a text field where the code gets spit out, but how could i somehow in between the press of the button and the code being spit out attatch the date they specified to the SWF (or the SWF URL) there being given?
I dont know if people have seen these things before, i know there out there - they are like "13 days until my birthday!" or "16years, 2 weeks, 1 day since i was born!" little flash things that are doing what i am trying to recreate! (sorry i dont have a URL to a site that does them, if anyone did that would be super)
so guys, i could REALLY use some help here, im going crazy!!!
SOS!
Cheers,
--][--
View Replies !
View Related
Passing... Out
Why doesn't the text output work?
If trace returns "lb2txt" then shouldn't this work? Isn't this[btnOntxt].text = 'Hello'; the same as lb2txt.text = 'Hello';
btnOntxt = "lb2txt";
this[btnOntxt].text = 'Hello';
trace([btnOntxt]);
Attach Code
btnOntxt = "lb2txt";
this[btnOntxt].text = 'Hello';
trace([btnOntxt]);
View Replies !
View Related
Passing A Var In URL
Hello all,
I had a quick question regarding Passing a Variable VIA the URL. I know you can do something like "www.someurl.com?somevar=true" or somethign like that. But i need to somehow pass a date via the URL Var
Code:
var oldDate = new Date(2005,10,25);
var newDate = new Date();
var elapsed = newDate - oldDate;
How on earth do i pass a date with multiple entried (2005,10,25) via a URL variable? I NEED to send the var oldDate = new Date(); in the URL. i know i cant go "?oldDate = new Date(2003,9,21)"
So how do i pass a variable like that???
Cheers all!
--][--
View Replies !
View Related
Passing XML Into AS
Hey People...
Not sure if this should be in this forum, or in the HTML forums, but I think you guys would know the answer
I am working on designing a "flyer" type of advertisement at the moment... and I have pretty much everything working... everything except for this, that is...
I need to be able to pass a string into flash that would basically be XML into flash. I know how to pass strings in, but where this has many "'s and /'s I am wondering if that would be a problem... "FlashVars" looks like this as an example...
Code:
<param name="FlashVars" value="items=<?xml version="1.0"?><flyer><flyer-item index="1" shortDescription="small car" longDescription="a small car" price="1000" image="http://www.images.com/image.jpg" /><flyer-item index="2" shortDescription="car" longDescription="a car" price="2000" image="http://www.images.com/image2.jpg" /><flyer-item index="3" shortDescription="big car" longDescription="a big car" price="3000" image="http://www.images.com/image3.jpg" /></flyer>" />
Quite a mouthful, eh?
I also have this in my embed tag and for some reason, this is what I get on my page when I try to load it up...
BIG EMPTY WHITE SPACE
" /> " quality="high" bgcolor="#ffffff" width="550" height="400" name="temp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
It's like the XML is terminating the string or something. I can't for the life of me get this to work. Does anyone have an idea how I could get this to work?
Thanks,
--D
ps. I can't set up a webservice to do this, which would probably be a best option... don't ask why... thanks again...
View Replies !
View Related
Passing Xml To PHP
Hi,
I've tried looking through many threads and such, but I have yet to find a solution to my problem. Mainly, I need help with my AS3 to send xml from flash to a php script and reload the data. I've gotten a successful loading of php to flash, but I have yet to successfuly send xml to php. Any simple code or link to a thread or something would be extremely helpful. Thanks in advanced!
View Replies !
View Related
Passing XML To Another Swf
Hey Guys,
Here is my problem - 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??
Any ideas on how to pass xml functions which displays images through local connection.
Cheers,
George
View Replies !
View Related
Passing XML
hi all, im looking at the big spaceship preloader in AS3. The preloader loads an external SWF and XML file. What im looking at it passing the xml from the preloader through to the loadedSWF.
I cant seem to access it, any ideas?
The files can be found here: http://www.adobe.com/devnet/actionsc...eight_as3.html
The preloader AS is as Follows;
Code:
package
{
// as3
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.display.MovieClip;
// bss
import com.bigspaceship.utils.Out;
import com.bigspaceship.frameworks.site.PreloaderClip;
// events
import flash.events.Event;
import flash.events.ProgressEvent;
import com.bigspaceship.events.AnimationEvent;
public class Main extends MovieClip
{
/* i like to define my class variables at the top of the page, so i know what i'm working with.
* private variables are variables only accessible inside this class. if another class tried to access _swfLoader, flash would display an error message.
* these are useful because now i know that the only place these variables will be used or manipulated is in this file.
* if i wanted to open them up so other classes could manipulate them, i'd call them public instead of private.
*
* at big spaceship we use a standard for variables: underscore before private vars, nothing before public and dollar sign before arguments.
* this helps us figure out what variable is of what type without having to go up and down the code.
*/
private var _swfLoader :Loader;
private var _xmlLoader :URLLoader;
private var _loadCount :Number;
private var _loadTotal :Number = 1; // we're loading 2 items total -- a swf and an xml file. count from 0.
private var _xml :XML;
// remember, the Constructor runs automatically. since this is our Document Root class, as soon as the swf starts to run this function is called.
public function Main()
{
Out.enableAllLevels();
Out.status(this,"Ready to go!");
// first let's start by setting our PreloaderClip to tell us when it's finished. remember, Main is our main timeline and preloader_mc is a PreloaderClip.
preloader_mc.animateIn();
preloader_mc.addEventListener(Event.INIT,_onPreloaderIn,false,0,true);
preloader_mc.addEventListener(Event.COMPLETE,_onPreloaderOut,false,0,true);
};
// so the preloader is in and now we can start to load.
// oh, functions can be public and private, too.
private function _onPreloaderIn($evt:Event):void
{
_loadCount = 0;
// this is how to load swfs, jpgs and such in AS3.
_swfLoader = new Loader();
_swfLoader.contentLoaderInfo.addEventListener(Event.INIT,_onSWFLoaded,false,0,true);
_swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,_onLoadProgress,false,0,true);
_swfLoader.load(new URLRequest("loadedContent.swf"));
};
private function _onLoadProgress($evt:Event):void
{
Out.status(this,"_onLoadProgress");
// this is all we need to display load progress.
preloader_mc.updateProgress($evt.target.bytesLoaded,$evt.target.bytesTotal,_loadCount,_loadTotal);
};
private function _onSWFLoaded($evt:Event):void
{
Out.status(this,"_onSWFLoaded");
_loadCount = 1;
// so now we can start to load the xml. here's how in as3.
// note that we can use the same _onProgress function for both swf and xml.
_xmlLoader = new URLLoader();
_xmlLoader.addEventListener(Event.COMPLETE,_onXMLLoaded,false,0,true);
_xmlLoader.addEventListener(ProgressEvent.PROGRESS,_onLoadProgress,false,0,true);
_xmlLoader.load(new URLRequest("content.xml"));
};
private function _onXMLLoaded($evt:Event):void
{
// there's no difference between Out.status and Out.debug. they do the same thing, essentially.
// the power of the out class is in it's ability "silence" one or the other (or any of the "levels" -- status, debug, fatal, warning, and info).
// instead of removing or commenting out all Out.status() calls, I can say Out.disableLevel(Out.LEVEL_STATUS); and no Out.status messages will appear
_xml = new XML($evt.target.data);
Out.status(this,"XML Loaded:");
Out.debug(this,_xml.toXMLString());
// both SWF and XML are loaded, we can tell the preloader to just play through.
preloader_mc.setComplete();
};
// preloader has animated away, time to animate the timeline in.
private function _onPreloaderOut($evt:Event):void
{
Out.status(this,"_onPreloaderOut");
var loadedSWF:MovieClip = _swfLoader.contentLoaderInfo.content as MovieClip;
addChild(loadedSWF); // the SWF is added to the stage.
loadedSWF.gotoAndPlay("IN"); // finally something looks familiar, right? the loaded SWF will play it's in label.
loadedSWF.addEventListener(AnimationEvent.ANIMATE_IN,_onLoadedSWFAnimateIn,false,0,true);
};
// the swf is in. all done.
private function _onLoadedSWFAnimateIn($evt:AnimationEvent):void
{
// now let's trace out the XML data in some organized way, just to show how we can specific data.
// i like to use roman numerals for my loops. so first we loop through conferences...
for(var i:int=0;i<_xml.conference.length();i++)
{
Out.info(this,"***************** " + _xml.conference[i].@name + " CONFERENCE *****************");
// then divisions...
for(var ii:int=0;ii<_xml.conference[i].division.length();ii++)
{
Out.info(this," ---- " + _xml.conference[i].@name + " " + _xml.conference[i].division[ii].@name + "----");
// and then teams...
for(var iii:int=0;iii<_xml.conference[i].division[ii].team.length();iii++)
{
Out.info(this," " + _xml.conference[i].division[ii].team[iii].@location + " " + _xml.conference[i].division[ii].team[iii].@name);
}
}
}
// all done.
Out.fatal(this,"Program complete.");
};
}; // close the class.
}; // close the package.
The loadedContent.fla animates in and has the following code;
Code:
stop();
import com.bigspaceship.events.AnimationEvent;
dispatchEvent(new AnimationEvent(AnimationEvent.ANIMATE_IN));
View Replies !
View Related
Passing Variable
Hi,
I want to have a movie in level1 write variables to level0. I have tried several ways and none of them have worked. I'm not sure I know the proper syntax and have had trouble finding a complete reference on it. Here is what I'm trying right now:
In a frame script in level1 which is loaded into level0:
_level0.module = "netbas";
Then I have a button script in level0 use it this way:
on (release) {
loadMovieNum (+module+"_c.swf", 1);}
I want the button to load the following file into level1: netbas_c.swf. When I test and click the button I get an error that says it can't find "_c.swf" indicating to me that it isn't getting the variable value. It works fine when I set it within level0, but not from level1.
Can you please tell me why this won't work and what I need to do. Is there a better way to have links in level0 use variables that will be set in the current movie in level1?
Where can I get complete help on this?
Additional info: I have several movies that will be put into level1. A button in level0 will load a movie in level1. Once that movie is loaded, then I want all the navigation
buttons in level0 to have "netbas" in front of them so that they only load the swfs associated with the current movie in level1. Then when the user clicks on Advanced
Networking from the main menu and loads that movie into level1, I want all those buttons in level0 to have "netadv" in front of them. (i.e. netadv_c.swf). I hope this is
clear. I've made parts work, but I cannot get the variable to level0.
Thanks,
Brian
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 Var From The Html To The MC
how could i pass the variable called val to the MC in the same page
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>moock>> web>> flash>> fs command>> javascript to flash</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var val='';
function Chheck(){
if (val!=document.forms[0].attfile.value){
val=document.forms[0].attfile.value;}
window.status=val;
setTimeout(Chheck,30);
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onload="Chheck()">
<DIV ALIGN="CENTER">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="Movie1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Movie1.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<FORM>
<input type="file" name="attfile" id="attFbutton" ONCLICK="" value="loadthis" size="50">
</FORM>
<input type="hidden" name="curmbox" value="F000000001">
<input type="hidden" name="attachmentfilename" value="">
<input type="hidden" name="attachorcancel" value="">
<input type="hidden" name="userfilename" value="">
<input type="hidden" name="contentType" value="">
<input type="hidden" name="smsg" value="">
<input type="hidden" name="attfiles" value="">
<input type="hidden" name="stationery" value="">
<input type="hidden" name="originalstationery" value="notset">
<input type="hidden" name="ref" value="">
<input type="hidden" name="RTEbgcolor" value="">
<input type="hidden" name="from" value="">
<input type="hidden" name="oldattfile" value="">
</CENTER>
</BODY>
</HTML>
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
PLEASE HELP - Passing Vars Through MC
Hi!
Simple question.
I have MC that is called by this:
<param name=movie
value="/images/navpanel.swf?what=destination&whatID=1&lang=EN">
embed tag is the same.
Now, I have in the MC Action script following
onClipEvent (enterFrame) {
if (menu.done == undefined) {
menu = new Object();
tree = new XML();
tree.load("/assets/navpanel.cfm?what="+what+"&whatID="+whatID+"&lang= "&lang)
;
menu.done = false;
}
if (tree.loaded && menu.done != true) {
makeFlashVars();
menu.done = true;
}
}
The problem is - MC is not passing the parameters through.
If I change all '+' in URL query string to '&' - then the movie content is
not showing
And if I put all '+' then parameters are not shown.
HELP!
How to define variables so that they are loaded from HTML and then passed
through to another XML.
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
Duplicate MCs And Passing Var
>>>posted in "newbie" but no reply, maybe is not so simple...
--------------------------------------------
hi all,
i got some problem with a (i hope) simple code;
in synthesys, i got a txt file with some variables (link1,link2,link3,etc.) that i load in the _root, and a movie (named p), duplicated n times (p1,p2,p3...), with a dynamic input text inside (named link) where i want to put the loaded vars.
here is my code:
\\\\frame 1:
loadVariables ("./menu.txt", "");
n = 1;
pos = p._x;
while (n<5) {
pos = pos+102;
_root.p.duplicateMovieClip("p"+n, n);
_root["p"+n]._x = pos;
n += 1;
}
\\\\frame 2:
for (n=1; n<5; n++) {
this["p"+n].link = _root["link"+n];
this["p"+n].testo = _root["testo"+n];
}
stop ();
but it does't work...
any santa claus who can help me?
thanks a bunch in advance..
cone-
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 Variable
I have a base movie. In this base movie I have loaded two other movie using the basic action:
loadMovieNum ("movie1.swf", 1);
loadMovieNum ("movie2.swf", 2);
I have identified and set variables in movie1.
[eg. _root.variable1 = "white";]
I would like to be able to change these variable from movie2.
[eg. _root.variable1 = "blue";]
I have not been able to do this.
Advice please.
View Replies !
View Related
Passing Variable
I have a base movie. In this base movie I have loaded two other movie using the basic action:
loadMovieNum ("movie1.swf", 1);
loadMovieNum ("movie2.swf", 2);
I have identified and set variables in movie1.
[eg. _root.variable1 = "white";]
I would like to be able to change the value of the variable from within movie2.
[eg. _root.variable1 = "blue";]
I have not been able to do this.
Advice please.
View Replies !
View Related
Variable Value Passing
I am trying to make an RPG in flash... I have a dynamic text box in the top left hand corner of each scene, to show how many credits the player currently has. The variable of that textbox is "showcredits". So I put in 2 actions:
credits = 500
showcredits = credits
In this game, people will be able to purchase things using the credits. But here is my problem. I have a seperate scene for a store in which they can buy things. In this scene, I have one action:
showcredits = credits
But in this scene, the number of credits doesn't show up... I'm guessing that the value I set for the "credits" variable in the first scene didn't pass over to the next scene... what can I do?
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 Parameters To Swf
Hi,
I'm an experienced programmer, but completely new to Flash.
I want to create a SWF that draws a guitar chord box, but I don't want to publish a different SWF for each possible chord.
My idea is by passing pre-defined custom variables, the chord shape will be drawn at run-time.
I also envisage having multiple chords on a single web page (all using the same SWF file, but being passed different variables defining the fingering etc.)
Can anyone tell me how to go about the variable passing?
All I can find so far is how to open a text file with variables, but since the name of the text file gets compiled into the SWF, it's not suited to my particular problem.
Thanks,
SadCafe
View Replies !
View Related
|