andreas
unread,Jan 6, 2012, 2:11:11 PM1/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HYPE Framework
Hey there,
This is weird... The mousefollow works in this code exporting as
normal swf... changing the publish settings to AIR and the proximity
seems to work, but not the mouseFollow. I appreciate any help. Thanks!
import hype.extended.behavior.SimpleProximity;
import hype.extended.layout.GridLayout;
import hype.framework.core.ObjectPool;
import hype.framework.display.BitmapCanvas;
var myWidth = stage.stageWidth;
var myHeight = stage.stageHeight;
var bmc:BitmapCanvas = new BitmapCanvas(myWidth, myHeight);
addChild(bmc);
var clipContainer:Sprite = new Sprite();
// myBackground.cacheAsBitmap = true;
clipContainer.cacheAsBitmap = true;
myBackground.mask = clipContainer;
var pool:ObjectPool = new ObjectPool(MyCircle, 276);
// xStart, yStart, xSpacing, ySpacing, columns
var layout:GridLayout = new GridLayout(45, 42, 25, 25, 23);
pool.onRequestObject = function(clip) {
clip.scaleX = clip.scaleY = 0.0;
layout.applyLayout(clip);
// object, property, spring, ease, min, max, radius
var sProx:SimpleProximity = new SimpleProximity(clip,
"scale", 0.9, 0.3, 0.0, 2.0, 100);
sProx.start();
clipContainer.addChild(clip);
}
pool.requestAll();
bmc.startCapture(clipContainer, false);