RE: [flexcoders] Creating an AIR install file from scratch..

2008-07-01 Thread Mike Krotscheck
I have an ant script that does all my AIR compiling, signing & packaging for me. You can svn checkout a full working sample of the source build here (Note you'll have to update your build.parameters.xml from the default). I've copied the macrodef I

[flexcoders] Printing

2008-05-20 Thread Mike Krotscheck
I just had a client ask me the following question: Once PrintJob.send() is invoked, what actually gets sent to the print driver? Does anyone know the answer? I've always used the PringJob class as a blackbox, though I hypothesize that it's some flavor of EPS file. Michael Krotscheck Senio

RE: [flexcoders] Flex Profiler Not Connecting

2008-05-01 Thread Mike Krotscheck
I had a similar problem: Turns out our newly installed firewall decided to be helpful and get in the way. Have you guys updated your security settings recently? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com

RE: [flexcoders] Re: Can a Listener return a value

2008-03-25 Thread Mike Krotscheck
That's probably because it's pseudocode, rather than real code. Every event listener is passed an event object, and on that event object a property called "target" exists that is a back reference to the object that dispatched the event. You can use that back reference to send a parameter back t

RE: [flexcoders] Can a Listener return a value

2008-03-25 Thread Mike Krotscheck
foo.addEventListener( Event.SomeEvent, responderEventHandler ); private function responderEventHandler(event:Event):void { event.target.publicParameter = "bar"; } Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com

RE: [flexcoders] Polymorphism....?

2008-02-19 Thread Mike Krotscheck
UIComponent doesn't have a property called isClosed, therefore your attempt to access that property on an instance cast to UIComponent will throw an error. What you need to do is have each class implement an interface called IClosable or something along those lines, and cast to that. public funct

[flexcoders] CSS Compile directives

2008-02-05 Thread Mike Krotscheck
I've just run across an odd behavior within Flex 3 and certain compiler directives, as follows: 1. Compiler options includes a -load-config+= directive. This directive ensures the compiler to includes a certain list of classes, via classpath 2. In a subdirectory of the

RE: [flexcoders] I don't get it!!! what is this problem

2008-02-01 Thread Mike Krotscheck
You're trying to apply an effect to a state, rather than to the object that should be modified by the effect. Use _either_ transitions _or_ states. State Method: http://www.adobe.com/2006/mxml"; layout="absolute">

RE: [flexcoders] mxml loader

2008-01-24 Thread Mike Krotscheck
This is possible two different ways: 1- With the livecycle server, which will compile your mxml on the fly and then send the resulting swf to your application. This costs a lot of money. 2- By using some kind of object encoding (coreLib.JSON might be able to do this), converting the string to a UIC

RE: [flexcoders] Who to contain a UIComponent?

2008-01-23 Thread Mike Krotscheck
If I understand your question correctly any container will do, you just have to set clipContent to true and the scrollpolicy to auto or true; Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com

RE: [flexcoders] Photo print service

2008-01-22 Thread Mike Krotscheck
Sortof? When developing HP Print Studio (http://www.hp.com/printstudio) we ran into this very same issue, but instead of photos we had multiple high resolution template assets that were only loaded when a printjob was requested. Given our use cases (most users don't have duplex printers) we didn't

[flexcoders] IUIComponent & Cross-IDE Component Development

2008-01-22 Thread Mike Krotscheck
I'm currently writing a couple of DisplayObject based components whose optimal implementation would allow their use both via MXML, AS3, or within the Flash IDE, without forcing the end-user to have either of the two component libraries. Since this means I can't use either of the UIComponent classes

RE: [flexcoders] Flex and SCORM

2008-01-21 Thread Mike Krotscheck
I'm slowly but surely building out some libraries intended to make it a bit easier to handle. So far all I have is an RTE Abstraction class that transparently implements the various LMS Calls. It's v2004 rev.3, and I can't really move forward until I can find previous versions of the documentation

RE: [flexcoders] Flex <> JavaFX <> Sliverlight <> Flash

2007-12-18 Thread Mike Krotscheck
Avoid Silverlight- It doesn't come with a large library of pre-built UI and layout components that simplify and speed up development. All you have to work with is a Box, an Ellipse, and a Text Box. Knowing Microsoft they'll be releasing these necessary support classes sooner or later, but for the t

[flexcoders] Debugging help (or how to find un-debuggable bugs)

2007-12-01 Thread Mike Krotscheck
I am currently trying to debug an intermittent bug within our application that causes a browser crash. Not just a "hey, the application threw a runtime error", I mean a do-not-pass-go, do-not-output-useful-debug-stack, do-not-write-useful-info-to-log, .ocx illegal exception that kills the browser.

RE: [flexcoders] Subversion clients

2007-11-30 Thread Mike Krotscheck
We currently use the subclipse plugin, and it's been rock-solid for us, even if it's a little slow at times. Nevertheless if subversive really has fewer bugs it certainly warrants exploration. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.

RE: [flexcoders] Re: Capture Flex screen to e-mail...

2007-11-26 Thread Mike Krotscheck
implements IBitmapDrawable?" This application is pure Flex (AS3) running in a browser. I will do further research on bitmapData.draw(), and see if it is available to me. Paul --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Mike Krotscheck" <[EMA

RE: [flexcoders] Capture Flex screen to e-mail...

2007-11-26 Thread Mike Krotscheck
The graphic nature of Flex makes it so your only real option is to screenshot the application and mail it to them as a graphic. To do this within Flex, see whether Application implements IBitmapDrawable- that will allow you to use bitmapData.draw() and get the raw display data. Once you have that,

RE: [flexcoders] Re: Garbage Collection question

2007-11-19 Thread Mike Krotscheck
nderblog.typepad.com - Flex blog and open source flex components --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Mike Krotscheck" <[EMAIL PROTECTED]> wrote: > > I've been digging into memory management techniques recently, and have a > que

[flexcoders] Garbage Collection question

2007-11-17 Thread Mike Krotscheck
I've been digging into memory management techniques recently, and have a question regarding the timing of the two methods. The articles on Adobe.com suggest that both methods (Ref Count and Mark & Sweep) run at some arbitrary point in the future defined by current memory usage. I found a discussion

[flexcoders] Rendering offstage

2007-11-13 Thread Mike Krotscheck
Is there a way of forcing a displayObject to render (for the purposes of IBitmapDrawable) without adding it to the stage? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com [EMAIL PROTECTED]

RE: [flexcoders] "this" in parent classes

2007-11-06 Thread Mike Krotscheck
_____ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: Tuesday, November 06, 2007 5:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] "this" in parent classes I've discovered you can't use "

[flexcoders] "this" in parent classes

2007-11-06 Thread Mike Krotscheck
I've discovered you can't use "this" to refer to the current instance from the parent class. Is there another way I can reference the currently instantiated child? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com

RE: [flexcoders] how to determine if a component is offscreen in a Canvas?

2007-11-02 Thread Mike Krotscheck
I'd probably do it using getBounds and the Rectangle class's comparison methods. var canvasBounds :Rectangle = myCanvas.getBounds(myCanvas.parent); var componentBounds:Rectangle = myComponent.getBounds(myCanvas.parent); and then either if(canvasBounds.contains(componentBounds)) or

RE: [flexcoders] Hold execution untill result from database

2007-10-31 Thread Mike Krotscheck
I assume you're talking AIR rather than true Flex, right? Synchronous database queries were added in beta 2. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com [EMAIL PROTECTED] _

RE: [flexcoders] Determining the actual footprint of Flex application

2007-10-30 Thread Mike Krotscheck
Do you mean disk footprint or memory footprint? Disk footprint would be size on disk, and it's always better to overestimate, so include the size of all the supporting files. Memory footprint is the largest amount of memory the application ever draws, which is best calculated using Flex Builder 3's

RE: [flexcoders] Re: Yahoo maps api for flex 2

2007-10-30 Thread Mike Krotscheck
"To create and test applications using Yahoo! Flash Maps using the Flex component, you'll need Macromedia Flex 1.5 with the internal JRun4 server or Tomcat server." Note: An enterprising developer can sniff the traffic and reverse-engineer their API. Nobody's done that yet though- I've been bus

RE: [flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread Mike Krotscheck
I'm with Paul on this one. MXML is wonderful for layout, because I'm familiar with the HTML world and the metaphors are all the same (which means you can get someone less experienced to do layout tweaks :-). But when it comes to a standalone and fairly complex component, pure actionscript enables a

RE: [flexcoders] Multiple File Uploads and OSX Leopard

2007-10-29 Thread Mike Krotscheck
October 29, 2007 12:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Multiple File Uploads and OSX Leopard What do you mean "borked" and what do you mean multiple file uploads? Don't you do one at a time? I don't have Leopard yet, but in a few days I will. Paul

[flexcoders] Multiple File Uploads and OSX Leopard

2007-10-29 Thread Mike Krotscheck
I'm seeing blog reports that Multiple File Uploads are borked on Flash Player 9 and OSX Leopard. Unfortunately I don't have my own Leopard environment yet, so can't confirm this, nor can I find any official acknowledgement from either Apple or Adobe. Can anyone out there confirm this for me? An

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
MAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: Thursday, October 25, 2007 8:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in MXML without adding to children You can either: override protected function childrenCreated():void { sup

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
line of MXML vs 10 - 20 lines of action script. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: 25 October 2007 12:38 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
Does it have to be MXML? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com [EMAIL PROTECTED] _

RE: [flexcoders] Detecting browser window close event?

2007-10-23 Thread Mike Krotscheck
I think there's a cheap-hack way of doing this. Use ExternalInterface to call "eval" to write a Javascript event listener to the document, and have it pass the event back through to the swf. Just remember that IE has two events for close, though I don't exactly recall what they are- one fires befor

RE: [flexcoders] File Download

2007-10-19 Thread Mike Krotscheck
For this you'll actually have to turn over download control to the browser rather than using FileReference. Using URLRequest, open the file in a new window/tab. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com

RE: [flexcoders] Type selector warning

2007-10-19 Thread Mike Krotscheck
Remove any Tree styles you have from the CSS file. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com [EMAIL PROTECTED] __

RE: [flexcoders] Re: Site Launch

2007-10-17 Thread Mike Krotscheck
ooking > flex site > > as well: > > > > http://fashion.canon-europe.com/searchandcreate.html <http://fashion.canon-europe.com/searchandcreate.html> > > > > On 10/15/07, candysmate wrote: > > > > > > --- In flexcoders@yahoogroups.com &l

RE: [flexcoders] Site Launch

2007-10-15 Thread Mike Krotscheck
y look so slick against the background gradient as well. Cheers to an amazing design. Seth From: flexcoders@yahoogroups.com [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Mike Krotscheck Sent: Mond

RE: [flexcoders] Site Launch

2007-10-15 Thread Mike Krotscheck
oups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: Monday, October 15, 2007 6:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Site Launch Hey everyone- We here at Resource just launched a new site last Friday, built entirely in Flex. I figured some of you might get a ki

[flexcoders] Site Launch

2007-10-15 Thread Mike Krotscheck
Hey everyone- We here at Resource just launched a new site last Friday, built entirely in Flex. I figured some of you might get a kick out of it, since the designers really went out of their way to do something that's not just a datagrid and a few bindings. http://www.hp.com/printstudio/ Michae

RE: [flexcoders] Bug in DragManager

2007-10-03 Thread Mike Krotscheck
he canvas as a "shield" or are things just overlaid in your app? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: Wednesday, October 03, 2007 12:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bug in DragManager So, I've bee

[flexcoders] Bug in DragManager

2007-10-03 Thread Mike Krotscheck
So, I've been working with the DragManager for a bit now, and I'm wondering whether or not what I've found was a design decision or simply an omission. Cosnider the case of having a mouseEnabled="false" component (in my case a Canvas) lying on top of a drag target. The following few lines of code (

RE: [flexcoders] Flash CS3 Components - Custom Properties & Methods

2007-10-02 Thread Mike Krotscheck
Use Getter/Setters, like this. package { import mx.flash.UIMovieClip; public dynamic class forestDragon extends UIMovieClip { private var _my_name : String = ""; private var _my_color : String = ""; private var _my_textfield:TextField; public var current_state : String = ""; public functio

RE: [flexcoders] fade from tile view to list view not smooth

2007-10-01 Thread Mike Krotscheck
Embed the font. As long as you're using system fonts you are letting the operating system render your fonts rather than the flash player, and only the latter will apply fade effects and transitions to text. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE

RE: [flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread Mike Krotscheck
Have you tried scaleContent = true ? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com [EMAIL PROTECTED]

RE: [flexcoders] Entering and Passing Data to a Cairngorm Event?

2007-09-24 Thread Mike Krotscheck
Urm, right. My bad, didn't realize what you were asking. Notice that in CairngormEvent, data isn't actually initialized to any value. Thus what you'd be looking to do is initialize the object in the constructor of your loginEvent before accessing it when you create the event. public functio

RE: [flexcoders] Entering and Passing Data to a Cairngorm Event?

2007-09-24 Thread Mike Krotscheck
Since you're already storing the data in your event, the only remaining step you have to do is to pull that information from the appropriate command: public class LoginCommand implements ICommand { public function execute(event:CairngormEvent):void { var loginEvent :LoginEvent =

RE: [flexcoders] localization options in flex 2

2007-09-24 Thread Mike Krotscheck
We're using something similar for a localization project of our own. The application pulls the configured language from the users preferences, the local system setting, or the application configuration (in that order) and based on that populates a Strings Value Object that's housed on our singleton

RE: [flexcoders] Re: Anyone seen this effect as Flex module - Accordion Menu

2007-09-20 Thread Mike Krotscheck
We did something very similar to this using a VBox and container resizing. Basically, every other element is a clickresponsive component that on rollover changes the height of the previous container, with a resize effect added for good measure. Fairly simple, should take a decent developer about 30

[flexcoders] Compiler Error: Cruise Control & Ant vs. Flex Builder/Eclipse

2007-09-20 Thread Mike Krotscheck
Does anyone have any experience with a distributed development environment using Cruise Control to handle central builds? Our application compiles fine in the IDE, however once we checkin our files and Cruise takes over we start getting these errors: "A file found in a source-path must have an ext

RE: [flexcoders] How to see if method is implemented in class

2007-09-18 Thread Mike Krotscheck
You could have your custom components implement a custom interface like IValidatable that requires the validate() function, and then check whether the class implements that interface by using the following: if( yourComponent is IValidatable) { // Your code here } Michael Krot

RE: [flexcoders] Math.cos...?

2007-09-17 Thread Mike Krotscheck
_ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Krotscheck Sent: Sunday, September 16, 2007 5:19 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Math.cos...? The documentation's actually fairly clear on this: "The cosine of a 90 degree ang

RE: [flexcoders] Math.cos...?

2007-09-16 Thread Mike Krotscheck
The documentation's actually fairly clear on this: "The cosine of a 90 degree angle is zero, but because of the inherent inaccuracy of decimal calculations using binary numbers, Flash Player will report a number extremely close to, but not exactly equal to, zero." Nevertheless, it seems... slop

[flexcoders] Math.cos...?

2007-09-16 Thread Mike Krotscheck
Why does Math.cos(Math.PI/2) not return zero? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com 614 621 2888 main 614 410 3195 direct 412 726 8087 mobile [EMAIL PROTECTED]

RE: [flexcoders] sequencing effects

2007-09-12 Thread Mike Krotscheck
OTECTED] On Behalf Of grimmwerks Sent: Wednesday, September 12, 2007 4:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] sequencing effects You put the addChild WITHIN the transition? Is there an example of this somewhere? I didn't know you could do that. On Sep

RE: [flexcoders] sequencing effects

2007-09-12 Thread Mike Krotscheck
If you set up a transition to said state that contains AddChild directives, they will occur in the order and with the timing configured. Michael Krotscheck Senior Developer RESOURCE INTERACTIVE

[flexcoders] Localization Proxy and Compiler Warnings

2007-09-11 Thread Mike Krotscheck
I am attempting to create a localization strings ValueObject class that acts as a proxy to an XML file. The following code below works just as designed, however everytime I try to bind to it the compiler throws a warning that the application will not be able to detect changes to said variable. Is t

RE: [flexcoders] Re: Setting flashVars via SWFloader

2007-08-28 Thread Mike Krotscheck
Might it be possible to listen for the complete event on the SWFLoader and then applying the variables directly? As long as the variables in the encapsulated flex application are bindable, any changes should be picked up- in other words you may not have to reload the app every time you change the v