Set getPDL properties from message window?

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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)...
    2. 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,...
    3. 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....
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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
    >

    Christoffer Enedahl Guest

  4. #3

    Default Re: Set getPDL properties from message window?

    > From scriptList docs:

    D'oh!
    > 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] ] ] )
    Not my idea of fun :-)

    Cheers,

    Andrew
    Andrew Morton Guest

  5. #4

    Default Re: Set getPDL properties from message window?

    > 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] ] ] )
    >
    > Not my idea of fun :-)
    Especially when you realise these 'lists' need to be strings and the getPDL
    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

  6. #5

    Default 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...
    >
    > sprite(19).scriptList[2][2]="[#nHoriz: 3, #nVert: 3, #tFactor: 0.7000]"
    How about:

    sprite(19).scriptInstanceList[2].nHoriz = 3
    sprite(19).scriptInstanceList[2].nVert = 3
    sprite(19).scriptInstanceList[2].tFactor = 0.7

    - Robert


    Robert Tweed Guest

  7. #6

    Default Re: Set getPDL properties from message window?

    "Robert Tweed" <robert@killingmoon.com> wrote in message
    news:bq7m01$hus$1@forums.macromedia.com...
    >
    > sprite(19).scriptInstanceList[2].nHoriz = 3
    > sprite(19).scriptInstanceList[2].nVert = 3
    > sprite(19).scriptInstanceList[2].tFactor = 0.7
    Actually, I think I may have misunderstood your problem - if so, just ignore
    me :)

    - Robert


    Robert Tweed Guest

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139