Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




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.



FlashKit > Flash Help > Flash MX
Posted on: 04-06-2003, 05:50 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] XML Parse And Store In Array
I have an array variable which i want to hold the values of the parsed XML i am sending via PHP. But somehow, flash treats the code as it was local, after the onLoad event, my array seems to be empty... why ? I tried tracing, and it looks like flash executes the onLoad code the last ... is there a workaround ?


PHP Code:



var aColors:Array;

function getColorCodes()
{
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    aColors = new Array();
    
    xml.onLoad = function(success)
    {
        var colors = xml.firstChild.childNodes;
        for(var i = 0; i < colors.length; i++)
        {
            if(IsValid(colors[i].attributes.value))
            {
                //trace(colors[i].attributes.value);
                aColors.push(colors[i].attributes.value);
            }
        }
                // here prints correctly
                trace(aColors.length);
        for(var i = 0; i < aColors.length; i++)
        {
            trace(aColors[i]);
            trace("-------------------------");
        }
    }
    xml.load("http://localhost/MyImagesProject/"+"get_colors.php");
} // end of function


// here prints nothing
trace(aColors.length);
for(var i = 0; i < aColors.length; i++)
{
          trace(aColors[i]);
      trace("-------------------------");
}




I also tried to put the code outside a function ... still the same ...

Using OnLoadInit To Store To An Array
I'm loading images through an XML, using MovieClipLoader, and then placing the images in a movie clip one after another using onLoadInit (So they are all on the stage, in a 'filmstrip' layout). I want to store the widths of the images in an array, so that later, I can recenter the image strip on any particular image based on the combined widths. My problem is that when I try to push the widths into an array within the onLoadInit I get an undefined array. The widths, are there, I can trace them, but the array doesn't work in that command for some reason. Heres the code:


Code:
// A FEW OF THE VARS, AND THE MCL WITH LISTENER
var position = 0;
var loader = new MovieClipLoader();
var i = 0;
var mclListener:Object = new Object();
loader.addListener(mclListener);

//THE LOOP THAT PULLS THE IMAGES AND PLACES THEM INTO COVER_MC
for(i=0; i<imageArray.length; i++){
var empty = _mp3Player.cover_mc.createEmptyMovieClip("image"+i,i);

loader.loadClip(imageArray[i],empty);
};

//THE ONLOADINIT FUNCTION IM STRUGGLING WITH
mclListener.onLoadInit = function(target){
var widthHolder = target._width;
target._x = position;
position += target._width + 1;

imgWidth.unshift(widthHolder);
};

As far as I understand, I can't use my 'for' loop to store the image widths because they don't have width until they are initialized. As you can see, I'm not using push, but unshift, because for some reason the onLoadInit fires in reverse order of the load, but I think that is an unrelated factor. I would love any help or suggestions for alternate methods. Thanks.

Can You Store Bitmaps In An Array?
I have a set of external images that I want to scale and rotate. I'm reading them in from an XML doc and can load them into a bitmapData object, etc., but I'm wanting to basically load them in, and "set the bitmaps aside" so that I can use them when the user clicks on an image, etc. In other words, I want access to them without reloading them, and I'm hoping to store them in an array. Is this possible? Is there a better approach? TIA!

Ciao,

-Jei.

Store String In A Array Xml Mp3
I am trying to build a mp3 player that takes an url from a xml file and plays the list. So far a was able to load the xml file but when I try to access the array of url from outside the fuction I lose the data. Please help how can I fix this.

download the fla you might need a mp3 file (rename to "a.mp3") it will play at load.

http://mason.gmu.edu/~eperez/children_array.zip

I want to be able to increse a index value and then take the data that was saved in the array to loaded in txt box and then play it.

thanks for helping

ActionScript Code:
// Create new XML Object and set ignoreWhite true
book_xml = new XML();
book_xml.ignoreWhite = true;
// Setup load handler which just invokes another function
// which will do the parsing of our XML
book_xml.onLoad = function(sucess) {
    if (sucess) {
        processBook(book_xml);
    }
};
// Load up the XML file into Flash
book_xml.load('book.xml');
// This is the function that will be called when
// our XML document is loaded succesfully

