[flexcoders] Re: Tempermental URLLoader.load()

2012-03-30 Thread nagaofthesea
Howdy Alex-

Fired up Network Monitor.  As I expected: nada!

Too weird because the URLLoader is instantiated and waiting to go.
What in the world could be going on?

Regards,
Naga

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 Use a network monitor and see what is going on underneath.
 
 
 On 3/25/12 11:49 PM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 Howdy Alex-
 
 Yes, everything works as expected when it does work including all the calls 
 with the listeners.
 
 In the projects it does NOT work all fails silently!!
 
 What the heck could THAT be?
 
 -Naga
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  Maybe you are adding listeners to the wrong thing?  Because you should get 
  those events when it does work.
 
 
  On 3/24/12 4:00 PM, nagaofthesea nagaofthesea@ wrote:
 
 
 
 
 
 
  Howdy All-
 
  PROBLEM:
  Strange URLLoader.load() behavior: sometimes it works; sometimes it 
  doesn't.  Can't step through airglobal.swc to see what's wrong.
 
  DETAILS:
  I am using the latest SDK in several versions of an AIR project.  The core 
  code is identical across versions of the project.  Most changes are just in 
  the presentation of the data.
 
  I am a Cairngorm nut and I have extended it to suit my coding style.  I 
  have a master AbstractCommand that addresses everything including 
  listener add/remove, SQLite management, remote services, and File 
  reading/writing.  I just override certain functions as needed.
 
  In this project I read RSS beginning with the following:
 
  override public function execute(event:CairngormEvent):void
  {
   trace(LoadFeedCommand.execute() called);
 
   var rsso:RSSObject = LoadFeedEvent(event).feedObject;
   var urlRequest:URLRequest = new URLRequest(rsso.url);
 
   loader = new URLLoader();
   addListeners(loader);
 
   try
   {
   loader.load(urlRequest);
   trace(loader.load() called);
   }
   catch(error:Error)
   {
   trace(problem with loader.load());
   }
 
   tModelLocator.displayModel.selectedRSSObject = rsso;
  }
 
  In some of the projects URLLoader.load() works as expected.  In others with 
  IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The 
  catch clause does not throw an Error.
 
  I have added the following listneres in overrided .addListeners() and 
  nothing gets called!
 
  override public function addListeners(target:Object):void
  {
   target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
   target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, 
  onHTTPStatus, false,0, true);
   target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
   target.addEventListener(Event.OPEN, onOpen, false, 0, true);
   target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, 
  true);
   target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
  onSecurityError, false, 0, true);
  }
 
  Any insight on this would be wonderful.
 
  Thanks,
  -Naga
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe Systems, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: Tempermental URLLoader.load()

2012-03-30 Thread nagaofthesea
Howdy Alex and Everyone-

I have _NO_ clue why this worked, but it did.

I, a la Cairngorm technique, made a custom URLLoaderDelegate and corresponding 
IURLLoaderResponder.  Encapsulated all the URLLoader code and its handlers of 
the LoadFeedCommand amd moved it out to the delegate and responder.  Actually 
no more than a cut and paste job with cleanup of imports etc.

Now URLLoader works predictably in every case ...

Truly Weird!!  Because the code is essentially identical...
Oh well.  In the world of deadlines working reliably is good enough for now.

-Naga

--- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@... wrote:

 Howdy Alex-
 
 Fired up Network Monitor.  As I expected: nada!
 
 Too weird because the URLLoader is instantiated and waiting to go.
 What in the world could be going on?
 
 Regards,
 Naga
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Use a network monitor and see what is going on underneath.
  
  
  On 3/25/12 11:49 PM, nagaofthesea nagaofthesea@ wrote:
  
  
  
  
  
  
  Howdy Alex-
  
  Yes, everything works as expected when it does work including all the calls 
  with the listeners.
  
  In the projects it does NOT work all fails silently!!
  
  What the heck could THAT be?
  
  -Naga
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Alex Harui aharui@ wrote:
  
   Maybe you are adding listeners to the wrong thing?  Because you should 
   get those events when it does work.
  
  
   On 3/24/12 4:00 PM, nagaofthesea nagaofthesea@ wrote:
  
  
  
  
  
  
   Howdy All-
  
   PROBLEM:
   Strange URLLoader.load() behavior: sometimes it works; sometimes it 
   doesn't.  Can't step through airglobal.swc to see what's wrong.
  
   DETAILS:
   I am using the latest SDK in several versions of an AIR project.  The 
   core code is identical across versions of the project.  Most changes are 
   just in the presentation of the data.
  
   I am a Cairngorm nut and I have extended it to suit my coding style.  I 
   have a master AbstractCommand that addresses everything including 
   listener add/remove, SQLite management, remote services, and File 
   reading/writing.  I just override certain functions as needed.
  
   In this project I read RSS beginning with the following:
  
   override public function execute(event:CairngormEvent):void
   {
trace(LoadFeedCommand.execute() called);
  
var rsso:RSSObject = LoadFeedEvent(event).feedObject;
var urlRequest:URLRequest = new URLRequest(rsso.url);
  
loader = new URLLoader();
addListeners(loader);
  
try
{
loader.load(urlRequest);
trace(loader.load() called);
}
catch(error:Error)
{
trace(problem with loader.load());
}
  
tModelLocator.displayModel.selectedRSSObject = rsso;
   }
  
   In some of the projects URLLoader.load() works as expected.  In others 
   with IDENTICAL code it does not. URLLoader.load() fails into nothingness. 
The catch clause does not throw an Error.
  
   I have added the following listneres in overrided .addListeners() and 
   nothing gets called!
  
   override public function addListeners(target:Object):void
   {
target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, 
   onHTTPStatus, false,0, true);
target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, 
   true);
target.addEventListener(Event.OPEN, onOpen, false, 0, true);
target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, 
   true);
target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
   onSecurityError, false, 0, true);
   }
  
   Any insight on this would be wonderful.
  
   Thanks,
   -Naga
  
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe Systems, Inc.
   http://blogs.adobe.com/aharui
  
  
  
  
  
  
  
  --
  Alex Harui
  Flex SDK Team
  Adobe Systems, Inc.
  http://blogs.adobe.com/aharui
 





[flexcoders] Re: Tempermental URLLoader.load()

2012-03-26 Thread nagaofthesea
Howdy Alex-

Yes, everything works as expected when it does work including all the calls 
with the listeners.

In the projects it does NOT work all fails silently!!

What the heck could THAT be?

-Naga

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 Maybe you are adding listeners to the wrong thing?  Because you should get 
 those events when it does work.
 
 
 On 3/24/12 4:00 PM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 Howdy All-
 
 PROBLEM:
 Strange URLLoader.load() behavior: sometimes it works; sometimes it doesn't.  
 Can't step through airglobal.swc to see what's wrong.
 
 DETAILS:
 I am using the latest SDK in several versions of an AIR project.  The core 
 code is identical across versions of the project.  Most changes are just in 
 the presentation of the data.
 
 I am a Cairngorm nut and I have extended it to suit my coding style.  I have 
 a master AbstractCommand that addresses everything including listener 
 add/remove, SQLite management, remote services, and File reading/writing.  I 
 just override certain functions as needed.
 
 In this project I read RSS beginning with the following:
 
 override public function execute(event:CairngormEvent):void
 {
  trace(LoadFeedCommand.execute() called);
 
  var rsso:RSSObject = LoadFeedEvent(event).feedObject;
  var urlRequest:URLRequest = new URLRequest(rsso.url);
 
  loader = new URLLoader();
  addListeners(loader);
 
  try
  {
  loader.load(urlRequest);
  trace(loader.load() called);
  }
  catch(error:Error)
  {
  trace(problem with loader.load());
  }
 
  tModelLocator.displayModel.selectedRSSObject = rsso;
 }
 
 In some of the projects URLLoader.load() works as expected.  In others with 
 IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The 
 catch clause does not throw an Error.
 
 I have added the following listneres in overrided .addListeners() and nothing 
 gets called!
 
 override public function addListeners(target:Object):void
 {
  target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
  target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, onHTTPStatus, 
 false,0, true);
  target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
  target.addEventListener(Event.OPEN, onOpen, false, 0, true);
  target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, true);
  target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError, 
 false, 0, true);
 }
 
 Any insight on this would be wonderful.
 
 Thanks,
 -Naga
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Tempermental URLLoader.load()

