How to !not make a cropped pattern element in the whole background fill

So with alot of reading and help i did manage to bild a background filled with pattern emelent ,but whhen i resize it ,it is croped.What i mean is
the pattern element is this and its a simple bitmap with the name of "Box"
and when i fill the background with this element test the FLA file and drag the corner of the SWF window (i am making it bigger ), it crops the  last pattern element in in every Row and Column.Just like in this picture
so how do i not crop it ? and make it as the 2nd resized image (the one with the red tick,the one with the "YES").
the problem is that i re- scale the stage so somethimes its 400-500 and other its 1000 to 400 and that is why i use the
matrix.scale(1.1, 1.1);
(those numbers will be a variable that will change as the stage size changes)
i have this code in the MainClass_Test class (the document class)
        import flash.display.Sprite;
          import flash.display.Bitmap;
          import flash.display.BitmapData;
          public class MainClass_Test extends Sprite {
                    private var bg1:CreateRow_Col = new CreateRow_Col();
                    public function MainClass_Test() {
                              bg1.x = 0;
                              addChild(bg1);
                              trace(numChildren)
and this in the CreateRow_Col class
        import flash.display.Sprite;
          import flash.events.Event;
          import flash.geom.Matrix;
          public class CreateRow_Col extends Sprite {
                    public function CreateRow_Col() {
                              addEventListener(Event.ADDED_TO_STAGE, zzz);
                    private function zzz(e:Event):void {
                              removeEventListener(Event.ADDED_TO_STAGE, zzz);
                              var  matrix:Matrix = new Matrix()
                              matrix.scale(1.1, 1.1);
                              graphics.beginBitmapFill(new Box(), matrix, true, false);
                              graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
                              graphics.endFill();
i did try it with adding the new Box().width and new Box().height but that only expands the area that the background will spread.
I did something like this with a wlile loop > and adding the pattern element to the stage and moving it until the patternElement.x < stage.stageWidth + patternElement.width,
http://forums.adobe.com/message/5649061#5649061
but this creates to many objects on the stage and i dont want that.

ok i found i way to do what i want but when i scale the image backgroud to fit exactly the screen it doesnt consider the scale of the object I am applying before that .
What i mean > when i do this  and comment the _mesh.ScaleX and Y
var ScaleX:Number = 1
var ScaleY:Number = 3
/*_mesh.scaleX = stageW / background_W;
                              _mesh.scaleY = stageH / background_H;*/
i have 2 rows like it must do ,cause ill have different scaleX and Y
but when i uncomment the _mesh.ScaleX and Y i dont get the 2 rows fit in the entire scree like i want , I get 5 rows (they are purfectly sized to fit the stage.stageWidth or Height - what i want but not allways five).And even worse when i change the scale to any number like .5 or 51 or 501 it just doesnt care >> i always get 5 rows.
i have this in the CreateRow_Col class as code
private var _mesh:Shape = new Shape();
                    private var _box:BitmapData = new Box();
                    public function CreateRow_Col() {
                              addEventListener(Event.ADDED_TO_STAGE, zzz);
                    private function zzz(e:Event):void {
                              removeEventListener(Event.ADDED_TO_STAGE, zzz);
                              var stageW:Number = stage.stageWidth
                              var stageH:Number = stage.stageHeight
                              var elementW = _box.width
                              var elementH = _box.height
                              var numberElements_W = Math.ceil(stageW / elementW)
                              var numberElements_H = Math.ceil(stageH / elementH)
                              var ScaleX:Number = 1
                              var ScaleY:Number = 51
                              var background_W = numberElements_W * elementW * ScaleX
                              var background_H = numberElements_H * elementH * ScaleY
                              //trace(background_W + " = "+ numberElements_W + " * " + elementW)
                              var  matrix:Matrix = new Matrix()
                              matrix.scale(ScaleX,ScaleY);
                              _mesh.graphics.beginBitmapFill(_box, matrix, true, true);
                              _mesh.graphics.drawRect(0, 0, background_W, background_H);
                              _mesh.graphics.endFill();
                              _mesh.x = _mesh.y = 0;
                              _mesh.scaleX = stageW / background_W;
                              _mesh.scaleY = stageH / background_H;
                              trace(stageH / background_H)
                              addChild(_mesh);
how can i fix this

Similar Messages

  • In Cover Flow, a compilation album shows different covers for each song.  How do I make it show one cover for the whole album?

    In Cover Flow, a compilation album shows different covers for each song.  How do I make it show one cover for the whole album?

    Also in the first page of Get Info for all tracks set the Album Artist to be Various Artists.
    If you select all the tracks and right click to get info then you can do all the tracks in one go

  • In elements 11 how do I make a finished movie return to the start menu?

    In Elements 11 how do I make a finished movie return to the start menu?

    Maud23
    I just got through a run through of your issue using Premiere Elements 8.0/8.0.1 and Premiere Elements 11 on Windows 7 64 bit and my TV DVD player.
    Whether it was Premiere Elements 8.0/8.0.1 or Premiere Elements 11 with or without menu markers on the project's Timeline, the DVD-VIDEO on DVD disc produced played back the same on my TV DVD Player.
    Results...
    No disc menus and with or without scene markers on the Timeline
    Timeline - color matte - jpg 1, jpg 2, jpg3, jpg 4, jp5
    Hitting Play, played back was from the color matte to the jp5 and then back to the DVD player logo, not the color matte.
    If I applied a disc menu (just main menu page, no scene markers on the Timeline)
    Timeline - color matte - jpg1, jpg2, jpg3, jpg4, jp5
    The main menu would automatically appear. When I hit Play (only option since no scene markers/no Scene Selection button on the main menu), the playback would start at the color matte, continue to jpg5, and then return to the main menu page, not the DVD player logo nor the color matte.
    Again, it did not matter if the DVD-VIDEO described above was created in version 8.0/8.0.1 or 11, same results.
    I did not explore fully TV DVD settings to determine if answers could be found on the TV DVD player side of things. I have not found them.
    Could you elaborate on what you wrote
    At the start I chose to use a single slide from the Elements 11 menu selection.
    Are you saying that whatever you did there was consistent with you getting what you wanted when you did that but used version 8.0/8.0.1 instead of 11? From what you wrote, I am wondering if what you did was to apply just the main menu of a disc menu to the project to get what you wanted just like I did in my road testing of the issue tonight.
    We will be watching for further details.
    Thank you.
    ATR

  • How do I make a hands free call with the iphone 4s?

    How do I make a hands free call with the iphone 4s?  I have a bluetooth car device and when I try to talk through it (as I did with my old phone) to call someone it does not work.  so far only hte last person called is redialed.

    That is a carrier-based service. So first you have to make sure your service contract includes that feature.
    It usually also includes Call Hold. So you call the first party, put them on hold, call the second, then reactivate the first. But only if your carrier allows you to.

  • How do i make a still image (photo) fit the length of the music? I record music and want to put the tracks to a video file with a still image of my business logo in the background. Any help?

    How do I make a still image (photo) fit the length of the music? I record music and want to convert the tracks to a video file with a still image of my business logo in the background. On windows movie maker you could just select "fit to music" but this program isnt as easy to figure out! Any help?

    Double-click on the still image in the project timeline to open the Inspector. In the Inspector, adjust the duration by typing in a new duration to match the length of your music. I think the limit for a still image is 10 minutes. If you need more than this, simply drag the image into the timeline again then adjust its duration. The two images will play seamlessly (no gap will be visible).
    See this iMovie Help topic:
    http://help.apple.com/imovie/#mov3a883915
    You can achieve more precision when entering durations by changing a preference in the menu item iMovie Preferences. Check (tick) the preference for Show Time As HH:MM:SS:frames. This will enable you to enter the duration of stills down to the frame level, rather than full seconds (NTSC is 30 frames per second; PAL is 25 fps). When entering times, type a colon between each time segment, such as 2:50:15, which represents 2 minutes 50 seconds and 15 frames. For 5 seconds 20 frames you would enter 5:20 and so forth.
    Note that the music will only run to the length of the video in the timeline (in your case, the still images). So, after increasing the stills duration you will need to drag the end of the music track as far as required. The stills can be dragged inwards to reduce the duration if necessary.
    John
    Message was edited by: John Cogdell - added Note

  • How can I Make just one color pop and the rest a black and white photo??

    How can I make just one color pop and the rest of the photo black and white?? I'm using iphoto...

    3rd party image editors like Photoshop Elements for Mac can do it:
    Click to play video screenshot
    Or use it to keep an object in color and the rest B/W.
    Click to view full size
    OT

  • How can I make signature darker when I print the report?

    I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report?
    I used file link and OLE, both did't make it.
    Thanks.

    No way to do it directly in the report. You need to work with signature image file using any graphic software to increase its contrast. The easiest probably would be to use Paintbrush and change the image to black-and-white, then save back as jpeg file.

  • How do I make my apple id connected to the app store?

    I got my sister's ipod touch. I have gone to settings and logged off her apple id account, and logged onto mine. Now, when I went to update my apps in the app store, they asked for the password to my sister's apple id. How do I make my apple id connected to the app store?

    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.

    Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.
    no firewall at all, in win 8.1, turned it off for all networks
    ftp and publish works just fine

    Hi,
    Please take a look at this post : Re: Adobe Muse - Preview Failed
    Regards,
    Aish

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • How can I make a fade out effect at the end of the song in garageband for iPad?

    I want to made this effect but honestly I have no idea about what I have to do. u.u Please help.

    ClaudioWalrus wrote:
    How can I make a fade out effect at the end of the song in garageband for iPad?
    GB for iPad doesn't have volume automation, you'd need to import the project into GB on a Mac to create the fade with a volume curve.
    as an alt, finish your song and export the audio file, then import the audio file in an audio editor and create a volume fade with that:
    http://www.bulletsandbones.com/GB/GBFAQ.html#audioeditors
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    Edit > Attachments > Insert Attachments at End of Message. If a new message is the active window, the option applies only to that message. If you don't have a new message open, then the option becomes Always Insert Attachments at End of Message.

  • I had an iMac with Snow Leopard 10.6.8, I  downloaded and installed Lion, did not make me any questions. After the reboot I get this fatal error: Panic(cpu 0 ......) Kernel trap ......

    I had an iMac with Snow Leopard 10.6.8, I  downloaded and installed Lion, did not make me any questions. After the reboot I get this fatal error: Panic(cpu 0 ......) Kernel trap ......

    Please post the Kernel Panic report. You will find it at /Library/Logs/DiagnosticReports  per
    http://support.apple.com/kb/ht2546
    When we look at the KP report we may find some clues why it is occuring.

  • How can i make voiceover read paragraphs than reading the entire page

    how can i make voiceover read paragraphs than reading the entire page of an ebook

    If you are using rectangle as layer or accordion menu then you can use 100% width for these page items.
    In control strip options , when you select the rectangle you can view 100% width button which would make it browser width.
    http://tv.adobe.com/watch/muse-feature-tour/muse-design-for-flexible-browser-width/
    Thanks,
    Sanjit

  • EDiscovery_SharePoint 2013_After a set of content is placed on hold in a location, how do I make sure that anything added to the same location

    Hi everyone,
    After a set of content is placed on hold in a location, how do I make sure that anything added to the same location,that meets the filter (e.g. keyword) gets added to the hold automatically ?
    Right now the only way I can do this is to take off the hold ,re-apply the filter to the source and then enable the hold. That isn't sustainable.

    @arcycapa,
    If you have a Mac, you can download iDentify2 (http://identify2.arrmihardies.com/). It is free. You can use that change or set your contentRating. If you are on Windows, there is a commercial tool called MetaX. or download a free command line tool called AtomicParsley from (https://bitbucket.org/wez/atomicparsley). Unzip the file and run this command (AtomicParsley "C:/Users/Home Videos/name of the file.mp4" --contentRating R) from the DOS prompt without the parenthesis. Please keep in mind the forward slash in the path name listed above. This would generate a temp file. You can rename the temp file to the original file name. Just a word of caution, please make a copy of your original file somewhere. Just in case.
    Shekhar.

Maybe you are looking for

  • How can I change the VAT number in my account?

    I want to change my VAT number in my account, how can I change it?

  • Missing semicolon (;) at end of SQL statement

    I'm getting this error on a form in which I'm trying to upload multiple files as well as populate a database with information about them all in one query. In addition, not every file field will be used every time the form is submitted, so I have some

  • Not authenticated from external ldap in a cluster

    I am having trouble getting authenticated from an Iplanet LDAP, when the weblogic is configured in a Cluster. -I can authenticate with Embedded LDAP domain wide -I can authenticate on the external LDAP if I send the request to Admin server Here is my

  • A few questions before buying a spectre x360

    Hi I'm considering buying a 13" Spextre x360 once Win10 arrives in final version -  but have a few questions before going ahead. Mostly looking into the 4041no (i'm from Denmark) - or similar configuration. I need a configuration with at least 500 GB

  • Replacing linked image

    Hi everybody, well, after having had to dive into InDesign CS2 plugin development a while ago, there's on most likely rather complicated thing that I haven't yet been able to solve myself. Probably someone here has a tip for me. So, basically, my plu