This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2007 > flash mouseovers with xml





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author flash mouseovers with xml
ll

2007-08-29, 6:15 pm

I am working on a project in which there are 6 movieclips. There is a
'caption' or 'hover' script that will display a popup when the
movieclips are moused-over. I am loading the text for the popups from
an XML file.

Below is the code for the mouseover of each movieclip. However, this
script will not work with the 'i' variables in place. I have to place
a certain number in place of them to get it to work (the XML is
working then). My question is this: how can I get this script
working?

Thanks for any help - Louis
-----------------------------------------------

for (i=0; i<total; i++) {
//below, identify movieclip example: b0, b1, b2, etc
b[i].onRollOver = function() {
//below, identify username from XML file
captionFN(true, username[i], this);
this.onRollOut = function() {
captionFN(false);
};

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews