[quoted text, click to view] j05 wrote:
> hi,
>
> I'm trying to emulate this in flash:
>
http://www.gardellahomes.com/properties_barringtonpark.asp >
> I've never used xml before, but suspect that it's the way to go.
>
> note that the data on the left changes as you mouse over the specific "lots"
> on the right. I was hoping someone out there could explain how I need to set up
> the Flash file (ie: do I need to attach code to each individual "button")... or
> maybe point me to some sort of tutorial...
>
> I've got each section as vectorized artwork... don't even know if I need to
> transform each one into a button or what...
>
> Any help would be grand, thanks in advance.
You not even need XML for it, simply text file with few variable could do.
There is lots of ways to achieve that, let me give you the easiest one.
I see 4 section there so you will need 4 dynamic text fields.
Give them variable names : LOT , ACRES , FEET , PRICE
Now all you need is a text file , simple text.txt and inside something like :
LOT1=123&
&ACRES1=123&
&FEET1=123&
&PRICE=123&
&LOT2=456&
&ACRES2=456&
&FEET2=456&
&PRICE2=456&
and so on ...
of course replaces the 123 and 456 with the actual numbers.
To load this text field you need the following action :
loadVariablesNum("text.txt", 0);
This action load the text file to flash and all the LOT1 and LOT2 etc... will be available
at any time on the root of main timeline.
So to display it , you need now button action that would pick it up and pass it to the text fields
on roll over.
on (rollOver) {
LOT=LOT1;
ACRES=ACRES1;
FEET=FEET1;
PRICE=PRICE1;
}
Another button
on (rollOver) {
LOT=LOT2;
ACRES=ACRES2;
FEET=FEET2;
PRICE=PRICE2;
}
and so on...
--
Happy New Year and all the best to all of you guys !!!
<urami>
http://www.Flashfugitive.com </urami>
<web junk free>
http://www.firefox.com