[flexcoders] Re: AIR 3.2 Update Breaks My App

2012-04-04 Thread reygeek
I'm bumping this in hopes of a response from anyone.  All my debugging 
approaches have come up empty so far.

Thanks!

-Jake

--- In flexcoders@yahoogroups.com, Jake Churchill  wrote:
>
> Good morning community,
> 
> I have an AIR app developed under the 3.1 SDK which is used for displaying
> real-time charting data.  It's not overly complex, just a socket connection
> receiving data and updating chart data providers.  The app has been
> released for about a month and all has been great.  However, with the
> update to AIR 3.2, we are now experiencing freezing issues where the
> rendering just stops.  I quick google search pulled up this:
> 
> http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/
> 
> This example is in mobile, but it seems to be the same problem.
> 
> Is anyone aware of a fix for this or at the minimum, a workaround?  Or what
> can I even look for event wise to watch for this problem happening so I can
> try to gracefully recover?
> 
> Thanks for any help!
> 
> -Jake
>




[flexcoders] Re: Frame around image

2009-09-24 Thread reygeek
Just put it in a Box (or HBox or VBox) or a canvas or any other container and 
style it.

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to make a frame around an mx:image ? 
> 
> Thank you,
> Christophe,
>




[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread reygeek
Here's another method that would allow you to pass in the whole UIComponent.  
Below is an example usage:

public function getUIComponentBitmapData( target:UIComponent, w:Number, 
h:Number ) : BitmapData
{ 
// scale down (or up)
var scaleX:Number = w / target.width;
var scaleY:Number = h / target.height;
var m:Matrix = new Matrix();
m.scale(scaleX, scaleY);

// get new bitmap data
var bd:BitmapData = new BitmapData( w, h );
bd.draw( target, m );
bd.smoothing = true;

// return the new bitmap data
return bd;  
}



Assume you have var originalImage:Image already set and you want to scale it 
down to 50x30:

var newImage:Image = new Image();
newImage.source = getUIComponentBitmapData( originalImage, 50, 30 );



--- In flexcoders@yahoogroups.com, "stinasius"  wrote:
>
> hi, please share the whole class please.
>




[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread reygeek
He shared all you need.  Just pass in bitmap data of your image which I believe 
is the source attribute.

var newImg:Image = new Image();
newImg.source = scaleBitmapData(originalImage.source,width,height);

--- In flexcoders@yahoogroups.com, "stinasius"  wrote:
>
> hi, please share the whole class please.
>