RE: [Flashcoders] Infinitely Looping Image

2010-04-27 Thread Mendelsohn, Michael
Hi list... I thought I'd share code that generates a sprite displaying neverending cloud movement with bitmap data, using perlin noise. - Michael M. package { import flash.display.Sprite; import flash.display.Bitmap; import flash.display.BitmapData; import flash.

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
- Original Message > From: Jack Doyle > To: Flash Coders List > Sent: Mon, April 26, 2010 12:36:45 PM > Subject: RE: [Flashcoders] Infinitely Looping Image > > You're mixing Tween and TweenLite code. You've got an event listener set > up I thought

RE: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread Jack Doyle
AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Infinitely Looping Image Hi; I would like to have a background image of clouds loop infinitely.Here's my code: function BigPic():void { parent_container2 = new MovieClip(); var square:Sprite

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
From: jonathan howe To: Flash Coders List Sent: Mon, April 26, 2010 10:17:10 AM Subject: Re: [Flashcoders] Infinitely Looping Image Hi, John, The first reference to "cloudTween" I see is here: cloudTween.addEventListener(TweenEvent.MOTION_FINISH, restartAnimation); So I'm gu

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread Hans Wichman
Hi John, I've just been dabbling in the same sort of thing, but basically just using bitmapfill, it's very simple, check this out: http://www.innerdrivestudios.com/blog/articles/actionscript-3/gfx-actionscript-3-articles/wrapping-bitmapdata-in-actionscript-3 And an application of the principle: h

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread jonathan howe
Hi, John, The first reference to "cloudTween" I see is here: cloudTween.addEventListener(TweenEvent.MOTION_FINISH, restartAnimation); So I'm guessing you need to declare and assign that object before you try attaching an event listener to it. In the future, the quality of the feedback you'll ge

[Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
Hi; I would like to have a background image of clouds loop infinitely.Here's my code: function BigPic():void { parent_container2 = new MovieClip(); var square:Sprite = new Sprite(); parent_container2.mask = square; addChild(square)