Why are my dynamic RollOvers and RollOuts getting stuck? Can you help? If you want to download the files go to www.e-twilley.com/organic.zip.
AS2:
[LEFT][COLOR=#f000f0]#include “mc_tween2.as”[/COLOR]
bg.[COLOR=#993300]_alpha[/COLOR] = [COLOR=#000000]0[/COLOR];
organic_xml = [COLOR=#993300]new[/COLOR] [COLOR=#993300]XML[/COLOR]COLOR=#000000[/COLOR];
organic_xml.[COLOR=#993300]ignoreWhite[/COLOR] = [COLOR=#993300]true[/COLOR];
organic_xml.[COLOR=#993300]onLoad[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]var[/COLOR] pieces_xml = organic_xml.[COLOR=#993300]firstChild[/COLOR];
[COLOR=#993300]var[/COLOR] total = pieces_xml.[COLOR=#993300]childNodes[/COLOR].[COLOR=#993300]length[/COLOR];
[COLOR=#993300]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#993300]var[/COLOR] i = [COLOR=#000000]0[/COLOR]; i < total; i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]_root[/COLOR].[COLOR=#000000]container[/COLOR].[COLOR=#993300]duplicateMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]“container”[/COLOR]+ i,i[COLOR=#000000])[/COLOR];
aa = [COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]“container”[/COLOR] + i[COLOR=#000000]][/COLOR];
[COLOR=#993300]_root[/COLOR].[COLOR=#993300]attachMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]“item”[/COLOR], [COLOR=#0000ff]“item”[/COLOR], [COLOR=#000000]1000[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#993300]_x[/COLOR]:[COLOR=#000000]100[/COLOR], [COLOR=#993300]_y[/COLOR]:COLOR=#000000[/COLOR]+[COLOR=#000000]1[/COLOR], [COLOR=#993300]_alpha[/COLOR]:[COLOR=#000000]0[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#993300]_root[/COLOR].[COLOR=#000000]item[/COLOR].[COLOR=#993300]duplicateMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]“item”[/COLOR]+ i,i+[COLOR=#000000]100[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#993300]_alpha[/COLOR]:[COLOR=#000000]0[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
aa.[COLOR=#000000]inside[/COLOR].[COLOR=#993300]loadMovie[/COLOR]COLOR=#000000[/COLOR];
aa.[COLOR=#000000]xSlideTo[/COLOR][COLOR=#000000]([/COLOR]pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]picx[/COLOR], [COLOR=#000000]1[/COLOR].[COLOR=#000000]5[/COLOR], [COLOR=#0000ff]"easeInOutQuint"[/COLOR], [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR];
aa.[COLOR=#000000]ySlideTo[/COLOR][COLOR=#000000]([/COLOR]pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]picy[/COLOR], [COLOR=#000000]1[/COLOR].[COLOR=#000000]5[/COLOR], [COLOR=#0000ff]"easeInOutQuint"[/COLOR], [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR];
bg.[COLOR=#000000]alphaTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]100[/COLOR], [COLOR=#000000]1[/COLOR], [COLOR=#0000ff]"linear"[/COLOR], .[COLOR=#000000]3[/COLOR][COLOR=#000000])[/COLOR];
aa.[COLOR=#000000]id[/COLOR] = i;
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"shape"[/COLOR] + i[COLOR=#000000]][/COLOR].[COLOR=#993300]_visible[/COLOR] = [COLOR=#993300]false[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"container"[/COLOR] + i[COLOR=#000000]][/COLOR].[COLOR=#993300]hitArea[/COLOR] = [COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"shape"[/COLOR] + i[COLOR=#000000]][/COLOR];
aa.[COLOR=#993300]onRollOver[/COLOR] = [COLOR=#993300]function[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]title_txt[/COLOR].[COLOR=#993300]text[/COLOR] = pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]mytitle[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]price_txt[/COLOR].[COLOR=#993300]text[/COLOR] = pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]price[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]text[/COLOR] = pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]firstChild[/COLOR].[COLOR=#993300]nodeValue[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]_x[/COLOR] = pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]boxx[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]_y[/COLOR] = pieces_xml.[COLOR=#993300]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#993300]attributes[/COLOR].[COLOR=#000000]boxy[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]alphaTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]100[/COLOR], .[COLOR=#000000]5[/COLOR], [COLOR=#0000ff]"linear"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
aa.[COLOR=#993300]onRollOut[/COLOR] = [COLOR=#993300]function[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"item"[/COLOR] + [COLOR=#000000][[/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]id[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000]][/COLOR].[COLOR=#000000]alphaTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]0[/COLOR], .[COLOR=#000000]05[/COLOR], [COLOR=#0000ff]"linear"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR] [COLOR=#993300]else[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"Error loading organic."[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#f000f0]*// clean up after ourselves*[/COLOR]
[COLOR=#993300]delete[/COLOR] organic_xml;
[COLOR=#000000]}[/COLOR]
[/LEFT]
XML:
<organic>
<rollover
mytitle=“ORYZA TOP”
price="$88"
pic=“images/oryza.png”
picx=“270”
picy=“0”
boxx=“0”
boxy=“7”>This loamy hue makes us think of planting spring bulbs.</rollover>
<rollover
mytitle=“TESS HARDING BLOUSE”
price="$218"
pic=“images/tess.png”
picx=“0”
picy=“0”
boxx=“275”
boxy=“7”>Milkweed pods puff silken strands into the wind; these silk ruffles do their best to follow suit.</rollover>
<rollover
mytitle=“LAUREL CANYON BLOUSE”
price="$88"
pic=“images/laurel.png”
picx=“134”
picy=“142”
boxx=“340”
boxy=“233”>Is this the color of dawn touching the horizon, or the sun fading in the West?</rollover>
<rollover
mytitle=“SALT SWIRL V-NECK”
price="$118"
pic=“images/salt.png”
picx=“268”
picy=“314”
boxx=“245”
boxy=“218”>Not at all unlike a patch of puffy cumulus clouds.</rollover>
<rollover
mytitle=“CACAO FLOWER DRESS”
price="$448"
pic=“images/cacao.png”
picx=“0”
picy=“203”
boxx=“200”
boxy=“282”>Did you know you can pluck up to 60 cacao beans from a single fruit?</rollover>
<rollover
mytitle=“SPOTTED CHIPPER WEDGES”
price="$378"
pic=“images/spotted.png”
picx=“437”
picy=“89”
boxx=“138”
boxy=“120”>Multi-season pieces are the talk of little birdies. Wear these with tights now, or pair with a floaty skirt when the mercury rises.</rollover>
<rollover
mytitle=“THRUSH PEEP-TOES”
price="$278"
pic=“images/thrush.png”
picx=“269”
picy=“483”
boxx=“147”
boxy=“383”>Thrushes are migratory birds, noted for their beautiful songs.</rollover>
<rollover
mytitle=“CIRCLE ART NECKLACE”
price="$248"
pic=“images/circle.png”
picx=“224”
picy=“274”
boxx=“147”
boxy=“425”>Circles symbolize renewal. This necklace is perfect to wear during spring, when nature is coming back to life.</rollover>
<rollover
mytitle=“JOVIBARBA SATCHEL”
price="$365"
pic=“images/jovibarba.png”
picx=“475”
picy=“373”
boxx=“187”
boxy=“468”>Jovibarba is a genus of succulent plants and means “Beard of Jove,” referring to the Roman god Jupiter.</rollover>
<rollover
mytitle=“GLIMMERWOOD RING”
price="$128"
pic=“images/glimmerwood.png”
picx=“410”
picy=“8”
boxx=“118”
boxy=“7”>Chunky and eye-catching, this is the perfect unexpected finishing touch to a dressy outfit.</rollover>
<rollover
mytitle=“SITAR BANGLE”
price="$258"
pic=“images/sitar.png”
picx=“0”
picy=“140”
boxx=“104”
boxy=“130”>In a brilliant play on textures, chunky wood harmonizes with gold and garnets.</rollover>
</organic>