Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with flashwin.py reading variables from AS3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
wrybread  
View profile  
 More options May 2 2012, 8:43 pm
From: wrybread <wrybr...@gmail.com>
Date: Wed, 2 May 2012 17:43:01 -0700 (PDT)
Local: Wed, May 2 2012 8:43 pm
Subject: Problem with flashwin.py reading variables from AS3
I'm using the flashwin class of wxPython to display Flash content, and
for the most part it works beautifully. However, with Flash content
that uses ActionScript 3, I'm having getting my Flash script to read
variables from the SWF. It works fine if the SWF is compiled using
ActionScript 2 though.

I put together a stripped down complete example that contains a simple
Python script and the AS2 and AS3 SWFs, if anyone is interested in
testing:

http://sinkingsensation.com/dropbox/as3test.zip

I'm reading the variables from my wxPython script like this:

self.flash.GetVariable('myTestVar')

This works perfectly with SWFs that use ActionScript 2. However, when
used with ActionScript 3 SWFs, I get the following error:

(-2147467259, 'Unspecified error', (None, None, None, 0, None))

I've tried setting that variable in Flash a number of different ways,
including:

MovieClip(root).myTestVar = "test1";
var myTestVar = "test2";

Neither seem to work.

Can anyone think of anything I can do to fix?

Or some workaround that will allow one-way communication, from the SWF
to the Python script?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »