How to "handle a message string passed by Flash"

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

  1. #1

    Default How to "handle a message string passed by Flash"

    I'm having a problem with how to "handle a message string passed by Flash".
    This is what the help feature in Director says:

    ---------------------------------------------------------

    Specify the message string in the Flash content, as described above.
    For example, in Flash, you could specify the following string as the URL
    parameter of the getURL function:

    Hello World
    In Flash, the ActionScript would look like this:

    getURL("Hello World");

    In Director, include an on getURL handler to receive and read the string
    passed by the Flash content.
    For example, in Director, you could enter the following handler in a movie
    script:

    on getURL me, stringFromFlash
    _movie.go("stringFromFlash")
    end
    When the on getURL handler receives the text string ("Hello World"), it reads
    the string and then jumps to the frame labeled Hello World in the Director
    Score.

    -----------------------------------------------

    I've tried this several times, and it simply does not work. Can someone help?




    Alcot Guest

  2. Similar Questions and Discussions

    1. convert XML "values" to be passed as CDATA into Flash
      Hello all, I found the following XML - Flash quiz template on the net and I was wondering how can I adapt the XML doc to pass CDATA instead of...
    2. <CfChart> & Flash format - Message:"ImageExpired..."
      Hi people Lot of people have faced this problem, the reason is the timeout in the caching engine of the Coldfusion keeps the charts for any request...
    3. Can't locate object method "blocking" via package "IO::Handle"
      I am receiving the error message: Can't locate object method "blocking" via package "IO::Handle" at...
    4. "Error Creating Control" and "Cast from String"
      I'm creating a custom date control. In appearance, it's just a textbox and a button. It has three custom properties: CalDate, CalDateType and...
    5. convert visual basic "string" data type to DB2 "blob"
      Does anyone know if a visual basic string data type can be converted to DB2 blob datatype? I have all data in XML files and I use Visual Basic to...
  3. #2

    Default Re: How to "handle a message string passed by Flash"

    One obvious error

    on getURL me, stringFromFlash
    _movie.go("stringFromFlash") --< NO QUOTES HERE
    end
    JB Guest

  4. #3

    Default Re: How to "handle a message string passed by Flash"

    Hey...thank for replying...so do you mean that the code should be...

    on getURL me, stringFromFlash
    _movie.go(stringFromFlash)
    end

    ???

    By the way, should that code be attached to the Sprite on the score, or on the
    Behavior Channel at the top of the score ?

    Alcot 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