Cypher Posted March 12, 2009 at 04:01 AM Report Share #250080 Posted March 12, 2009 at 04:01 AM Boas, tenho um pequeno projecto (swf) dentro deste, estou a chamar para um movie clip um swf externo (swf2). Problema: se aumentar a página, o swf2 sai do sitio. Como meto o swf2 fixado sempre na mesma posição dentro de swf ??? Cumps... Link to comment Share on other sites More sharing options...
pouic Posted March 12, 2009 at 09:16 AM Report Share #250106 Posted March 12, 2009 at 09:16 AM Podes utilizar um listner para te manter o swf externo centrado //Listner para resize do stage AppListener = new Object(); AppListener.onResize = function () { resizeObjects(); } Stage.addListener(AppListener); function resizeObjects(){ obj._x = Math.round(Stage.width/2); obj._y = Math.round(Stage.height/2); } Link to comment Share on other sites More sharing options...
Cypher Posted March 12, 2009 at 03:32 PM Author Report Share #250290 Posted March 12, 2009 at 03:32 PM e obj. será o meu movie clip ?? Link to comment Share on other sites More sharing options...
pouic Posted March 13, 2009 at 12:02 PM Report Share #250493 Posted March 13, 2009 at 12:02 PM sim claro 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now