Store Some Data
hi all...i have another question here .. is it possible to write some data into a txt file via forms..or smtn like that? ..not using php or any ohter language..m?
FlashKit > Flash Help > Flash Newbies
Posted on: 06-20-2004, 10:16 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can A Mc Store Data ?
Does a movie clip has the property of storing some data ? I am reffering only to a simple variable.
Store Data In Objects
i have a site that i am trying to type text on playing cards and then store the text , suit and card for ordering. i have the typewriter sorted out, but can't figure out how to store the variable. here is the actionscript for the text:
if (Number(sign) == 1) {
x_pos = 50;
y_pos = 50;
}
if (Number(sign) == 2) {
x_pos = 75;
y_pos = 30;
}
if (Number(sign) == 3) {
x_pos = 105;
y_pos = 17;
}
if (Number(sign) == 4) {
x_pos = 125;
y_pos = 10;
}
if (Number(sign)<7) {
gotoAndStop("start");
} else {
stop();
}
how do i store a variable for the text and the suit that is selected ????
How To Store My External Data?
Hi, I'm trying to create a RPG. I have a list of monsters and their stats, and I have a list of all the attacks (both yours and the enemy's) I want to load both of them into Flash when the game starts and I'm just trying to establish the best way to do this.
The two viable options that i can come up with are PHP/MySQL and XML, but, as I haven't really used either on a large scale application yet, I wanted to get peoples opinions on which is the easier/better method.
Store & Save Data In AS3
Here's a simple question but I'm a noob so I don't know it.
How would I grab user-inputted data into an input field and hold onto it for later?
For instance if I have a line that says "What is your name?" and an input box. When the user clicks next I want the next frame to say "Thank you [userName]" and ask the next question.
So how to pass that input to a string and recall it later throughout the SWF as needed?
Thanks for your help!
AS3: Store Data In Mysql
Hi there, and... yes... i got a little problem with the store data. when i press it the button "submit" save 3 entries , not only one, why, this is my code:
Attach Code
as3 code:
var req:URLRequest=new URLRequest("http://localhost/wong/include/Query.php");
var vars:URLVariables=new URLVariables();
vars.v1=reg.firstname.text,
vars.v2=reg.lastname.text,
req.data=vars;
sendToURL(req);
navigateToURL(req);
PHP code:
$v1=$_GET['v1'];
$v2=$_GET['v2'];
$insert="insert into myvalues (fn, sn) values ('$v1','$v2')";
Edited: 10/04/2007 at 09:01:10 AM by eze_diablo
FMX: Is There Any Possible Way To Store XML Data Locally
Hey there, I will really apprieciate if you can help me out with this I;ve been going nuts trying to get this to work. My question is, is there anyway to store a file(an XML in this case) locally on a computer WITHOUT using a PHP server running on the computer. Im develpoing an application for both Mac OS and windows so it needs to be a solution that will work for both.
I really hope one of you'll can help me out.
Cheers,
Sycho
Best Database / Way To Store Data
Pretty much what the title states, for a project i need to make some game (won't need to try very hard, the others are using delphi) but it has to be able to store and recall data... ie.. names, scores, details etc...
Others in the class are using MS access, is that the best prog to use? Or whats mySQL? I've looked at the different ways of doing this, but just wanted some input from those of you with this sorta experience under your belt and can help out.
Any suggestions are welcome
thanks
Best Way To Store Data In Flash?
I'm having trouble figureing out the best way to store data. I'm creating a Flash application for work and basically it's a module to add a medication to a patients chart. There is a screen with drug name, drug class, dosage, etc. I want to hold this data in an array and then take that data and apply it to a data grid. I've done this without the array, but I wanted to use the array because I need to use this data in other ways.
Say I have 4 fields:
Drug Name
Drug Class
Drug Dosage
Reason Taking
Would it be best to have 4 arrays; one for each type of field and then if I want say drug number 5 look at the 5th position in each array?
Store XML Data In Array
I wanted to know if it was possible to store XML data in an array, and then call
this data later on in a MC.
so I have somehing like this.
Code:
xmlarray = [];
xmlFile = "users.xml";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.load(xmlFile);
xmlData.onLoad = function(success) {
if (success) {
path = xmlData.firstChild;
nodes = path.childNodes;
for(i=0; i<nodes.length; i++) {
xmlarray[i] = path.childNodes[i].attributes.area;
}
}
}
MC code.
Code:
trace(_root.xmlarray);
I wanted to know if this was possible to do
Best Database / Way To Store Data
Pretty much what the title states, for a project i need to make some game (won't need to try very hard, the others are using delphi) but it has to be able to store and recall data... ie.. names, scores, details etc...
Others in the class are using MS access, is that the best prog to use? Or whats mySQL? I havn't really looked into this at all, and any suggestions would help heaps!
thanks
Store Vector Data In Database
Ok, here's a crazy idea that probably isn't possible. :-) Is there some way to take a vector graphic and store the information that makes up that graphic, in a database?
Any ideas?
Thanks,
Andrew
To Store The Data In Hard Disk
Hi all,
i want to know how to store the data entered in text box to the system Hard disk.'
i want to to store the data which was entered into the text box by user.
Thanks in advance ...
Please help me out. Its very urjent.
Harry.
[MX] Getting Flash Aplication To Store Data
Ever since ive gotten around to making flash applications this questioned bothered me n i wasnt able to find an answer anywhere so far:
Is it possible for a Flash application to save data which can be accessed next time the program is ran? (for example like a save in a game or in a word proccessor); and if yes then can someone tell me how or mayb direct me to a tutorial?
Store Current Screen Data
Hi guys,
If you have some sort of drawing application where you can move around different screens,say you have one drawing area and another screen with a preview area or order form.
How will flash save or remember the designs already drawn on the drawing area if you move to the order form screen but then you decide to make a small change on your design.
Thanx
Using File/DB Or Classes To Store Data
Hello everybody
I'm making a game in flash and i need to store my data in a file/DB or Class but i don't know how to make any of them using Flash !!
all i need is to tell me which is better, Why & how is it done (sounds easy huh ?)
I've reached a tutorial @ the tutorials page here but I'm kinda confused about it
ThanX in advance 4 your help
Cya
New Comer Needs Help To Store Data And Retrieve
I'm having problems developing a code to store data I retrieve from radio buttons. It's meant to be a multichoice questionnaire with fifty sets of radiobutton groups five in each. I want to be able to retrieve the data for say question one, two , three go to question eight and on the click of a button retrieve all the data from the groups I've answered.
I tried using arrays in a code a little similar to this
x=1; i=1
function answer()
getanswer = new array(i)
if (myradiogroup.getvalue() !==undefined){
getanswer[x] = myradiogroup.getvalue()}
in an on handler get my x and i to increase by 1 each
when I trace the out put I would see the value of my radiobutton group at the current value of x but if I trace eg trace(getanswer[2]) when the current value of X is 4 I get undefined
please I need help and sorry for the length of this post
Store A Data In A Flash Exe File, Is That Possible ?
Hi,
I am looking for a solution to make sure that our exe application created from a swf will work only on one computer (anykind: pc or Mac). Our application is for sale, i need to find a a way to protect it. I would like to find a way that, if our application is copied on another computer, it will not work.
It looks like the only way to do that is to store an information of the computers'user the first time the application is used, in the application. Then the next times, compare this stored information with the one used on the computer that run the application.
I heard that it was possible to store data in a flash application, is that right?
Thanks a lot.
Example Of Input Text And Store The Data
anybody can give me a example of a fla file where we can input our data and the data will be save using flash MX????
Anyway you are kindly drop a message, your suggestion, explanation or example of code to me... thankx ya
How To Store Data In BitmapData Object?
hi, there:)
hope somebody can give me a hend on this...
so, i have some .jpg files
i want to put them them in a neaty array of bitmapData objects and on need assign them on a movieClip object
i'm relativelly new in the AS, so forgive me if i'm talking ****, but as far as i got it, i need to load the jpeg into a mc object, then take snapshot of the mc and assign it to the corresponding bitmapData object, right?
the URL of my jpgs are in the myFoo.filenames array, which is ok
so, here's my code:
Code:
import flash.display.BitmapData;
var Pics:Array = new Array();
var i;
//bitmap stuff
//trace ("tracing pics @ ln 6:"+ typeof(Pics));
this.createEmptyMovieClip("picture",this.getNextHighestDepth());
//set listener
var loadListener:Object = new Object();
loadListener.onLoadComplete = function(target_mc:MovieClip, httpStatus:Number):Void {
trace(">> =============================");
trace(">> =============================");
trace(">> loadListener.onLoadComplete()");
trace(">> target_mc._width: " + target_mc._width);
trace(">> httpStatus: " + httpStatus);
}
loadListener.onLoadInit = function(target_mc:MovieClip):Void {
trace(">> =============================");
trace(">> =============================");
trace(">> loadListener.onLoadInit()");
trace(">> target_mc._width: " + target_mc._width);
}
loadListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
trace(">> =============================");
trace(">> =============================");
trace(">> loadListener.onLoadError()");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
for (i=0; i<myFoo.numberof; i++){
this.createEmptyMovieClip("holder_mc",this.getNextHighestDepth());
path="images/"+myFoo.filenames[i];
mcLoader.loadClip(path, holder_mc);
trace ("-----------------------");
trace (holder_mc);
trace ("holder_mc._width: "+holder_mc._width);
trace ("holder_mc._height: "+holder_mc._height);
var tmpBitmap :BitmapData= new BitmapData(holder_mc._width, holder_mc._height );
tmpBitmap.draw(holder_mc);
trace ("typeof(tmpBitmap): "+ typeof(tmpBitmap));
Pics[i]= tmpBitmap;
holder_mc.removeMovieClip();
trace ("i: "+i);
trace ("path: "+path);
trace ("Pics[i].height: "+Pics[i].height);
trace ("typeof(Pics[i]): "+typeof(Pics[i]));
trace ("-----------------------");
}
in which case the output is:
Code:
-----------------------
_level0.holder_mc
holder_mc._width: 0
holder_mc._height: 0
typeof(tmpBitmap): undefined
i: 0
path: images/1.jpg
Pics[i].height: undefined
typeof(Pics[i]): undefined
-----------------------
-----------------------
_level0.holder_mc
holder_mc._width: 0
holder_mc._height: 0
typeof(tmpBitmap): undefined
i: 1
path: images/2.jpg
Pics[i].height: undefined
typeof(Pics[i]): undefined
-----------------------
-----------------------
_level0.holder_mc
holder_mc._width: 0
holder_mc._height: 0
typeof(tmpBitmap): undefined
i: 2
path: images/3.jpg
Pics[i].height: undefined
typeof(Pics[i]): undefined
-----------------------
i obviously have problem with these
holder_mc._width: 0
and
typeof(Pics[i]): undefined
i think the second is consequence of teh first, 'cos is if i change
var tmpBitmap :BitmapData= new BitmapData(holder_mc._width, holder_mc._height );
with
var tmpBitmap :BitmapData= new BitmapData(100, 100);
the result is
-----------------------
_level0.holder_mc
holder_mc._width: 0
holder_mc._height: 0
typeof(tmpBitmap): object
i: 2
path: images/3.jpg
Pics[i].height: 100
typeof(Pics[i]): object
-----------------------
so, i still don't have jpg loaded into my mc object, but i have bitmapData array..
a-a-a
that's about it..
if you see what's wrong or have an idea how i can do it in some other way... PLS tell me:))
thx in advance
Store Returned Data Set In Object Arrays...how?
Hello all,
I have used flash remoting to return a table of data from my database. Works great. Now I would like to take that data and store them by columns in arrays. How would I do this? Thanks!
T
Can You Store Data In Local Shared Objects?
I just read about "local shared objects". I am building an application that requires disconnected data entry. In other words, the user needs to enter data when not connected to the network. When the user is once again connected to the network, they will push a button that will synchronize that data with the system. The amount of data will be small - equivalent to 3 pages worth of text.
Is that something local shared objects might be able to help with?
How To Convert ByteArray Data Into String And To Store Into A File On HD
Dear All,
I have a problem, please can any body solve it on urgnet bases.
I am reading data from Socket (in Adobe AIR using action script 3.0), then need to convert it into String. After some manipuations on string i want to save that data on HD. The problem is when i get read data from socket via readbytes in a byte array after converting it into string, for some parsing. When i re convert data into bytearray and save it then , some data is lost. I'm dead stuck in it. Please help me! Thanks in Advance.
Can I Store Flash Generated Data To A Text-file?
I have made a slide show in Flash with ca 250 pages. I want the user to pick the pages they will use in their presentations, and have that list written to a file that they can bring with them to another computer.
Are there any means ofwtiting data to a text file from Flash?
Data Store / Retrieval Efficiency, And The Singelton Design Pattern
Hi there,
Whilst not strictly an AS3 question, I thought this the best place to ask, as posters here generally seem to work to higher-level best-practices.
I'm building a site for a photographers' agent, and I'm managing about 10 (rising to 20) photographers, each with about 10 collections, picked from any of 150 or so images. The bottom line is there will be at least 1500 images to display (each with filename, credits, id, etc), and a boat-load of data to load in.
Therefore, I've taken great pains to ensure the data is kept lean. For example, the path to a photographer is stored once, an image-size sub-folder is stored only one, and each of the 1500 images only stores it's filename once.
This is opposed to storing the full/path/to/each/filename for each image.
Now, upon completion of loading the data, it's available to my classes, and upon viewing each photographer I'll need to create the 150 or so class instances that will represent the image data (id, name, url, credits, etc) for that particular photographer.
So... getting to the point now:
When I create the image classes, I still need that full/path/to/image, so would it be best toassign the whole url of the image as an instance property in the constructor ie server/photographers/photographer/size/filename.jpg (thus duplicating a lot of data over the 150 images)
or, build the url manually each time I request the url property, using an implicit getter function
If I go the latter route (which is probably best) I'll need a reference to the server, photographer and size variables. These will change as the application changes, so I need some global point of access to them, and here lies my ultimate question:
Should I employ a Singleton to do the overall management of the application? So that the getter function might look like this:
ActionScript Code:
public function get url():String{
var manager = Manager.instance;
var path = manager.getPath();
var folder = manager.getFolder();
var size = manager.getSize();
return path + folder + size + '/' + this.filename;
}
image.url // "photographers/william_lingwood/thumbs/green_apples.jpg"
Or should pass in a reference to the Manager class in the constructor, so I could omit the repetitive static Manager.instance call, and just refer to this.manager?
I guess my question is "in order to keep duplication to a minimum, is it inefficient to constantly be calling a class method to get a simple variable?".
And "is a Singleton the best approach here? If not, what is?"
Sorry I had to ramble through all that. I felt I needed to explain the whole situation as I'm new to design patterns, so I hope it makes sense!
Many thanks,
Dave
Dynamic Text Boxes That Store Data Into A Database From Flash 5
Hi,
I'm new to programing with flash. I know that it's possibe to store Data into a Database, but if it's possible from Flash 5 and how, I don't know! I am limited to Flash 5 at work. I am to create a program that allows the user to sumbit sentences in a text field and have the data stored to be reviewed. Any suggestions?
Also, is there a way to select words from a paragraph of text. The only way that I can think of is to make each word a button, which is really time consuming. Any guideness is greatly appreciated.
Sincerely,
tarafenton
Dynamic Text Boxes That Store Data Into A Database From Flash 5
Hi,
I'm new to programing with flash. I know that it's possibe to store Data into a Database, but if it's possible from Flash 5 and how, I don't know! I am limited to Flash 5 at work. I am to create a program that allows the user to sumbit sentences in a text field and have the data stored to be reviewed. Any suggestions?
Also, is there a way to select words from a paragraph of text. The only way that I can think of is to make each word a button, which is really time consuming. Any guideness is greatly appreciated.
Sincerely,
tarafenton
Can Flash Store Data In Flat File On User's Local Machine?
I am developing a CD ROm training piece and need to know if it's at all possible for Flash to store data on the user's machine in a flat comma delimited file without the use of any server side languages?
I need to store a user record with about 5 fields. The user would pop the CD in, take the lesson and, ideally the responses from the lesson would be stored in a local text file.
Is that possible? If so, how?
Thanks
Store A Value ?
Okay here is what I need I have and 2 obeject:
Circle that = and x position of 100
Box that = and x position of 400
So i get the x difference between the objects that == 300 right
I need to figure out a variable that will store the half of 300 when i triger any key so if the circle or box moves it will not matter I will still get the half of 300 ( that should be 250) and if the ball moves and I triger the key it will store the half of that position at that time:
Example 2 :
Circle that = and x position of 100
Box that = and x position of 400
keypress then var = 250 <---- that is half of 100 and 400 actual number should be 150)
Circle moved to atposition of 200
Box that = and x position of 400
keypress then var = 300 <---- that is half of 200 and 400 actual number should be 100)
Let me know if you can help
[F8] How Do I Set Up A Store?
Hey. I am helping a friend with getting his glass b business off the ground by putting together a nice flash website that he can market his wares on. I can build a nice, attractive site in Flash no problem. The problem comes in when I want to set up a store for him. I have absolutely no idea how to do this and I could not find any tutorials on how to do so. Can anyone point me towards some tutorials that would help me integrate a store into this site?
I want to be able to create my own vignettes for the items, have a button under the items that says add to cart, a shopping cart, have a credit card checkout and whatever else is needed to complete these sort of transactions. Please help me here with any info you may have.
Thank you very much.
Store Variables
let's say I have 5 buttons, each has a value (or variable) attached to it.
Ideally, once a button is clicked, the movie would store that info somewhere. Can I just put those in a movie clip or something? I want to be able to pass them to an ASP page later to run a query into a db. Any suggestions?
There will be hundreds of buttons. Its a map.
Store Variables From .exe
Hi,
I am planning a new CD-rom (educational -- all flash).
I have convinced my company to drop Authorware !! yay!!
We used to use this is conjunction with Flash so that we could track student scores and put them into a database stored on the users computer.
Can I do this from a Flash Standalone player?
Can I write to a text file locally?
Is this possible by using cookies?
Any help / suggestions greatly appreciated.
Mike
Clothing Store ?
I am gonna build a online clothing store and i have flash 5.... i was wondering the best way to begin building??? i no how to use flash (to a point) but wanted to ask opionions for anyone who has did it or something like it.
Online Store Help
Hi there
I have to create a online store for a company. The design part is fine but the problem i have is when someone wants to purchase something, what scripts are needed. i'm a bit confused on what to do.
Is there any help out there that would help me.
tahnk you
Store In Array Some MC
i'm trying to store in an array some movieclips, later in another frame recovery these MovieClips.
is this possible?
Thanks.
Interactive Store
Hi
I am trying to create an interactive store with different rooms. A user should be able to, by using a created character, walk into each room of the store and view different items.
I need advice on how to create this interactive store....ie: getting the character to walk into these rooms.
Any help or fla downloads out there?
ANy help would be greatly appreciated.
How To Store A Var In A Cookie?
I have my main movie set up to randomly load a swf into the top header. There are 6 total but will proably be more.
This works fine, however, I'd like it that if the veiwer refreshes the screen, the same swf does not load again. Im sure I would have to store a var in a cookie but not quite sure how to do this. Can some one point me in the direction of a tut, or any where as long as Im going in the right direction
Thanks,
Josh
Store And Exicute
ok...
i've got 6 buttons that play 6 different movies, and what i need to do is to have the btn when clicked play the intro of the movie and when the next ( in any order) is clicked it would play the exit portion of the movie and then play its intro portion. and so on...
please talk slow i'm trying to learn
n8
[F8] Store Url In Variable
Hi there
I wondering how do you store a url address in a variable?
I have tried this:
Var link:String = "http://imagical.kol.co.nz./pages/Tree.html";
I am wanting to be able to call the variable (link) from a button and once clicked for it to take me to that web page.
As you probably guessed this does't work.
Is this possible?
Any ideas appreciated
Thanks
Tiaka
P.s using script 2
Store Locator?
Is it possible to build a search function(store locator) in Flash? ASP? PHP? If so please point me to a tutorial.
BitmapData Store
Is there a way to store BitmapData (images) ? I try the ByteArray class but I didn't manage to do nothing.
If anyone knows how, please help...
Thanks
Online Store?
just trying to find info about setting up an online store?
and incorperating it in my site?
what software do i need?
anything else i need to take into account?
thanks in advance
Store Swf And Frame
I have a main movie which contains a button to store a users position and a button to retrieve the users position, the main movie also has an empty movie clip used to load in external swf's. How would i go about storing which frame and which swf the user is currently on? And then on the release of the retrieve button, load the stored swf and goto the stored frame? (I dont want to use the shared object method).
Where Does SharedObjects Store Everything?
I was wondering if I could change the location of a SharedObjects object. I know you can do something like this:
ActionScript Code:
externalVars = SharedObject.getLocal("data","/");
In other languages, that would mean that it's saved a level up, but i don't see it anywhere...
ultimately, i would like to specify where i the variables are saved, i.e. C:/My Documents
Thank you for your help.
Flash Web Store
Hi,
recently I ran into an open source Flash web store. But apparently I forgot to do something with it, because I can't find it anymore. It seemed to work pretty good.
Does anyone know which site I mean? Or know any open source web stores in Flash?
thanks,
Jerryj.
oh, and this is my christmas present for all of you:
http://www.jeffwinder.nl/jinglebombs/jinglebombs.html
Where Do I Store External Swf's?
I'm obviously a newbie by my lame question, but, where should I store the external .swf's that I want to load into my main movie? I know my a/s is on point and the swf's names correspond, but when I click on a button to load a movie I get nothing. Does the folder need to be in a certain place for flash to find them?
Thanks to whoever!
|