Jump to content
Search Community

waley

Members
  • Posts

    6
  • Joined

  • Last visited

waley's Achievements

0

Reputation

  1. thank for helping ,I have done it. the fact,I mean I use sprite, It is OK.but when it is a movieclip,i need to do this. first I draw a ball named sprite or another name, I change it as a movieclip. second I chose the ball ,Linkage properties,Export for ActionScript ,fill the class:sprite;the base class:flash.display.MoveClip. third I change my code ,I use "aba" take the place of "sprite",and use "Sprite" take the place of "MovieClip",then RUN it.It can be worked. although I have done it,but I know that object can be everything, why I need to do that ,or I fail? My English is poor,sorry!
  2. You might also have to import display.MovieClip to get the functionality you are asking for... or you could possibly cast the sprite as a movieclip when you need to use it like that. MovieClip(sprite) or sprite as MovieClip If you do everything the same way but with MovieClip in the place of Sprite it should work fine... I might not be understanding the question as there could be some details being lost in translation I change the word "sprite" to "MovieClip",also add a movieclip named sprite,but there is nothing happened.
  3. carl schooff ,thank you very much. the second question , I mean when it is the sprite ,I understand how to do ,but when it have to be a moveclip,I can't made the code run .
  4. 1how to add some twenning in this code? 2 then I want to change the sprite to the moveclip,how to do it? thank you for helping me. the code: package{ import flash.display.Sprite; import flash.events.MouseEvent; public class MouseEvents extends Sprite{ public function MouseEvents(){ init(); } private function init():void { var sprite:Sprite=new Sprite(); addChild(sprite); sprite.graphics.beginFill(0xff0000); sprite.graphics.drawCircle(0,0,50); sprite.graphics.endFill(); sprite.x=stage.stageWidth/2; sprite.y=stage.stageHeight/2; sprite.addEventListener(MouseEvent.CLICK,onMouseEvent); sprite.addEventListener(MouseEvent.DOUBLE_CLICK,onMouseEvent); sprite.addEventListener(MouseEvent.MOUSE_DOWN,onMouseEvent); sprite.addEventListener(MouseEvent.MOUSE_UP,onMouseEvent); sprite.addEventListener(MouseEvent.MOUSE_OVER,onMouseEvent); sprite.addEventListener(MouseEvent.MOUSE_WHEEL,onMouseEvent); sprite.addEventListener(MouseEvent.ROLL_OUT,onMouseEvent); sprite.addEventListener(MouseEvent.ROLL_OVER,onMouseEvent); } public function onMouseEvent(event:MouseEvent):void { trace (event.type); } } }
  5. In dynamicprops example ,I copy the code into my FLA,and make a movie which name mc ,the it can't be run,and display "unknown error ID #1215",what's matter with it?
  6. I am a new guy on tweening.I want to learn the way of making nav bar which can be move by tweenlite or tweenmax. who can sent me a basic and easy exmple including fla or class to waley_3122@qq.com please.thanks a lot.
×
×
  • Create New...