Groups | Blog | Home
all groups > flash data integration > november 2005 >

flash data integration : Flash and Xml


phergert
11/30/2005 12:59:08 AM
Flash Skill Set
Not new, but that doesnt say much.

Task
I am trying to make a flash application that compares cars.
Currntly I have combo boxes going from "Make" to "Model" then to "Trim".
Once the "Trim" has been listened to I have a bunch of information being
populated.

Trouble
Each car selection has swatches to choose from.
These swatches are counted and the number is passed to flash...so i know that
car x has 12 color choices.
I also know each of the swatch color chip urls and the car that goes with the
color swatch.

Help
How do i take this information...the number of swatches and their urls...and
transfer that to movie clips on stage Text
PeteB
11/30/2005 7:49:23 PM
I will assume the swatches are image files.

I would make a funtion that takes an object as a parameter and that function
runs through the object creating an mc for each swatch.



function Swatches(p_CarSwatches:Object){
for (var i=0;i<p_CarSwatches.length;i++) {
// Attach a mc_Swatch for each swatch position the
mc's also
// Pass the url of the swatch p_CarSwatches.urlData
to a function in the mc_Swatch
// Have that function show the swatch in the mc
}

}
phergert
12/1/2005 7:00:09 PM
Thanks much PeteB.
AddThis Social Bookmark Button