HOME  FORUM  LINKS

Site Menu

Development

Director

Hosting Support

Quick Links

DOMAJ DXLIB TIPS

  • How do I return a list to Director?
  • Director lists can be passed as strings to Delphi and returned as strings.
    
    In Director you must use the VALUE() function to cast the string back to a list.
    
    Here is a sample unit.
    
    Below is a Director Movie Script:
    
    on testList
      --parse a property list to Delphi and return it
      --modified to director
      aList=[:]
      addProp aList, #a,"ONE"
      put "original aList = " & aList
      aList=value(myListMethod(aList))
      put "Returned List=" & aList
      put "type=" & ilk(aList)
      put "#c=" & getProp(aList,#c)
      
      --parse a linear list to Delphi and return it
      --modified to Director
      bList=[1,2,3]
      put "original aList = " & bList
      bList=value(mylinearListMethod(bList))
      put "Returned List=" & bList
      put "type=" & ilk(bList)
      put "[2]=" & bList[2]
      
      -- create a list from scratch
      cList=[:]
      cList=value(myDelphiList())
      put "Created List=" & cList
      put "#b=" & getProp(cList,#b)
    end
    
    Lastly, Here is the Message Window output:
    
    testlist
    -- "original aList = [#a: "ONE"]"
    -- "Returned List=[#a: "1", #b: "2", #c: "3", #d: "FOUR"]"
    -- "type=propList"
    -- "#c=3"
    -- "original aList = [1, 2, 3]"
    -- "Returned List=[9, 8, 7, 6]"
    -- "type=list"
    -- "[2]=8"
    -- "Created List=[#a: "1", #b: "TWO", #c: "3"]"
    -- "#b=TWO"

     

    DXLIB TIPS INDEX

    1. When I use sendMessage, the message does not appear in the Director message window. Why?
    2. How do I return a value to Director?.
    3. What is the results interface?
    4. Field properties.
    5. How do I trigger the mouseUp handler?
    6. How do I add my own function to an asset?
    7. How do I add my own function to a sprite?
    8. How do I manipulate the score?
    9. How do I show delphi forms?
    10. How do I define and use my own variables?
    11. How do I create and and read global variables and their values?
    12. How do I create a behavior?
    13. How do I trigger a script in Director?
    14. How do I get the properties of a cast member?(31Mar03)
    15. How do I manipulate casts?
    16. How do I debug an XTRA?
    17. How do I draw a castmember icon?
    18. How do I add my own resource file bitmap as the castmember icon?
    19. How do I add a Director property interface
    20. Using the bitmap media property of a castmember (30Apr02)
    21. How do I return a list to Director (09May02)
    22. How to create, execute and delete a Director script (08Oct02)
    23. How to create a Director Bitmap (09Oct02)
    24. How to export a Director Bitmap (15Oct02)

    DOMAJ Links

     

    Recent Topics

    The latest topics from the forum.

    1. Before Closing.Stop
    2. Stop A Script
    3. Buttons On Stage And Movie On A Window...
    4. Acrobat 8 and Director
    5. Flash Video And Director
    6. Problem with new install
    7. Urgent Help For Noob, Pretty Please?
    8. back to splashscreen when inactive
    9. Import Flash
    10. my truck game --- help
    11. opening microsoft word document and microsoft powerpoint slides
    12. My Director has no Text Field
    13. Toggle Sound On/Off for AVI Video
    14. Keyboard Input Fails to Trigger Handlers
    15. Center Movie In A Window
    16. Microsoft Word Web Browser v1.0
    17. Sine Graph Function
    18. The coloured problems
    19. A Little fix or two
    20. Sine Reverse
    21. Repeatedly replacing Director bitmap
    22. Japanese characters in Director MX
    23. k-director.com: Post Updates
    24. A blog about Adobe Director
    25. Centerstage
    26. Custom Cursor...Why It Does Not Work?
    27. Director Game!
    28. SLIDER POSITION...
    29. Bullet points in text member
    30. Activex component install
    31. quiz
    32. how to export embedded flash swf?
    33. SHOCKWAVE VIDEO
    34. Deleting Lines Comparing Time...I Have No Idea...
    35. Property not found error
    36. SHOCKWAVE PROBLEM
    37. text field focus
    38. ExitLock CloseRequest Quit Close Gadget
    39. F10 Key Code Does Not Work
    40. Director Game Development Survey
    41. baPrintFile()
    42. How do check if a printer is printing??

    Useful Links

    Google Translate
    AltaVista Translate
    Google Glossary

    Google
    Web www.domaj.com

    EZ BAS Easy BAS.

    Save hours of work on your Business Activity Statement using this simple, quick and efficient product.