ActionScript 2.0 :: GetURL() Dynamic Variables As Url Target?

Mar 18, 2010

Here's my code:

Code:
// Set the position and nodecount variable here
var position = 50;

[code]....

View 6 Replies


Similar Posts:


Target Inline Frame Using GetURL?

Aug 31, 2009

I am using a flash template with a _urls.txt file. I would like to change the code so I can display a target html page in an inline frame. My goal is to change the page content when a when a nav item is choosen without reloading the swf.I have tried several methods with no luck. What should I do to accomplish my goal?Here is the original code in the template.

on (rollOver) {
gotoAndPlay("s1");
}

[code].....

View 1 Replies

ActionScript 2.0 :: Target Html Frame From Flash GetURL Flash8

Mar 18, 2007

Note: I rarely join forums or post threads, however, given the living hell i went through to figure this problem out I thought i would go ahead and post this for all others having my problem (in hope that you find this link and it solves your problem). Aim: using frames, I want to create a flash menu in the left frame, the buttons in the left frame should open up the target page into the (main) right frame. [in other words a normal frame based website that has a flash menu as the navigation for the site] Problem: When using getURL to open the page in the frame i.e. on (release) {

[Code]...

View 2 Replies

Using Variables Within GETurl?

Nov 9, 2009

I've created a 'flashvars' tag in my embed code (aid=test), which I simply wish to add to the end a GetUrl statement, contained in within a button (which is on the first level of the flash movie). This is the code I've added to the button...
 
on (release) {    getURL("http://www.platinumselect.com?id="+aid);}
 
But this doesnt seem to work!? Is there anything else I need to do?

View 8 Replies

Php :: Flash Using GetUrl To POST Variables?

Jun 26, 2011

I have been tyring to figure this out for a while now and no luck. I have some AS2 code below which works:

on(release)
{
var sendText = "../Flash/uploadVoteandFeed.php?";

[code].....

View 1 Replies

ActionScript 2.0 :: Using Variables In GetUrl Via JAVA?

Nov 26, 2010

I've got a picture gallery based on some flash code that reads an XML data from file and assign appropriate variable parameter.

So. I've got XML
<gallery>
<thmb="thumbnails/003_tmb.jpg" weblink="http://www.reverbnation.com/universeupsidedown"/>

[Code]....

Can I use a variable data instead of a straight url adress with a getUrl using JAVA code... As I understood a new floating window is possible to open just using JAVA code... Ho can I put varriable istead of adress on Java and ActionScript?

View 3 Replies

ActionScript 2.0 :: Passing Variables From Flash To PHP With GetURL

Mar 28, 2011

I am just trying to pass some variables from flash to php with getURL
getURL("CompSummary.php?url3=" + url3, "_self");
URL33 keeps coming back as undefined

However I printed out url3 using dynamic text in the flash movie just to check it and it does indeed exist, and is defined. I also tried creating a string and passing that to getURL
var path = "CompSummary.php?url3=" + url3;
getURL(path, "_self");
still no luck.

View 5 Replies

ActionScript 2.0 :: Building GetUrl Querystrings W/variables?

Nov 23, 2004

i'm running into what seems to be a simple syntax issue i i have a querystring passing a var to my .swf. this var is getting into the movie fine and i can output it in a text box, but i'm having problems "rebuilding it" into my new getUrl. here's what i have:

Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");

[code].....

View 2 Replies

Which Sends Variables To A PHP Page Through GetURL - Post Method?

Sep 22, 2009

I have a Flash Form, which sends Variables to a PHP page through getURL - Post method.

My requirement is that : i need to redisplay the Form variables (name, email and so on) back in Flash as a confirmation after the data has been entered into the database in the PHP page.

View 1 Replies

ActionScript 2.0 :: Building GetURL Query Strings With Variables

Nov 23, 2004

I have a querystring passing a var to my .swf. This var is getting into the movie fine and I can output it in a text box, but I'm having problems "rebuilding it" into my new getUrl. Here's what I have:
Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");
}

What I'm looking to see interpreted by the browser is:
Code:
on (release) {
getURL("index.cfm?searchtype=OH");
}
(where the value of _root.searchtype is "OH"). [URL]

View 2 Replies

ActionScript 2.0 :: GetURL() And POST - Passing Variables To Server

Feb 15, 2005

I am having trouble passing variables to my server. The following code is on a button:

[Code].....

View 2 Replies

ActionScript 2.0 :: Using POST In A GetURL Just Grab Any Variables On The _root?

Dec 19, 2006

I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self) is getURL the appropriate choice for this? (never done it this way before). if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?

