ActionScript 3.0 :: Storing Url In Text File?
Apr 9, 2009
I have 1 buttons in my flash movie. and want to use this swf in some other projects. just this button link will change in each project, so will also the button text. I dont want to edit flash file for each project. Can I use a text file for URL of button and I change text file to edit link of buttons and text of button?
View 2 Replies
Similar Posts:
Sep 15, 2009
1. How could I make it where some images/text in a flash file is taken from another outside file. For example lets say I have a image and text that would need to change constantly. The image could probably be done by using a url and changing the image set to that url, but I would rather have it search for a images file name on my computer. For the text is there a way I could use a text document, and have it set up to take the text in that document and display it.
2. How can I make it so when I click a link to an outside url it doesn't confirm that I want to visit it.
View 2 Replies
Jan 9, 2009
i have 4 txt boxes which load 4 prices from a txt file that works ok. if the user then changes the price in the box and hits a button:-
on (release) {
time = new Date();
url = "./store.php?time="+time.getTime()+"&post="+escape(po
[Code].....
View 4 Replies
Oct 22, 2009
I'm working on a little game. The machanics are fine, but I'm curious on the best way to work the "cut scenes" between the action. This will involve some "text bubbles" for the conversations.
I guess there are several ways to do this. I could actually make frames for each conversation frame, leaving the text drawn on each frame. I'm tending towards this method, as I can see it all as it should be layed out.
Is it worth it trying to store all the text in a sperate file that is called upon when the text is needed? I have seen this done in many other games (non-flash), but in those games there is quite a lot of text.
View 1 Replies
Apr 28, 2006
I want to do is to Store a list of, say, clients, with various children in an external XML file. It looks like this:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycClients>
<client>this is the name of the client</client>
<descrip> this is the description of the client</descrip>
<clientProjects>
[Code] .....
Anyway...when the user clicks a BUTTON (not a dynamic button, but one I place on the stage) I want to load all the client's projects. When the user clicks another button, I wan tto load all of the client's friends. When the user clicks a third button, I want to load the description of the client. Into a SIMPLE text box. Just a regular old dynamic text box which I have placed on the stage myself. When a new button is clicked, the previous data is replaced with the new data.
Code:
clientArray= new Array();
projectArray = new Array ();
descriptArray = new Array ();
var clientXML:XML = new XML();
objL.ignoreWhite = true;
objXML.onLoad=loadXML;
[Code] .....
I just want to keep this all as simple as possible so that I can learn to do it right.
View 5 Replies
Apr 5, 2012
I want to make a simple tick box questionaire in Flash (AS2) that stores data to a local text file when the user has submitted the form. So simple stuff like are you Male of Female. Is it possible for flash to store this information somewhere. It is for touch screens in an exhibition space so ideally it wouldn't be on the internet.
View 1 Replies
Nov 28, 2011
The user inserts 6 different numbers into the input text box between 1 to 49 also i need check if the number is not higher than 49 or smaller than 1 . I also need check duplicate entries and empty space from input text box, which error message will prompt the user. Then i need to store the input from user to array.
Here what i got so far
import uk.ac.uwe.multimedia.lottery.LotteryDraw
var lottoDraw:LotteryDraw = new LotteryDraw();
lottoDraw.chooseNumbers();
[code]....
View 3 Replies
Oct 11, 2009
I'm trying to create a 7x7 grid of textfields. I'm storing the textfield properties in an array. Here is the code I have for that -
var instances:Array = [];
for (var k:int = 1; k < 50; k++) {
var inst.TextField = new TextField();
addChild(inst.[k]);
[Code]......
For some reason this doesn't do anything. I don't know why not. Am I storing or accessing the textfield properties incorrectly in the array?
View 2 Replies
Apr 25, 2009
I'm loading a external text file to flash and according to the number present in the text file i'm trying to do a IF - ELSE command. It's not working coz the value I load from the external file is string. How can i get this as intiger.
View 2 Replies
Aug 23, 2011
How 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 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
Nov 20, 2010
I'm found the site with the monkey on the the flash thing and all it shows is a name, email and something else and I used it and it works by including a txt file and displaying text from that file as putting down this information
name.text = this.name;
and I can't find the site anymore to get help.I want to know how to include a PHP script that shows this information like this
text=something I need&username=My Name&email=something@website.com
I want to show this stuff on the flash but every time I execute by using it as localhost/test.php, it will show a syntax error.
View 7 Replies
Apr 25, 2011
I am still using flash MX. I'm pulling random text from a textfile (array.txt) into movieclip instance textbox.[code]All is good, but now my question is if I can have a text effect as well. For example having the random quotes typed out as they appear.
View 16 Replies
Nov 21, 2003
I have a problem with a dynamic text field. I have 1 text field on frome 10 which displays text from a text file. This text can change when a button is clicked. I have another text file on frame 20, which i want to display what ever text is in the text filed on frame 10.
I have tried:-
[AS]MyTextboxFrame20.text = MyTextboxFrame10.text;[/AS]
but it doesn't work.
View 3 Replies
Jun 8, 2006
I have the folowing codo to load text from a text file into a text field in my flash document:
loadVarsText = new loadVars();
loadVarsText.load("homePage.txt");
loadVarsText.onLoad = function(success) {
[Code]....
the same, and I want to make the homePage.txt file load when the flash file starts, that is what it does right now by placing the code on the main timeline.
View 3 Replies
Oct 22, 2007
I'm trying to make a text box that loads text from a text file. I've accomplished that, and now I want to have it so when I click a button is loads another var from the file by changing the end number. Here is my code:
myNotes = new LoadVars();
myNotes.onLoad = function() {
i =1 ;
[Code].....
View 5 Replies
Nov 9, 2005
How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?
[Code]...
View 2 Replies
Feb 2, 2011
What is the best way to store data gathered from a flash file, and load it into another flash file? Would xml or php work? and could it be instantaneous? Here is a diagram of what i am trying to do...
[URL]
View 2 Replies
Aug 26, 2010
I have multiple swf files for background . I have to load the entire swf's first and have to store it in array . Is it good to store swf in array or dictionary?
View 9 Replies
May 6, 2009
I need some help with my code please. I have a for loop that creates sprites and loads images into the sprites theough XML. I have additional nodes for each image and sprite that get created that I want to store and call when I roll over the thumbs. What would be the best way to do this? I had to "improvise" and have the for loop create text fields to hold the data and then call it when I roll over throught "evt.target.
[Code]...
View 1 Replies
Jul 29, 2008
I'm not entirely sure how to go about this, but I want to store a path inside a var to reuse throughout some interface code:
Code:
var thisPath:Object = pageText_mc.pageCntrls_mc;
[thisPath + "."]prevButton_mc._visible = false;
[code]....
View 3 Replies
Jan 13, 2009
i'm trying to make a shoutbox/guestbook for my site in flash but i'm running into this problem. I'd like to have some sort of ip check, and i've got flash loading a var from php, and when I assign a text field the variable the users ip shows up just fine. my question is this-
how do i save whats in said text field as a string or something to use?
View 6 Replies
Jul 15, 2009
I'm building a website which is entirely in flash. There is a large main flash file and as you navigate through the site, many other external SWF's are loaded. The problem is that some of these are quite large and take a while to load. I was wondering if there is a way to load an SWF without showing the user that it is loading (no progress bars or anything) and then not doing anything with it once it is loaded, but having it ready for when I want to use itsee the site to understand: If you click on the "band" link, it will load a page with several other links. Most of them you click will simply say "Coming Soon", but the Media, Contact, and Tour links currently work and are good examples of what I am talking about. How would I load one of these before the user has clicked it so it is ready?
View 4 Replies
Feb 3, 2012
In a project I am working on, I will have hundreds- no, thousands- of small (32x32 pixels) images that I need to store in some way. What I need to know is what the most effective way would be. By effective, I mean "How can I keep the file size as small as possible and still retain its speed?". I thought this would be something somebody has discussed (and I still believe so), but I can't find it via Kirupa's search feature or googling.
View 2 Replies
May 16, 2007
I am doing an AS3 application. In the beginning of my AS file, I need to embed different textures as the following:
Code:
[Embed (source = "./myImage1")]
public var Image1:Class;
I have to embeed n bitmaps. Then I have to create an instance of each oh thease classes.
I want to store the names of thease classes in an array so I will be able to create an instance of a class by accessing the array.
Something like this:
Code:
var arrayOfClasses : Array = new Array();
arrayOfClasses.push(Image1);
arrayOfClasses.push(Image2);
...
Then I want to go through the array and do :
Code:
var variable : Object = new arrayOfClasses[0];
But this dosen't work! How Can I build an array of classes? Is it doable?
View 5 Replies
Aug 19, 2009
I want to have a TV screen and hundreds of (small) flash animations load up in the 'TV'. I'm assuming I'm going to have to use Actionscript, so I'm looking into that right now. However, what would be the best way to organise this? Each "TV" will have a different set of "Channels". Do I create each 'channel' and save them as seperate SWF files, or is it possible to have them all in one main file. I can then flick through each 'channel', which essentially unloads the current animation and loads the next one
View 2 Replies
Sep 19, 2010
When a key is pressed, data is sent to PHP to be stored in a MySQL database. For each key press, only one entry should be posted. it re-posts exponentially (e.g., 1st key press = one post, 2nd key press = two posts, 3rd key press = three posts; thus, totaling six posts).Initially, the event listener for key press existed alone on a single frame. When that was the case. This issue did not occur. I added an additional frame so that I could set to clear out all variables and start fresh.
so frame 4 will have :
KeyListener = new Object();
KeyListener.onKeyDown = function(){
if (Key.isDown(69)){ // if key pressed is "E"
[code]....
View 1 Replies
Jan 5, 2011
This script from MC 1 loads an template from the library and then creates as many instances as the XML says.
It also creates a dynamic variable called ppp. This variable i want to store in each of the newly ceated instances and then use it in another movieclip to load the right path where i want to load another xml file in Flash....
This is what i want to accomplish:
xmlData.load("albums/album"+ppp+"/images.xml");
This code is in another movieclip (MC2) and gets loaded in frame 5 of MC1.
Another soltuions is if it is possible to read the value that is loaded in the dynamic textfield nummer_txt from the template:
Actionscript Code:
[Code].....
View 2 Replies
May 17, 2006
There is a combo-box by the name "cbJobs" and it gets its value from the XML file named "data.xml".. I want to store the value transferred from this XML file into a variable.. so basically someone told me to use the code
on (change) {
_root.subject = this.getValue();
}
the only problem with this code is that it gets activated only after I "change" the value in combobox by pulling it down.. I want to use this value obtained from _root.subject as a subject in the script
getURL("mailto:abc@abc.com?subject="+_root.subject);
View 1 Replies
Sep 9, 2009
I have 15 sets of x and y values, that should be stored together. I was thinking I could have an array, holding 15 other arrays, each holding the x and y value? Is that a valid way to do this? Also, is there a way to create those arrays holding the x and y, dynamically, so they just get numbered?
MainArray[
subArray[x1, y1];
subArray[x2, y2];
[Code]...
Obviously, above is not correct AS. Is this even a way to do this? Are there other much better ways?
View 3 Replies