buttons move from group rect to the twilight zone

Erik Hansen erikhans08 at yahoo.com
Sun Mar 18 03:26:33 EDT 2007


When my buttons move outside the rect of their group,
they disappear! Pixel by pixel. On the other hand,
setting the locations brings the group rect along to the new location. 
The groups are needed because there is a new card for each"event" 
(tX ,tY , tIcon etc.) allowing graphics at any point.
 
Got way behind on Rev coding while working with real dancers and 
videos to YouTube. We are working on using teenage students to 
make tutorials, then letting the students take over the whole job.
 
Folkloric dance (like square dancing) is a great way for kids to
have fun in a safe place while learning to work with people.
 
A Rev stack that models the choreography has some advantages over
straight video in getting the information across.
 
I tried scripting a huge rect for each group
and got some weird results...
"send in time" and "move in time" seem to involve some kind of voodoo.
 
Any ideas on the vanishing group buttons?
 
Thanks,
 
Erik Hansen
 
on andale
set the lockMoves to true
repeat with i = pStart to pEnd -- lockup
  add 1 to tCtr
  put ((tCtr-1) * tMillis) into tSpeed 
  if theMooseKlee then
    wait until the mouseClick
    setDancers i
    unlock screen
  else if theEvery then
    send "setDancers i" to button "bAndale" of stack "Andale" in tSpeed milliSeconds
  else if theDrag then 
    send "moveDancers i" to button "bAndale" of stack "Andale" in (tSpeed) milliSeconds
end if 
end repeat
set the lockMoves to false
end Andale

on setDancers --WORKS FINE
repeat with j = 1 to gTot
          ...
          set the location of button pCon to (item 1 of tEvent),(item 2 of tEvent)
          ...
     end repeat
end setDancers

on moveDancers i -- BUTTONS DISAPPEAR
put (the text of field "Milliseconds Per Move" of stack "Andale") into tMillis
put (the text of field "Guy Events" of stack "Editt") into pGuyEvents
put (the text of field "Doll Events" of stack "Editt") into pDollEvents
go card i of stack "choreographer"
set the lockMoves to true
put (line i-1 of pGuyEvents) into tPrevEvents
if (i=1) then put (line 1 of pGuyEvents) into tPrevEvents
put line i of pGuyEvents into tEvents
put (the uGuyTot of stack "choreographer") into gTot
repeat with j = 1 to gTot
put ("Guy" & j) into pCon
put (word j of tPrevEvents) into tPrevEvent
put (word j of tEvents) into tEvent
put (item 1 of tPrevEvent) & comma into tPrevXY
if (item 3 of tEvent) = 0 
then put (item 2 of (word j of (line i-1 of pDollEvents)))+24 after tPrevXY 
else put (item 2 of tPrevEvent) after tPrevXY
put (item 1 of tEvent),(item 2 of tEvent) into tXY
-- SKIP TO HERE
move button pCon to tXY in tMillis milliseconds without waiting -- from "tPrevXY" has no effect 
end moveDancers
erik at erikhansen.org 
http://www.erikhansen.org 
http://www.geocities.com/erikhans08/Video.html 
-- 
/


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/



More information about the use-livecode mailing list