Re: [flexcoders] Re: canvas backgroundImage changed event?

2010-03-17 Thread Tino Dai
Maybe look into a timer and ans external function On Thu, Mar 11, 2010 at 5:47 PM, chuckjr itsmechuc...@yahoo.com wrote: I'm giving up on this one and trying a different approach. I'm loading the image as a child of the canvas instead of loading it into the backgroundImage. --- In

[flexcoders] Re: canvas backgroundImage changed event?

2010-03-11 Thread chuckjr
I'm giving up on this one and trying a different approach. I'm loading the image as a child of the canvas instead of loading it into the backgroundImage. --- In flexcoders@yahoogroups.com, chuckjr itsmechuc...@... wrote: Hello all, I'm building an app where a canvas component gets its

[flexcoders] Re: Canvas and SimpleButton

2010-02-05 Thread trzewiczek
Thanks for the answer. My additional questions would be: 1. Is the sizespeed difference really big? 2. I understand that instead of Shape i could use Canvas, right? What is the alternative for the SimpleButton in Flex then. I'm really new to Flex. Best from sunny nut cold Poland, trzewiczek

Re: [flexcoders] Re: Canvas and SimpleButton

2010-02-05 Thread Alex Harui
Many folks have been quite successful with Flex UIComponent and Button instead of Shape and SimpleButton. You’d have to have tons of them to really suffer from the difference. On 2/5/10 1:55 AM, trzewiczek trzewic...@yahoo.pl wrote: Thanks for the answer. My additional questions would

Re: [flexcoders] Re: canvas backgroundimage loadercontext

2009-03-16 Thread Richard DiBona
@yahoogroups.com *Subject:* [flexcoders] Re: canvas backgroundimage loadercontext Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using

