Groups | Blog | Home
all groups > flash (macromedia) > january 2005 >

flash (macromedia) : xml help


andyafco NO[at]SPAM gmail.com
1/6/2005 3:08:42 PM
Check out the XMLConnector tutorial on the macromedia site. The
rollover might triggering a call that pulls data from an XML file. This
would be ideal, because you can update the data without having to touch
your flash files. Hope this helps.

-Andy
dan mode
1/6/2005 4:31:07 PM
this could be just a gotoAndPlay (frame#) then on that frame number is the
text

Dan

blah blah blah lengthy signature


[quoted text, click to view]

j05
1/6/2005 10:34:11 PM
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.
urami_
1/7/2005 7:30:52 AM


[quoted text, click to view]

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
AddThis Social Bookmark Button