you need to take in account the container of the loaded swf.

look at this example, using rects top/left a la flash, may be less confusing
http://groups.google.com/group/away3d-dev/browse_thread/thread/b194a03f825f3b24/87959576ba28ced9?lnk=gst&q=clipping+from+rect+fabrice#87959576ba28ced9

--> the "SomeFreakinCoolWayToDOIt" part is what you need

Fabrice



On May 21, 2010, at 12:40 PM, claudiul25 wrote:

> i have the same issue with view and clipping
> 
> i have a swf, containing 3d, it views fine.
> 
> i load this swf into an interface, at position (300, 200). in the 3d
> swf, the view.x = this.x + 500/2 ; view.y = this.y +
> 
> 300/2; and the clipping is rectangle with min, max coordinates set
> alright(-500/2, -300/2, 500/2, 300/2)
> 
> i undestand that the view is related to stage, so that's why i set the
> view's coordinates in relation to it's parent
> 
> coordinates (the 3d swf being loaded in the interface)
> 
> when it loads, the view is being chopped without reason. and i've made
> a test to move the view inside the 3d swf, and when it
> 
> reaches a certain point it vanishes...
> 
> so... i don't know what's wrong.
> 
> p.s - i'm using the latest 3.5 version of away3d,
> 
> http://away3d-dev.googlegroups.com/web/standaloneView.JPG?gda=fKxm3kQAAAB5QKuJosc_1mpDguXir07EMcj2L-uNMksnUWJ-MPMKIFpmvsECQtIlLJsDgYJbIBNV6u9SiETdg0Q2ffAyHU-dzc4BZkLnSFWX59nr5BxGqA
> 
> http://away3d-dev.googlegroups.com/web/interfaceView.JPG?gda=hBuVWkMAAAB5QKuJosc_1mpDguXir07E1Bmvm0lrHtgwc8gnE9pkHRRGhDDWyWdU_Cn3kCu1FOMytiJ-HdGYYcPi_09pl8N7FWLveOaWjzbYnpnkpmxcWg

Reply via email to