So one of the ways I work is to publish my swf into the
testing environment. If things are quite what I expect I often go
to the Debug menu and select ''List Variables.'' Then I can see the
status of all my variables and often realize what is going on.
Try this with AS3.
Make a new AS3 FLA.
On the first frame put this.
var myVal:Number=10;
Publish and then List Variables.
Do you get anything other than:
Level #0:
Variable _level0.$version = ''MAC 9,0,45,0''
That is all I ever see. Not so useful.
Was this just a bad habit to develop? Or is this something
missing from AS3?AS3: No variables in testing environment
I am sorry but List Variables is not supported for
ActionScript 3.
The Flash player has no way of identifying whether the movie
being tested is
ActionScript 1 and 2 where it is supported or ActionScript 3
where it is
not, so the feature still remains accessible for both even
though it will
only work for ActionScript 1 and 2.
''Rothrock'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:f221t4$rlv$1@forums.macromedia.com...
%26gt; So one of the ways I work is to publish my swf into the
testing
%26gt; environment. If
%26gt; things are quite what I expect I often go to the Debug
menu and select
%26gt; ''List
%26gt; Variables.'' Then I can see the status of all my
variables and often
%26gt; realize
%26gt; what is going on.
%26gt;
%26gt; Try this with AS3.
%26gt;
%26gt; Make a new AS3 FLA.
%26gt; On the first frame put this.
%26gt; var myVal:Number=10;
%26gt; Publish and then List Variables.
%26gt;
%26gt; Do you get anything other than:
%26gt;
%26gt; Level #0:
%26gt; Variable _level0.$version = ''MAC 9,0,45,0''
%26gt;
%26gt; That is all I ever see. Not so useful.
%26gt;
%26gt; Was this just a bad habit to develop? Or is this
something missing from
%26gt; AS3?
%26gt;
AS3: No variables in testing environment
So is there any replacement way of seeing variables when
testing a AS3 published file? It seems like a big gap for those of
us trying to develop in AS3.
You would debug the movie using Debug %26gt; Debug Movie
then for each breakpoint in your code, the Variables panel
can be used to
see variables and values
Its a slightly different workflow, so it may take a while to
get used to,
but it gives you pretty much the same information (along with
the ability to
edit variables during runtime which is fun)
''Rothrock'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:f2270k$4to$1@forums.macromedia.com...
%26gt; So is there any replacement way of seeing variables when
testing a AS3
%26gt; published file? It seems like a big gap for those of us
trying to develop
%26gt; in AS3.
you can also get info using describeType, quick example
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment