help with flash script please - kids site

help with flash script please - kids site

Post by DUBLIN211 » Wed, 04 Aug 2004 18:05:47


am sorry to do this to anyone who can help me but i am desperate to get this
section of my site up and running which i am doing for a childrens site and
trying to add music to a player that i love, and thank you to those who helped
me before as i am not a designer - just a mere housewife trying to adapt a
template in flash, i need someone to have a look at the code and tell me what
is wrong with it and how do i correct it. - i am getting a code error message
for the script(full script pasted below) saying ::

**Error** Symbol=Symbol 162, layer=ActionScript, frame=1:Line 76: Expected a
field name after '.' operator.
Register_1_[("displayItem" add i)].add._visible = false;

**Error** Symbol=Symbol 162, layer=ActionScript, frame=1:Line 85: Expected a
field name after '.' operator.
Register_1_[("displayItem" add i)].add._visible = true;

Total ActionScript Errors: 2 Reported Errors: 2







SCRIPT BELOW WITH ERRORS WHICH I HAVE HIGHLIGHTED IN bold BELOW - THANKS SO
MUCH


function assocIndexSource(id) {
var Register_1_ = id;
k = 0;
while (k < AdataSetupSource.length) {
if (AdataSetupSource[k] == Register_1_) {
return k;
}
k++;
}
}
function assocIndexNew(id) {
var Register_1_ = id;
k = 0;
while (k < AdataSetup.length) {
if (AdataSetup[k] == Register_1_) {
return k;
}
k++;
}
}
function makeAlist() {
if (!topIndex) {
topIndex = 0;
}
redrawPlaylist();
scrollPlaylist();
}
function scrollPlaylist(scrollDirection) {
var Register_1_ = this;
var Register_3_ = _parent;
if (topIndex == null) {
topIndex = Number(0);
}
if (AitemList.length > displayMax) {
if (scrollDirection == "up" and topIndex > Number(0)) {
topIndex--;
scrubPlaylistHandelAdjust();
}
if (scrollDirection == "down" and topIndex < (AitemList.length -
displayMax)) {
topIndex++;
scrubPlaylistHandelAdjust();
}
if (scrollDirection == "pageup" and topIndex < (AitemList.length -
displayMax)) {
topIndex = (topIndex + displayMax) - 1;
scrubPlaylistHandelAdjust();
}
if (scrollDirection == "pagedown" and topIndex < ((AitemList.length -
displayMax) + 1)) {
topIndex = (topIndex - displayMax) + 1;
scrubPlaylistHandelAdjust();
}
if (topIndex < 0) {
topIndex = 0;
}
if (topIndex > (AitemList.length - displayMax) and AitemList.length >
displayMax) {
topIndex = AitemList.length - displayMax;
}
}
var Register_2_ = topIndex;
i = 0;
while (i < displayMax) {
j = 0;
while (j < AdataSetup.length) {
Register_1_[("displayItem" add i.toString())][AdataSetup[j]] =
Aitemlist[Register_2_][j];
j++;
}
var tempActive =
Aitemlist[Register_2_][Number(assocIndexNew("flashlistID"))];
Register_1_[("displayItem" add i)].bkgd.fill.gotoAndStop("on");
if (tempActive == Number(currentSelection)) {
Register_1_[("displayItem" add i)].bkgd.fill.gotoAndStop("playing");
}
Register_1_[("displayItem" add i)].my_itemLabel = Register_1_[("displayItem"
add i)][Register_3_.my_itemLabel];
var itemType = Aitemlist[Register_2_][assocIndexNew("entity")];
Register_1_[("displayItem" add i)].dirIcon.gotoAndStop(itemType);
if (itemType == "d" || itemType == "x") {
Register_1_[("displayItem" add i)].download.gotoAndStop("off");
Register_1_[("displayItem" ad
 
 
 

help with flash script please - kids site

Post by J » Wed, 04 Aug 2004 18:16:23

i,

It looks like the script is written for flash 4 or possibly earlier

try relacing the lies as below:

Symbol 162, layer=ActionScript, frame=1:Line 76
Register_1_[("displayItem" + i)]._visible = false;


Symbol 162, layer=ActionScript, frame=1:Line 85
Register_1_[("displayItem" + i)]._visible = true;

hope this helps:

if not you can email me

XXXX@XXXXX.COM

"DUBLIN2111" < XXXX@XXXXX.COM > wrote in message
news:cenkhb$lnv$ XXXX@XXXXX.COM ...
this
and
helped
what
message
Expected a
Expected a
SO
Register_1_[("displayItem"
(Aitemlist[Register_2_][assocIndexNew(Register_3_.mySQL_col_filename)] ==
==
Register_1_[("displayItem"
(scrollBarBkgd._height -
Register_1_);
listPlayOpen.AitemList.length);



 
 
 

help with flash script please - kids site

Post by J » Wed, 04 Aug 2004 18:16:59

pps typo lol

"J" < XXXX@XXXXX.COM > wrote in message
news:cenl5g$mdc$ XXXX@XXXXX.COM ...
get
a
THANKS
Aitemlist[Register_2_][assocIndex(Register_3_.mySQL_col_filename)]


 
 
 

help with flash script please - kids site

Post by Peter Blum » Wed, 04 Aug 2004 18:32:32

I answered your previous post of 20 minutes ago. No need to post multiple
threads on the same subject, it just causes noise and confusion.
 
 
 

help with flash script please - kids site

Post by J » Wed, 04 Aug 2004 18:35:22

just looked Peter and another has just appeared on data_integration in the
last couple of minutes ??????

DUBLIN2111 PLease do not keep repeating the question if your problem has not
been answered by both of us its better to keep to one thread!!!!!!!



"DUBLIN2111" < XXXX@XXXXX.COM > wrote in message
news:cenkhb$lnv$ XXXX@XXXXX.COM ...
this
and
helped
what
message
Expected a
Expected a
SO
Register_1_[("displayItem"
(Aitemlist[Register_2_][assocIndexNew(Register_3_.mySQL_col_filename)] ==
==
Register_1_[("displayItem"
(scrollBarBkgd._height -
Register_1_);
listPlayOpen.AitemList.length);