ActionScript 2.0 :: Receiving A FlashVars Named VarRegion Which Is A Number?

Sep 1, 2005

Receiving a FlashVars named varRegion which is a number.I need to use that number to point to a Frame Label .ie

if FrameLoaded (110) {
if (varRegion == "") {
gotoAndStop (6);[code]....

But obviously the varRegion has not got the ""'s need to work.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Count The Number Of FlashVars From HTML?

Jul 11, 2011

I am creating a simple image viewer using AS3 and getting image URLs from flashVars in the HTML. I want to use an if argument to have it perform one function if there is only one flashVar and another if there are more.
 
I have it reading the flashVars fine and can write if statments all day long, the trouble I am having is counting the number of flashVars being passed from the HTML. here is a real dumbed down version of what I am trying to do (which doesnt work because I can not figure out the correct process to follow):

[as]
var numberOfVars:Number = 0; // to store the number of flashVars
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; //get the flashVars

[Code].....

View 1 Replies

ActionScript 3.0 :: Count Number Of FlashVars From Html?

Jul 11, 2011

I am creating a simple image viewer using AS3 and getting image URLs from flashVars in the HTML. I want to use an if

argument to have it perform one function if there is only one flashVar and another if there are more.

I have it reading the flashVars fine and can write if statments all day long, the trouble I am having is counting the number

of flashVars being passed from the HTML. here is a real dumbed down version of what I am trying to do (which doesnt work because I can not figure out the correct process to follow)[code]...

View 1 Replies

ActionScript 3 :: Counting Number Of FlashVars Before Entering If Statement

Jul 11, 2011

I am creating a simple image viewer using AS3 and getting image URLs from flashVars in the HTML. I want to use an if argument to have it perform one function if there is only one flashVar and another if there are more. I have it reading the flashVars fine and can write if statements all day long, the trouble I am having is counting the number of flashVars being passed from the HTML.

var numberOfVars:Number = 0; // to store the number of flashVars
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; //get the flashVars
for each (paramObj in LoaderInfo(this.root.loaderInfo).parameters){
numberOfVars + 1;
} var tf:TextField = new TextField();
addChild(tf);
[Code] .....

View 3 Replies

ActionScript 1/2 :: Dynamic Text Boxes One Named "item" And One Named "ssnumber"?

Jan 17, 2011

here is my new code that works for PART of my movie. i have two dynamic text boxes, one named "item" and one named "ssnumber" ssnumberNode works fine but itemNode does not. i bolded the parts that i think are relevant to the problems

[Code]...

View 3 Replies

ActionScript 2.0 :: Generate A Random Number Between 2 Number BUT Without Generating 2 Same Number?

Jul 16, 2009

Dear Guys I Want To Generate A Random Number Between 2 Number BUT Without Generating 2 Same Number I Mean If For Example Already Generated Number "2" Next Time Did Not Generate It , Is There Any Solution

View 5 Replies

IDE :: Generate Random Number Between 2 Number BUT Without Generating 2 Same Number?

Jul 16, 2009

I Want To Generate A Random Number Between 2 Number BUT Without Generating 2 Same Number I Mean If For Example Already Generated Number "2" Next Time Did Not Generate It,

View 4 Replies

None Of Layers Named In Flash?

Oct 18, 2009

I have just entered Falsh and for some strange reason none of my layers are named. Not only that, when I draw a circle for instance and I want to move that circle. I have to move the line and the fill seperate... I think this has something to do with the layers not being named. I will be posting a print screen. Click the link. [URL]

View 3 Replies

ActionScript 3.0 :: Receiving Data From Php?

May 31, 2010

my first flash webpage sends data to a php script.  I then do

var result_data:String = String(contactLoader.data);
if (result_data == "ok")
{
navigateToURL(strURL, "_self");
}
 
So if the data is sent with no problems, it will load up my new url.  Problem is, this new url needs this data to display it.  So, if my php file holds the data in variables, how can my new url retrieve these in real time? (meaning that data goes straight from swf to php to new swf)  I have been trying LoadVars, but not sure if this will work in real time, maybe it will.

View 8 Replies

Php :: Sending And Receiving Data?

Feb 28, 2012

Not getting data back into flash from php that queries mysql data, think the problem is with my as3 code here?The php works, the as3 posts to the php ok, its the returning of the variables to as3 that I am unsure about and seems to be the problem?

public static function MineData():void{
var myRequest:URLRequest = new URLRequest("login.php");
var myLoader:URLLoader = new URLLoader();

[code].....

View 1 Replies

Asp.net Mvc :: Receiving Post From Flash?

Mar 13, 2012

I have a flash-movie on my webpage, which makes a post when its done playing. I want to catch that post and update a session.

I get the following "post-error" when the movie ends.

POST /en/RunTest/test/showmovie/finish
HTTP/1.1 500 Internal Server Error

"test" is my controller"showmovie" is my action which takes an id as parameter. fx.

/en/runtest/test/showmovie/1

That is the page my flash is on.

I've tried the using the HandleUnknownAction-method, but it just never gets there. I've tried some MapRoute'ing - but havent succeded.

What i want is the method setMovieSeen to be called whenever i recieve the post from the flash.

View 1 Replies

Actionscript 3.0 :: Receiving Data From A Different Url?

Jun 29, 2010

I'm setting up a kind of database, where the data are coming from a specific url.
I receive the source code of that url, get the data I look for, and display this in a text box. This works fine as long as I start the swf locally. However, when I copy the swf to my home page, the data obviously cannot be received anymore.

To make it more clear (with fictional url): Homepage [URL] contains the swf; tries to automatically read and display the source of [URL]

View 11 Replies

IDE :: Accessing Dynamically Named MCs?

Nov 10, 2009

Trying to get from AS2 to AS3 and the simpliest things are taking too long.I have some movieclips on the main timeline named...

btnSm1_mc
btnSm2_mc
btnSm3_mc

[code].....

View 2 Replies

ActionScript 3.0 :: Receiving A Variable From Php

Nov 3, 2010

I just build a simple web server, but now in one of the pages I would have to have a flash (.swf) embbeded. Maybe an easy task, but also I would like that the .swf receives data from the PhP page, but I cant figure how Simply that when I push the button in the .swf, the sampletext changes to a variable name I have in php.[code]

View 6 Replies

ActionScript 3.0 :: MC Can Be Named Like An Array?

Mar 14, 2011

I'm trying to make some dynamic movie clips, with a drawn rectangle inside a for loop. But I can't figure out if an MC can be named like an Array. How close is this?

Code:
function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);

[Code]....

View 3 Replies

ActionScript 2.0 :: Receiving Commands From Toolbook

Nov 12, 2003

I'm trying to reset my flash movie from inside toolbook by sending a variable to flash. I could have two problems: either flash doesn't understand toolbook or my actionscript is just wrong. How should I recieve a the command from toolbook? I've tried alot of different things.

View 1 Replies

ActionScript 3.0 :: Receiving Socket Messages?

May 25, 2010

I am currently working on a project that involves using sockets. I am using Flash CS5 and AIR2.0. I am also using another program that will be acting as the socket server (Esperient Creator).I have successfully SENT socket commands from my AIR app to the server.What I need to do is RECEIVE socket commands within my AIR app from the server program. I read somewhere that this was a new feature for AIR 2.0. If anyone has any insight on how to get this to work.

View 1 Replies

ActionScript 3.0 :: Collision With Similar Named Mc's?

Dec 11, 2010

I am making a game and it has falling objects (similar to shooting) and it also has some other random generating objects going to the other direction. So the objects aren't already on the stage. I was wondering if when I spawn them if I could put them in an array or something and check collision between the two arrays or what?

View 3 Replies

ActionScript 3.0 :: URLLoader - Receiving PDFs From PHP

Oct 9, 2008

I want to instruct a server-side PHP script to generate a dynamic PDF using variables I submit from Flash. I then want to download that PDF back into my Flash application. Can I use "Loader" or "URLLoader" ? If so, how do I structure my code to render the PDF within Flash when it comes back from PHP? ...or do I have to use Flash Remoting or other means to achieve my goal?

View 3 Replies

Named Anchor Links In Flash?

Jul 6, 2009

how can i make named anchor links in flash, i tried this: [URL] i dowloaded the sample, it works as it is with as1 but it doesn't seem to work with as2?

View 1 Replies

ActionScript 3.0 :: How To Retrieve Named Object

Jan 23, 2010

Inside my loop, where i get my XML objects I added a code to draw and add the mask:
 
var myMask:MovieClip = new MovieClip();
// settings for width height x y color fill etc etc.
myMask.name = "NAME-"+i; // set the NAME
myContainer.addChild(myMask);
myContainer.mask = myMask;

 the mask looks fine on the stage.now since i name it, i want to use it for other purpose like moving it now i want to actual call myMask
i get my number "num" from other function, that works fine
 
function applyMask(num:int):void {
// need to call   myMask("NAME-"+num)
}
 
i have tried myContainer.getChildByNamehave tried:         

var masking:myContainer=getChildByName("NAME-"+String(num)) as myContainer;

i have traced for options i can think of myself, but all result no property found. 

View 3 Replies

ActionScript 3.0 :: Receiving Variables Back From Php?

Apr 21, 2010

basicaly i have narrowed it down to this code

[Code]...

As silly as it sounds, i need the trace to see the error. I am using cs4 for this and have not found anything so far to explain why it is not working. You can test it out without needing anything on stage.
 
This is the error i get and do not know why. undefined is the varSend trace
 
TypeError: Error #1010: A term is undefined and has no properties. at Untitled_fla::MainTimeline/frame1() is the varLoader trace

View 3 Replies

ActionScript 3.0 :: Receiving Response From Php Script

May 25, 2010

I have built a simple contact form that sends t an email address via a php script. This works fine, (message detalis are sent as URLVariables, which are the data property of a URL Request whose method is set to POST). The PHP script returns a boolean value to confirm that the details have been successfully forwarded to the mail server:

[Code]...

View 1 Replies

Professional :: Swf Is Not Receiving SendAndLoad Variables?

May 26, 2010

I am using the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly, including the PHP script returning the following variables:
 
&mySubscriberID=36&firstName=Bill
 
But the variables are not making it back into the swf file. Here is the code for the first frame of my flash file:

[Code]....

I also have dynamic text fields with the above variables assigned to them.

View 1 Replies

ActionScript 1/2 :: Swf Is Not Receiving SendAndLoad Variables?

May 26, 2010

the sendAndLoad class to perform a script through PHP and load the variables back into the swf. Using Firefox Firebug, I am able to tell that everything is executing correctly,including the PHP script  returning the followingvariables:&mySubscriberID=36&firstName=BillBut the  variables are not making it back into the swf file. Here is the code for  the first frame of my flash file:

stop();  var sendLV = new  LoadVars();var recLV = new LoadVars();
recLV.onLoad =  function(success:Boolean){trace("recLV back from php");}
sendLV.onLoad  = function(success:Boolean){  nextFrame();  trace("sendLV  back

[code].....

View 7 Replies

ActionScript 1/2 :: No Property Named 'onMotionFinished'

Jul 3, 2011

i'm experiencing a strange issue,  until now i alwasy have used "onMotionFinished" without problem, like in this way...[code]suddendly, without any reasons, i get this error in the compiler when trying to publish no property named "onMotionFinished" (i translated it from italian language)i tried also opening other fla i created with the same actionscript, that have always worked fine.there is no way to use the property again.url...

View 4 Replies

Actionscript3 :: Loading A Swf Named In Xml Into A Parent Swf?

Aug 23, 2010

I have a situation where I use loadvars to load an xml file, which has the address of 2 swf's on the server. I can trace the xml items so know they are loading. So I'm trying to load the swf's but am running into problems. First problem, the swf always gives an error when I publish from flash, "TypeError: Error #2007: Parameter url must be non-null." as it can't find the mention of the xml file, as it's just being published. I'm not sure this affects the next issue which is the swf not loading when I try to load it like this:

var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest(loadswf1); // where I know loadswf1 = "myswf.swf"
loader.load(defaultSWF);

[code]......

View 1 Replies

Flash :: Using CurrentLabel To Reference An Already Named MC?

Jan 20, 2012

Novice Flash dev here. I'm having a bit of trouble passing the name of an existing MC on my stage to a new variable and then tweening it. I've tried everything I could find.Here is the set-up:

3 levels of question difficulty: Easy, Moderate, Hard. Each question is a seperate MC in the library.Each question has two strings of text: one normal and one altered.container_MC contains all of the questions.Inside container_MC each frame contains one of the question MCs along with a second MC called highlight.Each of these frames is then labeled with the difficulty of the question and the question number i.e. easyQuestion1.Highlight is a MC containing a box that surrounds the alteration. It is labled the same as the frame +"Highlight" i.e. easyQuestion1Highlight.Each of the highlight boxes has Alpha =0.Each frame also contains the variables that determine the correct answer and the difficulty of the question.NONE of the objects on the stage have been added dynamically with addChild (note the Novice portion of my intro :D).

On my maintimeline I have one instance of container_MC. If the player selects the correct answer the current frames highlight box changes from Alpha =0 to Alpha =1.

[Code]...

View 1 Replies

ActionScript 2.0 :: Access Is Named MstrContArraySub0?

Jan 15, 2009

how do I word this:

var crntContArray:Number = 0;
var currentArraySub = mstrContArraySub ... crntContArray;

the array I'm trying to access is named mstrContArraySub0

View 5 Replies

ActionScript 2.0 :: Receiving Multiple Variables From PHP

Aug 4, 2009

Currently I have a simple setup which sends some data to PHP and then PHP returns a variable to flash. I have no problem tracing out the returned variable in Flash, however i'm strugling to send back more than one variable.[code]If I remove the trace and echo for fromPHP2, it's all good, however with with my second echo for fromPHP2 it just gives me back undefined:[code]It seems that fromPHP1 is basically returning both echo's.

View 1 Replies







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