[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-14 Thread Amy
--- In flexcoders@yahoogroups.com, rdibona rdib...@... wrote: Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using

[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-14 Thread Amy
--- In flexcoders@yahoogroups.com, rdibona rdib...@... wrote: Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using

[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread rdibona
Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using LoaderContext or otherwise? This is an app that has been working great for over

[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread rdibona
Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using LoaderContext or otherwise? This is an app that has been working great for over

RE: [flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread Alex Harui
[mailto:flexcod...@yahoogroups.com] On Behalf Of rdibona Sent: Friday, March 13, 2009 3:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: canvas backgroundimage loadercontext Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored

[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent

2008-12-31 Thread Tim Hoff
import mx.containers.Canvas; private function onCanvasClick(event:MouseEvent):void { if (event.target is Canvas) { // do canvas click stuff } } private function onButtonClick():void { // do button click stuff } -TH --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent

2008-12-31 Thread rockorgames
thx man, worked great ! --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: import mx.containers.Canvas; private function onCanvasClick(event:MouseEvent):void { if (event.target is Canvas) { // do canvas click stuff } } private

[flexcoders] Re: Canvas label and keyboard shortcuts

2008-12-05 Thread Tim Hoff
Hi Kalle, I was able to get this to work by using the HTMLButton and extending TabNavigator, TabBar, Tab, and ToggleButtonBar. However, there might be a little loss of style; since the include statements had to be taken out. It's too much code to post here. But, contact me offline, if you

[flexcoders] Re: Canvas scrollbar appears, won't scroll content?

2008-11-12 Thread Tim Hoff
Perhaps you should be adding the cards in createChildren() and setting the x, y, and z in updateDisplayList(). -TH --- In flexcoders@yahoogroups.com, bmilesp [EMAIL PROTECTED] wrote: Hello, I've tried posting this on actionscript.org with no luck. I have a class that extends canvas and i

[flexcoders] Re: canvas with styles and clickable? how to??

2008-06-26 Thread ben.clinkinbeard
mx:Canvas click=doStuff( event ) styleName=myCanvasStyle / --- In flexcoders@yahoogroups.com, David Pariente [EMAIL PROTECTED] wrote: i will check it later...im interested in components... but actually i saw what i mean in plenty of sites, so i guess is just so difficult to achieve. Maybe

Re: [flexcoders] Re: canvas with styles and clickable? how to??

2008-06-26 Thread David Pariente
, 2008 16:17:18 Asunto: [flexcoders] Re: canvas with styles and clickable? how to?? mx:Canvas click=doStuff( event ) styleName=myCanvas Style / --- In [EMAIL PROTECTED] ups.com, David Pariente xxmapachexx@ ... wrote: i will check it later...im interested in components.. . but actually i saw

[flexcoders] Re: canvas with styles and clickable? how to??

2008-06-26 Thread ben.clinkinbeard
Enviado: jueves, 26 de junio, 2008 16:17:18 Asunto: [flexcoders] Re: canvas with styles and clickable? how to?? mx:Canvas click=doStuff( event ) styleName=myCanvas Style / --- In [EMAIL PROTECTED] ups.com, David Pariente xxmapachexx@ ... wrote: i will check it later...im interested

[flexcoders] Re: Canvas scrollbars not appearing

2007-04-23 Thread vitcheff
Hi, thanks for helping! Actually the canvas contains the component's instance and so the component shouldn't need to know anything about the canvas. I solved the issue with setting explicitWidth and explicitHeight of the component at change. It made the canvas update automatically. Before that I

[flexcoders] Re: Canvas scrollbars not appearing

2007-04-23 Thread vitcheff
Thank you for your reply! Explicitly calling is something I didn't try. I thought of doing it, but it means tighter coupling and also implementation overhead in handling events etc. I thought if a child's invalidateDisplayList(), or at least invalidateSize has been called, the the parent container

[flexcoders] Re: Canvas Layers

2007-01-03 Thread michrx7
Ok, I solved this with the setChildAt() --- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote: How does one go about changing the layer for multiple canvas' in AS3? I have two canvas' and Canvas2 is slightly on top of Canvas1 and I want to switch it so Canvas1 is slightly on

[flexcoders] Re: Canvas zoom / preview / Navigator

2007-01-02 Thread ecpmaz
I did what I said before to accomplish what I wanted : - BitmapData.draw to get a bitmap containing my Canvas snapshot - UIComponent.scaleX/Y to zoom... I commented my sources if anyone is interested in using it. eaurizon.org/labs_maz/AdvancedCanvas/src.zip The package contains : - AdvancedCanvas

[flexcoders] Re: Canvas

2007-01-02 Thread titipouns19
Hi theo, Thanks for your answers. I already tested your first solution but i don't be satisfied because, in my mxml code, i have to define exactly how many canvas i want to display. is it possible to display canvas (mxml component) into a canvas object of a mxml application whithout define

[flexcoders] Re: Canvas

2006-12-31 Thread Theo
Hi Titipouns, If I understand you question correctly, I would go with a ViewStack as a solution. Here is my completed code (I colored each of the Canvases so you can see the change): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

[flexcoders] Re: Canvas

2006-12-31 Thread Theo
Hi Titipouns, It's me again. Here is my second solution to the question you posted: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:com=* layout=absolute mx:states mx:State name=addCanvas01

Re: [flexcoders] Re: Canvas zoom / preview / Navigator

2006-12-21 Thread Doug McCune
Regarding generating the snapshot or thumbnail drawing... Sorry if this isn't incredibly helpful, but I'd start with understanding BitmapData stuff. To do the snapshot I'm guessing you're going to want to capture the BitmapData of the Canvas (and that will include all the components it

[flexcoders] Re: Canvas zoom / preview / Navigator

2006-12-21 Thread ecpmaz
Yes that is exactly what I needed ! I will come back to you when I will have solved that clipping issue. For the zoom feature, I just found a property of the Canvas : scaleX, scaleY... looks pretty much what I was looking for ! Mathieu LEMAIRE