Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mode 7 James

Pages: [1]
1
Bugs and Issues / Re: Issues / errors importing actionscript 3 sourc
« on: February 22, 2008, 04:27:14 pm »
Unfortunately I'm still getting the same error - "Unexpected symbol: namespace"

I did rename the Class Model to "image_global" as you suggested, however it appears that I can't name the namespace after the root, but rather I need to create a package first, which gives me a "image_global.image_global" namespace.  There's no way to edit this, that I can see.

Also, another odd thing, in that article it mentions the ability to right-click a namespace entry, allowing you to "Locate Package in Browser", along with clearing the attribute, however when I right-click nothing happens.

No worries about getting in on the beta, hopefully 7.1 can be released soon so I can test it out :)

2
Bugs and Issues / Re: Issues / errors importing actionscript 3 sourc
« on: February 22, 2008, 03:24:58 pm »
Ahh, thanks Simon.  That makes more sense now, I'll try that.

Currently I'm testing AE for the 30 day trial, to see if I should incorporate it into my workflow, is there a way I can test the beta of 7.1 with a trial code?

3
Bugs and Issues / Re: Issues / errors importing actionscript 3 sourc
« on: February 22, 2008, 12:53:00 pm »
Yup, I get the same error when trying to reverse engineer some external classes.  I haven't ever gotten it with "class" or "public" though, just "namespace".

@Simon - I don't quite understand that link you posted.  It deals with Java, which I'm not sure how Java handles namespaces or actionscript 3 handles namespaces.  AS2 doesn't have the namespace keyword.  Perhaps you can help discern if there is a difference with this example:

AS3 sample package:

package com.mode7.core
{
      import com.mode7.events.SlideShowEvent;
      import com.mode7.events.TransitionEvent;
      import flash.display.Sprite;
      import flash.events.Event;

      public class ImageControl extends Sprite
      {
            protected var model:SiteModel;
            protected var controller:SiteController;
            protected var view:SiteView;
            
            public var _WIDTH:int = 0;
            public var _HEIGHT:int = 0;
            
            public function ImageControl()
            {
                  super();
                  [highlight]use namespace[/highlight] image_global;

            }
      }
}

Currently AE is "workable" with its Actionscript 3 integration, however not that good.  I would be happier if the syntax was correct when exporting and importing, and round-tripping would be nice.

Oh, also, a place to put initial "include" code in each package definition.  Currently you can do that only when you export.  It doesn't stay with the package in the diagram.

-James

Pages: [1]