Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
May 25, 2017, 10:43:21 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
Pages: [1]
Print
Author Topic: [DEFUSED] Flash MX 2004 Pro: Type mismatch error in View class  (Read 8910 times)
Radagast
Newbie
*
Posts: 1


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

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:

Code:
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 PM by puremvc » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2866



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

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
Jump to: