Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Andrew Morton #1
Set getPDL properties from message window?
W2000, D8.5.1
I have script which has an on getPropertyDescriptionList handler to set three
properties. I can see what they are set to in the message window like this:-
put sprite(19).scriptList[2][2]
-- "[#nHoriz: 3, #nVert: 3, #tFactor: 0.8800]"
However, I don't seem to be able to set those properties:-
sprite(19).scriptList[2][2]="[#nHoriz: 3, #nVert: 3, #tFactor: 0.7000]"
does nothing (with or without the quotes, while playing or stopped) even though
it doesn't give an error.
Although I'll have changed them in the property inspector in a few minutes from
now, is it possible to set them from the message window?
Andrew Morton
Andrew Morton Guest
-
WebUserControl/ascx Properties window
Hi I have develop a WebUserControl(.ascx) that is a dropdownlistbox filled and I want to be able to see some properties (in the properties window)... -
Browser window properties
Is it possible to alter the browser properties (toolbar, scrollbar, window width and height, etc.) for a page that isn't a pop-up? In other words,... -
properties not showing in properties window at design time
I created a usercontrol using vb but the properties will not show in the properties pane however the properties show up in the intellisence list.... -
director message window == output window?
hi im coming into director from flash. im used to using the 'trace' function in flash to debug scripts during development, but director seems to... -
setting properties of new window
Hi Put anchor tag href as #. Add onclick event for anchor. In onclick event call a javascript method, which will open a new with specified... -
Christoffer Enedahl #2
Re: Set getPDL properties from message window?
From scriptList docs: This property may only be set by using
setScriptList().
If you set all scripts on the sprite this might be doable.
sprite(19).setScriptList( [ [script, props] , [scriptMember, [#nHoriz: 3,
#nVert: 3, #tFactor: 0.8800] ] ] )
/Christoffer
"Andrew Morton" <akm@in-press.co.uk.invalid> skrev i meddelandet
news:bq7831$arv$1@forums.macromedia.com...three> W2000, D8.5.1
>
> I have script which has an on getPropertyDescriptionList handler to setthis:-> properties. I can see what they are set to in the message window likethough>
> put sprite(19).scriptList[2][2]
> -- "[#nHoriz: 3, #nVert: 3, #tFactor: 0.8800]"
>
> However, I don't seem to be able to set those properties:-
>
> sprite(19).scriptList[2][2]="[#nHoriz: 3, #nVert: 3, #tFactor: 0.7000]"
>
> does nothing (with or without the quotes, while playing or stopped) evenfrom> it doesn't give an error.
> Although I'll have changed them in the property inspector in a few minutes> now, is it possible to set them from the message window?
>
> Andrew Morton
>
Christoffer Enedahl Guest
-
Andrew Morton #3
Re: Set getPDL properties from message window?
> From scriptList docs:
D'oh!
Not my idea of fun :-)> If you set all scripts on the sprite this might be doable.
> sprite(19).setScriptList( [ [script, props] , [scriptMember, [#nHoriz: 3,
> #nVert: 3, #tFactor: 0.8800] ] ] )
Cheers,
Andrew
Andrew Morton Guest
-
Luke #4
Re: Set getPDL properties from message window?
> If you set all scripts on the sprite this might be doable.
3,> > sprite(19).setScriptList( [ [script, props] , [scriptMember, [#nHoriz:Especially when you realise these 'lists' need to be strings and the getPDL>> > #nVert: 3, #tFactor: 0.8800] ] ] )
> Not my idea of fun :-)
is just storing a list as a string and then doing a value() on the string to
convert it back to a list when it goes and assigns the specified values to
their properties (so watch out for quoted characters, return characters,
VOIDs, Nulls, Nans and all the other types that fall over in the
'value<->string' conversion)
:)
Luke Guest
-
Robert Tweed #5
Re: Set getPDL properties from message window?
"Andrew Morton" <akm@in-press.co.uk.invalid> wrote in message
news:bq7831$arv$1@forums.macromedia.com...How about:>
> sprite(19).scriptList[2][2]="[#nHoriz: 3, #nVert: 3, #tFactor: 0.7000]"
sprite(19).scriptInstanceList[2].nHoriz = 3
sprite(19).scriptInstanceList[2].nVert = 3
sprite(19).scriptInstanceList[2].tFactor = 0.7
- Robert
Robert Tweed Guest
-
Robert Tweed #6
Re: Set getPDL properties from message window?
"Robert Tweed" <robert@killingmoon.com> wrote in message
news:bq7m01$hus$1@forums.macromedia.com...Actually, I think I may have misunderstood your problem - if so, just ignore>
> sprite(19).scriptInstanceList[2].nHoriz = 3
> sprite(19).scriptInstanceList[2].nVert = 3
> sprite(19).scriptInstanceList[2].tFactor = 0.7
me :)
- Robert
Robert Tweed Guest
-
Andrew Morton #7
Re: Set getPDL properties from message window?
I had ~15 of them which needed changing and it would have been easier to step to
the appropriate frames and re-execute the same single instruction in the message
window. Not enough of them to make it worth doing programmatically. Done by hand
now, anyway.
Incidentally, I noticed that in the property inspector the range slider is not
quite wide enough to show the last decimal place. Has that bug been fixed in MX,
or maybe it only shows up on my W2000SP4 GFX5200 DirectX9.0b?
Andrew
Andrew Morton Guest



Reply With Quote

