Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: [DEFUSED] Flash MX 2004 Pro: Type mismatch error in View class  (Read 12874 times)
Radagast
Newbie
*
Posts: 1


View Profile Email
« on: April 15, 2008, 02:34:48 »

Hi!

I work in Flash MX 2004 Pro and receive syntax errors when I import Facade class (PureMVC_AS2 release tags/0.9). My code is simply and only:

:
import org.puremvc.as2.patterns.facade.Facade;
and when I choose to "Check syntax" I get:

**Error** C:\Temp\PureMVC\tags\0.9\org\puremvc\as2\core\View.as: Line 146: Type mismatch.
              var observer:Observer = new Observer( mediator.handleNotification, mediator );

**Error** C:\Temp\PureMVC\tags\0.9\org\puremvc\as2\core\View.as: Line 186: Type mismatch.
                 if ( Observer(observers[i]).compareNotifyContext( retrieveMediator( mediatorName ) ) == true ) {

Total ActionScript Errors: 2     Reported Errors: 2


Is Flash MX 2004 Pro too old for PureMVC framework? I hope not ;-)

Regards and thanks in advance!
« Last Edit: January 14, 2009, 06:44:20 by puremvc » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: January 14, 2009, 05:47:08 »

Please make sure you're running the latest version of the framework. Your pasted error seems to show you're using 0.9. The current version is 1.0.

Thanks,
-=Cliff>
Logged
Pages: [1]
Print