2012-03-24 Thread nagaofthesea
Howdy All-

PROBLEM:
Strange URLLoader.load() behavior: sometimes it works; sometimes it doesn't.  
Can't step through airglobal.swc to see what's wrong.

DETAILS:
I am using the latest SDK in several versions of an AIR project.  The core code 
is identical across versions of the project.  Most changes are just in the 
presentation of the data.

I am a Cairngorm nut and I have extended it to suit my coding style.  I have a 
master AbstractCommand that addresses everything including listener 
add/remove, SQLite management, remote services, and File reading/writing.  I 
just override certain functions as needed.

In this project I read RSS beginning with the following:

override public function execute(event:CairngormEvent):void
{
  trace(LoadFeedCommand.execute() called);

  var rsso:RSSObject = LoadFeedEvent(event).feedObject;
  var urlRequest:URLRequest = new URLRequest(rsso.url);

  loader = new URLLoader();
  addListeners(loader);

  try
  {
loader.load(urlRequest);
trace(loader.load() called);
  }
  catch(error:Error)
  {
trace(problem with loader.load());
  }
 
  tModelLocator.displayModel.selectedRSSObject = rsso;
}

In some of the projects URLLoader.load() works as expected.  In others with 
IDENTICAL code it does not. URLLoader.load() fails into nothingness.  The catch 
clause does not throw an Error.

I have added the following listneres in overrided .addListeners() and nothing 
gets called!

override public function addListeners(target:Object):void
{
  target.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
  target.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, onHTTPStatus, 
false,0, true);
  target.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
  target.addEventListener(Event.OPEN, onOpen, false, 0, true);
  target.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0, true);
  target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError, 
false, 0, true);
}

Any insight on this would be wonderful.

Thanks,
-Naga






[flexcoders] Re: Component controls

2012-03-24 Thread nagaofthesea








Hi Jerry-

I use Cairngorm.

I would specify a property in a bindable final MyModel like so:

public var labelVisible:Boolean;

MyModel is then referenced as a property on bindable MyModelLocator (Singleton) 
like so:

public var myModel:MyModel;

I then would make my custom component with the following in the script block:

fx:Script
 ![CDATA[
   
   import com.myPackage.MyModelLocator;

   [Bindalbe] public var myModelLocator:MyModelLocator;
  
   ]]
/fx:Script

So now when I instantiate my custom component I pass in MyModelLocator and then 
I can then use this variable in the label easily:

Label
 id=myLabel
 visible={myModelLocator.myModel.labelVisible}/

You should do your processing in a distinct separate AS3 class to manipulate 
mModelLocator.myModel.labelVisible within that class.  Et Viola, the changes 
percolate prefectly.

Hope this sheds some light.

-Naga


--- In flexcoders@yahoogroups.com, Davidson, Jerry jerry.davidson@... wrote:

 I want to change the visible property to a control in a component.
 Where would I do that?  It doesn't seem to work in a script tag at the
 top of the component and I don't know how to reach that control from a
 script elsewhere.
 
  
 
 I have an app with an input form (state 1).  When you click a button on
 it, various computations happen and the result form is displayed (state
 2).
 
  
 
 I want to either hide or display  a control depending on the data from
 the computation.  It is a label.  The value in the text field (bound
 from a VO) next to it is what I use to make that decision. 
 
  
 
  
 
 Jerry





[flexcoders] Re: ViewNavigatorApplication not passing strongly-type firstViewData property.

2011-09-19 Thread nagaofthesea
Hi-

Thanks, but the AS operator results in a NULL because the conversion fails(!!).

Bottom line: AS operator does not work for this problem ...

Naga

