ActionScript 2.0 :: Change Gallery To Read Php File Instead Of Txt File?
Nov 8, 2006
trying to change a gallery that reads xml file to one that reads txt files and that also has a preloader and centrally resizes automatically. since i got no replies i tried and finally after a few months managed to get it to read txt files. unfortunately, i have realised that i require the gallery to read data from a php file and not a txt file because i dont have the permissions to create a txt file and edit it on the server.
Code:
spacing = 10;
//photo._alpha = 0;
pArray = new Array();
[code]....
View 2 Replies
Similar Posts:
Mar 31, 2010
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
View 3 Replies
Feb 28, 2012
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()
View 1 Replies
Oct 14, 2011
I mean, I use dynamically changing xml-data in my app that I could get straight from the server but it is gzipped. So I was wondering is there a way to unzip it and read it as a xml file with actionscript?
View 2 Replies
Jul 17, 2005
I want to read in a HTML file and format with a CSS file.I'm using MX2004.From what I've read, this should be possible?I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.THe use of the CSS styling seems to be straight forward.
View 1 Replies
Nov 15, 2009
I am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
View 3 Replies
Jan 21, 2011
How can Flash AS3.0 Read file text while text file still writing by C++ program ?
I have some code that I asked before + I modify some line but It can read only text file that completely writing.
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
[Code]....
Now My task is read real time file and send xArray and yArray to another function but I don't know how can I code it.
View 1 Replies
Dec 8, 2009
I am trying to read a XML file and check a parameter for duplicates of that parameter in the file. There could be up to 200 entries with this parameter which is a number. How can I check to see if there are any duplicates?
View 2 Replies
Feb 17, 2008
i am trying to add extra images to the photo gallery attached. I would have thought it is easy and it seems so. I add an extra image to the gallery. I publish it. The html file shows the extra image in the gallery but the swf doesnt. driving me crazy, cant work it out?
View 14 Replies
Mar 16, 2009
In my "actions" layer I have a function that loads a gallery of a external file called gallery.swf. The swf loads successfully but I cant remove that. The only way to remove is to call removeChild(mLoader.content); I noticed that the movies loads without addChild.
But sometimes also calling removeChild(mLoader.content) the content of mLoader is not removed and still appears in the stage.
[Code]...
View 5 Replies
Aug 28, 2010
how do I change the settings so that the flash file looks for as. files in a certain file.
View 1 Replies
Oct 16, 2006
I did the flash form tutorial here on [URL]
Everyting works fine but if I add a textfield to the flash file and change the php file it still sends the original textfield but not the one I have created. I am using flash 8 and macromedia mx. I just copied the message textfield in flash and dublicted it. Than I gave the dublicated textfield a different instance name (second). After that I published the movie and adjusted the php file. I guess that the mistake is here. Would be cool if you could check the below listed php script and tell me what I am doing wrong. Honestly it's driving me nuts as it looks so simple but it just wont work. I marked the lines I added with red.
<?php
/************************************************** *
* PHP 4.1.0+ version of email script. For more
* information on the mail() function for PHP, see
[Code].....
View 6 Replies
Sep 17, 2011
When I call a .php file from flash and then echo a value back to flash from said .php file flash does not read it. My code is like this:
[Code]....
Note that there is a successful connection to a database using xampp as a server.
View 4 Replies
Nov 25, 2009
So lets say I created a simple game with all of the parameters are stored in variables. At any time of the game the user can press save, and these variables will be sent to .csv file using PHP. Each time the user presses save, it will add a new line in the file. This I know how to do.
Here is what I don't know how to do. How would I make it so that when the game is started, I wanted it to load the last line of variables from the .csv file into the game? So basically the last save needs to be loaded when the game is started.
View 5 Replies
Nov 25, 2010
I need to read a CSV file, (text only), I am using Flash builder 4, Flex 3.5 sdk.I have found a LOT of examples, but no one is working completely..
View 7 Replies
Mar 30, 2011
Is there a AS function or another way a SWF file could read its own filename? The reason for that I have a FLASH chess game which can store the position of the pieces in a sharedObject. The name of the sharedObject file as well its path has to be hard-coded. If I need to have several chess-games played at a time on the same computer, to store each game position I need to compile a separate SWF with a different sharedObject filename hard-coded. A user will fill more independent if he could just save a copy of the same SWF under a different name. But in this case how shall I make each copy of the SWF use its own sharedObject?
View 3 Replies
Feb 7, 2009
How we can read a Gedcom file with CS3?
View 1 Replies
Oct 2, 2004
i have a file called soundList.txt with some text in it, for example1.mp32.mp33.mp34.mp3e text file changes in lenght from time to time (as new .mp3s are added or deleteed)but it will be 1 thing per line .. now i want to read this into an array called "soundList" in flash..or if any of you have any better ideas im open for suggestions, but keep in mind i want it as simple as possible ( im getting to xml stuff but dont have time for it yet and i need this to work now)
View 1 Replies
Jun 17, 2010
Im sure this is really rather retarded, but zeros are not being read from my xml file into the dynamic text boxes. ie. if I have a 10 it reads it as 1, and if I have 101 it reads it as 11.the strings calling the nodes from the xml file look like this:this.ref["pos1"].text = nodes[0].firstChild.firstChild.toString();and the xml file is like this:
<?xml version="1.0" encode="UTF-8"?>
<nodes>
<node>
[code].....
View 5 Replies
Oct 2, 2004
i have a file called soundList.txt with some text in it, for example
------------------
1.mp3
2.mp3
3.mp3
4.mp3
...
------------------
the text file changes in lenght from time to time (as new .mp3s are added or deleteed) but it will be 1 thing per line .now i want to read this into an array called "soundList" in flash..
View 1 Replies
Jul 28, 2009
I need to save and later read some info to and from a file... I know i can do that with PHP, but how could i do that WITHOUT PHP ?
View 3 Replies
Mar 19, 2010
This works if I view it locally:
Code:
myData = new LoadVars();
myData.onLoad = function(){
[code].....
View 3 Replies
Mar 17, 2009
I want to read the content of an xml file EXACTLY the way it is in the xml file. I mean all the tags and CDATA stuffs shlould be displayed from my xml file into my dynamic textbox Example if this is my xml file.....
[Code]...
View 4 Replies
Mar 19, 2008
I want to develop one application flash or flex based which can read SVG file and draw according to its layer and all property, I wan to know how can I develop such application using action script or how can I use Adobe SVG viewer.
View 1 Replies
May 14, 2009
i can read everything from my xml file except a part that i can always get teh first items of each category (it will make more sence in a sec)So here is my xml
[HTML]<?xml version="1.0" encoding="UTF-8"?><flashxml> <second_page> <sp text="ss ptextj"/> <ss text="sptext"/> <clas text="clas"/> </second_page> <third_page> <ss> <category name="categor">
[code]......
View 1 Replies
Aug 28, 2009
Using AS3, I want to extracte data from a file to fill in my arrays. I would like to do this without using php and server side coding all done in AS3 the file can be a spread sheet.
View 5 Replies
Dec 21, 2009
Does anyone know if there's a possibility to read out a .php file in flash? (Like the iFrame in html) Some other webs showed me the 'loadvars' array..
View 7 Replies
Apr 10, 2010
I can't get it to work. I now messed up the code so I have to start over and I'm a bit desperate now
I think the core of the problem in my actionscriptproject is the following:
1. I need to read, for example, 20 variables from a file, preferable an xml file. This file has 20 lines, and has two fields per line, variable name and content
(being text between " ").
so data.xml would be something like:
variable1, "text for variable1"
variable 2, "this is var2 content"
...
or even:
&variable1=value1&variable2=value2&variable3=value3&variable4=value... and so on to 20.
2. Then, from the 20 read vars, a new array should be "populated" randomly! And at this point, I don't even know how to start doing that.
View 1 Replies
Jun 16, 2011
Im having trouble getting flash to read mms.cfg file. This file only contains one line;
[Code]...
Where i believe it should be stored on a 64-Bit Machine. When ever we check the global settings on a flash video the setting still remains on "check for updates automatically).
View 1 Replies
Dec 20, 2011
I try to read a txt file and split the content into variables, I use the following:
var fileURL = fl.browseForFileURL("open", "Select file");
var str = FLfile.read( fileURL);
the problem is the str get the whole test file, if the text file has multiple line,can I read the file each line by line, such as a function like readLine or something,so the str only get information for each line?
View 3 Replies