I'm using the code below in a frame script to add to an ongoing list. If
the sound file finishes playing, then that frame label gets added to the
list.
However, after something is added to the list, a bunch of 0's are added to the list for some reason.
Basically, a list that should be ["2", "3"] ends up looking like
this...[0, 0, 0, 0, "2", 0, 0, 0, 0, "3"]
Any idea why this is happening?
Thanks in advance.
Jon
on enterFrame
global gPagesCompletedList,gframeForCurrentSlide, gLabel
member("pageNo").text = the frameLabel
if sound(1).isBusy() then
go to the frame
else
gLabel = the frameLabel
gframeForCurrentSlide = marker (0)
doesMarkerExist = gPagesCompletedList.getOne(gLabel)
if doesMarkerExist <> 0 then
go next
else
gPagesCompletedList.add (gframeForCurrentSlide, gLabel)
go next
end if
end if
end
on exitFrame me
go to the frame
end
the sound file finishes playing, then that frame label gets added to the
list.
However, after something is added to the list, a bunch of 0's are added to the list for some reason.
Basically, a list that should be ["2", "3"] ends up looking like
this...[0, 0, 0, 0, "2", 0, 0, 0, 0, "3"]
Any idea why this is happening?
Thanks in advance.
Jon
on enterFrame
global gPagesCompletedList,gframeForCurrentSlide, gLabel
member("pageNo").text = the frameLabel
if sound(1).isBusy() then
go to the frame
else
gLabel = the frameLabel
gframeForCurrentSlide = marker (0)
doesMarkerExist = gPagesCompletedList.getOne(gLabel)
if doesMarkerExist <> 0 then
go next
else
gPagesCompletedList.add (gframeForCurrentSlide, gLabel)
go next
end if
end if
end
on exitFrame me
go to the frame
end