ScriptSpot

Forum topic · General Scripting

How do I bridge from a rollout to another

By yunusbbayram · 2011-06-02

Description
(
	
global spn, label1
	
rollout test2 "test2"
(
	
  spinner spn "spinner"
	label label1 ""
)

rollout test1 "test1"
(
	button btn "ok"
	
	on btn pressed do
	(
		btn.text="okey"
		test1.title="test1rollout" as string
		spn.text="spinner ok"   -------eror
		label1.text = "okey"    -----------eror
	)
)

 anapen = newRolloutFloater "YÜZ KONTROL 1.5" 200 200	
addrollout test1 anapen 

addrollout test2 anapen    rolledup:false 


)

How do I
bridge from a rollout to another
I want to change spn.text, label1.text and test2.title on btn pressed do
Where did I go wrong?

Comments (2)

There are no "spn" and "lbl"

br0t · 2011-06-03

The way you tried this with globals does not work.
You have to tell it where to find the UI items using the dotted notation:


     test2.spn.text="ok" 
     test2.label1.text = "okey" 

Cheers

yunusbbayram · 2011-06-04

:D easy as winking thank you br0t