Announcement Announcement Module
Collapse
No announcement yet.
Spring ActionScript 0.7.1 Released Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring ActionScript 0.7.1 Released

    Dear Community,

    I'm pleased to announce that Spring ActionScript 0.7.1 is now available.


    This is a minor release that fixes 2 blocking issues:
    - import nodes were not parsed correctly, which resulted in the imported nodes not being created.
    - circular reference error when 2 objects have bidirectional references.

    We also added some extra classes to the domain package.

    best regards,
    Christophe

  • #2
    Harmless Error?

    First things first, Thank you so much for the Spring Actionscript Framework, it's a great Framework.

    I just downloaded the new Release 0.7.1 and it works perfectly ...
    Although, when my Application is loading I get this trace output in my console:

    Code:
    2/7/2009 18:29:49.921 [INFO] SpringActionScript.FlexXMLApplicationContext Loading XML object definitions from [application-context.xml]
    2/7/2009 18:29:49.993 [INFO] SpringActionScript.FlexXMLApplicationContext Loading properties file from [application-context.properties]
    2/7/2009 18:29:50.157 [INFO] SpringActionScript.FlexXMLApplicationContext Pre-instantiating singletons [__4,services,__2,__0,__1,controller,__5,model,__3] in [object FlexXMLApplicationContext]
    Type.forName error: Error #1065: Variable AuthenticationAgent is not defined. The class '::AuthenticationAgent' is probably an internal class or it may not have been compiled.
    Type.forName error: Error #1065: Variable AuthenticationAgent is not defined. The class '::AuthenticationAgent' is probably an internal class or it may not have been compiled.
    seams that everything goes fine except here:

    Code:
    Type.forName error: Error #1065: Variable AuthenticationAgent is not defined. The class '::AuthenticationAgent' is probably an internal class or it may not have been compiled.
    Type.forName error: Error #1065: Variable AuthenticationAgent is not defined. The class '::AuthenticationAgent' is probably an internal class or it may not have been compiled.
    so, now I'm not sure what this error means, since everything work just as expected and in my Project I definitely do not have such a Variable nor Class definition. Should I care?

    Thank's in advance for a reply.

    Saludos,
    Alex

    Comment


    • #3
      Hi,

      this is a warning trace from the AS3Reflect lib. I'm not exactly sure where that class is coming from, but I'm thinking that it is compiled into the Spring AS swc. I'll have a look at it. You shouldn't worry about it though.

      regards,
      Christophe

      Comment


      • #4
        Is it possible in the current version of Spring Actionscript to create a Map (Dictionary) in a condensed way?

        Code:
        <property name="valueMap">
           <map>
             <entry key="something" value="hello"/>
           </map>
        </property>
        
        rather than 
        
        <property name="valueMap">
           <map>
              <entry>
                  <key>something</key>
                  <value>soemthingelwe</value>
              </entry>
           </map>
        </property>
        Trying this code in 0.7.1 doesn't work. Would it be possible to add this in the next release? It cuts lines of XML code for maps by 75%.

        Comment


        • #5
          Simple try but getting Unhandled ioError

          hi,
          I was trying a HelloWorld example of SpringActionScript, but some how I keep getting Unhandled ioError
          I have an XML file in the same folder with the content
          Code:
          <?xml version="1.0" encoding="utf-8" ?>
          <objects xmlns="http://www.pranaframework.org/objects"
          	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          	xsi:schemaLocation="http://www.pranaframework.org/objects
          	http://www.pranaframework.org/schema/objects/prana-objects-0.7.xsd">
          	<object id="..." class="...">
          	<!-- collaborators and configuration for this object go here -->
          	</object>
          	<object id="myObj" class="MyObject">
          	<!-- collaborators and configuration for this object go here -->
          	</object>
          	<!-- more object definitions go here -->
          </objects>
          trying the following code
          Code:
          package  
          {
          	import flash.display.MovieClip;
          	import flash.events.Event;
          	
          	import org.springextensions.actionscript.context.support.XMLApplicationContext;
          	import as3reflect.AbstractMember;
          	
          	/**
          	 * ...
          	 * @author Saumya
          	 */
          	public class HelloWorld extends MovieClip
          	{
          		
          		public function HelloWorld() 
          		{
          			trace(this);
          			
          			var applicationContext:XMLApplicationContext = new XMLApplicationContext();
          			applicationContext.addConfigLocation("application-context.xml");
          			applicationContext.addEventListener(Event.COMPLETE, handleComplete);
          			applicationContext.load();
          		}
          		
          		private function handleComplete(e:Event):void 
          		{
          			trace(this,' : handleComplete :  ');
          		}
          		
          	}
          	
          }
          Last edited by saumyaray; May 7th, 2009, 01:42 AM. Reason: code formatting

          Comment


          • #6
            Hi,

            It seems that your xml file cannot be read by the application. Are you sure the xml file is in the same folder as the compiled swf file?

            regards,
            Christophe

            Comment


            • #7
              hi Christophe ,
              thanks for the prompt answer.
              First I thought so.But then I have tried in 3 different machines the same thing with the XML in my the same folder with the same error message.

              Comment


              • #8
                That's very strange. Can you post your sample project source code so I can have a look at it?

                regards,
                Christophe

                Comment


                • #9
                  ya sure.
                  I am attaching the source file here with.
                  saumya

                  Comment


                  • #10
                    hey cherreman,
                    I am not sure whether I am doing something very wrong here!!No replies from your side made me think that.
                    Thanks
                    saumya

                    Comment


                    • #11
                      XML has errors

                      hey there,

                      I see in your attached code that your XML contains this node:

                      Code:
                      <object id="..." class="...">
                      I'm pretty sure that's not going to work, now I'm not sure if the two are related, but I'd try and start out with a valid configuration file.

                      Just out of curiosity, how do you run the SWF? Do you run in in a browser from an URL to the local filesystem? I.e. some like file:///c:/...
                      or from a 'real' URL? i.e. http://localhost
                      In the first case you'll get errors, because the browser is not allowed to load files from the local filesystem, try to run it from your local webserver instance in that case.

                      If the problem persists, please let us know.
                      Last edited by 666shooter; May 11th, 2009, 03:32 AM.

                      Comment


                      • #12
                        Thanks for the help.
                        I have modified the XML as below
                        Code:
                        <?xml version="1.0" encoding="utf-8" ?>
                        <objects xmlns="http://www.pranaframework.org/objects"
                        	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        	xsi:schemaLocation="http://www.pranaframework.org/objects
                        	http://www.pranaframework.org/schema/objects/prana-objects-0.7.xsd">
                        	<!--
                        	<object id="..." class="...">
                        	-->
                        	<!-- collaborators and configuration for this object go here -->
                        	</object>
                        	<object id="myObj" class="MyObject">
                        	<!-- collaborators and configuration for this object go here -->
                        	</object>
                        	<!-- more object definitions go here -->
                        </objects>
                        But still gives me error!!
                        Code:
                        Error: Unhandled ioError: Error #2032: Stream Error. URL: file:///C|/saumya/rnd/flashApps/Spring/HelloWorld/application-context.xml?42354
                        	at org.springextensions.actionscript.ioc.factory.xml::XMLObjectFactory/_onIOError()
                        	at flash.events::EventDispatcher/dispatchEventFunction()
                        	at flash.events::EventDispatcher/dispatchEvent()
                        	at flash.net::URLLoader/redirectEvent()
                        I am testing from iside Flash IDE.Do I need to test it from http url all the time. I think from iside Flash IDE all the calls are possible that is possible through HTTP. I will update you once I checked it from local host.

                        Comment


                        • #13
                          Hi,

                          this must be caused by the random value that is added to the file path. We did this to prevent caching when loading through http but it seems to cause problems when loading from a local file. I have disabled this for now untill we have a more refined way of dealing with this.

                          If you are using the sources, please update and let me know if this fixes your problem.

                          regards,
                          Christophe

                          Comment


                          • #14
                            oops!!
                            I just took an update of the source from
                            http://www.springactionscript.org/so...epository.html
                            Code:
                            $ svn checkout https://src.springframework.org/svn/se-springactionscript-as spring-actionscript
                            Now while trying to publish it is giving me compile time error
                            Code:
                            1017: The definition of base class MethodInvoker was not found.
                            Anything I am doing wrong here!!

                            Comment


                            • #15
                              missing dependencies

                              You're probably not referencing the as3commons-reflect library in your compilation.
                              Either include this one or use the included Maven or ANT build scripts to compile everything.

                              Comment

                              Working...
                              X