Skip navigation
Currently Being Moderated

How to run swf's using Proscenium

Oct 3, 2011 12:06 PM

I've followed the directions and downloaded Flash Builder along with the sample code. I've been able to compile the applications to swf files, however I can't get them to run. The instructions say to download the player from http://www.adobe.com/support/flashplayer/downloads.html however, those are all 10.x, and when using the Desktop player I get errors about not being able to call native functions, and when I try running in a browser with Flash Player 11 the movie does not load or run.

 

I'm using Windows 7 64-Bit.

 

What is the minimum player version required to run the demo's, and is there a Flash 11 Debug Desktop Player that can be used instead of running thru a browser?

 

The exact error I'm getting in the Desktop Player is:

"VerifyError: Error #1079: Native methods are not allowed in loaded code."

 

In a web browser with Flash Player 10.x or 11.x when I right-click I get:

"Movie not loaded..."

 
Replies
  • Currently Being Moderated
    Oct 4, 2011 2:10 AM   in reply to beau@ambur.com

    I think you should change the "playerglobal.swc" link type to "external".

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2011 5:46 AM   in reply to beau@ambur.com

    Did you follow these instructions -> http://labs.adobe.com/wiki/index.php/Proscenium ?

     

    FYI, Flash Player 11 was posted yesterday at 21:00 that might work better for you

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2011 9:50 AM   in reply to beau@ambur.com

    Same problem, compiles fine (both the Flex and AS examples) but I cannot run the SWF. Windows 7 64-bit, FlashBuilder 4.5, Flex SDK 4.5.1, using flashplayer_11_sa_debug_32bit.exe player. Hmmmmmmmm ....

     

    VerifyError: Error #1079: Native methods are not allowed in loaded code.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2011 11:11 AM   in reply to Phillip R. Cargo

    Sounds like slightly different problem than what I saw ( Context not available error ), but I saw a black screen until I set the following in my html:

    params.wmode = "direct";

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2011 7:12 PM   in reply to Phillip R. Cargo

    me2.

     

    follow instructions - http://labs.adobe.com/wiki/index.php/Proscenium

    without using pixelbender.

     

    return error - VerifyError: Error #1079: В загруженных кодах собственные методы не разрешены .

     

    Windows 7 64-bit, FlashBuilder 4.5, Flex SDK 4.5.1

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 5, 2011 8:19 AM   in reply to beau@ambur.com

    If you check the Flash Player download page, version 11 is now available:

    http://www.adobe.com/support/flashplayer/downloads.html#fp11

     

    Proscenium relies upon having the new Stage3D APIs, so you have to minimally be using the most recent beta build of Flash Player 11, though the release build should work.

     

    As DrAlexGor mentions, it is necessary to set the "wmode" parameter in the HTML page to "direct" for Stage3D to function correctly in the browser.

     

    I would really like to help you resolve this problem. Let me know if you have already found a workaround.

     

    If not, can you send me a zipped up copy of the content you are having trouble with so that I can debug it from my side.

     

    Thanks,

    Grayson

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 2:20 AM   in reply to 马鉴

    It works.Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 4:58 AM   in reply to beau@ambur.com

    @beau@ambur.com I'm having the same issue, anybody has some input on this one?

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 9:12 AM   in reply to beau@ambur.com

    The first response is the correct one. The "Link type" of playerglobal.swc needs to be changed to "external"..

     

    Context-click on the project and select "Properties".

     

    Select the "ActionScript Build Path" pane.

     

    Under "Build path libraries", select the entry for "${PLAYERGLOBAL}"

     

    Click on the disclosure triangle to the entriy's left to expand its properties.

     

    Double click on "Link Type: Merged into code".

     

    From the "Link Type" drop down menu, select "External"

     

    Click OK

     

    Click OK

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 5:18 PM   in reply to Grayson Lang

    Thank You Grayson!

     

    That worked great for the ActionScript samples (ProsceniumSamples)!!!! Not so for the Flex sample (ProsceniumSamplesFlex), the same error pops up: "VerifyError: Error #1079: Native methods are not allowed in loaded code."

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 5:48 PM   in reply to Phillip R. Cargo

    I've figured out a better workaround and will be updating the drop and build instructions soon.

     

    (In the Windows Explorer or OS X Finder)

     

    Within the flex sdk 4.5.1 folder, here:

    [Windows XP and 32-bit Vista/7]

    C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\libs\player\

     

    [Windows 64-bit Vista/7]

    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\libs\player\

     

    [OS X Default]

    /Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/libs/player/

     

    make a folder named "11.0", so you end up with:

    .../sdks/4.5.1/frameworks/libs/player/11.0/

     

    place the "playerglobal11_0.swc" in that folder and the rename it to "playerglobal.swc"

     

    (Inside Flash Builder)

     

    Context-click on the project and select "Properties".

     

    Select the "ActionScript Build Path" pane.

     

    Under "Build path libraries", select the entry for "${PLAYERGLOBAL}" if it exists and then the "Remove" button.

     

    Select the "Flex Compiler" pane.

     

    In the "Additional Compiler Arguments" text box add:

    -target-player=11

     

    To refresh the entire contents of the Flex SDK components choose "Use a specfic SDK" and then switch to a different SDK than 4.5.1 and click the "Apply Button"

    then switch it back to 4.5.1 in that combo box, or to "Use Default SDK" if your default is 4.5.1

     

    Click "OK"

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 6, 2011 7:29 PM   in reply to beau@ambur.com

    Yes, sorry, it should be "ActionScript Compiler" pane.

     

    That error looks like you still need to remove the ${PLAYERGLOBAL} entry from the "ActionScript Build Path" pane, under "Build path libraries".

     

    And yes, if there had been a concurrently shipped version of the Flex SDK 4.5.2 that contained the playerglobal.swc, all of this would be much easier.

     

    I guess this is the cost of staying current ; )

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 11, 2011 7:08 PM   in reply to DrAlexGor

    Thank for you solved my doubt.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2011 7:50 AM   in reply to beau@ambur.com

    Me too - I've tried everything and still cant even get the already compiled swfs to run from the proscenium samples. Can anyone explain why using Flash player 11 standalone to directly open the already compiled swf samples still results in  the "Native methods...in loaded code" error.

     

    It seems to me like these sample swfs should work without having to do all these fixes.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2011 8:11 AM   in reply to beau@ambur.com

    Yep - this one worked for me - thanks

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points