//* my code beloww
sid = new Array();
author = new Array();
song = new Array();
image = new Array();
mp3 = new Array();
//_global.variableName = "variableValue"

// end my code


   
function processBook(xmlDoc_xml) {
    var i = 0;
    // xmlDoc_xml is now a reference to the XML
    // object where our information is stored
    for (var n = 0; n<xmlDoc_xml.firstChild.childNodes.length; n++) {

        if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "Authors") {
            //trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue);
           
            author[i] = xmlDoc_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue;
                    //trace(i);
            i++;
        } else {
           
            if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "SID")
            {
                //trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue);
                sid[i-1] = xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue;               
                //trace(i-1);
                //i++;
            }
           
            if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "song")
            {
                //trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue);
                song[i-1] = xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue;            
                //trace(i-1);
                //i++;
            }
           
            if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "ImageUrlSmall")
            {
                image[i-1] = xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue;       
                //i++;
            }
           
            if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "mp3URL")
            {
                mp3[i-1] = xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue;               
                //i++;
            }
            //trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue);
           
        }

    }

    maxNum = i; //catch num of records
    max = maxNum;   // display it in txt box
   
    i++;
    SID = sid[0];
    Author = author[0];
    Song = song[0];
    Image = image[0];
    //MP3 = mp3[0];
   

   
    //mySound.loadSound(mp3[0],true);
    MP3 = mp3[xtrack];
    //MP3 = myObject[0].loc;
   
   
    // load the txt from dynamic text box and play
    mySound.loadSound(MP3,true);



}

   
   
    //MP3 = mp3[1];
   
/*
function funcPlay() {
    _root.MP3 = _root.mp3[1];   
}*/

[EDIT/CyanBlue] AS Tag applied... [/EDIT]

How To Store *.txt Files Into Array
First, hello to all! I'm new here, also newbie in flash, I hope u'll have understanding for my easy questions. =)
I'm tryed to find my answer everywere around but didn't find it.

Very simple:

I have bunch of *.txt files in one directory and I want to put them in to array with actionscript. Then display name of each txt as a button (link) on the page.
Each link (when clicked) need to display content of txt file in a dinamic textfield.
Problem is that I can't find how to push all files from directory into array.

any help apriciated.
(eg. point to tutorial, webpages, etc)

Thanx!

Can I Store Symbols In An Array?
For example if I have a movieClip named movie1 can I store it into an array?

If so how do I do it? Use the instanceName of the particular clip on my stage as the reference for inserting it into the array?

Any help is always appreciated.

Store Objects In An Array?
Howdy!

Does anybody know if there is possible to store an object in an array? I have this class that I call Person and when I create an instance of that class, like:

var person = new Person("Josef");

I would like to store it in an array. Is that possible? And if the answer is yes, how?

// phreaky

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

Store Objects In An Array?
Howdy!

Does anybody know if there is possible to store an object in an array? I have this class that I call Person and when I create an instance of that class, like:

var person = new Person("Josef");

I would like to store it in an array. Is that possible? And if the answer is yes, how?

// phreaky

Array To Store Movieclips
Hi,

I'm looking for a way of storing movieclips (that have already been imported into the library) in a single array, but I can't find a way of doing it.

Thanks in advance,
Rcms

Store Characters In Array
Hi folks!

I need to store the letters a-z, A-Z, 0-9 and some punctuation in one long array like this :
var chars = new Array("a","b","c","d","e".....)
Do I have to create that array by hand, or is there a slicker way to do it. I recall seeing some code like that somewhere about random texts, but I cant find it now...

Side question: Does threads like this belong here, or in the "Actionscript" forum? I work in MX, and I dont care if the answers contain MX-code, but the question itself is not MX-specific.

Hmm...

