[Thread Prev] [Thread Next]
On 27 Nov 2006 at 9:45, zehava wizman wrote:
> Hello forum!
> 1. I want the click on a turtle inorder to start the video, and
> other turtle to stop the video and make in invisible ( I would
> prefer to do it in one turtle (on/off)
>
> I write 2 procedures :
> to test
> set "video1 "on? "true
> set "video1 "visible? "true
> video1
> end
> to test2
> set "video1 "on? "false
> set "video1 "visible? "false
> end
> it doesn't work, WHY??? ( here attached the file)
Your t1 turtle should have the instruction: test
instead of just: video1
Also I had to change you test2 procedure to read:
to test2
set "video1 "on? "false
resetvideo "video1
set "video1 "visible? "false
end
The following code works for just one turtle:
to startup
make "off "true
end
to switch
ifelse :off [
set "video1 "on? "true
set "video1 "visible? "true
] [
set "video1 "on? "false
resetvideo "video1
set "video1 "visible? "false
]
make "off not :off
end
;)
Daniel
OpenWorld Learning
Previous by thread:
Re: import video and clickon - two problems
Next by thread:
AWESOME HELPS!!!
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|