Okay i have a problem where I am reading an ASP page into my flash. It works fine when I am reading into the dynamic text fields but when I want to use a variable for something in the actual flash nothing is working.I am reading a Database and everything is working just great, except that there are no more records to read! I have a variable named last which is displayed during the last record set so that i could use it to end the display of the records.I tried setting it up in an if statement...
if (last =="yes")
{
counter = 0;
}
my program pretty much just ignores this statement but when i read the variable last into a dynamic text field on the last record set it will display yes
I'm having trouble with the jump from Flash player 6 to Flash player 8.I have attached files to show you what I mean more, but basically i have a dynamic textfield and I want to be able to put numbers in it and have flash read it, but it spews up some HTML..URL...
I have an app that sets a user id on the main timeline (main). It then loads a swf (loader) which loads another swf (video). The video clip needs to access the user id set in the main clip. Previously the video clip was embedded in a movie clip the main clip and I used this:
var xeniumImageLocation:URLRequest = new URLRequest("data/photos/"+ MovieClip(this.parent).uid +".jpg");
Which worked great. Unfortunately it no longer does after breaking the clips apart.
I have read through various articles and can't seem to find an easy way to target the main clip. I'm guessing there is a way that is as easy as AS2 but I don't know the proper syntax.
how to search through a .txt file to find a match from a input put in through flash and return which line its in the text file...ie: input, "flash" and i search through the .txt file to find a match and return what line its on?And my second part of the question, how can I use cordinates to search through a .txt file and return the data as a integer? Basically what I'm trying to do is have a list of data setup with a name and value beside it and be able to retrieve a specific value for each name, ie:
The image displays and that's great, but I need to display multiple images; therefore, I used the standard format: var1=value1&var2=value2&... (In reality, the values are the huge base64 strings.) Then I just needed to add "my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;" since the format of my source changed. The thing that bugs me is that I'm tracing the imgB64Str after I set it and it traces fine (just like the other version).
I need to save and load data to and from variables. I know how to read from text-files, but not how to write to them. The text-files should work as a "database" for the high-score in a game, I cant use php cause the computer running the game wont be online all the time.
I've tried every example I could find, but nothing really worked. What I'm looking for the to actionscript code (without using classes - i'd like to do all the code in the section of the mxml file) to load in an XML file that is stored in the same location as the swf file.
I'm writing an app that I want to ideally pull a random entry from a txt file. Each row of the txt document has 12 separate entries. When I use LoadVariables to read the file, I get the entire file. I cannot for the life of me figure out how to parse the individual lines.
I have so many questions I don't know where to begin...
First, do I need to use varName= in front of each item in the text file? Second, does flash anything that will allow you to read a file by line, then parse based on tab delimiters? Third, should I be using something besides loadVariables to retrieve data, or should I be using something besides a txt document?
this will get me started, but there is still the matter of randomly selecting a line in the txt document.
I'm importing a SWF by URLRequest, and I need to read from a var that is in there (actually, is a textfield).
Code: //loading my local swf file (wich is a keyboard) and placing it where it goes var request:URLRequest = new URLRequest("keyboard.swf"); var loader:Loader = new Loader();
[Code]....
as I'm trying to cast my displayobjet to a movieclip I though I would be able, but im not
I am trying to read a text file in. I have a list of images to be shown one after the other.Placing them on separate lines in the text file is preferable for editing in a text file because notepad does not wrap.S_DSC_0106.jpgS_DSC_0218.jpgS_DSC_0768.jpgS_DSC_0790.jpg
i am having a problem when reading text form an external txt file into a textbox, the problem is that when i test/ debug my movie on my local computer the text displays from the file but after i have uploaded to my server and try and view it via the internet no text appears
Code: var urlhome:String = "homeText.txt"; var loadit:URLLoader = new URLLoader();
I need to read an external information from a TXT file or from an XML file, but as a number. I know Number() should convert string to number, but seems like the XML gives me an array, while I used XPath.selectNodes(durationXML, "/xml/@")... I used this code:
Code: durationXML = new XML(); durationXML.ignoreWhite = true; durationXML.load("duration.php?filename=projects/tracks
I have a text file containing html formatted text which I try to get into a textfield. All works fine locally and even on my localhost test server, but when uploading to the real server - I get a blank.
Once the text file is assigned to a variable, spaces for example are replaced by %5F.My text file: bddtxt.txt Content of text file: 1_1_0,2 3_2 3 4_0,4_5_0,5_6 7_0,6_8_0,7 8_9 10_0,9_11_0 My script (Flash 6):
ActionScript Code: var liens = new LoadVars(); liens.load(_global.url+"bddtxt.txt");
I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.
I turn to you for help, dear sweet Kirupa Forumites. First, let me explain the problem: I have a flash file reading an external text file for the content. Everything works perfectly for nearly everyone - you click a menu button, and the content text comes up fine. However, a couple of people have found that the text shows up as "undefined". I have checked the player versions of the people where it doesn't work, and it is the same as for those where it does work, so that ain't the problem.
I don't understand why it works perfectly for nearly everyone, but a small number of people have this "undefined" text problem. It seems to be a problem with loading the external text file, but I don't know why. I have a main flash movie, and load the text in the first frame, using the following:
var my_content = new LoadVars(); my_content.load("content.txt"); my_content.onLoad = function(success){ if (success){
[Code]...
I then have a couple of dynamic text boxes in the main movie - one called ErrorText (for displaying an error message to the user) and one called ContentText (for displaying the content). I use an external menu swf which jumps to a specific frame in the main movie, depending on which button is clicked. Actionscript on the main movie frame for the first button does the following, with the other frames similarly configured:
I am doing an Actionscript 3.0 project which involves introspection. I am wondering if there is a way to get all the classes within a given package structure.
I have created a conversation/script class for a game, but I need help with one little thing. I'm loading the scripts from external XML files, and I want to insert variables like player name, item names etc to the XML, like this.
Code: <DIALOG SPEAKER="Brian"> <LINE>Are you sure, {playerName}?</LINE> </DIALOG>
I'm working with Flash MX 2004. I have a funtional monthly calendar that does not use external variables - all variables are contained within the timeline. I am now trying to control it with external variables using:
loadVariablesNum("visualControl.txt",0); The contents of the text file are: &InitialMonthVisable=dec&
I am trying to control some of the global variables in my script through an external text file.I have a variable called "_global.scrollOrNot", which determines whether I want flash to use the text window with a scroll-bar or the one without a scroll-bar. I am trying to control that through an external text-file called "ScrollCommand.txt". Here is my code:
the external txt states:
&sb1WindowScroll=yes frame1: _global.scrollOrNot;
[code]....
this is were I have a problem. It will always choose "MCtextFeldSB1noscroll". I have tested the whole thing with other variables, which were not changed by any LoadVars function and it works just fine then. As soon as I change the variable using the LoadVars function it will not work any more.
I have a flash form. When the send button is pressed, I need to access a php file from another server that sends the email. I need to access the php file like this: [URL], writing the 2 variables, var1 and var2 in the link. I tried like this:
Code: var sendData:LoadVars = new LoadVars(); link = "[URL]" + value1 + "&var2=" + value2; sendData.load(link);
This works when I test my file from Flash. But when I upload it to a server, it doesn't work anymore. Why is that?
I had a question about loading external variables. Is it possible to load external variables from a different server other than the one that the flash site is hosted on?And if so, what would that command look like?For instance, if you load a variable from the site's own server it might look like this;loadText.load("TEXT1.txt");Would loading it from a different server look something like this;
I'm using LoadVars (results_lv below) to load variables from an ASP page, returned as follows: option1=4&option2=5&option3=32&option4=... etc. etc.
There are a different number of "options" returned each time, depending on the query sent to the script. I have access to the number of options ahead of time, but still don't know how to loop through them...
So... How on earth do I loop through these variables?!? Basically I'd be thrilled to be able to do this:
accesing the movieclips/function/contents of a extenal swf.I used movieclip loader to load the swf.i have two files.. preview.swf and main.swf preview.swf loads an xml and renders its content. the xmlpath is embedded in preview.swf. when i play the file directly, it seems to load the content. however when i load preview.swf into main.swf with a moviecliploader, it does not load or render the xml.i cant even access the functions / variables in the file preview.swf.
I have an MovieClip on Stage with instance name main_mc. I am loading an external game.swf in that main_mc. I want to access variables of root through game.swf. I have used loadMovie() to load the external swf.
I want to load an additional movie into a first one (using loadmovie), and this one has to use variables from an external file (like data from a mysql database or whatever)If I only load the additional swf without the first one everything works fine, but if I try to play the whole thing it ist not.