ActionScript 3.0 :: New Variables Passed Without Refresh
Mar 24, 2011
I'm using swfObject to load my flash. I need to call a function or pass new variables into the flash file without it reloading. The user clicks on a button and the flash text needs to change. I have it working but it reloads the flash file and looks very choppy.
View 1 Replies
Similar Posts:
Dec 23, 2004
I am trying to use the tutorial on this site to create a simple form submission to my database via ASP. I couldn't open the sample - I am on MX. But I followed the steps on the webpage.My variables are not being passed. All of the Response.Write statements in my ASP page are coming up blank.So I have the 3 input text fields. I specified each with the same variable name as used in the tutorial (fname, lname, email, message). I also used those same names as the instance names but that didn't help so I've deleted it. So currently there are no instance names, just variable names.And then there is a submit button with the code from the tutorial:
on(press){
getURL("http://mysite.com/processForm.asp",0,"post");
}
Thats all that is in the movie.The ASP page comes up, and the database submission completes, but all the variables and database fields are blank.
View 3 Replies
Dec 23, 2004
I am trying to use the tutorial on this site to create a simple form submission to my database via ASP. I couldn't open the sample - I am on MX. But I followed the steps on the webpage. My variables are not being passed. All of the Response.Write statements in my ASP page are coming up blank.
So I have the 3 input text fields. I specified each with the same variable name as used in the tutorial (fname, lname, email, message). I also used those same names as the instance names but that didn't help so I've deleted it. So currently there are no instance names, just variable names. And then there is a submit button with the code from the tutorial:
[CODE]...
View 3 Replies
Jan 30, 2009
Basically, I have an XML object which is pulling layout variables, and then those variables are being passed to another XML object which is sourcing some video thumbnails.And its actually working fine, but only after some tinkering. It seems that the passed variables have to be redifined in some fashion within the scope of the new function.It might be easier to explain with the code:
function makeGrid(backwidth, thumbHolderX, thumbHolderY, numCols, tSpacing) {
trace(backwidth);
trace(tSpacing);both trace just fine but (See spacing variable below)
[code]......
View 0 Replies
Apr 14, 2012
Is there a there a way to run a movie with url variables passed? So instead of test.swf, it would run as test.swf?var=1&var2=2
View 1 Replies
Sep 20, 2010
I have been using the flashvars from swfobject for a long time to pass info into my swf for specific outcomes. I am just starting to publish everything using flash player 10 and wasnt able to get my variable to be seen by the swf. maybe i was doing something incorrectly with this new file? but i then took code from my older files and they didnt work either... then i published down to flashplayer 9 and it worked perfectly... ???
i am using swfobject 2.2 and my code for passing the flashvar is
// Flash Code:
Code:
var r:int = root.loaderInfo.parameters.varName == null ? 0 : root.loaderInfo.parameters.varName;
[code]....
View 1 Replies
Mar 11, 2008
I'm having a bit of a problem with external vars and timing.I'm building a custom FLV player. In the parent HTML I have some boolean variables that I'm passing to the SWf, stuff like autoStart and loopPlayback.[code]The problem is that line gets executed before the external var gets in, I think. If I place a dummy var at the top of the AS then everything works fine. And the external var is definitely getting passed in, I have setup a check for that.I would need something like loadVars.onData ...but I'm not using loadVars, I wnat the vars to come in from the SWFObject HTML, or maybe a query string.
View 2 Replies
Jan 3, 2010
I'm basically trying to extract a series of variables that are passed in URL from another flash movie. I have researched flash vars and the like and didnt really get far.[code]I was able to get the URL into Flash!So flash now has a variable called "section" that holds a string like this.url...My question is; how do i get the values held in each of these days, weeks, years, etc into a format that can be used with in the flash movie. Ideally into seperate variables where the values can be returned in a textbox.
View 1 Replies
May 9, 2010
I need to get variables that are passed from my html object and/or embed tags, so I can use them in my flash project.
for example: src="/incl/flash/Line_Graph.swf?a=value1&id=1"
how can I get a and id inside my flash file?
View 3 Replies
Dec 30, 2010
I'm trying to create an application that receives variables passed through FlashVars and makes use of the new TLFTextField. I have run into an issue with accessing the FlashVars after declaring a TLFTextField variable.
The code I have is as follows:
ActionScript Code:
import fl.text.TLFTextField;
var tf:TextField = new TextField();
[code]....
The HTML file is passing a FlashVars value of "title=ThisIsTheTitle" If I run the code, the tf TextField is empty. If I comment out the last line that creates the TLFTextField, the FlashVars come through fine and the tf TextField displays the "title" variable that was passed through FlashVars.If I change the last line to read:
ActionScript Code:
var titleTLF:TextField = new TextField();
It works fine (the "title" variable from FlashVars is show in the tf TextField). I don't understand why delcaring a TLFTextField prevents the FlashVars from being accessed.
View 3 Replies
Jun 17, 2010
I'm having a little trouble with my move to as3, (surprise surprise huh?) Basically when I create a movieclip, I wan't to pass some values into it, like so:
Code:
var menu=new Menu();
menu.x=50;
[code].....
View 2 Replies
Sep 19, 2010
I am tying to find a way to refresh variables with new data. I am using PHP and MySQL to randomly assign new data to a variable when the script is called. This new data is passed to Flash as in a variable using these functions:
varReceiver = new LoadVars();
varReceiver.load("iat_config.php");
varReceiver.onLoad = function(success){
[code]....
So my problem is that every time I call my movie to go to this frame that contains this actionscript, it does not provide me with new variables. Another important variable I need to change every time the frame occurs is startTime = getTimer(); However, the variable startTime will stay they same and not change when the frame is recalled.
View 1 Replies
Aug 31, 2009
I have created a little virtual shop that reads the amount of money a player has and then enables different products to be bought. Eg - if someone has 200 points they can buy a ball for 20 or a bat for 200. This all works fine for one purchase. All of the items check the score and are enabled or disabled fine. However, say I purchase the ball - the points reduces by 20 to 180 - not a problem - but the bat is still enabled even though the variable has reduced so they can't afford it.Is there a way of refreshing the variable so that the items are constantly monitoring the variable amounts?[code]I put it in an mc so that if they buy the item it goes to a different frame where there is no mc to check the myscore var and therefore they've bought it!
View 1 Replies
Jul 15, 2004
how to refresh the dynamic varaibles using the loadVariables command? At the moment they are caching on the web - but it works the way i want it when tested in Flash.
View 1 Replies
Apr 28, 2010
What is the correct syntax to initiate a function in a class similar to constructing an associative array? I have a function that's custom variables is ballooning out and I'd like to label them in the call for sanity sake.
currently:
myClass.myClassFunction("hello world",999,0xff0000);
desired:
myClass.myClassFunction(myText:"hello world",myNumber:999,myColor:0xff0000);
and the class itself for reference:
class com.myClass {
public var myText:String;
public var myNumber:Number;
[code]....
View 6 Replies
Sep 30, 2010
I had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
[URL]
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.
View 1 Replies
May 8, 2006
How can a pass an asp value <%thisvalue%> to a SWF file? I can get the SWF to connect to an XML database but need to be able get a value from the ASP code so I can compare the XML database table and extract the correct information.
XML DATABASE
ClientNumber
Client Name
ASP VALUE (contains the ClientNumber to compare)
<%thisvalue%>
View 1 Replies
May 12, 2008
i'm trying to send out some input form variables top a php script via loadVariables() and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:[code]is there a way to keep this from happening in flash or do i need to start getting fancy with the php?
View 3 Replies
Dec 22, 2009
i have start the timer timer.start();how I can determine how much miliseconds or seconds passed , since the timer passed [code]Returns the number of milliseconds that have elapsed since Adobe Flash Player was initialized.getTimer() display since the FlasPlayer starts, how to get value of timer
View 3 Replies
Sep 24, 2008
How can I get access to the parameters that are passed into the swf, such as My.swf?xyz=123 ? How can I get the value of xyz?
View 3 Replies
Nov 4, 2009
Why isn't the "finco" not recognised/passed to php? I'm not getting the text results!!
Code:
var finco = "motors01";
XMLParser.load("[URL]"+finco, onFinish);
function onFinish($success:Boolean, $results:Object, $xml:XML):Void {
if ($success) { category.text += $results.category[0].value;
namez.text += $results.namez[0].value;
[Code] ......
View 17 Replies
Dec 22, 2009
i have start the timer
timer.start();
how I can determine how much miliseconds or seconds passed , since the timer passed
from flash documentation :
getTimer():int
Returns the number of milliseconds that have elapsed since Adobe Flash Player was initialized.
getTimer() display since the FlasPlayer starts, how to get value of timer
View 4 Replies
Mar 26, 2010
I have a basic XML file and a parser in as3.
So far, I can get it to parse and trace data from the xml file:
{
xml = new XML(e.target.data);
var tester = xml.item;
[Code].....
My objective is to pass in a bunch of variables from my XML file that I can use anywhere in the flash project.
View 5 Replies
May 26, 2010
I have a flash file that I am trying to debug. It loads a second flash file which it passes data to, and then that data is sent to a server. Unfortunately the data isnt coming out how it should.
I would like to know if anyone knows of a way to see what data is being passed to the embeded flash file from the original flash file. I need to make sure the data going to it is correct.
View 1 Replies
Jan 5, 2011
I'm trying to catch when a second is passed using getTimer. I don't want to use setInterval, because I'll need to pause, and unpause it. So.. here's my code:
[Code]...
What is wrong with this code? It seems that the time variable reachs 1000 milliseconds too fast.I'm not getting a second interval. How would I fix that?
View 1 Replies
Mar 30, 2010
does anyone know how to encrypt the parameters that are passed to a flash movie? The case is, that the user should not be able to read the parameters in the source code in plaintext.
View 2 Replies
Sep 16, 2010
Like the subject says, I'm passing in a url string through swjobject, and then using that variable to make a url request upon an event. Here is the code. If I remove the loaderInfo and just declare my url in the actionscript itself, it works fine.
[Code].....
View 0 Replies
Jul 11, 2011
I'm trying to see if a specific date has passed but it's not working.Here's my code so far:
ActionScript Code:
var currDate:Date = new Date();
checkIfDateHasPassed = function(y, m, d){
[code].....
View 3 Replies
Jul 25, 2011
Passing an XMLList to a function to layout text and link that text as a button.[code]...
So it displays fine but every link that is set up in the MouseEvent.CLICK is the last one that gets processed, even though it displays the text for every link correctly.
I have traced it inside and outside the MouseEvent and its all fine, but anytime i click any button it always goes to the one link (the last one processed)
View 2 Replies
Sep 8, 2005
why is my variable not being passed into my function?
Code:
dealerLocate.urlButton.linkButton.onRelease=function(webAddress){
web=webAddress
trace("this is web "+web);
[Code]....
the webAddress variable is from the exact same timeline making it one level up from this function. it traces out correctly too so I know the variable is there... just not getting passed!
View 6 Replies