[flexcoders] Disable TitleList,DataGrid scroll on click and drag

2009-07-03 Thread michaeljonknight
TitleList and DataGrid scroll the view area when you click and drag outside of 
the control area.  In my application I would like to drag items from one 
control to another and don't want them to scroll.  Is there a way I disable 
this click-drag functionality? 

thanks,
Michael



[flexcoders] Re: set camera position for 3d content

2009-05-04 Thread michaeljonknight
that got us going in the right direction.  we ended up doing this inside of 
resize.



  public function handleResize( pEvt:Event ):void {
var scale:Number = ((stage.stageHeight > stage.stageWidth) ? 
stage.stageWidth : stage.stageHeight) / BASE_SIZE
holder.scaleX = holder.scaleY = holder.scaleZ = scale
   
   var persp : PerspectiveProjection = new PerspectiveProjection();
   persp.focalLength = 480 * scale
   persp.projectionCenter = new Point(stage.stageWidth/2, 
((stage.stageHeight > stage.stageWidth) ? stage.stageWidth : stage.stageHeight) 
/ 2);
   holder.transform.perspectiveProjection = persp;

 
// center it
holder.x = (stage.stageWidth - BASE_SIZE * scale) / 2.0
   
--- In flexcoders@yahoogroups.com, "Kenneth Sutherland" 
 wrote:
>
> It's the perspectiveProjection.
> 
> When dealing with any 3D objects in flash 10 you really need to set this
> or it will not behave as you'd expect.
> 
>  
> 
> Add the following line to your startup function
> 
> var persp : PerspectiveProjection = new PerspectiveProjection();
> 
> persp.projectionCenter = new Point(0, 0 );
> 
>  
> 
> then
> 
>   face.transform.perspectiveProjection = persp;
> 
>  
> 
>  
> 
> That will do for your example.
> 
>  
> 
> Kenneth.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of michaeljonknight
> Sent: 04 May 2009 15:09
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] set camera position for 3d content
> 
>  
> 
> 
> 
> 
> 
> 
> I am trying to solve a bug that I think is related to the camera
> position for z transforms. I want to resize my frame and keep the z
> positions in tact. However, as we scale the document the z transform
> slides from side to side. I think is because the initial camera position
> is centered in our frame. however, as we resize it the camera stays in
> the same place. 
> 
> The mxml below shows the problem. The face scales correctly when it is
> on the same z level as the rest of the face. Pressing the space bar
> moves it forward a bit and it no longer scales correctly. Seems like we
> are just missing something. 
> 
> Thanks in advance for the help.
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" 
> width="150" height="150" backgroundAlpha="0" addedToStage="startUp();" >
> 
> 
> 
> 
> 
> 
> 
> Disclaimer 
> ---
> This electronic message contains information which may be privileged and 
> confidential. The information is intended to be for the use of the 
> individual(s) or entity named above. If you are not the intended recipient, 
> be aware that any disclosure, copying, distribution or use of the contents of 
> this information is prohibited. If you have received this electronic message 
> in error, please notify us by telephone on 0131 476 6000 and delete the 
> material from your computer. 
> Registered in Scotland number: SC 172507. 
> Registered office address: Quay House 142 Commercial Street Edinburgh EH6 
> 6LB. 
> 
> This email message has been scanned for viruses by Mimecast.
> ---
>




[flexcoders] set camera position for 3d content

2009-05-04 Thread michaeljonknight
I am trying to solve a bug that I think is related to the camera position for z 
transforms.  I want to resize my frame and keep the z positions in tact.  
However, as we scale the document the z transform slides from side to side.   I 
think is because the initial camera position is centered in our frame.  
however, as we resize it the camera stays in the same place.  

The mxml below shows the problem. The face scales correctly when it is on the 
same z level as the rest of the face.  Pressing the space bar moves it forward 
a bit and it no longer scales correctly.  Seems like we are just missing 
something.  

Thanks in advance for the help.




http://www.adobe.com/2006/mxml"; layout="absolute" 
  width="150" height="150" backgroundAlpha="0" addedToStage="startUp();" >
  

  






[flexcoders] Re: difference between stage and application?

2009-04-24 Thread michaeljonknight
I've used the Flash/Flex Component Kit and add my flash controls to a Canvas.  
But the Canvas will not change size with I set it's height and width.  Is this 
expected?


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You should use the Flash/Flex Component Kit to wrap your Flash content.  
> Flash content won't work well in Flex without being wrapped in some fashion.  
> The minimum thing you could do is stick in an mx:UIComponent of the 
> appropriate size in the application and addChild the sprite to it.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of michaeljonknight
> Sent: Wednesday, April 22, 2009 2:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] difference between stage and application?
> 
> 
> 
> 
> 
> Hello,
> 
> I am somewhat new to flex. We are working on a project that uses an exported 
> swc from Flash and running into some problems getting everything we want to 
> show up layered correctly.
> 
> I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
> the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
> if I call application.addChild and the sprite to show up if I call 
> application.stage.addChild. But the menu bar popups are behind the sprite.
> 
> I don't really understand the difference between the application and the 
> stage either. Can anyone help? And is there an established way to work with 
> mx.controls and flash.display.sprite data?
> 
> thanks in advance,
> madmik3
>




[flexcoders] Re: difference between stage and application?

2009-04-23 Thread michaeljonknight
With the Flash/Flex Component Kit work for cs4?  We are making a Flash 10 
compliant swf...


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You should use the Flash/Flex Component Kit to wrap your Flash content.  
> Flash content won't work well in Flex without being wrapped in some fashion.  
> The minimum thing you could do is stick in an mx:UIComponent of the 
> appropriate size in the application and addChild the sprite to it.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of michaeljonknight
> Sent: Wednesday, April 22, 2009 2:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] difference between stage and application?
> 
> 
> 
> 
> 
> Hello,
> 
> I am somewhat new to flex. We are working on a project that uses an exported 
> swc from Flash and running into some problems getting everything we want to 
> show up layered correctly.
> 
> I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
> the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
> if I call application.addChild and the sprite to show up if I call 
> application.stage.addChild. But the menu bar popups are behind the sprite.
> 
> I don't really understand the difference between the application and the 
> stage either. Can anyone help? And is there an established way to work with 
> mx.controls and flash.display.sprite data?
> 
> thanks in advance,
> madmik3
>




[flexcoders] difference between stage and application?

2009-04-22 Thread michaeljonknight
Hello,

I am somewhat new to flex.  We are working on a project that uses an exported 
swc from Flash and running into some problems getting everything we want to 
show up layered correctly.

I want to add a menu bar (mx.controls.MenuBar) on top of some content from the 
flash swc (flash.display.Sprite).  I can only get the menu bar to show up if I 
call application.addChild and the sprite to show up if I call 
application.stage.addChild.  But the menu bar popups are behind the sprite.   

I don't really understand the difference between the application and the stage 
either.  Can anyone help?  And is there an established way to work with 
mx.controls and flash.display.sprite data?

thanks in advance,
madmik3