
artlover
Members-
Posts
16 -
Joined
-
Last visited
artlover's Achievements
0
Reputation
-
[Flex] linecolor and lineThickness does not seem
artlover posted a topic in TransformManager (Flash)
TransformManager's linecolor and lineThickness does not seem to assets from SWF ? private var manager:TransformManager; private var newMc:MovieClip; private var myAreaMc:MovieClip; private function addBtn():void { newMc=new MovieClip(); newMc.graphics.beginFill(0x000000,1); newMc.graphics.drawCircle(0,0,50); newMc.graphics.endFill(); myAreaMc.addChild(newMc); manager.addItem(newMc); } private function rectSwfLoaded():void { manager=new TransformManager({allowDelete: true}); myAreaMc = myArea.content as MovieClip; } ]]> sorry for bad eng thanks for help... -
How do I select the object with a rectangle how do i tm update selection ???? im sorry bad eng AS3 codes public function build($color:uint):void { var selectionRect:Rectangle; var selectionSprite:Sprite=new Sprite(); var isMouseHeld:Boolean=false; addChild(selectionSprite); stage.addEventListener(MouseEvent.MOUSE_DOWN, SetStartPoint); stage.addEventListener(MouseEvent.CLICK, RemoveRectangle); function SetStartPoint(evt:MouseEvent):void { selectionRect=new Rectangle(stage.mouseX, stage.mouseY); isMouseHeld=true; stage.addEventListener(MouseEvent.MOUSE_UP, RemoveRectangle); stage.addEventListener(MouseEvent.MOUSE_MOVE, UpdateRectangle); } function RemoveRectangle(evt:MouseEvent):void { selectionSprite.graphics.clear(); isMouseHeld=false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, UpdateRectangle); stage.removeEventListener(MouseEvent.MOUSE_UP, RemoveRectangle); } function UpdateRectangle(evt:MouseEvent):void { selectionSprite.graphics.clear(); if (isMouseHeld) { selectionRect.width=stage.mouseX - selectionRect.x; selectionRect.height=stage.mouseY - selectionRect.y; selectionSprite.graphics.beginFill($color, .1); selectionSprite.graphics.lineStyle(2, $color, .5); selectionSprite.graphics.drawRect(selectionRect.x, selectionRect.y, selectionRect.width, selectionRect.height); selectionSprite.graphics.endFill(); CheckForSelection(); } } function CheckForSelection():void { for (var i:int=0;i { if (stage.hitTestObject(selectionSprite)) { ------ ?????? ------ } else { } } } } flex root codes
-
(horizontal or vertical) lockposition ?
artlover replied to artlover's topic in TransformManager (Flash)
ok Jack Thanks... -
(horizontal or vertical) lockposition ?
artlover replied to artlover's topic in TransformManager (Flash)
thanks Jack Is it possible make objects snap to a grid ? -
hi all, Is it possible to lock only the horizontal(or vertical) position? thanks, best regards...
-
Thanks greensock
-
hi, Can I make Spiral Plane with Papervision3d using TweenMax like the attached picture? Which plugin should I use if possible? I'm sorry for bad eng Thank you for helping, Best regards,
-
Fullscreen Scroll with ThrowPropsPlugin and BlitMask
artlover replied to artlover's topic in GSAP (Flash)
hi, its work test but it is work in my web page one time and when it resize, it duplicate to my mc import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; import flash.geom.Rectangle; import flash.utils.getTimer; import flash.events.MouseEvent; import flash.text.*; import flash.display.*; TweenPlugin.activate([ThrowPropsPlugin,MotionBlurPlugin]); var bounds:Rectangle = new Rectangle(0, 100, stage.stageWidth, stage.stageHeight-100); var t1:uint, t2:uint, y1:Number, y2:Number; var currentPage:MovieClip=new MovieClip(); var blitMask:BlitMask= new BlitMask(currentPage, bounds.x, bounds.y, bounds.width, bounds.height, false); var mcArray:Array=new Array(); var _mc:MovieClip; for (var s:int=0; s<5; s++) { _mc=new mc(); _mc.name="_mc"+s; mcArray.push(_mc); mcArray[s].alpha=0; mcArray[s].y=100; addChild(mcArray[s]); } currentPage=mcArray[0]; currentPage.alpha=1; scrollMc.scrollButton.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { TweenLite.killTweensOf(scrollMc.scrollButton); y1 = y2 = scrollMc.scrollButton.y; t1 = t2 = getTimer(); scrollMc.scrollButton.startDrag(false, new Rectangle(0, 0, 0, scrollMc.bg.height-scrollMc.scrollButton.height)); scrollMc.scrollButton.addEventListener(Event.ENTER_FRAME, enterFrameHandler); scrollMc.scrollButton.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); } function enterFrameHandler(event:Event):void { y2 = y1; t2 = t1; y1 = scrollMc.scrollButton.y; t1 = getTimer(); } function mouseUpHandler(event:MouseEvent):void { scrollMc.scrollButton.stopDrag(); scrollMc.scrollButton.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); scrollMc.scrollButton.removeEventListener(Event.ENTER_FRAME, enterFrameHandler); var time:Number = (getTimer() - t2) / 1000; var yVelocity:Number = (scrollMc.scrollButton.y - y2) / time; var yOverlap:Number = Math.max(0, scrollMc.bg.height - scrollMc.scrollButton.height); ThrowPropsPlugin.to(scrollMc.scrollButton, {throwProps:{y:{velocity:yVelocity, max:yOverlap, min:0, resistance:300}}, ease:Strong.easeOut,onUpdate:update}, 10, 0.3, 1); } function update():void { var numY:Number=-((currentPage.height-bounds.height)*(scrollMc.scrollButton.y/(scrollMc.bg.height-scrollMc.scrollButton.height))); TweenMax.to(currentPage,0,{y:numY+100, motionBlur:true}); blitMask.update(null, true); } -
Fullscreen Scroll with ThrowPropsPlugin and BlitMask
artlover replied to artlover's topic in GSAP (Flash)
hi, Thank you for your interest, i wanna make fullscreen scrollbar best regards.. -
Fullscreen Scroll with ThrowPropsPlugin and BlitMask
artlover replied to artlover's topic in GSAP (Flash)
hi i m sorry for flash version i can not tell because my English isnt good thanks for help -
hi im sick and tired help me pls thanks... best regards...
-
ok thk u very much
-
package com { ... private var queue:LoaderMax = new LoaderMax({onProgress:progressHandler,onComplete:completeHandler}); ... private function createSlide(xml:XML):void { var slideXML:XMLList = xml.Slides.children();//SSSData.xml --> Slides Child var slideLength:int = xml.Slides.children().length();//Slide Items Length for (var i:int=0; i { slideMc=new MovieClip(); slideItemType=String(slideXML. @ type) if (slideItemType == "image") { trace(i+". Item Type: Image"); queue.append( new ImageLoader(slideXML. @ path, {name:"image",alpha:1})); addChild(slideMc); slideMc.addChild(queue.content); slideArray.push(slideMc); } } queue.load(); } Error hmm how can i add to multiple images in the stage??? thanks, best regards,
-
i cant use tweenmax in this sample but i wanna use tweenmax im sorry for my english thnX
-
yes i have club tweenmax but i cant use this project hmm... how can i give motion blur to a dragging rotating object with tweenmax possible ? because i cant use to shortRotation in the drag function can you help