--- In flexcoders@yahoogroups.com, Chuck Preston itsmechuckjr@... wrote:

 I don't know the reason why objects lose their type sometimes, but I know 
 that when it does happen, the solution is to retype them. In your case, you'd 
 have to do something in your first view like: var modelLocator:ModelLocator = 
 data as ModelLocator;
 
 
 --- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@ wrote:
 
  Howdy-
  
  I have used (my customized) Cairngorm 2.0 and Flex 4.5.1 to build my first 
  iOS + Andorid app.  Launched and available at iTunes and Android Market 
  without a hitch.
  
  I am building another flavor of the same app and BAM! type conversion error 
  with the passing of the data object!!  What??
  
  ViewNavigatorApplication.firstViewData is passed the ModelLocator when the 
  app starts.  When I inspect the variables, the parentDocument.firstViewData 
  is strongly typed to ModelLocator.
  
  HOWEVER, when the View gets finally gets passed the data, View.data is 
  typed as Object -- not strongly-typed ModelLocator.
  
  I double-checked with my published app and the View.data is always the 
  strongly-typed ModelLocator -- which is the expected behavior.
  
  Anybody know what gives / how to correct this fluky behavior?  
  
  The error output is worthless - just the generic #1034 pointing to the 
  addHandler that tries to cast the View.data to the ModelLocator.  As the 
  app is just starting up, all of the preceding lines are pointing to 
  framework code only.
  
  This is kindofa pain in the arse, because I just can't see why the data 
  property looses its strong type
  
  Regards,
  Naga
 





[flexcoders] Re: ViewNavigatorApplication not passing strongly-type firstViewData property.

2011-09-19 Thread nagaofthesea
Howdy-

Follow up for all.

Solution: Delete the view component and rebuild it from scratch.

Explanation:  I do not know why object deep copy fails sometimes in Flex, but 
after rooting around searches for two days I remembered something from the days 
of Flex 2 -- when all else false, delete and rebuild.

Well, that's what I did and it worked.  Cut my View code and pasted it to 
notepad, and then created a new View component with a different name.  Pasted 
in my code from notepad.  Integrated this new differently-named component in 
the app
et voila!: Problem Solved.

BTW - the cut  paste operation was to assure myself that the problem was *NOT* 
coder error

Sheesh! I RAlly hate cheesy fixes like this.
Naga


--- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@... wrote:

 Hi-
 
 Thanks, but the AS operator results in a NULL because the conversion 
 fails(!!).
 
 Bottom line: AS operator does not work for this problem ...
 
 Naga
 
 --- In flexcoders@yahoogroups.com, Chuck Preston itsmechuckjr@ wrote:
 
  I don't know the reason why objects lose their type sometimes, but I know 
  that when it does happen, the solution is to retype them. In your case, 
  you'd have to do something in your first view like: var 
  modelLocator:ModelLocator = data as ModelLocator;
  
  
  --- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@ wrote:
  
   Howdy-
   
   I have used (my customized) Cairngorm 2.0 and Flex 4.5.1 to build my 
   first iOS + Andorid app.  Launched and available at iTunes and Android 
   Market without a hitch.
   
   I am building another flavor of the same app and BAM! type conversion 
   error with the passing of the data object!!  What??
   
   ViewNavigatorApplication.firstViewData is passed the ModelLocator when 
   the app starts.  When I inspect the variables, the 
   parentDocument.firstViewData is strongly typed to ModelLocator.
   
   HOWEVER, when the View gets finally gets passed the data, View.data is 
   typed as Object -- not strongly-typed ModelLocator.
   
   I double-checked with my published app and the View.data is always the 
   strongly-typed ModelLocator -- which is the expected behavior.
   
   Anybody know what gives / how to correct this fluky behavior?  
   
   The error output is worthless - just the generic #1034 pointing to the 
   addHandler that tries to cast the View.data to the ModelLocator.  As the 
   app is just starting up, all of the preceding lines are pointing to 
   framework code only.
   
   This is kindofa pain in the arse, because I just can't see why the data 
   property looses its strong type
   
   Regards,
   Naga
  
 





[flexcoders] Re: ViewNavigatorApplication not passing strongly-type firstViewData property.

2011-09-19 Thread nagaofthesea
... one more thing I discovered (accidentally):

Right-click your mobile application file, select Run/Debug Settings, select 
your application file name, click Edit and make sure the Clear application 
data on each launch box is checked...

I don't no how it got un-checked, but apparently when the application data is 
NOT cleared with each launch weird 1034 errors happen ...

Naga

--- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@... wrote:

 Howdy-
 
 Follow up for all.
 
 Solution: Delete the view component and rebuild it from scratch.
 
 Explanation:  I do not know why object deep copy fails sometimes in Flex, but 
 after rooting around searches for two days I remembered something from the 
 days of Flex 2 -- when all else false, delete and rebuild.
 
 Well, that's what I did and it worked.  Cut my View code and pasted it to 
 notepad, and then created a new View component with a different name.  Pasted 
 in my code from notepad.  Integrated this new differently-named component in 
 the app
 et voila!: Problem Solved.
 
 BTW - the cut  paste operation was to assure myself that the problem was 
 *NOT* coder error
 
 Sheesh! I RAlly hate cheesy fixes like this.
 Naga
 
 
 --- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@ wrote:
 
  Hi-
  
  Thanks, but the AS operator results in a NULL because the conversion 
  fails(!!).
  
  Bottom line: AS operator does not work for this problem ...
  
  Naga
  
  --- In flexcoders@yahoogroups.com, Chuck Preston itsmechuckjr@ wrote:
  
   I don't know the reason why objects lose their type sometimes, but I know 
   that when it does happen, the solution is to retype them. In your case, 
   you'd have to do something in your first view like: var 
   modelLocator:ModelLocator = data as ModelLocator;
   
   
   --- In flexcoders@yahoogroups.com, nagaofthesea nagaofthesea@ wrote:
   
Howdy-

I have used (my customized) Cairngorm 2.0 and Flex 4.5.1 to build my 
first iOS + Andorid app.  Launched and available at iTunes and Android 
Market without a hitch.

I am building another flavor of the same app and BAM! type conversion 
error with the passing of the data object!!  What??

ViewNavigatorApplication.firstViewData is passed the ModelLocator when 
the app starts.  When I inspect the variables, the 
parentDocument.firstViewData is strongly typed to ModelLocator.

HOWEVER, when the View gets finally gets passed the data, View.data 
is typed as Object -- not strongly-typed ModelLocator.

I double-checked with my published app and the View.data is always the 
strongly-typed ModelLocator -- which is the expected behavior.

Anybody know what gives / how to correct this fluky behavior?  

The error output is worthless - just the generic #1034 pointing to the 
addHandler that tries to cast the View.data to the ModelLocator.  As 
the app is just starting up, all of the preceding lines are pointing to 
framework code only.

This is kindofa pain in the arse, because I just can't see why the 
data property looses its strong type

Regards,
Naga
   
  
 





[flexcoders] Re: how common is Flex and Rails together?

2011-09-18 Thread nagaofthesea
Howdy-

I believe the very smart guys that comprise LessonNine Ghmb (of babbel fame) 
started the project using Flex and Rails.

I do not know if they are still using said ..

From Wikipedia:

An Adobe Flex Application
 
Highly interactive, more than a website, Babbel is a full Web-software-powered 
environment for foreign language learning built with Adobe Flex. The founders 
found Adobe Flash to be the best technology available for playing sounds and 
graphic effects[8]. Four developers have been working on Babbel - two of them 
focusing on the Flex client and two developing the Ruby On Rails based backend 
running on Amazon EC2 instances. Development time to the first public version 
in January 2008 was about 8 months.[1].
 
According to Thomas Holl, the CTO,
 

The server consists of 12K lines of Ruby code, the Flex client is about 50K LOC 
(including 7K lines of generated integration code). We're following an 
iterative development process - and found out that a length of one week seems 
to work best for us. Besides that, we're using best practice tools and 
processes, e.g. Subversion for version control, Trac for defect 
tracking/documentation/communication, automated builds/deployment via 
Ant/Capistrano, etc.[9]
 
The website has currently more than 700,000 users worldwide.


--- In flexcoders@yahoogroups.com, Chris Downey cdowney@... wrote:

 Hi,
 
 I'm just wondering if there is anybody who is actively working on a project
 or knows of projects where Flex and Rails are used together.  Looking
 online, I see a burst of blogs between 2007-2009 but then it quickly
 fizzles.  Any thoughts about this?  Theoretically, it seems to be an
 interesting and useful fit, but when I start considering the details of
 making it work... I'm no longer so sure.
 
 Thanks,
 
 
 Chris





