ActionScript 2.0 :: Load Data To Swf?
Aug 20, 2009I have an .dat file from which I load data to my swf. The code looks like this[code]....
View 0 RepliesI have an .dat file from which I load data to my swf. The code looks like this[code]....
View 0 RepliesIm new to placing external data into Flash. I just got CS3 and Im trying to use Flash to dynamically load XML data via a FlashVars call in the HTML.
The problem is I have followed the very straight forward AS2 Help files for using FlashVars and URL variables.I have placed the code directly from the Help file into the Html between
<noscript> <noscript>and i keep getting undefined.I have tried saving the file as flash 8 and i am publish flash 8.
We have implemented a Flash photo slideshow on our site and it works just fine for most of our users. Whenever the xml.load(success) returns false I have the Flash email me a debug report. For the life of me I can not find a common thread between all of these people having problems with the Flash. I don't think it's a cross-domain issue because it works for most people, and I have the crossdomain.xml files where they should be.
[Code]...
I have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 RepliesI currently have a Flash app that gets populated by parsing data from an external XML file. However, I need to get the XML data into a (JSP) session and can't neccesarily have an external XML file--any suggestions? Can I put the XML string into a hidden input field in a form on the HTML? Can Flash communicate with that HTML? Or are one of the below methods recommended:
* FlashVars
* Flash Remoting
* Web services
* JavaScript - call JS function
* fscommand
* ExternalInterface
i load in AS3 data into flash and mantain their data type? Like receiving an array and even with arrays in it and recognizing that is an array instead of a standard string.
And if this is possible is it more reliable then using XML?
need to load 10 records from database in advanced data grid. After i scroll the advanced data grid. it has to load 11 to 20 records etc.
View 1 Repliesis there a way to clear an XML object of its data to allow it to load new data from the same URL?
View 1 RepliesI am trying to have a PHP page load some variables into aFlash banner ad that will be running on 8 different websites...I need to have one central location for the PHP page andallow 8 other domains access this data...I am finding that when everything is on one server... noissues... data reads just fine...But when the PHP page is on one server and the SWF file onanother... the data never gets through...I am assuming this is some issue with security within
View 1 RepliesThe function below belongs to an XML based photoGallery.swf... Its menu is automatically populated from the same XML file as well (thumbnail picture, title, description). The pictures load into an empty mc called imageContainer.In another empty mc called textContainer, I would like to load some text.swf from the xml list as well.How would you include that in the code?
Code:
function loadTmbs () {
var tmbs:XML = new XML ();[code]......
I'm currently working on a project that contains a lot of data, about 14.000 records. This means an xml file of about 3mb. Now my question is: Should I use the xml file to load all the data at once, or should I use a webservice, that provides the data when I need it? Keep in mind that I'm new to webservices. And if I'm going to use a webservice: How do I store the data, in a mySQL database?How fast is a webservice?
View 1 Repliesim trying to read data from a text file here [URL]what i cant figure out is how to call each value to its own dynamic text field.
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 10 00 00 0.3 0.3 6.2 0.1 3.2 ESE SE N/A 6.1 110
2006 12 09 23 00 0.3 0.3 9.1 0.1 3.6 SE SE N/A 6.2 134
2006 12 09 22 00 0.3 0.3 9.1 0.1 3.6 SE ESE N/A 6.2 125
2006 12 09 21 00 0.3 0.3 7.1 0.1 3.4 ESE ESE N/A 5.9 119
I`m having a trouble loading xml data to the uiloader. Look at my codes:(This is my index class, controller of the data.)
public function pylon() {
loadApp();
}
[code]....
I have a question about loading external data. When I had all my actionscript export to frame one, it would slow down the preloader and not show up until it was far into the progress bar animation. So I moved everything to frame 2. The problem with that is now my menus which are populated from an xml file are not there when the site starts to play. How can I get my xml data to load on frame one, but leave the .as fils to load in frame 2?
View 6 RepliesI have an SWF that's 30MB. Sound files (music) make up 25MB, art and other things make up the remaining 5MB.
Would it be possible for me to load the 5MB of necessary art and other things first to allow the user to operate the app, then after that's all loaded and they are operating the app, load the remaining 25MB of sound files in the background?
UPDATE: Loading SWF (or other entities) externally is not an option.
Like many other members I'm new in flash and actionscript , so I need some help from the pros.
I have a XML file like this:
Code:
<root>
<Event TextOne="TextShow1" TextTwo="TextShow2"/>
<Event TextOne="TextShow3" TextTwo="TextShow4"/>
<Event TextOne="TextShow5" TextTwo="TextShow6"/>
</root>
All I want is to load the XML data in Flash in two dynamic text fields (TextOne_mc and TextTwo_mc) and make the TextOne_mc to show me first the "TextShow1" then the "TextShow3" etc and the TextTwo_mc to show me first "TextShow2" then "TextShow4" etc,but when I'm done with it,TextOne_mc shows me "TextShow5" and TextTwo_mc shows me "TextShow6" only.
it is not easy at all. somehow i manage to put together my app. but in the end - jezzz what a troubles. i want the data from xml to load.
View 8 RepliesI have a flex app that takes data from a back end database then displays the content in one of 3 views. These views are all in a viewstack which is instantiated in main.mxml The method to get the data (remote object)is also in main.mxml.
The views rely on the data so how can I go about making sure that the data is loaded first before any of the views in viewstack are created / initialised to stop me having null reference errors?
I have an OOP PHP site structured with a MVC pattern. A page on the site has an embedded SWF that needs to pull information from a database. In the past, I would have just had a procedural php file for the swf to load the data from the database from. However, that method doesn't seem like it would fit with a more objected oriented site.
What would be the "proper" way for the swf to load external data? Should I create a class and a MVC pattern in the normal structure of the site that can pull the data (e.g. mysite.com/flash/data) and just pass this path to the swf as a FlashVar?
im in the middle of a project and having troubles with xml, i used the xml basic tutorials from this site, and try to use my own xml with the code provided, and it loads succesfully but then i cannot generate the XMLList and it doesnt give error, so i trace the xml variable and i get the data, but when i trace a propertie, for example xml.comentarios, it doesnt return anything. note: if a used the xml adress provided in the tutorrial it works even with properties, calls like xml.channel work just fine, my xml seems to be the problem, but i dont know why.
[Code]....
I'm new to all this XML stuff. I followed the tutorial on Kirupa and I just need some advice. I was able to load data from XML. What I tried to do was to export the data I had from the XML into a seperate array so I could use it later. However, when I try and access the array data after the XML has been parsed it says the values in the array are "undefined"
View 2 RepliesI could play a XML Driven SWF just fine by itself But when I load it into another XML Driven SWF, it won't get the data.Is there a way to make both XML SWF worked within each other?
View 3 RepliesThrowing this out there. I would like to know how to haveflash grab an XML URL from the embed tag (i.e. embed src=""flashvars="profile=http://xmlfile.xml". Reason:I make thesemyspace templates for people to use, but they can only be edited bypeople who own flash. If the user could edit an XML file with allof their content, then they would be able to use the layoutsregardless of whether or not they have flash. Does anyone here know how to do this? I believe it issomething like this on an actions layer:
_root.profile == undefined ? profile= "mp3player.xml" :
profile=_root.profile;
data_xml = new XML();
[code].....
Have a flash, that loads XML from server. Flash uses it to built up a site menu. Both xml and flash reside on the same host. When I try to run server locally - everything works. But when I try it online, XML is loaded only in FireFox, but in IE it can't be loaded. Flash movie itself loaded normally (I can right-click on it and see standard menu). I put my host into Trusted sites in IE and set very low security/privacy. I don't have any firewalls or proxies. I also put my host and flash movie into Trusted source in Flash Settings Manager.
View 4 RepliesI'm using flash 8 and im wondering if it is possible to externally load lables into a ceck box from xml.
View 1 RepliesI wonder which way is the best solution to load an external text file, that contains text with italic/bold/color content (edited by client..)
View 4 RepliesI have this little flash application that i am working on, which loads images and XML data. It is based on the Timer Class which Loads movie clips to the stage and removes them(as i thought this might be the best way of orchestrating this). Now i am having a problem with redundancy of loads.(It is loading the data everytime, which causes delays, What if all of this was established(loaded) at the begining and reused through the application
Instead of loading the data everytime, I would like to
1) Load the images and XML at the load(at the initial start up of the SWF)
2) Assign this data to variables and then add them and remove them as i please throughout the application.[code]...
I like to call for different SWF files from a link in a MySQL database to use in a Detailpage with PHP. Photos and text are no problem. The AC code is probably complicating things.
View 6 RepliesI made a flash music player for my server the player works perfectly and loads the xml data when viewed on my computer and even when it has been uploaded to the server IF I view it by itself but once I try and view my HTML file, all of the information for the songs comes up as undefined, so none of the songs will play.
View 1 RepliesLike many other members I'm new in flash and actionscript
I have a XML file like this:
[code]
<root>
<Event TextOne="TextShow1" TextTwo="TextShow2"/>
<Event TextOne="TextShow3" TextTwo="TextShow4"/>
[Code].....