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: Not working with Flex 4 SDK  (Read 6259 times)
mellomike
Courseware Beta
Newbie
***
Posts: 6


View Profile Email
« on: July 30, 2009, 03:57:38 »

Just tried to make a flex 4 app using Fabrication and it throws an error whenever a respondTo is used in a Mediator.
Logged
gregbown
Jr. Member
**
Posts: 16


View Profile Email
« Reply #1 on: July 30, 2009, 05:06:35 »

I'm not sure if it is related but I just ran into a similar issue. It turned out to be in FabricationMediator line 292 var respondToMethodsCount:int = respondToMethods.children().length();
In the debug length was 8 but the actual xmllist was 3.  I took out children() and it started working?

like so

var respondToMethodsCount:int = respondToMethods.length();

The only thing I can assume is perhaps something is changed in how FB 4 handles xmllist or reflection in general.  In my case the swf wouldn't even render so I followed the debug error to the listNotificationInterest function in FabricationMediator
Logged
mellomike
Courseware Beta
Newbie
***
Posts: 6


View Profile Email
« Reply #2 on: July 30, 2009, 05:38:10 »

wow!! that fixed the problem!! Thanks so much!!
Logged
mellomike
Courseware Beta
Newbie
***
Posts: 6


View Profile Email
« Reply #3 on: July 31, 2009, 07:39:34 »

Are there any other known Fabrication issues when using the Flex 4 SDK??
Logged
mellomike
Courseware Beta
Newbie
***
Posts: 6


View Profile Email
« Reply #4 on: July 31, 2009, 07:45:10 »

reactTo doesn't seem to work with Flex 4

Here is the error:

"TypeError: Error #1010: A term is undefined and has no properties."

happening in FabricationMediator.as line 483 ... which is
"handlerName = reactionMethods.@name"
« Last Edit: July 31, 2009, 07:54:14 by mellomike » Logged
mellomike
Courseware Beta
Newbie
***
Posts: 6


View Profile Email
« Reply #5 on: July 31, 2009, 09:21:11 »

ok the reactionTo problem was the same as the respondTo

You have to removed "children()" from reactionToMethods.children().length();
Logged
Jason MacDonald
Sr. Member
****
Posts: 243


View Profile Email
« Reply #6 on: July 31, 2009, 09:24:00 »

I'm sadden to say this, but I think Darshan has abandon Fabrication (and perhaps PMVC in general). I haven't seen him around in months and there's been no activity on his blog either :(

Anyone want to pick-up the torch and continue the work to upgrade fabrication to work with Flex 4?
Logged
mico
Jr. Member
**
Posts: 15


View Profile Email
« Reply #7 on: June 04, 2010, 04:31:52 »

It is very sad, that Fabrication is not supported anymore. Hope someone with the right skills and knowledge will continue the good thing.
Logged
Pages: [1]
Print