I can't take any credit for the code in the attachment but for testing purposes I created the fla as normal but with some new f8 commands in Flash MX 2004 and converted it to 8 no worries.
I've wanted to be able to do this for ages!!
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
there's a new version of the converter for windows
I've updated the converter some time ago,
the updated version is a standalone flash 8 player, and it have ability to automatically convert SWF file before opening. i guess its a bit more ease for testing FP8 content.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
I think you need to cache each individual clip.
Also if you scale or rotate the cached bitmap then I believe it gets redrawn so you lose the advantage of cacheing it.
I've not done a whole lot with cache bitmap so I am uncertain about how it works exactly, not read any documentation on it or anything, just the odd hint on some websites.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
This is the source code, it just attaches a movieClip.
Code:
var num:Number = 250;
var c:Number = 0;
var cache:Boolean = true;
var init:Object = new Object();
createItems();
onMouseDown = createItems;
function createItems()
{
for(var i:Number=0;i<num;i++)
{
init._xscale = init._yscale = 10+((100/num)*i);
mc = this.attachMovie('shape', 's'+i, i, init);
if(cache) mc.cacheAsBitmap = true;
}
c_d.gotoAndStop(Number(cache)+1);
cache = !cache;
}
this.onEnterFrame = function()
{
var mc:MovieClip, i:Number;
for(i=0;i<num;i++)
{
mc = this['s'+i];
mc._x = 275+( Math.cos((c+i)/50)*(100-i) )+( Math.cos((c+i)/40)*(Math.cos((c+i)/5)*50) );
mc._y = 200+( Math.sin((c+i)/50)*(100-i) )+( Math.sin((c+i)/60)*(Math.sin((c+i)/5)*50) );
}
c++;
}
Last edited by Lexicon; 08-16-2005 at 12:29 PM.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
I've not tried it but I presume so, give it a try.
I've not heard of any limitations in any of the f8 swf methods, but I havn't looked that hard either.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
I've not really come across a central location where everything can be found in great detail.
Having a look at the new classes supplied with MTASC helps. I think there's a few links in the posts of this forum, so it's worth going through them.
It's worth going through some Flash Blogs as they tend to have more specific examples.
If anyone has other locations where good info can be found please post it
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?