No worries Hans

I have got my head around it now

http://www.mediakitchen.co.uk/slider.html

Just need to code the sliding bit now

Cheers

Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hans
Wichman
Sent: 24 November 2005 19:10
To: Flashcoders mailing list; Flashcoders mailing list
Subject: RE: [Flashcoders] Cutting an image up into tiles using masks


Sorry paul, i was wrong, apparently duplicating clips with drawn code is
possible.
Somehow i tried this in a project sometime ago and it failed, but still...
loaded images wont.. im sure.. really ;))
And you are right the mask cant be shared as well, so you have to duplicate
the mask as well.

greetz
Hans


At 05:52 PM 11/24/2005, Paul Steven wrote:
>Sorry I missed a couple of lines of code
>
>But if you cut and paste this into a new flash movie, it will create a 4 by
>4 grid of tiles. Each tile being drawn using the drawing API
>
>Tile_Size = 55;
>Number_Of_Rows = 4;
>Number_Of_Columns = 4;
>
>// ------------------------------------------
>// Create Tile and fill it in with solid fill
>// ------------------------------------------
>
>createEmptyMovieClip("tile_mc", 1);
>
>tile_mc.moveTo(0,0);
>
>tile_mc.beginFill(0xFF0000);
>tile_mc.lineTo(Tile_Size,0);
>tile_mc.lineTo(Tile_Size,Tile_Size);
>tile_mc.lineTo(0,Tile_Size);
>tile_mc.lineTo(0,0);
>tile_mc.endFill();
>
>Tile_ID = 1;
>
>// ------------------------
>// Create the grid of tiles
>// ------------------------
>
>for (var vRow_Index = 1; vRow_Index < Number_Of_Rows+1; vRow_Index++) {
>
>         for (var vColumn_Index = 1; vColumn_Index < Number_Of_Columns+1;
>vColumn_Index++) {
>
>
>                 var vClip_Ref = tile_mc.duplicateMovieClip("tile" +
Tile_ID +
>"_mc",100+Tile_ID);
>
>                 tile_mc._x = (vColumn_Index - 1) * Tile_Size;
>                 tile_mc._y = (vRow_Index - 1) * Tile_Size;
>
>                 Tile_ID++;
>
>         }
>
>}
>
>_______________________________________________
>Flashcoders mailing list
>[email protected]
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to