Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Welcome, Guest. Please login or register.
December 14, 2017, 09:52:33 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Author Topic: [DEFUSED] Flash MX 2004 Pro: Type mismatch error in View class  (Read 9171 times)
Posts: 1

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


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

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.

Pages: [1]
Jump to: