ActionScript 2.0 :: Loading Vars Into Text->button?

Feb 20, 2003

OK I have defined a variable sayPHP Code:test="what should I do?" then I have a textfield with var name "test". Now when I play the movie it will display "what should I do?" in the textfield, but what if I put the textfield inside a button? It won't show! How do I change the actionscript so that it doesn't think that the field is in _.root??I tried this:PHP Code:button1.test="whatwhere button1 is the instance name of the button!ut this won't work

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Loading Array Vars Into A Button With An XML Loop?

Dec 10, 2009

I built this site out in as2 and have to convert it to as3. It appears the same logic flow and coding just doesn't apply since everything has changed on an event level. The idea is to load thumbnails dynamically and upon clicking the thumbnail retrieve the loaded variable (i) in the array per the XML loop. I'm trying to figure out what I'm doing wrong in logic flow as it keeps coming up "undefined" or pulling up the last one after the whole thing's loaded. I'd copy the exact code but there's a lot of variables. So I'll post this basic structure to give an idea of what I'm doing. The bold print is where I'm stuck in terms of getting a trace.

[Code]....

View 0 Replies

ActionScript 2.0 :: F MX2004, Loading Vars Into Dynamic Text?

Feb 5, 2005

i have an swf called movie1, on the main stage of movie1 i have a mc that is named xpos,inside xpos i have a dynamic text box and it's value is asigned to the Var=clipX.to get the value of clipX i used this code in the actions of xpos like this:

Code:
onClipEvent(enterFrame) {
clipX = (_root.object._x);

[code].....

View 3 Replies

ActionScript 2.0 :: Loading Vars From Text - Global Link

Aug 3, 2004

I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I'd like to have the txt in the root of my server and then be able to link from any dir in the site. I have:
("dataValues.txt")
What should I add before it, I thought maybe a full URL, but no, is it something like ("../dataValues.txt"), basically I want to make the link global for the site - I don't have access to the files right now.

View 1 Replies

ActionScript 2.0 :: F MX2004 Loading Vars Into Dynamic Text?

Feb 5, 2005

i have an swf called movie1, on the main stage of movie1 i have a mc that is named xpos, inside xpos i have a dynamic text box and it's value is asigned to the Var=clipX. to get the value of clipX i used this code in the actions of xpos like this:

Code:
onClipEvent(enterFrame) {
clipX = (_root.object._x);
}

everything is fine and it works when i play movie1

[Code]...

View 3 Replies

ActionScript 2.0 :: Load Vars From A Text File Into A Load Vars Object?

May 19, 2005

i am trying to load vars from a text file into a load vars object.

var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');

Once in the object, i thought i could reference them like so

kitchentext.name
kitchentext.style

but i am having trouble doing this.

i have a textbox called displytext.

_root.displaytext.text = kitchentext.name;

doesnt work

View 3 Replies

ActionScript 3.0 :: Loading Vars From PHP?

Feb 9, 2010

When I run the flash from my local host (using XAMPP) it all works fine. But when I put the whole thing onto my online web server and change the URL to access the php file, its just coming back as "NaN" ...so why does it work on my local server but not the online one?

View 6 Replies

ActionScript 2.0 :: MX Loading Vars From A Txt?

Aug 3, 2004

ok I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I'd like to have the txt in the root of my server and then be able to link from any dir in the site...I have: ("dataValues.txt")what should I add before it, I thought maybe a full URL, but no, is it something like ("../dataValues.txt"), basically I want to make the link global for the site - I dont have access to the files right now so I cant just try a bunch of stuff myself.

View 1 Replies

ActionScript 2.0 :: Loading Vars From Url

Mar 22, 2009

i'm trying to fill out dynamic text fields by adding to my url like so:url...if the url could link to the html in which the swf was loaded instead of to the swf directly, that would be even better... but that might or might not complicate things (i don't know)

View 8 Replies

Loading Different Vars In External Txt-file?

Dec 8, 2009

In first frame of my movie I've got this:

PHP Code:

loadVariablesNum("produkter.txt", 0);
import TextField.StyleSheet;
var myCSS:StyleSheet = new StyleSheet();

[Code]....

and a dynamic textbox called "myHTML". If I name 'var' on this textbox everything works fine, but I want to write it in actionsscript instead. Where do I write that? (I have 3 different vars in the text-file)

View 1 Replies

ActionScript 3.0 :: Loading Vars In Php Into Flash?

Nov 11, 2011

i used this script:

import flash.display.Loader;
import flash.net.URLRequest;
import flash.net.URLLoader;

[Code]......

it gave me error like this:
ReferenceError: Error #1069: Property jumCust not found on String and there is no default value.
at loadPHP2_fla::MainTimeline/loadedData()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

View 6 Replies

ActionScript 2.0 :: Loading Vars From / To Flash And PHP

Apr 7, 2010

I have tried repeatedly to sendAndLoad variables from/to flash and php. The problem actually comes when passing the variables from php to flash, here is the flash code:

var dataOut:LoadVars = new LoadVars();
var dataIn:LoadVars = new LoadVars();
dataOut.username = _level0.usuario.ss.s1; //passing the value of textbox
dataOut.pass = _level0.contrasena.ss10.s10; //passing the value of textbox
[Code] .....

I have omitted some mysql code, but it would still work this way. Which is most odd is that when I test the movie in my computer it works perfectly, but when I upload it to the server it doesn't work anymore.

View 2 Replies

ActionScript 2.0 :: Loading Vars From URL Address Bar?

Oct 8, 2004

I have it when the user clicks on a link it loads the php ?page=portfolio, in portfolio.php i have a peice of code that writes "var=portfolio.swf" to a .txt file Actionscript loads the text file and grabs the var, which is sent to the preloader which loads portfolio.swf. The problem with this is the Flash cache, you have to open a new window to see the portfolio.swf loaded and the second problem would be clients fighting over the .txt file.

What I want to do is, eliminate everything on the client side (the txt file) and make it so flash picks up the vars from ?page=portfolio and directly passes that to the preloader.

I heard this can be done with FlashVars, its kinda hard for me to understand could some direct me to an example code of FlashVars that I can play around with.

View 1 Replies

ActionScript 2.0 :: Loading Js Vars Into Flash?

Mar 3, 2005

i got this for my js:

Code:
SCRIPT LANGUAGE=JavaScript>
<!--
document.write ("width="+screen.width+"height="screen.height)
//-->

[Code].....

I've been working on this for a while, and i have too much coke and coffee on my veins right now x.x

View 13 Replies

ActionScript 2.0 :: Loading Vars Straight From An Url?

Nov 28, 2002

i'm trying to read in the URL displayed in flash

if i do this:

url=this._url;

i get:

http://domain.com/myFlashMovie.swf

but i what i actually want is:

http://domain.com/myFlashMovie.htm

plus whatever i pass through the URL

e.g.

http://domain.com/myFlashMovie.htm?canUCme

View 2 Replies

ActionScript 2.0 :: Loading Vars Into Dynamic TextField?

Dec 9, 2002

I have defined two variables,
Example
x = 2;
y = 3;

I then want to load both of these variables so that they will look like this
(2/3)
/ is just a separator not a divide operator!

I want to load these two vars into a dynamic text field called loadText:
_root.loadText = "WHAT DO I PUT HERE";

View 2 Replies

ActionScript 2.0 :: Loading Multiple Vars Into One Textbox?

Sep 29, 2003

i am having trouble loading multiple variables into a multline textbox. I am using asp which will output a recordset into flash. For testing purposes var0 should equal three names in my array. Flash is only reading 1. How do I set flash up to read that whole array(3 variables in one textbox)? I know Flash won't output var1 or var2 because I don't have those textfields with those variable names.

Here's what var0 outputs

[URL]

Here's my Flash code

Code:
loadVariablesNum("http://www.delusionalfx.com/exp/flash_asp/register/test.asp",0,"GET");

I have one flash multiline textbox with a variable name var0

View 5 Replies

ActionScript 2.0 :: Loading Multiple Vars Into One Textbox

Sep 29, 2003

i am having trouble loading multiple variables into a multline textbox. I am using asp which will output a recordset into flash. For testing purposes var0 should equal three names in my array. Flash is only reading 1. How do I set flash up to read that whole array(3 variables in one textbox)? I know Flash won't output var1 or var2 because I don't have those textfields with those variable names.

Here's what var0 outputs

[URL]

Here's my Flash code

Code:
loadVariablesNum("http://www.delusionalfx.com/exp/flash_asp/register/test.asp",0,"GET");

I have one flash multiline textbox with a variable name var0

Here's what flash reads

[URL]

View 5 Replies

ActionScript 2.0 :: Loading Vars - Adding Values To Graph?

Mar 13, 2008

I have a flash file which loads in vars from director. It then adds the values to a graph. The amounts from the string are inputed into text fields. the fields are named energy, waste etc. I want a textfield to output whichever sections that are over 5 saying "well done, you have excelled in water, energy...... I have got this working but am stuck on this bit: I am wanting to add an "and" before the last item, so it outputs as "well done you have excelled in water, waste and energy". Also if only one item is over 5 it wont add the "and". This probably doesnt make any sense, heres my code anyhow:

Code:
var summary_results = "2000,6,3,10,8,6";
var txtFields:Array = [Total,Energy,Waste,Water,Food,Transport];
var excelledItems:Array = [];
var theValues:Array = summary_results.split(",");
for(var i=1;i<theValues.length;i++){
[Code] .....

View 1 Replies

IDE :: Button Loading External Text Into Swf File?

May 31, 2009

I'm creating a flash portfolio, I have small image icons, each icon when clicked on loads a diff. swf file, image gallery that loads bigger external images. I would like a different external text file to load every time a diff. image gallery loads, for some reason I cant find the answer to my problem,

I would like to add some actionscrpt to each icon/button so it will load a new txt file when clicked on.

(each image icon is a button and has the instance name of icon 1, 2 etc.)

the code goes like this;

stop();
menuHolder.loadMovie("retail/photoViewer.swf")
loadMovie ("retail/photoViewer.swf", "_root.menuHolder");

[Code]....

View 3 Replies

ActionScript 2.0 :: Flash8 - Turn Vars Into A Link/button

Mar 26, 2009

I have this textfield in wich i load some vars when a button is clicked. How can i make a sort of button of the loaded vars? So if i click on the first title; i go to the right txt-file!?

Here's the code so far:

code: //vars instellen
//titels
var title1:String = "Maan Fotografie";
var title2:String = "Vertigo-/zoomeffect-fotografie";

[Code].....

View 1 Replies

ActionScript 2.0 :: Make Button Load Vars Direct From Xml

Apr 21, 2010

how can i make a flash button template that load vars from direct xml? like height/width/text/color/curve/background or transparent background also i will have more than one of these buttons on the same page, so they must take the vars directly fromt the xml.

View 0 Replies

ActionScript 2.0 :: Displaying Flash Vars Below SWF On Button Click

Nov 13, 2007

I have a Flash XML Slideshow (SlideShowPro) that loads from the XML the filename, caption, and category or "album". I want to set up a system similar to a shoping cart where when you click a button (in or out of SWF) it will then list the current XML data below my swf. (filename, album, and possible a dropdown that shows a list of photo sizes. Then a price based on your choice in the dropdown.

Then I wanted a submit button to send the printed data to an email address, or go to a page with several input fields like: phone number, credit card number etc. I found this tutorial: [URL] and was wondering if what I am asking is too hard to accomplish? It doesnt seem to be that difficult but I am a little unsure as to how to go about doing this.

View 8 Replies

ActionScript 2.0 :: Loading External Text On Button Press

Aug 2, 2003

I used this AS to load external text (load on its own).
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
loadTexts.onLoad = function() {
textBox.text = this.speaknote;
};

How can I modify this AS so that it will load when I press a button. I try to change it to this
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
buttonToLoad.onPress = function() {
textBox.text = this.speaknote;
};

View 7 Replies

ActionScript 2.0 :: HTML Button/link To POST Vars To Flash?

Jun 16, 2007

Have a thumbnail image acting as a button - sitting on my HTML page.When the user clicks it, the button uses the POST method to send a specified variable.I think I can handle the variable from there using javascript - which will talk to my embedded swf.

View 3 Replies

ActionScript 2.0 :: Loading Button Labels From An External Text File?

Nov 19, 2008

I've got some code that draws a series of buttons. I'd like to label the buttons with an array that's in an external text file. I've got this:

var patNumsArray:Array = new Array();
loadText = new LoadVars();
loadText.onLoad = function(){

[Code]....

But I can't seem to get it to see the text file with the button names.

View 2 Replies

ActionScript 3.0 :: Loading External Text With Button - Error #1009

Jul 28, 2009

I have a button (LOW_btn), located in one movieclip, and is set to play the next frame of another movie clip "bodybox_mc" and at the same time load an external .txt file into a dynamic text box "musictext_txt", which is deeper within the "bodybox_mc". (There is an update to "musictext_txt"'s scrollbar as well). However at runtime i receive the error 1009 (output is after the code). Here is the code (sorry if the variables and stuff are a bit long):

[Code]....

View 1 Replies

ActionScript 3.0 :: Setting Up Vars For Dynamic Text Fields?

Feb 17, 2009

trying to set up some vars for outputting to dynamic text fields, can't work out what Flash is bitchin about now, getting this error...

1151: A conflict exists with definition redTextOutput in namespace internal.

1151: A conflict exists with definition blueTextOutput in namespace internal.

ActionScript Code:
private var redTextOutput:TextField = new TextField();
private var blueTextOutput:TextField = new TextField();

View 3 Replies

ActionScript 2.0 :: Passing Input Text Field Vars To Asp?

Aug 24, 2009

I'm having a problem getting my data from input text fields to pass to the ASP script using getURL and "POST". The input fields have var of email and password. The form works fine when an html form passes the same variables.

on the submit button, I have this code

ActionScript Code:
on(press){
//loadVariablesNum("samplescript.asp",0,"post");
getURL("samplescript.asp",0,"post");

[Code]....

where to look to pass the variables from the input text fields?

View 0 Replies

ActionScript 3.0 :: Read Multiple Vars From A Text File?

Mar 8, 2011

Writing a couple of vars to a txt file is relatively easy.I store them as .sql (sort of) layout, so that i can import them into mysql later.But obvious this is not necessary..

The thing i am struggling is how do i read these vars back into flash[code]...

View 1 Replies







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