View 3 Replies

ActionScript 2.0 :: GetURL And Variables - Flash Movie To Begin At Particular Frame

Aug 18, 2009

I have 2 buttons in a flash movie with the following codes. They open a new URL that also contains a flash movie and it sends the variable "nFrame" and a value.

Button1:
Code:
on (release) {
getURL("goats.html?nFrame=1");
}

Button2:
Code:
on (release) {
getURL("goats.html?nFrame=2");
}

When the new URL opens I want the flash movie to begin at a particular frame depending on what variable "nFrame" is equal to. I tried placing this code in the first frame to do it but it didn't work, the movie just loops and loops and doesn't stop at any frame.

Code:
if(nFrame=1) {
gotoAndStop("cheese");
} else {
gotoAndStop("wine");}
}

View 1 Replies

ActionScript 2.0 :: Pass Flash Variables Through A GetURL Javascript Function Call

Dec 2, 2009

How To Run A Shadowbox Gallery From A Flash getUrl function Call..

This Is What I Have In My Flash:

btn1.onRelease = function() {
getURL("javascript:MyGallery([page1,app1]);", "_self");
}

I want to be able to declare my arguments in flash like so

var page1 = {
title: 'Google',
player: 'iframe',

[Code].....

View 1 Replies

Using Variables To Target An Array?

Jun 1, 2011

Its easier explained if I just write down the code:

function loadMc(frame:Number){
aNum = "array"+frame;
array1 = ["mcname", "identifier", "200"];

[code].....

View 1 Replies

ActionScript 2.0 :: Using Variables To Target Mc?

Feb 8, 2011

I am building a gallery that creates movieclips dynamically within another dynamically created movieclip. I tried to target those movieclips using variables the following way:

_root.mc_holder[parent_mc][child_mc].onRelease=function(){
//whatever
}

but it won't work. I have trace(_root.mc[variable1][variable2]) and it returns the right path, so why is the onRelease not working?

View 4 Replies

ActionScript 2.0 :: GetURL After Clicking Dynamic Text?

Mar 14, 2006

Is it possible to open a url after clicking dynamic text? I have some fields which I filled from XML, now I would like to add url to them (for they worked like a link), but somehow I can't. Or is the only possibility to "cover them" with MCs which will get onRelease? So if I have a node like:

Code:
<node description="Should be a link" url="http://something.com />

And now I fill the dynamic textfield like:

Code:
mytext_txt.text = ....childNodes[i].attributes.description;

... how can I add the url to it in the easiest way?

View 9 Replies

ActionScript 2.0 :: GetURL() Doesn't Work Inside Dynamic Mc?

Jan 8, 2004

Still creating the menu I ran into this problem with getURL. I've tried a lot of things, but it still won't go to the URL. Here's my AS code. I marked out where the getURL is.

[AS]
// Create xml-object
menuXml = new XML();
// Ignore tabs, spaces etc.

[Code].....

View 6 Replies

ActionScript 3.0 :: Accessing Variables Of An Event Target

Jun 15, 2009

I have an instance of a movie clip called dirt I assigned a variable to dirt called dirt.val I also added an event listener to dirt that calls a function In the function I want to access the dirt.val property, but evt.target.val doesn't work.

View 3 Replies

ActionScript 2.0 :: [MX2004] GetURL() Doesn't Work Inside Dynamic Mc [XML]?

Jan 8, 2004

Still creating the menu I ran into this problem with getURL.I've tried a lot of things, but it still won't go to the URL.Here's my AS code.I marked out where the getURL is.

[AS]
// Create xml-object
menuXml = new XML();

[code]......

View 6 Replies

Professional :: Event.target.data & URLLoaderDataFormat.VARIABLES?

Nov 17, 2010

i wrote an as3 and a simple php page.
 
whenever i use : URLLoaderDataFormat.TEXT i get all the content of the php file.
 
when i use the VARIABLES , i get this:

[Code]...

View 3 Replies

ActionScript 3.0 :: SetChildIndex Of Dynamic Target?

Jan 13, 2011

I have an XML file with a path to a number of images which I load to the stage.

Code:
public function popStage():void{for(var i=0; i<xml.projectInfo.length(); i++){var picLoader:Loader = new Loader();
var picHolder:Sprite = new Sprite();
picLoader.load(new URLRequest(String(xml.projectInfo[i].image)));

[code]....

What I want to do is bring the infoBox to the top Index than bring the image to the top index after that so that the logo is over the infoBox. The infoBox is no problem but I can't seem to get the code right for the target to have the top index. I have tried a number of variations and done some research but no luck. [URL]

View 5 Replies

Actionscript 3 :: Add And Remove EventListeners With Dynamic Name And Dynamic Variables?

Jan 14, 2010

picture: [URL].. I am making a boardgame in flash Action Script 3 each position on the board is a buttons like this: button_1_1, button_1_2 etc. Whenever a character is selected you want to move it so the script has to add event listeners for positions around the selected unit

[Code]...

In the rest of the code I have:

function userClickedPosition(position_x:int, position_y:int) it selects or deselect a unit function selectUnit(position_x:int, position_y:int):it uses the listentoButton(1) function to add 8 listeners (the positions around the clicked unit)function deselectUnit(position_x:int, position_y:int): it uses the listentoButton(0) function to delete 8 listeners (the positions around the clicked unit)

My question: adding eventlisteners is no problem but removing them dont seem to work? What did I do wrong?

View 1 Replies

ActionScript 3.0 :: Target A Dynamic Text Field Using A Var?

Nov 16, 2009

I have a dynamic text field inside a movieclip. I need to target the text field using a variable.I'm loading the text and putting it into a string:

var page:String=pageDetails.page.toString();
I have a variable that gets updated:
i++;

[code]....

View 4 Replies

ActionScript 3.0 :: Target Dynamic Nested MovieClips?

Sep 5, 2011

I have been working with AS2 for a long time, but are a total newbie when it comes to AS3.On my stage I have placed an empty MC with instance name "holder".In my library I got a MC linked by the name "sektor".

"sektor" has several movieclips and buttons with instance name, e.g. "corner1", "corner2", "corner3"....

I have nested "sektor" inside "holder" by writing this code:

Code:
var newClip:sektor = new sektor();
newClip.name = "sektor1";
holder.addChild(newClip);

What I want to achieve is to control those movieclips inside "sektor" by turning dem on/off.I have tried to do this with this code:

Code:
holder.sektor1.corner1.visible = false;
but I keep on getting this error:
"TypeError: Error #1010: A term is undefined and has no properties."

I have figured out that by tracing holder, I know it�s excisting (Result: [object MovieClip]) but if I try to trace holder.sektor1, I got the result "undefined". So it seems like "sektor1" is not excisting. Why?

View 7 Replies

ActionScript 2.0 :: LoadMovie In The Target _root.as. And The Url Is Dynamic

Nov 26, 2005

I want to loadMovie in the target _root.as. And the url is dynamic: _root.as.loadMovie(_root.link) Unfortunately the movie isn't loaded I tried to convert _root.link to string but nothing

View 13 Replies

ActionScript 3.0 :: Target Dynamic Text Field In Video Skin?

Mar 24, 2010

I have a flvPlayback instance named fpp and am using a skin I modified from those provided by Adobe.All is working fine, the skin shows up over the video, autohides on mouse out, etc.  What is killing me is attempting to get the video time into the skinIE. Elapsed Video Time / Complete Video TimeI am able to get these values in my flvPlayback.fla using the following ActionScript 3 code: 
 
var fullDuration:String = "";
function metadataReceivedF(e:MetadataEvent):void {
fullDuration = prettyTime(fpp.metadata.duration);

[code]......

View 2 Replies

ActionScript 2.0 :: Stop Further Items Being Dragged Onto A Target When The Target Box Is Full?

Sep 29, 2003

On the attached exercise, is it possible to stop further items being dragged onto a target when the target box is full?

View 1 Replies

Dynamic Variables In A Functions?

May 8, 2010

Why does this not work???

Code:
function myFunction(val0,val1,val2){
trace(this["val"+0);
trace(this["val"+1);
trace(this["val"+2);
}
myFunction("hello","test","hi")

All i get is undefined. If i just put "trace(val0)" i will get "Hello" -- so i cannot work out how to get the value of the dynamic variable inside hte function?

View 4 Replies

Get Dynamic Variables In For Loop?

Jan 1, 2011

How am i to get the variables zombData.zomb0, & zombData.zomb1 from inside the "for loop"

I want this trace command dynamic

Quote: trace(zombData.zomb+i);

it works when i put zombData.zomb0 (a variable sent from a PHP script)but if i want to make it dynamic how it is; It fails & outputs NaN How do i make it dynamic for the loop?[code]...

View 1 Replies







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