[flexcoders] ViewNavigatorApplication not passing strongly-type firstViewData property.

2011-09-18 Thread nagaofthesea
Howdy-

I have used (my customized) Cairngorm 2.0 and Flex 4.5.1 to build my first iOS 
+ Andorid app.  Launched and available at iTunes and Android Market without a 
hitch.

I am building another flavor of the same app and BAM! type conversion error 
with the passing of the data object!!  What??

ViewNavigatorApplication.firstViewData is passed the ModelLocator when the app 
starts.  When I inspect the variables, the parentDocument.firstViewData is 
strongly typed to ModelLocator.

HOWEVER, when the View gets finally gets passed the data, View.data is typed 
as Object -- not strongly-typed ModelLocator.

I double-checked with my published app and the View.data is always the 
strongly-typed ModelLocator -- which is the expected behavior.

Anybody know what gives / how to correct this fluky behavior?  

The error output is worthless - just the generic #1034 pointing to the 
addHandler that tries to cast the View.data to the ModelLocator.  As the app is 
just starting up, all of the preceding lines are pointing to framework code 
only.

This is kindofa pain in the arse, because I just can't see why the data 
property looses its strong type

Regards,
Naga



[flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-05 Thread nagaofthesea
Alex-

Copy that.  Will do.

-Naga

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 Might just be a bug.  Please file a bug with a simple test case.
 
 
 On 8/4/11 5:32 PM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 
 
 Howdy Alex-
 
 I am MORE than happy to send you my FXP if you need it.
 
 I have played around with quite a few things and it appears to remain a 
 problem with EmbeddedFontRegistry and its call (at 469) to 
 SystemManager.callInContext (at 1912) by the autogenerated class.
 
 I have dug through the variables at the error and the fonts are there, for 
 sure.
 
 In EmbeddedFontRegistry.getAssociatedModuleFactory() (at 395) is the problem 
 with the module?  The only thing I can see that could be NULL is the var 
 result:IFlexModuleFactory.
 
 Anyways, I greatly appreciate you looking at this 
 
 -Naga
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  If you use the default adobe skins do you have the same problem?
 
 
  On 8/4/11 11:35 AM, nagaofthesea nagaofthesea@ wrote:
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-04 Thread nagaofthesea
]
at 
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
at 
mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
at 
spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
at 
spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
at 
spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
at 
spark.components::SkinnableContainer/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:879]
at 
spark.components::Application/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Application.as:1480]
at 
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
at 
spark.components::Application/initialize()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Application.as:1334]
at 
spark.components.supportClasses::ViewNavigatorApplicationBase/initialize()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\ViewNavigatorApplicationBase.as:796]
at iForesee/initialize()
at 
mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
at 
mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]
at 
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3063]
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2849]
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:542]
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/tick()
at flash.utils::Timer/tick()
 


--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 CreateChildren is the end of the stack trace?  That doesn't make sense.  When 
 does it really get called?
 
 
 
 
 On 8/3/11 9:26 PM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 Howdy Alex (or anyone else)-
 
 SCENARIO:
 Flex 4.5.1 mobile application targeting Android and iOS (no pad) only.
 Works flawlessly on desktop emulations (all profiles) and on all Android 
 devices.
 
 Started testing on iOS 3GS and I get the following error (only top-most 
 relevant lines are displayed) after the app hangs at the splash screen:
 
 TypeError: Error #1009: Cannot access a property or method of a null object 
 reference.
 at 
 _iForesee_mx_managers_SystemManager/callInContext()[_iForesee_mx_managers_SystemManager.as:38]
 at 
 mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\EmbeddedFontRegistry.as:469]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
 at 
 mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12740]
 at 
 TitleDisplayComponent/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:573]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 assets.skins::FActionBarSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:272]
 
 COMMENT ON DEBUG OUTPUT.
 I have made custom skins based on Adobe mobile skins.  The custom

[flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-04 Thread nagaofthesea
Hi Alex-

Just checked.  Yes, I do

-Naga

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 If you use the default adobe skins do you have the same problem?
 
 
 On 8/4/11 11:35 AM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 
 
 Hi Alex-
 
 Thanks for looking at this.  I chopped the dump because it looked like a call 
 from Timer.tick().
 
 Here is the whole dump:
 
 August 4, 2011 11:33 AMclick here to add tags Tags:
 [SWF] iForesee.swf - 250,192 bytes after decompression
 TypeError: Error #1009: Cannot access a property or method of a null object 
 reference.
 at 
 _iForesee_mx_managers_SystemManager/callInContext()[_iForesee_mx_managers_SystemManager.as:38]
 at 
 mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\EmbeddedFontRegistry.as:469]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
 at 
 mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12740]
 at 
 TitleDisplayComponent/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:573]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 assets.skins::FActionBarSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:272]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
 at 
 spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
 at 
 spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 assets.skins::FViewNavigatorSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FViewNavigatorSkin.as:59]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
 at 
 spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
 at 
 spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
 at 
 spark.components::SkinnableContainer/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:879]
 at 
 mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
 at 
 spark.components.supportClasses::ViewNavigatorBase/initialize()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\ViewNavigatorBase.as:642]
 at 
 mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
 at 
 mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
 at 
 assets.skins::FViewNavigatorApplicationSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee

[flexcoders] Re: urgent: socket communications at port 443?

2011-08-04 Thread nagaofthesea
Howdy-

A pure shot in the dark:  Have you tried also explicitly setting the secure 
attribute to what you it to be?

Cheers,
Naga

--- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote:

 
 Is it possible to use a normal socket at 443 (apache not binding the port) 
 while loading a crossdomain at 80 such as this:
 
 cross-domain-policy
 site-control permitted-cross-domain-policies=master-only/
 allow-access-from domain=* to-ports=*/
 /cross-domain-policy
 
 
 We can't seem to get a connection:
 
 grimmwerks
 Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
 violation: http://mix.investlab.com/demo/MixClient.swf cannot load data from 
 mix.investlab.com:443.
 
 Garry Schafer
 grimmwerks
 grimm@...
 portfolio: www.grimmwerks.com/





[flexcoders] Re: loading socket policy files from port 80.

2011-08-04 Thread nagaofthesea


Howdy-

I have only had success using a handler for the preinitialize event:

protected final function setUpTrust(e:Event):void
{
 Security.allowDomain(domain.com/crossdomain.xml);
 Security.loadPolicyFile(http://domain.com/crossdomain.xml;);
 var urlRequest:URLRequest = new 
URLRequest(http://domain.com/crossdoamin.xml;);
  var urlLoader:URLLoader = new URLLoader();
  urlLoader.load(urlRequest);
}

Cheers,
-Naga

--- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote:

 Ok - slight modification to original question.
 
 Can I load a socket policy file (usually served on port 843) via port 80?  ie
 
 Security.loadPolicyFile(http:domain.com/crossdomain.xml);
 
 And this will allow connectivity to ports 61613
 
 
 Garry Schafer
 grimmwerks
 grimm@...
 portfolio: www.grimmwerks.com/





[flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-04 Thread nagaofthesea


Howdy Alex-

I am MORE than happy to send you my FXP if you need it.

I have played around with quite a few things and it appears to remain a problem 
with EmbeddedFontRegistry and its call (at 469) to SystemManager.callInContext 
(at 1912) by the autogenerated class.

I have dug through the variables at the error and the fonts are there, for sure.

In EmbeddedFontRegistry.getAssociatedModuleFactory() (at 395) is the problem 
with the module?  The only thing I can see that could be NULL is the var 
result:IFlexModuleFactory.

Anyways, I greatly appreciate you looking at this 

-Naga

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 If you use the default adobe skins do you have the same problem?
 
 
 On 8/4/11 11:35 AM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-03 Thread nagaofthesea
Howdy Alex (or anyone else)-

SCENARIO:
Flex 4.5.1 mobile application targeting Android and iOS (no pad) only.
Works flawlessly on desktop emulations (all profiles) and on all Android 
devices.

Started testing on iOS 3GS and I get the following error (only top-most 
relevant lines are displayed) after the app hangs at the splash screen:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
_iForesee_mx_managers_SystemManager/callInContext()[_iForesee_mx_managers_SystemManager.as:38]
at 
mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\EmbeddedFontRegistry.as:469]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
at 
mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12740]
at 
TitleDisplayComponent/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:573]
at 
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
at 
mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
at 
assets.skins::FActionBarSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:272]