Store User Input Into An Array
Hi.
I am doing something with buttons labelled 0-9. Let's say the user will be asked to press 10 sets of 3- digit randomly generated numbers.

How i can store the user input inside an array so that i can send results to a database and can keep track of what the user had pressed before he got the correct answer.

Please help. Thanks in advance

Store Position Of Items In An Array
hello guys!... i was wondering how could i do to store the position of the items from another arrays. Well i have this code that evaluates the genre of each song and i get an Array from here that tells according to the position in the array of the genre to which song it belongs, so it could have many repeated genres, and i would like to identify each genre and create another array var or whatever to know exactly which items belongs to the genre eg of my code:


PHP Code:



//if i have say 10 songs
//item 0 is for song 0, item 1 is for song 1 and so on...
var mygenres:Array=new Array("Rock", "Religious", "Punck", "Metal", "Rock", "Rock", "Other", "Metal", "Punck", "Other");
//and then i would like to get the results a(or something similar would be very appreciated):
//the first item is for rock genre and should return and place the position where the genre was found and so on with the rest of the genres
var sortedGenres:Array=new Array([0, 4, 5], [1], [2, 8], [3, 7], [6,9]);

Remote Class (cant Store An Array And Use In FLA)
Hi!

I am trying to use this remote class to fetch out the values in my db. However i am unable to store the vaulues into an array and then use then in them in the FLA. I want to use the put the rs.serverInfo.initalData[i][1] String as the label on a button upon a click event. But as i said i am unable to access the nextItem class property. I get "Cannot access a property or method of a null object reference" when trying to label it.



Code:
package
{



import flash.net.NetConnection;
import flash.net.Responder;

public class ARemoting
{

var nextItem:Array
var serverInfo:Object
public var dataProvider:Array;
public function ARemoting()
{
this.init();
}


public function init()
{

var myService = new NetConnection()
myService.connect("http://localhost/amfphp/gateway.php")
var responder = new Responder(getTitles_Result);
myService.call( "News.getTitles", responder);
}



function getTitles_Result(rs:Object){
{

var cant:Number = rs.serverInfo.totalCount
for(var i=0; i<cant; i++){
serverInfo = rs
nextItem[i]= (rs.serverInfo.initialData[i][1])



}
}

}
}
}





what do write in the FLA ?


Code:
import fl.controls.Button;


var myTest:ARemoting=new ARemoting()
myTest.getAntalet("0")





for (var lm=0;lm<4;lm++) {
var myButton:Button=new Button
addChild(myButton)
myButton.name="box"+lm
myButton.x=(100*lm)+70
myButton.y=160
myButton.addEventListener("click", onClick);
}


function onClick (obj:Object)
{
getChildByName("box2").label=myTest.nexItem[1]
}





Thanks!

Store Each Line Of TextFile In Array
G'day everyone!

I just have a (hopefully-) simple question... I'd like to read a text file line by line and store each line in an array.

I tried to get this by using the URLLoader:


ActionScript Code:
var strContent:String;
function fillContent(folder:String):void
{
    var arrayMenuItems:Array = new Array();
    var arrayContent:Array = new Array();
    var arrayNews:Array = new Array();
    var myContent:URLLoader = new URLLoader();
    myContent.dataFormat = URLLoaderDataFormat.TEXT;
    myContent.load(new URLRequest("content/" + folder + "/_content.php"));
    myContent.addEventListener(Event.COMPLETE, getString);
    contentText.multiline = true;
    contentText.htmlText = strContent;
    contentText.setTextFormat(format_ContentRegularText);
}
function getString(e:Event):void
{
    strContent = e.target.data;
}

Think everything's clear now. I now would like to save each line to another array index (whatever)

ActionScript Code:
strContent = e.target.data;
Is it possible to change above code on a simple way so I can store the data within arrayContent ?

Finally the idea will be to store the content for each site in a php file in a specific folder. Inside the PHP I'll use own tags that I have to translate with my code. So I need each line to be separately stored.

Another thought of mine is to read all lines into a string. Perhaps there are also such separators like in normal text files (e.g. "backslash"n or "backslash"r) (I still don't know where the backslash is in osx

Best thanks for reading and trying to answer!!

Oli

Store Checkbox Status In Array
hai all...

i hope here i will get answer quickly...

i have a movie. inside that i am attaching movieclips dynamically with attachmovie. inside that movieclip i place the checkbox component. what i want is i need the status of the checkbox component in each movieclip store in array. becoz after checking the checkbox i am going to deleting the movieclips with delete button.

is it possible....any flashguru is here to expalain in mx2004 as2.0

like yahoo and hotmail having the mail list with the check box. to delete the mail we will check the checkbox and delete button....

anybody.....


Flashmani

Check For Existence In Array And Then Store
ok, this is totally breaking my balls, dunno what's wrong.

scenario: I have an array with some elements that may repeat themselves or not (this is actually because they're attributes retrieved from xml nodes, but you don't need to know that);

what I want to do is: go through that array and check for elements and store them in another array according to the following condition (this is where it gets tricky): if that element does not exist in the final array yet, store it; if it does exist already, nevermind it.

I wrote this code:


Code:
//custom method for searching through array
Array.prototype.contains = function(searchValue){
for(i=0; i<this.length; i++){
if (this[i] == searchValue){
return true
} else {
return false
}
}
}

//final array
cities = [];
//array to be checked for elements
destinations = ["lisbon", "oporto", "oporto", "coimbra", "oporto", "lisbon", "lisbon", "coimbra"];

//loop that does the checking and the pushing if acceptable
for(j=0; j<destinations.length; j++){
item = destinations[j];
if(!cities.contains(item)){
cities.push(item);
}
}

//show me the money
trace(cities);
trace returns lisbon,oporto,oporto,coimbra,oporto,coimbra wich means that the only element in the destinations array being prevented from getting pushed into the final array is the first element in the initial array (in this case, "lisbon")...

but if it prevents the first one, how come it doesn't prevent the others, damn it?...

anyone?...

Store Checkbox Status In Array
hai all...

i hope here i will get answer quickly...

i have a movie. inside that i am attaching movieclips dynamically with attachmovie. inside that movieclip i place the checkbox component. what i want is i need the status of the checkbox component in each movieclip store in array. becoz after checking the checkbox i am going to deleting the movieclips with delete button.

is it possible....any flashguru is here to expalain in mx2004 as2.0

like yahoo and hotmail having the mail list with the check box. to delete the mail we will check the checkbox and delete button....

anybody.....


Flashmani

Eval And How To Store A Function In A Array And Call It
I have a dynamic button navigation (its working fine) but i want to control what the link will do dynamically

some links (buttons) will open goto a frame and open a textfile, other buttons may just open a SWF file.

I am thinking i can store these in an array

example:

ActionScript Code:
sublinks_arr[0] = Array('gotoAndStop("homeframe");');
loadMovie("special.swf", myMC_loader);
_root.textfile="portfolio";
gotoAndStop("textloader");');
.
.
.
switch.....case 0:
eval(sublinks_arr[0]);

Basically I just need to know if its valid to do that, note that the 3rd option calls 2 functions.

Loading Multiple Images From XML And Store In An Array
Good evening to all.

First of all, I'm registered for like, forever on Kirupa, but I can't remember introducing myself.
So, here I go:
I'm Gertjan from The Netherlands. I'm a designer/junior developer (in training) @ Studio Stomp in Amsterdam. And that's about it
So... hi!

Then the 'important' stuff:

I'm in the middle of my vacation and I decided to build my personal portfolio site.
The main experience will be in Papervision3D, I'll asume you all know what is . But that part is going fine.

Of course all the content will be in an external source, in my case: content.xml.
The problem I walked into, and what is totally drives me crazy is the following:

I want to load the images from the 'image' node from the 'project' node.
This is what a 'project' node looks like (this is 1 project, ofcourse content.xml has more projects):


Code:
<project id="001" client="specsavers" type="web" role="design" url="http://www.korting-op-bril-of-lenzen-per-zorgverzekeraar.nl/">
<image>images/work/web/specsavers01_01.jpg</image>
<image>images/work/web/specsavers01_02.jpg</image>
</project>
I want to preload the images from the xml and store them in an Array. All the other properties will also be dropped in that Array. Then I'll push this Array in an projectsArray so I can easily transfer this Array to different classes and extract what i need from them without loading every asset. In this way every entry in projectsArray is a project. (correct me if there's a better way, I'm learning here! ).

But, I can't get it to work! I tried several ways but none of them worked like I wanted to.
Ofcourse I allready googled, but I can't find the right instructions for my problem.

If anyone is willing to help me with this, or just refer to a page where I can find my solution...
I would be so thankfull.

Sincerly yours,

Gertjan

(oh by the way... i did allready sort of introduced myself couple of years ago *click*)

Store And Retrieve Array Of Custom Class Objects From Shared Objects.
Hi,

I am stuck up with a problem in ActionScript 2. I am using Flash MX 2004 on windows XP.

I have created 3 custom classes say Parent, Child, and GrandChild. Parent class contains in it an array of its Child objects. Similarly each Child object contains in it an array of GrandChild objects. Also I do have one global array of all the Parent objects.

I want to store this array to the shared objects on specific events(say exiting the session) and then reload them from the shared object(on next session startup). I am able to store the global array to the shared object but when I try to retrieve the same array from shared object, I could not do it. The retrieved array is not of my custom class type [Parent].

Help needed to solve this problem urgently. Does anybody have idea how to do it??

Thanks in advance.



Cheers,
Naishadh Sevalia

"store" Mousemovement In An Array
hello I want to store my mousemoves in an array so that I can use it in a for loop later.

can somebody help me? either here or on msn: little_razie@hotmail.com

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.

Help PHP Store Txt
Deleted how do i delete this post

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

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.

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?

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.

Can A Mc Store Data ?
Does a movie clip has the property of storing some data ? I am reffering only to a simple variable.

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!

Php In Flash E-store?
Hello,

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.



Thank You very much for takin the time to read my questions through

Eduard Ilves

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:. link Btw why isn't this text editor working anymore?

Store Locator
The Store Locator will be built into a Flash banner (eg. sits on Yahoo) and will search the dealer's web site which is built with Cold Fusion.

The user will type in a zip code and click "go" which will call up the Dealer's landing page for that particular location (it looks like a dynamic page that stores the info). An example can be seen on http://www.lojack.com.

Thanks for your patience and know-how in advance.

How To Store A Value To Use At A Later Time
Hi there.
I'm back ! Finding this site incredibly useful and a wealth of great talent on here..

I wonder if you could help me out !
I recently posted a topic re. the keeping score tutorial which was on here... I ended up having problems for what I was using it for - so found another which did the job.

What I would like to know is, if someone has scored points on a game i'm creating - could that be stored as a "value" that could be displayed at the end of the game in another frame ?

Here's what I have at the moment

A dynamic box with the description and var of "score"

An action on a frame with the script:
score = 0;

A button that once clicked runs this action script (which adds to the score):
on (release) {
_root.score += 100;
}

Is there a way afterwards to get the total amount from "score" to be used elsewhere ?

Many thanks !

John

How To Store Variables?
So i think i'm pretty close. Basically I'm trying to store instance names of the currentTarget in a variable by using the instance name of an object that is on the stage. I know how to do it with as2, but I'm having trouble translating to as3. I'm using an "if statement" so if the variable is null it does one thing, then if the variable has the instance name then it does the if statement for the object of the instance name that it is holding, then the instance name is supposed to be taken over by the new button that was just pressed. I'll zip up the fla file, hopefully this will make more sense.

Online Store
Can anyone tell me if it is possible to build an online store with Flash MX (How to accept credit cards online etc...) Thank you.

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!

Copyright © 2005-08 www.BigResource.com, All rights reserved