Notifications
Clear all

[Closed] on rollout open do — system exception

Hi

just silly problem , I keep getting ** system exception ** “thats the error keep saying no more info”

when i use “on rollout open do “anything”

u can try it


 
 (--begin
 	
 
 	on Main open do
 	( 
 		print "Test , I'm in"
 	)--end on open 
 	
 		
 	rollout  test "test"
 	(
 			button but1 "ttttttt" width:112 height:24
 		
 	)--end roll test
 		
 
 if Main != undefined then CloseRolloutFloater Main
 Main = NewRolloutFloater "anything" 250 650	
 
 
 addRollout test Main
 	
 
 	
 )--end all
 
 

do I have to to convert it to a utility script ?
I think cause of its rolloutfloater , anyway around that ?

I need script to be excuted on open and i got multi rollouts

thanx

3 Replies

found it

on execute do

i told u silly question

thanx

I’m glad you found a solution. But just to clear up the issue with your first post.

Main is a RolloutFloater, not a rollout. On Rollout Open needs to be used inside of a rollout.



 	rollout  test "test"
 	(
 		button but1 "ttttttt" width:112 height:24

 		on test open do
 		( 
	 		print "Test , I'm in"
	 	)

 	)


just small issues makes my head spin
thanx for the info