COMMENT ON DEBUG OUTPUT.
I have made custom skins based on Adobe mobile skins.  The custom skins have 
F prepended to the Adobe mobile skin name.  They are clones of the mobile 
theme skins with my custom art etc as hard-coded ActinScript and FXG skins.

I have four very narrow range nonCFF embedded fonts declared appropriately at 
the top.  My data renderers use _sans.

When I mentally step through the code starting at UIComponent line 12739 I 
don't see the problem(!?!).  There are no NULLS.

I understand that the relevant lines of code causing the problem are mostly for 
debug purposes, but I just can't see what the problem is.  All the way up to 
the call to SystemManager.callInContext() there are no NULLS that I can find 
checking the variables -- save for the `this` argument which is NULL as it 
should be.

The fonts are in the registry as:
embed_font_cine_bold_normal_899163827;
embed_font_cine_medium_normal_597874558;
embed_font_serpe_bold_normal_1790603002;
embed_font_serpe_medium_normal_1688454721;

 :-/

Alex, should I just write an uncaught error handler for this?

Regards,
Naga




[flexcoders] Re: flahs.ui.Keyboard bug?!

2008-08-28 Thread nagaofthesea
You are right, it is a web app  Nothing about AIR only in the 
Langauge Reference though?!?!

-naga


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Is this for an AIR project?  I don't think it was supposed to work 
for
 non-AIR.
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of nagaofthesea
 Sent: Wednesday, August 27, 2008 10:10 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flahs.ui.Keyboard bug?!
 
  
 
 Howdy-
 
 Just installed the latest FlexBuilder 3.0.1.205647 which includes 
the 
 3.1 SDK.
 
 Went to write a handler for keyboard input using the public static 
 constants of flash.ui.Keyboard class (testing for Keyboard.Y to 
 represent a 'yes' answer and Keyboard.N to represeent a 'no' answer)
and 
 lo they are gone (as are almost all the other static constants)!!! 
I 
 just used the uint key code values instead for the time being 
But 
 really I LOVE the constants for code readability.
 
 Is it something I messed up on the install, or is this a bug others 
are 
 experiencing? If others are experiencing this, I will post to the 
bug 
 list.
 
 Regards,
 NAGA





[flexcoders] flahs.ui.Keyboard bug?!

2008-08-27 Thread nagaofthesea
Howdy-

Just installed the latest FlexBuilder 3.0.1.205647 which includes the 
3.1 SDK.

Went to write a handler for keyboard input using the public static 
constants of flash.ui.Keyboard class (testing for Keyboard.Y to 
represent a 'yes' answer and Keyboard.N to represeent a 'no' answer)and 
lo they are gone (as are almost all the other static constants)!!!  I 
just used the uint key code values instead for the time being But 
really I LOVE the constants for code readability.

Is it something I messed up on the install, or is this a bug others are 
experiencing?  If others are experiencing this, I will post to the bug 
list.

Regards,
NAGA



[flexcoders] Testing Internet Connection in Flex

2008-08-06 Thread nagaofthesea
Howdy-

Does anyone know of a way (AS3 or mx:CustomComponent) that tests if
the user's internet connection is live?

I have an application with error processing that needs to know if an
RPC failed because the user's connection is down...

Thanks!
Naga



[flexcoders] Pay-to-Play Credit Card Processors

2008-05-05 Thread nagaofthesea
Hello All-

I am prototyping an online application that will require users pay-to-
play.  That is, users can purchase chunks of time to gain access to the 
application's functionality.

My application is being developed using Flex3 on the front, ColdFusion8 
in the middle and SQL Server 2005 on the back.  Ideally I would like to 
integrate cc payment seamlessly.  If the user gets close to running out 
of time they can quickly purchase with a stored profile and then 
seamlessly pick up where they left off.

Does anyone have experience with vendors who provide plug-in cc 
processing service or shrink-wrapped components for this kind of pay-to-
play functionality? Easy integration with the Flash Player 9 a BIG BIG 
plus, but not necessary.

Thanks And Regards
-Naga