Hey thanks for this
I have been looking for a good way to do this and luckily I stumbled upon this.
I have a couple of questions and one comment.
first the questions.
1. I know this is a bit of a 'n00b' question but if I did not want to use the document class but wanted to achieve the same results with the external .as file how would I go about that?
Would it be placing script on the timeline or would I need to make a container mc for the stage and export that to the external .as file. (sorry again I have only done timeline script and am just starting with external .as now)
2. also how would you assign the layer depth to the repeating background? for example sometimes I may want to use a solid repeating background for the background itself, but then other times I would want to use a transparent png to overlay
a texture. in both scenarios I would love to have the option for placing content on top, below or maybe even in between the repeating textures.
3. Lastly as hinted at in the previous 2 questions. is it possible to have multiple repeating patterns in the same document. (again a solid for the background, then place flash content on top of the repeating background and then place a transparent
png texture over both?)
thanks again.
I also wanted to quickly point out that when I tested your file with the supplied .fla ect... (thanks for those by the way) the pattern was not "pinned" to the top left corner of the stage so when I resized the stage it was all wonky.
so what I did was I added these 2 lines to the init constructor function like so
and now it seems to be pinned to the top right corner...Code:private function init(evt:Event):void { stage.align = StageAlign.TOP_LEFT; // added this line stage.scaleMode = StageScaleMode.NO_SCALE; // added this line removeEventListener(Event.ADDED_TO_STAGE,init); stage.addEventListener(Event.RESIZE,onStageResize); createBackground(); }
not sure if that is the best way to do that
or if my above questions would render that useless but I thought I would point it out.
thanks again and if you have any ideas/ or opinions on my above questions I would be very appreciative.


LinkBack URL
About LinkBacks

Reply With Quote
)
Bookmarks