I need to parse and display the value for variable VALUE in xml to the screen but read from the file continuously instead of once. The XML file is being created dynamically so its getting larger but flash only displays first value for variabel VALUE.
Is it possible to read/write data to and from Access with Flash in a offline format? I need to create a stand alone system that users can log into and pull information from - but it will not be networked or have any sort of internet connection.
I'm trying to read some data in from a sql source, some of which contains double quotes embedded in the text. I know I can strip the doublequotes, but don't want to go that route if I can avoid it. I've tried replacing to double quotes with hex codes before passing the text via parameter to my flash file, but the text string always cuts off at the hex code, the same as if the double quote were present in the string. For example:This is a "text" stringreplace double quotes with hex: This is a x22textx22 stringesults when read into flash: This is a <remainder is dropped>Yet if I type the same text string in a variable in flash, the string displays the double quotes properly:
How can I read a variable from URL so that it can be used in my swf? I have 'main.swf' loaded in 'mainpage.html'. I am using getURL to pass variable from this swf to the URL of another html page(secondpage.html)......
ActionScript Code: var city:String = "Bath"; var xml:XML = new XML(); var urlloader:URLLoader = new URLLoader(); urlloader.load( new URLRequest("[URL]") ); urlloader.addEventListener("complete", xmlComplete); function xmlComplete(e:Event):void{ [Code] .....
The main part is where I have created the variable: IconGif... it reads a portion of the xml file and turns it into a rference that will eventually relate to an instance name of a movieClip. I was going to use: ActionScript Code: this.attachMovie(IconGif,IconGif,100); to place the item on the stage to whatever the xml says that day,
My problem occurs because the function I have used to create the variable, clashes with the attachMovie function and I receive the message: TypeError: Error #1006: attachMovie is not a function. at weather_fla::MainTimeline/xmlComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader:nComplete()
Whatever that means but when I try to call the variable outside of the function, it doesn't know what I'm no about, because as far as it's concerned it doesn't exist, but only when the function is being called. I'm not the wisest with XML and calling up data...
I have a function that makes an array and I am trying to read the contents of the variable outside the function but it keeps giving me the result as undefined.
I know there must be a simple solution to what i am attempting to do.[code]...
Basically, imagine two classes, for simplicities sake I'll call them classA and classB they are in the same folder, same project, and all variables have been called as public.
In classA there's a variable, for this example I'll call it speed (its called something else obviously as speed alone turns blue so its a reserved word). It is made and updated in classA for it's current value
classB handles the array to move things, and needs to reference what speed is so it knows how much to move each object each tick.
How do I allow classB to look in classA and see what the current value of speed is?
How do I add a variable to a string and then read it?I have:_root.compassItem = 'Item';I have a movieclip that has an instance name of Item and it is inside the movieclip _root.mWorld.so I assume its instance would be _root.mWorld.Item.I want to get its ._y dynamically. How would I do this?I am trying: trace(_root.mWorld._root.compassItem._y); But, it is returning undefined.
I have a slideshow.swf (I cannot change it contents, there is no .fla) which gets input from slideshow.xml and finds pictures to display in a folder called 'images' . Pretty basic for a flash picture gallery.
The problem: I want to load the slideshow.swf into a loader component in another flash movie, say holiday.fla. (So i have the loader component in holiday.fla and I tell it to load the movie slideshow.swf). How can i tell the slideshow.swf file where to find its data e.g. slideshow.xml? or How can i have slideshow.swf read from slideshow.xml?
I write a simple xml code, and I try to read the xml file into flash, but I got "undefined" in my output.The codes are as following. Do you know how to sove the problem?[code]...
I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2
Given that there is a global javascript variable on my web page named myVar, how can I access the value of the variable myVar from within my flash movie using javascript?
I see plenty of examples of using external interface in order to execute javascript from actionscript, but I am unable to find examples of returning values back into the flash movie using actionscript.
What is the best way to have a flash text box read a PHP session variable? I want to do something like show a shopping cart total price in the text box which would be stored in a PHP session variable.
I am trying to send a php variable with one field from mysql. When I print the php variable on my php page it outputs the field, but when I try to send it to flash it doesn't output anything.Here is my php script that tries to send a mysql field to flash and there nothing is shown. It works on my php page, it outputs the mysql field.
$product=$result['product']; $pro=$product; $pro = "&pro=".$pro."&"; //~ make it a flashable variable
I'm using sendAndLoad to send data from a Flash form to a PHP script. The PHP script will search an SQL database and return the results, in XML, to Flash for parsing. The problem is I'm completely stuck on how to extract the sent Flash information with PHP. It's a single tag with attributes.
I can not read my XML into a DataGrid. I have looked at the TimeSheet tutorial and have been able to get it to work, but can not make the adjustments to this file. I was wondering if there was a problem with XML itself?
I'm new at Flex and I wanted to know how to read an xml file to pull its data into a chart, using Flex Builder 3.Even though I've read and done some tutorials, I haven't seen any of them loading the data dynamically. For example, I'd like to have an xml like the following:[code]and then loop through every "visitor" xml item and draw their values, and display their "fullname" when the mouse is over their line.
I need to convert a lot of stuff in my profession - so I'm building a conversion tool for my phone with some of the conversions I use a lot. Now, I want to be able to build this properly. So far, here's my code:
How can I read embedded text inside Flash?For example, on this website there are results of games in flash format ("Chelsea - Liverpool 0-0").How to get "Chelsea - Liverpool 0-0" from there?
in a flash template i found several buttons with almost the same action script code. on pressing the button a window popup with different text (for each button a unique text). the following code is in the code section of the buttons, only the two last codelines are different for each button.
[Code]...
so i think that the input of the unique text for each button is handled in the last line "_root.READ = 22". i also found in the bibliothek the belonging text parts. my problem now is that i dont know where the connection is set between the text part and the array/variable READ. in this case the connection is 22, but i dont found any property in the text part or in the property of the button where the connection is set to 22. i use flash cs4.
I have a number of checkbox's on the stage. The client would like the half dozen or so checkbox selections to be in a random order each time the frame is viewed. Simple enough, I created a random array...
Code: var Q3Labels:Array=["17p deletion","p53 mutation/deletion","11q deletion","Trisomy 12","13q deletion"]; function getQ3Labels():String {
[Code].....
But when I test this code I get a "1084 Syntax error: expecting rightparen before .", so it seems it's reading Q3A as literally "q3a_chkbox.label" not "11q deletion" (or whatever). If I change the Q3A variable to simple text then it works fine,