Store Actions In Flash As3?
Jul 23, 2010I am trying to create a history of the actions, perhaps stored in an array, I make in flash so that I can have a button that allows the user to go back to a previous action
View 3 RepliesI am trying to create a history of the actions, perhaps stored in an array, I make in flash so that I can have a button that allows the user to go back to a previous action
View 3 RepliesI have a series of frames one the timeline. Each frame has a graphic and a mouse click leads to the next frame. Think Myst.
[Code]...
When the middle frame is returned to, clicks no longer change anything. I believe that the actions of the 'left' frame are replacing the one's in the middle frame so then it is told to gotoAndStop to itself.
I'd like to know if that is indeed what is happening and how I can make it stop.
1. Can i put another set of actions in frame 2 of the actions layer?i tested but it doesn't seem to work..it has 836 rows of code and it's getting annoying when tryin to search for a function..
2. I am not that familiar with classes, i usually put all the code into movieclips or in actions layer.. i am not sure if i can call a function from a actionscript class..
3.I am curios if there is any way i could specify an alternative for the if statement like in this pseudocode:
if ( apple is not clean BUT is tasty)
{
eat(apple)
}
I have a theoretical question about constructing a e-store in flash. There are some free ready-made shopping cart systems for flash that use PHP. Why exactly is the PHP script used? To avoid running out of stock?Im not very comfortable with PHP, so I wonder if it is possible to make a simple shopping cart system using variables. For example after pushing a button add to cart the price and quantity is added to certain vars, that can be used afterwards to send the client the bill via mail.
I would like to offer clients to choose between bill to mail and bank link. Could somebody also tell if the var system can be implemented in the bank link system with SSL security and stuff? I will hire a programmer to do the bank link system just don't want to run into unpleasent surprises when the programmer will take a look at my var system and start laughing.
I was hoping for some guidelines on the general best practice for storing data from an XML document. When all is said and done, my whole flash site will be powered by XML, so I want to make sure it is organized properly. Usually what I do is parse the XML, and store all the different sets of data in arrays, but I'm sure there's a better way to do it. I'm no expert though, so I need something fairly straightforward. Here's my initial setup:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("xml/presentation.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
[Code]...
How to store flash objects in different location?
View 1 RepliesI am trying to create a flash banner add that utilizes the google maps flash api to display a store locator tool similar to this: [URL]
I have been given an extremely tight deadline and am basically clueless on how to get these technologies jiving;
AS2, + CS4 Flash I am trying to develop a 'Nearest Store Locator' in flash for part of my website. Basically instead of having all of my stockists and stores listed on the website, I would like to have an input box, where a user can put in their Postcode, and the flash swf will search the stores we stock by the postcode(s) and bring up the closest 3 - 5 stores. Is this possible to do,
View 1 RepliesKnow how to we store data for flash application? As im not using any server-side script, it is not possible to connect to database right? 2 things i managed to found by google it are SharedObject and XML. But later i found that it is not possible to modify data in XML using flash without any server-side script. For sharedobject, it seems not possible if i want to store the information of a list of users, as the instance of shared object can only hold the latest data.
View 4 RepliesWhat is the most proper way to store "global" constants for a flash app:
a static data class
a dynamic data class
a dynamic data class via getter/setter
And one more, im still new to flash and im thinking which database is best to be used for flash. i got some ideas in SQL server and Microsoft Access.
View 1 RepliesI've succesfully loaded and parsed this XML file, using XMLParser and AS2:
<Resources>
<item author="Julian" date="28/12/2010" time="01:18" id="876" like="8" dislike="5">
<Text>Sample paragraph</Text>
</item>
[code].....
Now, what I need, is to increase and store the "like" and "dislike" values with the click of a button, but I don't know how to modify and store them in the existing nodes (eg., without adding new ones).Do I need to use PHP, or can AS2 handle it by itself?
just like facebook game, I see that even I am playing facebook social game, it still have some downloading when I click on an item for the first time, or just by doing something new. Is that people can divide flash into many parts and connect them when they need?
View 1 RepliesI have an AS3 project that takes user inputs (basically like a multiple choice test) and saves the these inputs in an array. I need to save the array to a text file so it can be reloaded when the app is reloaded. When the user returns to the application they can pick up where they let off. I really just need to know what options I have for saving an array inside an swf to an xml file or text file in the same directory. Is this even possible.
View 2 RepliesMy game stores levels in large strings. Not very long, the length is about half my desktop on a 1080p screen.[code]...
Flash IDE tells me that I will need to end the string literal before a new line. I can't, since it's too long. (For the IDE, not flash enviroment)
how can I store value in class from *.fla file in actionscript 3.0 with adobe flash cs 5.5 and I read the stored value from class? I use get() and set() methodes in my *.fla file and in frame 2 I have the following code
[Code]...
I have a particular problem where I normally would use a db and php for back end but in this case I cant. its a small app that would consist of 4 tables category, price, product, and product_association. the product_association would store which category and type the products are associated with. so as an example if you have cars. you might have off road as the category the cost would be 20-25k could be suv. now a product can belong to more then one category but only one price. trying to figure what the best way to simulate a relational database with in flash. thinking objects, arrays, how to do the relationships.
View 0 RepliesHow can we save data into Flash file in Flash?
View 5 RepliesCurious but is it possible to store unique stats through flash using AS2? My client wants it and I'm like, I don't know if that exists. He got spoiled with Google Analytics.
View 1 RepliesI want to build a flash webstore. I here just to ask if someone can tell me some actual flash store running in the web. I may use AS3+PHP+mySQL and some XML.
View 2 RepliesI need to create an application where user can add multiple text boxes in the canvas and export it to image, user will also have the access to save it for future use they can edit it for which i need to store the canvas information to XML file.
View 3 RepliesIs there a way for Flash to store content that will not be deleted with the browser's cache?Imagine a game that runs in the browser but is still heavy enough that you don't want your users to go through downloading assets again every time.Now that LSO obeys browser cache deletion (it does, right?), is there another way? Using Air would work but you'd have to download and install a client, which defeats the purpose of browser games.
View 2 RepliesAs a personal project, I'm working on a language-learning flash game.I'm looking at the information I'll need to store in various XML documents.I'm implementing a 'history' feature whereby, for any given word in the database, for any given user, a comprehensive history of data is stored. With this data, I can generate all sorts of fancy graphs to track any given user's progress.For example:You have been asked the word 'cat' 10 times. From data stored in the XML document, the game generates a graph of the time it took to answer each of those 10 times. (So in a perfect world, you see a nice downward curve. Congrats.)My question is how to organise the XML document (if that's the way to go with this) so that it is as efficient as possible.Right now, I can only see the brute force approach: have a limited number of predefined history states (say 99), and write data to these each time 'cat' comes up. Once they're full, overwrite.
Code:
<user#>
<word#321>
[code].....
I have a shopping cart/store built in flash. All the pages are built in html. My problem is that when you navigate to another page the shopping cart empties. The cart is .xml based. I didn't think of this at the beggining. Does anyone have a suggestion? The link to the site is below.
View 2 RepliesMy Flex person claims that now Flex can do for iPhone as well. Whereas my iPhone person says Apps done in windows environment cannot be acceptable by App Store. Does anyone expert in both can tell me real thing.
View 2 RepliesI need a way to store variables which I can access from anywhere in a Flash movie (and from any script that is compiled with it). I go about this now that the _global object is gone?
View 4 Repliescheck out this link: [URL]the embed tag for the swf on this page sets the height and width to 100%. This disable scrollbars in the browser. But the flex store has made it so that scrollbars appear within the swf to be able to see the whole stage in smaller browsers.
View 1 Repliesis it possible to store and array generated in flash in a XML file?I am wanting to try make something where I have a group of object to choose from but I only want to choose say 3 of 10. I would like to be able to check the ones I want and then those be added to an array or an XML file which I can later pick up and use in another external swf.Because I am wanting to use an external swf I thought that adding it to say an xml file would be the option. But I don't really know how to get the ball rolling on this.
View 6 RepliesAfter working fine for about a month, all of a sudden I can't type anything in the Actions box. I can select and enter code snippets, but if I try to edit the code, it disappears. If I start a new Flash file (doesn't matter which Actionscript version, 2.0 or 3.0), the cursor briefly flashes, and then disappears and I can't enter any code in the new file. I can create and edit .as files -- it's only the Actions box for .fla files that's problematic.
View 1 RepliesI'm making a top-view side-scrolling racing game in Flash AS3. I'm unsure about the best way to store levels in the game.
View 1 Replies