This may not be the best solution, but it'll get the job done:

// originalTile is a MovieClip on your stage you want to tile.

// Reference the stage
var r = this;

// Number of tiles so far
var i:Number = 0;

// So while they are still on the stage
while(i * originalTile_mc._width < Stage.width){
        //Duplicate your original tile
        var newTile:MovieClip =
originalTile_mc.duplicateMovieClip("newTile" + i + "_mc",
r.getNextHighestDepth());
        // Move it into position
        newTile._x = i * originalTile_mc._width;
        // Increment i
        i++;
}

Hope that helps!

-DC


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky
Hulse
Sent: Friday, March 23, 2007 4:12 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Tile a vector Graphic symbol across
stagehorizontally?

FP8: What would be the best way to tile a vector graphic symbol
horizontally across the stage using AS?

I have used beginBitmapFill() for a bitmap, and that works well... but
what would be the best way to programatically tile a graphic symbol?

Any tips/rtfm's/links would be great!

Thanks,
Cheers,
Micky

--
Wishlists: <http://snipurl.com/vrs9>
    Switch: <http://browsehappy.com/>
      BCC?: <http://snipurl.com/w6f8>
        My: <http://del.icio.us/mhulse>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to