FLASH CS4 : Publication d'un swf à 100% + footer en flash...
Par jeanphilippe, dimanche 20 décembre 2009 à 16:55 :: Flash CS4 :: #336 :: rss
Souvent cette question revient sur Mediabox ...
Comment intégrer un "footer" sur une animation flash publiée à 100%. (très chiant à faire en html à base de div)
Le truc le plus simple est d'intégrer directement ce footer dans le flash et de publier l'animation à 100%.
Voici un exemple en code et en visuel :
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
fond.width=stage.stageWidth;
fond.height=stage.stageHeight;
avat.x=stage.stageWidth-70;
avat.y=stage.stageHeight-20;
footer.x=0;
footer.y=stage.stageHeight;
footer.barre.width=stage.stageWidth;
stage.addEventListener(Event.RESIZE, stageResized);
function stageResized(event:Event):void {
fond.width=stage.stageWidth;
fond.height=stage.stageHeight;
footer.x=0;
footer.y=stage.stageHeight;
footer.barre.width=stage.stageWidth;
avat.x=stage.stageWidth-70;
avat.y=stage.stageHeight-20;
}
le visuel ici...
les sources ici...
On recréé pas la roue, mais ça peut aider 
avec un tween ça donne ça...
Commentaires
1. Le lundi 11 janvier 2010 à 00:35, par dev007
2. Le lundi 11 janvier 2010 à 06:45, par jeanphilippe
3. Le mercredi 13 janvier 2010 à 16:53, par oxo
4. Le mercredi 13 janvier 2010 à 19:08, par jeanphilippe
5. Le jeudi 14 janvier 2010 à 11:33, par oxo
6. Le jeudi 14 janvier 2010 à 11:38, par jeanphilippe
7. Le jeudi 14 janvier 2010 à 11:49, par oxo
8. Le samedi 16 janvier 2010 à 20:32, par romano elk
9. Le dimanche 17 janvier 2010 à 19:20, par romano elk
10. Le samedi 23 janvier 2010 à 14:27, par jimmyneutron
11. Le samedi 23 janvier 2010 à 16:23, par jimmyneutron
12. Le mercredi 3 février 2010 à 17:57, par vinzdrance
13. Le mercredi 24 février 2010 à 19:51, par Pierrick
14. Le jeudi 25 février 2010 à 22:53, par nako
15. Le jeudi 4 mars 2010 à 23:30, par nako
16. Le dimanche 7 mars 2010 à 20:46, par angelusflm
17. Le vendredi 2 avril 2010 à 11:30, par Php boys
18. Le jeudi 6 mai 2010 à 23:25, par Paradoxx
19. Le vendredi 7 mai 2010 à 09:05, par yakajc
20. Le vendredi 7 mai 2010 à 09:07, par yakajc
Ajouter un commentaire