To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-07-2004, 11:36 AM   #1
foomanlinux
Junior Member
 
Join Date: Sep 2004
Posts: 13
Is XML the only way you can pass external data to flash in an array?

Is XML the only way you can pass external data to flash in an array?
Or is there another way?
foomanlinux is offline   Reply With Quote
Old 09-07-2004, 03:05 PM   #2
jbum
Senior Member
 
jbum's Avatar
 
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
You can pass the data in a single string variable using a delimiter, such as a comma.

xx=dog,sheep,cats,elephants

These variables can be passed using LoadVars, or sent to the movie as part of the HTML that loads it.

Then use the String.split function to turn it into an array inside flash.

xary = xx.split(',');
__________________
jbum is offline   Reply With Quote
Old 09-07-2004, 03:34 PM   #3
foomanlinux
Junior Member
 
Join Date: Sep 2004
Posts: 13
This works? That is a great idea! Thank you!
foomanlinux is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:59 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.