home *** CD-ROM | disk | FTP | other *** search
- property mainButtons
-
- on new me, buttonSprite, castList
- global gCardioDemo
- set buttonRegionList to []
- repeat with k = 1 to count(castList)
- if (gCardioDemo = 1) and (k <> 2) then
- next repeat
- end if
- append(buttonRegionList, getButtonData(getAt(castList, k), "if the movie contains " & QUOTE & "main" & QUOTE & " then" & RETURN & "mainButtonAction(" & char 2 to length(getAt(castList, k)) of getAt(castList, k) & ")" & RETURN & "end if", [0, 0], getAt(castList, k)))
- end repeat
- set mainButtons to new(script "buttonObject", buttonSprite, buttonRegionList)
- return me
- end
-