im trying use starling extension ScrollImage in my study CE, and i am a newbie flash programmer.
i want to make a game like easy slot machine, so i use ScrollImage to scroll CitrusSprite's View.
there is part of my code in gamestate:
candy = new CitrusSprite("candy", { x:200,y:200} ); var bitmap1:Bitmap = new candyImg(); var text1:Texture = Texture.fromBitmap(bitmap1); var xml1:XML = XML(new candyXml()); var atlas1:TextureAtlas = new TextureAtlas(text1, xml1); add(candy); scrollThing = new ScrollImage(60, 512, false); tile1 = scrollThing.addLayer(new ScrollTile(atlas1.getTexture("icon.dkx_000005.png"))); candy.view = scrollThing;
if there is no other try to make it scroll , it will show the picture(icon.dkx_000005.png) in 200,200.
if i override update function , it will become a gary square, even the update function is empty.
override public function update(timeDelta:Number):void { }
please can tell me where i am wrong ? or point me where i need to change my concept, thx .
btw, sorry about my poor english .