Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: can we use image or object properties in scripting
PostPosted: June 5th, 2006, 3:09 pm 
Offline

Joined: June 5th, 2006, 12:01 pm
Posts: 9
Hi all,

i want to give a text effect of Flare after its clicked. right know i have to take two text box one with flare effect one without, on click i make one visible and other invisible. i do not want to take 2 textbox.

can i anyhow write in scripting something like

t1.flare() ????

any clue ???

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: June 5th, 2006, 3:40 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
If you do not want the Flare to stay, you can just set the text up so that when it's clicked the flare appears. Look under the Properties tag and choose Mouse Pressed, then click on the Effects tab and set your Flare the way you want.

You can read about doing this with scripting in the OpusScript Help file:
SetFlare()

Example 1:

To set the Flare effect on the Normal Object State for a Button object named Option1 with a flare height of 5 pixels and width of 3 pixels, the colour yellow, a 50% transparency and a blur of 3 pixels, use the following syntax:

MyColour = RGB(253,250,0)
Option1.SetFlare(5,3,50,MyColour,3)

Example 2:

To set the same Flare effect as Example 1 above on the Mouse Over Object State for a Button object named Option1, use the following syntax:

MyColour = RGB(253,250,0)
createEffect = Option1.GetAppearance("Mouse Over")
createEffect.SetFlare(5,3,50,MyColour,3)

see also: RemoveFlare, RGB and GetAppearance

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 61 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group