Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:34
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flex, Air, FlashBuilder, Catalyst (Moderators: ..:: Mazhar Hasan ::.., kofi addaquay)
| | |-+  flex4 layout with papervision3d
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: flex4 layout with papervision3d  (Read 2453 times)
papachan
Systems Administrator
*****
Posts: 507


View Profile WWW
« on: 04/28/10, 09:09 »

Hello Guys, just wonder if we can associate flex4 layout with papervision3d. any ideas over there?

thanks.

Logged

kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #1 on: 04/28/10, 10:09 »

what do you mean by associate? Cheesy
Logged
papachan
Systems Administrator
*****
Posts: 507


View Profile WWW
« Reply #2 on: 04/28/10, 10:32 »

After working with a Flex4 layout. just wonder if a Camera Object from Papervision will take effect with an Object created from a flex4 layout.

thanks for your interest !
Logged

kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #3 on: 04/28/10, 12:25 »

all papervision projects i have created with flex builder 4 (flash builder) have been actionscript projects...and not using mxml containers. so i dont have to worry about containers.
thing is...the flex components all extend UIComponent... these can always container other components or objects that also extend UIComponet. if the object you are trying to add to a container doesnt follow the interface requirements for IUIComponent then it might not work.
the way i see it...your papervision object extends sprite. you should be able to add those without problems.

what results are you getting? 
Logged
papachan
Systems Administrator
*****
Posts: 507


View Profile WWW
« Reply #4 on: 04/28/10, 18:05 »

Correct, all the elements inside the flex Layout from flex4 sdk, respect the Spark layouts Hierarchy.  So you have a native 3d and can displayed elements. I am just trying using the last version of papervision3d and flex4 to adapt this layout to a view3D scene Object.



Logged

kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #5 on: 04/28/10, 22:12 »

there is an important difference when working with flex applications...where MXML and script tags are used. the framework includes a lot of abstract code that handles layout for the developer. so in order to add children to the flex display list ... you must put them inside a container...like vbox, panel, canvas, or any spark component. when programming with papervision however... you must also use the rawChildren property...like this

myCanvas.rawChildren.addChild( viewport );

this will allow you to use non native flex display objects to the flex display stack. hope this better clarifies what i am trying to say. i also hope i understood your question Smiley

K
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything