Can C++ Container Determine AS2 vs AS3

Ask a Question related to Macromedia Shockwave, Design and Development.

  1. #1

    Default Can C++ Container Determine AS2 vs AS3

    I have a C++ container of Flash Player 11 (I have also tried Player 9 and
    Player 10). How can the container ask the player what type of content it is
    playing (AS2 or AS3)?

    If I create an event handler (ExternalInterface.addCallback) in AS3 which
    returns true (depicting AS3), and call m_FlashPlayer.CallFunction in my
    container, I am able to receive/parse the ActionScript response ("<true/>").

    However, if the content is "old" (i.e. AS2 which does not have the necessary
    event handler) ... or if the content is AS3 and I deliberately throw an
    exception (throw new Error("AS3 Error") in my event handler) ... the C++
    container has no way of differentiating between AS2 or AS3. My container
    catches the COleDispatchException, but there is no information within the
    exception. Both scenarios result with an m_scError = 0x80004005 (E_FAIL).

    Is there a prescribed way for a container to ask the Shockwave player if it is
    playing AS2 or AS3 content?


    cs3_n00b Guest

  2. Similar Questions and Discussions

    1. Container
      Can someone explain what the Container object is, and how it it related to data binding? I can't find any reference for it anywhere. Mike
    2. Controls container
      Hi. I'm creating a .NET server component that inherit from Table (WebControls) class. It's a container that implement this html architecture...
    3. [PHP] Container functions....
      Justin: Not ColdFusion - ancient language by Brian Fox called MetaHTML - actually a VERY good language - just not supported or developed anymore...
    4. DataList Container
      Hi, My question is how do I set some text within my datalist itemtemplate to be bold, based on the higher value of two bound data items? For...
    5. Scrollable Container
      Is it possible to create a Panel with a vertical scrollbar? Thanks Rob
  3. #2

    Default Re: Can C++ Container Determine AS2 vs AS3

    You are confusing the Shockwave Player (which runs Director-created
    content) with the Flash Player
    Sean Wilson 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