RE: [flexcoders] HTTPStatusEvent is always 0

2008-11-05 Thread Blake Barrett
You can listen for ProgressEvent.PROGRESS and IOError.IO_ERROR events on the image.contentLoaderInfo. Those will give you the bytes as they come through and it will let you handle any IOErrors gracefully. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Re: textArea.setFocus();

2008-10-29 Thread Blake Barrett
There is some JS you can run in the wrapper HTML that will give focus to the SWF, but it doesn't work in FF2 or Chrome. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Wednesday, October 29, 2008 11:35 AM To:

RE: [flexcoders] Flex builder 3 pro debugging doesn't work any more.

2008-10-29 Thread Blake Barrett
You need to find and download the debug version of the flash player. The standard install that you get while surfing the web is the normal player version. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gr33neye501 Sent: Wednesday,

RE: [flexcoders] Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-28 Thread Blake Barrett
e_baggg, You're not the only one. We're experiencing very similar problems. Our app just keeps gobbling memory until the browser crashes. We've had to resort to calling dispose() explicitly on every mx:Image and bitmap we ever instantiate, and explicitly calling removeAllChildren() on every

RE: [flexcoders] Re: Do you use a Mac?

2008-10-23 Thread Blake Barrett
I have to agree with Dmitri, I have a macbook sitting next to a dell PC, both have flex builder installed (one so I can work from home if needed). When I actually want to sit down and make some progress I go to my PC. When I need to do anything in Photoshop or Flash I go straight to my mac (not to

RE: [flexcoders] Optimize with callLater() -- help?

2008-08-19 Thread Blake Barrett
I'm still fumbling my way through framiliarizing myself with callLater, but from what I've been able to do with it, it works perfectly. As I understand it, you can call a method if you don't have any parameters in it like callLater( doSomething ); but if you can't do that you can throw an inline

RE: [flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread Blake Barrett
You may have to wrap each mx:Image/ with an mx:Canvas clipContent=truemx:Image//mx:Canvas and manipulate the canvases by positioning the mx:Image/ and scaling the mx:Canvas/ to get the image where you want it. Like this: mx:Canvas clipContent=true width=16 height=16 mx:Image

RE: [flexcoders] html-template under source control

2008-04-22 Thread Blake Barrett
The HTML-template folder being over-written is a frequent problem we have. We've had to just run our command-line build that overwrites whenever flex builder overwrites it. Not a real solution, but it works in a pinch. Blake From: flexcoders@yahoogroups.com

RE: [flexcoders] Flex and HTML

2008-04-04 Thread Blake Barrett
Flex can display HTML in a very limited way via the .HTMLtext property of TextAreas, but the closest thing to replicating what you are looking for is creating an iFrame outside of flex, but controlling it through JavaScript from Flex. Maybe this link can help:

RE: [flexcoders] Re: Why are my embedded TrueType Fonts looking so horrible in Flex App

2008-03-13 Thread Blake Barrett
Todd, We have seen this too, I filed a Jira ticket about this in the Adobe bug tracking system here: https://bugs.adobe.com/jira/browse/SDK-14955?rc=1 If you have any additional comments or insight please comment on that ticket so we can provide Adobe with as much info as possible to get this

RE: [flexcoders] Old-school debugging?

2008-03-13 Thread Blake Barrett
Windows XP: c:\Documents and Settings\{user}\Application Data\Macromedia\Flash Player\Logs\flashlog.txt Windows Vista: C:\Users\{user}\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt Linux: home/username/.macromedia/Flash_Player/Logs/flashlog.txt OSX:

RE: [flexcoders] SWF download problem

2008-03-12 Thread Blake Barrett
Well also, you are listening to Event.INIT. If you use a SWFLoader, listen to contentLoaderInfo for the Event.COMPLETE event; or at least that's how you'd do it in Flex AS3. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex

RE: [flexcoders] Re: Embedding a SWF file in Flex

2008-03-06 Thread Blake Barrett
you can either use a Loader in ActionScript, the loaded swf will be in its .content property; or you could use an mx:SWFLoader source=http://myUrl.com/ component and again the loaded swf will be in its .content property. As Tracy pointed out you cannot control anything that is compiled for flash 8

RE: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not IUIComponent?

2008-03-05 Thread Blake Barrett
I've been experiencing similar issues from a slightly different direction. I have various things in a swf file authored in Flash CS3 and I have been needing to pull them out of that swf and add them to the stage in a Flex 2.0.1 app. What I ended up having to do is actually create an instance of an

RE: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not IUIComponent?

2008-03-03 Thread Blake Barrett
I'm having the same issues. I also am still using Flex 2.0.1. I need to pull a TextField out of a MovieClip and display it in in a Flex app. So I need it to somehow figure out how to wrap it in a UIComponent. It seems like someone has successfully done this, please help us (with a code sample).

RE: [flexcoders] How can I overlay a UIComponent on top of my application?

2007-12-06 Thread Blake Barrett
I'm not sure about this, but you could try capturing a bitmap on MouseOver (of every component) of event.target var bd : BitmapData (event.target); bd.draw (300, 300); var bmp : Bitmap ( bd ); then try adding that bitmap to the main displayContainer (the stage). I hope

RE: [flexcoders] Where to learn intermediate/advanced Flex?

2007-08-30 Thread Blake Barrett
Just start tackling projects. You can never be sure that you can't do something until you fail at it, until then you can do anything. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Neath Sent: Thursday, August 30, 2007 10:13

RE: [flexcoders] Access web service

2007-08-30 Thread Blake Barrett
Saurahb, You can construct a webservice component: mx:WebService id=myWS wsdl=http://somedomain.com/mywsdl.asmx?wsdl result=resultHandler(event)/ Then handle the results in an ActionScript function: public function resultHandler(event:ResutEvent):void { myTextArea.text =