IDE :: Data From An Extern XML-file?
May 31, 2009Something in my code gives me an alert of slow loading time! I am transferring some data from an extern XML-file.
[Code]...
Something in my code gives me an alert of slow loading time! I am transferring some data from an extern XML-file.
[Code]...
I have a flash web site on frame 2 and on the frame 1 I load an extern swf (this is the intro of my site), on the frame 1 I put the code:
[Code]....
The swf is loaded but when is finish make a loop again and do not go to my site on frame 2.
I have 2 SWF's:SWF1 = AS2 SWF2 = AS3I need to link from SWF2 to frame 10 of SWF1. Is this posible?If not, is it posible doing this with html/javascript? With the <a> tag?
View 1 RepliesI tried to load an external swf file. In this swf file i have an embeded movie so that i see the preloader in action.What happens is, that while preloading i hear the movie playing in the background. So when the external swf is at for example 20% preloading the timeline is already playing in the external swf. Isn't that weird?
I also noticed that the Event.INIT get's executed sooner for example at 17% progress. This should be at 100% is it not? And in CS3 i get the error while previewing the bandwidth profiler:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
[Code]...
I've got some flash-movies I've made that I want in my flash-portfolio.I've tried the load movie script, but then the flash-movie get's the same FPS as the portfolio.
View 1 RepliesHow can I save data to a text file and also append a record to data in an existing text file? I've used Authowrware previously and it was quite easy to create a large string of data (a comma separated list) and export that to a text file (and create the text file if it didn't already exist). I could then easily append additional rows of data (records) to the text file. We want to build a questionnaire that will store the data locally on the computer in a text file. Each record may have a few hundred data points in a comma separated list.
View 8 RepliesI am the fan of kirupa but this is my first thread in forum. I have some problem with sendAndLoad method with actionscript 2.0. I am developing a online game with flash mx , MS SQL 2000 and asp. The problem is I send the data using sendAndLoad method to asp file and get data back from asp file. But when the internet connection is not good there is a problem like jam or lost packets. How can I prevent the lost of packets. Some of the data are important. Is there any way to solve this?
View 1 RepliesI will be creating a program to use for data entry. I'll be studying zebras in kenya and I won't have the internet there as I'm recording the data. I'd like to be able to send the data I generate in flash to an external text file. I understand I need some sort of script to do that, but is this something I can run just on my machine? (I'll probably make the data into xml format).
View 1 RepliesI have an xml file (externally saved) that is similar to the following:
[root]
[main]
[title]...[/title]
[Code]....
What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].
this is my current cv, painstakenly written in flash: [URL] I was told that I can use an external data file and load this into a flash file with xml, i am trying to make an xml file that will do what you see here above. But i cannot get the information to load properly where each title is separate (bold) and the description underneath it (plain text). i cannot get my cv to show up in a linear format as it only shows the
first entry and then stops.
[Code]....
Is it possible to pull questions from a data file into flash without having to create new frames for every question. This would be a multiple choice test. We currently hand type the questions into multiple frames and grade at the end.
View 1 RepliesI am trying to load a variable from data in a text file.I can read the text file fine but the variable data seemsonly to be available with in the function that reads it. I need to use the variable data outside of the function.This is the actionscript code i'm using.
var pathVars= new LoadVars();
pathVars.onLoad=function(ok) {
if(ok)
[code].....
I am seeing repeated comments on this discussion forum that it's not possible to save data from Flash into a locally stored XML file . . . but there must be a way to do this. Why is you can read data from a locally stored XML file but not update or add data to it. how absurd a design would that be, it simply wouldn't be logical!
View 8 RepliesI have written the following code to access data stored in an XML file . . .
//load the required data from the VoucherNumbers XML file
var VoucherNumbers:XML = new XML();
VoucherNumbers.load("VoucherNumbers.xml");
[Code]....
I have read through Shared Objects but i couldn't get it work...
I just have to save my data, maybe array into .txt file and later on
retrieve from the same .txt file...
Anyone here have an example or some source code so i can have reference on it?
I am trying to load a variable from data in a text file.I can read the text file fine but the variable data seems only to be available with in the function that reads it. I need to use the variable data outside of the function.
This is the actionscript code i'm using.
var pathVars= new LoadVars();
pathVars.onLoad=function(ok) {
if(ok)
{
[code]....
This is where the path_var becomes undefined
trace("This is outside the function... "+path_var);
pathVar1="This is outside the function... "+path_var;
I am attempting to get data from an xml file load in flash. I followed a tutorial in a new fla and it seemed to work fine, I then tried to adapt it to my own needs which worked fine. But then when trying to implement this into my news section it doesn't seem to work. I am trying to make a news section, that displays the date and news article. This is in within a movie clip, I even tried putting it in the timeline of the scene but still nothing.
- I have 2 dynamic text boxes, date_txt and news_txt
- The xml file is named news.xml,
- both the fla and the xml are in the same folder
This is the actionscript I am using:
function loadXML(loaded) {
if (loaded) {
_root.thedate =
[Code]....
Who can tell me how to import the char " &" from a text file?
View 1 RepliesI want to write the bulk of data into xml file ,the data coming from the backend(mysql) using cgi by httpservice, read the xml file and bind it into list. can anyone send the sample code for this?
View 1 RepliesI am wondering if it is possible to use random file access for reading and writing data to file in Actionscipt 3.0 similar to that what is in Visual Basic?
View 1 RepliesI have a Flash movie which is embeded in 'base.aspx' file, when a button is clicked in the flash movie another 'something.aspx' file need to be called.When I run the flash movie from the Adobe Flash Professional CS3 IDE , it (the flash movie) calls the 'something.aspx' file just as expected.However when I embed the flash movie in to the 'base.aspx' file it doesn't work as expected .
View 4 RepliesI have written a ac3 script to upload files to remote servers and it is working as expected with all the events.
From the server side script i am echoing some text according to the upload status and i want that status to be received in flash like response text in ajax.
Is it possible to receive response text from a server script after uploading a file.
Or it doesn't have to be a file upload yet i wanted to have the string echoed in the server side script as response text in flash.
If that is not possible like ajax or normal request and response then is there another ways of achieving that?
Here is the code which gets executed when upload is complete.
fr.addEventListener(Event.COMPLETE, function(e:Event): void
{
lblPer.text = 'Completed';
[Code].....
I have a main swf file and config.xml located in the same directory. My .swf file uses config.xml to fetch config variable which it does with success.The problem appears when I put those files into Flex directory. I embed .swf file like this.
<mx:Image id="loading" source="@Embed('/blobs/visualLogo/mySwfFile.swf')"
visible="true" horizontalCenter="0"/>
I also place config.xml into /blobs/visualLogo/
This time I get an error in Flex:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mySwfFile_fla::MainTimeline/frame1()
I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :
Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.
I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?
I have a problem loading remote XML file into SWF file. Im doing a banner for a client with adds that is supose to load constantly updated XML file from my clients server and load some images into flash form it. Everything works fine when i test the movie (CTRL+ENTER), but when i publish it and test it from explorer, XML file is just not loading into flash.
View 7 Repliescan an an swf file save data to an xml file while running?
View 4 RepliesI am trying to create a simple form using Actionscript 3 that will collect data from a form, then pass that data to an asp file. I have attached the following code to the submit button,but this is not working.I'm not sure if I have to add anything else and I don't understand why this is not working. I'm trying to load all the variable info into one variable called email form.
submit_btn.onRelease = function() {
var emailform:text;
emailform.email_txt = email_txt.text;[code]......
I have a website on wich you should hear 10 different songs. Everey Song has a Flash Start and Stop Buttton.
Flash generates HTML-Code like this:
AC_FL_RunContent( 'codebase', '
http://download....../flash/swflash.cab#version=9,0,0,0',
'width', '100',
[Code]....
In former times you could add the file behind the swf-file : xxx.swf?file="newSong.mp3"
But now I have problems to transmit the name of the sound-file:
Is it 'URL', 'mySong.mp3',
Is it 'File', 'mySong.mp3',
I have a flash file (SWF) I downloaded from a website. It's a card game.
Let me say up front I don't intend to steal their graphics or anything like that.
I'm wondering if there's some way to examine the file.. I want to be able to see if it has any thing in there to define how many of each card makes up a deck or if it's just random.
I'm want to make this game as an actual card game, but with a different theme. The Flash game is single player, but the card game I make I want to make it so you can play single player or with up to 4 people.
My current query is how to get data into a flash file. I inherited a .swf file and I am in the process of incorporating it into my java web application. It currently reads in an xml file that sits in the same directory as the .swf file. The previous programmer saved the xml file after a database query to fill it, and has the same file name each time. I'm thinking that this isn't very scaleable, if more than one person wants to use the application at the same time. If I was going to add a session id to distunguish files, I'm not sure how I would do it as the Flash file has a hardwired string in it.
var strXML:String = "seq_list.xml";
I considered using FlashVars to load in the xml file but its going to be consistantly over the 64k limit so I'm guessing thats not going to work.