Re: [flexcoders] Re: Setting perspectiveProjection disable children interactivity

2010-01-22 Thread franto
Hi,

I have same exact problem in Gumbo. I'm using native 3d support and when I
set perspectiveProjection all children loose interactivity or it's screwed
up...

do you know how to fix it?

It's very urgent :) Is there anybody who knows how to fix it?

Franto

-- 
Franto Kormanak (fra...@flexets.com)
Owner  Senior RIA Developer
at Flexets (http://www.flexets.com)

profile: http://www.linkedin.com/in/franto
skype: franto.kormanak


2008/12/29 gwangdesign gwangdes...@yahoo.com

   Okay. So, okay. Here I am again. I just got a stripped down version of
 my code working on Gumbo but not sdk 3.2. In the following code, the
 Button instance maintains its interactivity (hover, tooltip, gets
 click event). If the same code gets complied to sdk 3.2, the Button
 looses hover/tooltip and doesn't take the click event)

 ?xml version=1.0 encoding=utf-8?
 Application xmlns=http://ns.adobe.com/mxml/2009; layout=absolute
 width=800 height=600 creationComplete=initApp();
 Script
 ![CDATA[
 import mx.controls.Button;
 import flash.geom.PerspectiveProjection;

 private function initApp():void
 {
 var btn:Button = new Button();
 btn.label = hello world;
 btn.toolTip = This is the secret ninja!;
 btn.addEventListener(MouseEvent.CLICK,
 function(event:MouseEvent):void{trace(Button(event.currentTarget).label+
 is clicked!);});
 homeBx.addChild(btn);
 setPPCenter(0, 0);
 }
 private function setPPCenter(x:Number, y:Number):void

 {
 var pp:PerspectiveProjection = new PerspectiveProjection();
 pp.projectionCenter = new Point(x, y);
 homeBx.transform.perspectiveProjection = pp;
 }
 ]]
 /Script

 Canvas id=homeBx x=400 y=300 z=0 clipContent=false/

 /Application


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 gwangdesign gwangdes...@... wrote:
 
  Just a follow-up from myself;)
 
  I am not able to re-compile my existing code using Gumbo sdk since all
  the code that tries to get/set UIComponent.transform seems to be
  broken on re-compile.
 
  For example:
 
  I got:
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  for v3 = items[id].transform.matrix3D.decompose();
 
  In Halo (sdk 3.2), as long as you set UIComponent.z or
  UIComponent.rotationX/rotationY, you will get the Transform object
  without any problem.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 gwangdesign gwangdesign@ wrote:
  
   Hi,
  
   This is a Flex project (3.2) complied to target FP10, which utilizes
   the 3D API. Inside a Canvas object, I add whole bunch of Buttons which
   are laid out in a 3D carousel fashion. The problem is once I set the
   projectionCenter property of the Canvas, all the Button instances
   inside the Canvas stop taking any mouse interaction (including hover
   highlight, tooltips, click events, etc.), while everything else seems
   to be working fine.
  
   Is this the expected behavior or a bug?
  
   Here is the code:
   //carouselContainer is the Canvas instance
   var pp:PerspectiveProjection = new PerspectiveProjection();
   pp.projectionCenter = new Point(x, y);
   carouselContainer.transform.perspectiveProjection = pp;
   //end of code.
  
   Thanks.
  
 

  



[flexcoders] Re: Setting perspectiveProjection disable children interactivity

2008-12-29 Thread gwangdesign
Just a follow-up from myself;)

I am not able to re-compile my existing code using Gumbo sdk since all
the code that tries to get/set UIComponent.transform seems to be
broken on re-compile.

For example:

I got:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
for v3 = items[id].transform.matrix3D.decompose();

In Halo (sdk 3.2), as long as you set UIComponent.z or
UIComponent.rotationX/rotationY, you will get the Transform object
without any problem.
 
--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:

 Hi,
 
 This is a Flex project (3.2) complied to target FP10, which utilizes
 the 3D API. Inside a Canvas object, I add whole bunch of Buttons which
 are laid out in a 3D carousel fashion. The problem is once I set the
 projectionCenter property of the Canvas, all the Button instances
 inside the Canvas stop taking any mouse interaction (including hover
 highlight, tooltips, click events, etc.), while everything else seems
 to be working fine.
 
 Is this the expected behavior or a bug?
 
 Here is the code:
 //carouselContainer is the Canvas instance
 var pp:PerspectiveProjection = new PerspectiveProjection();
 pp.projectionCenter = new Point(x, y);
 carouselContainer.transform.perspectiveProjection = pp;
 //end of code.
 
 Thanks.





[flexcoders] Re: Setting perspectiveProjection disable children interactivity

2008-12-29 Thread gwangdesign
Okay. So, okay. Here I am again. I just got a stripped down version of
my code working on Gumbo but not sdk 3.2. In the following code, the
Button instance maintains its interactivity (hover, tooltip, gets
click event). If the same code gets complied to sdk 3.2, the Button
looses hover/tooltip and doesn't take the click event) 

?xml version=1.0 encoding=utf-8?
Application xmlns=http://ns.adobe.com/mxml/2009; layout=absolute
width=800 height=600 creationComplete=initApp();
Script
![CDATA[
import mx.controls.Button;
import flash.geom.PerspectiveProjection;

private function initApp():void
{
var btn:Button = new Button();
btn.label = hello world;
btn.toolTip = This is the secret ninja!;
btn.addEventListener(MouseEvent.CLICK,
function(event:MouseEvent):void{trace(Button(event.currentTarget).label+
is clicked!);}); 
homeBx.addChild(btn);
setPPCenter(0, 0);
}
private function setPPCenter(x:Number, y:Number):void
{
var pp:PerspectiveProjection = new 
PerspectiveProjection();
pp.projectionCenter = new Point(x, y);
homeBx.transform.perspectiveProjection = pp;
}
]]
/Script

Canvas id=homeBx x=400 y=300 z=0 clipContent=false/

/Application
 
--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:

 Just a follow-up from myself;)
 
 I am not able to re-compile my existing code using Gumbo sdk since all
 the code that tries to get/set UIComponent.transform seems to be
 broken on re-compile.
 
 For example:
 
 I got:
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 for v3 = items[id].transform.matrix3D.decompose();
 
 In Halo (sdk 3.2), as long as you set UIComponent.z or
 UIComponent.rotationX/rotationY, you will get the Transform object
 without any problem.
  
 --- In flexcoders@yahoogroups.com, gwangdesign gwangdesign@ wrote:
 
  Hi,
  
  This is a Flex project (3.2) complied to target FP10, which utilizes
  the 3D API. Inside a Canvas object, I add whole bunch of Buttons which
  are laid out in a 3D carousel fashion. The problem is once I set the
  projectionCenter property of the Canvas, all the Button instances
  inside the Canvas stop taking any mouse interaction (including hover
  highlight, tooltips, click events, etc.), while everything else seems
  to be working fine.
  
  Is this the expected behavior or a bug?
  
  Here is the code:
  //carouselContainer is the Canvas instance
  var pp:PerspectiveProjection = new PerspectiveProjection();
  pp.projectionCenter = new Point(x, y);
  carouselContainer.transform.perspectiveProjection = pp;
  //end of code.
  
  Thanks.