How to make ns:Image tile or repeat?

How can one make the ns:Image be tileable or have it repeat over and over again in the area provided?

So I have devised a not so clever way to do this but I haven't worked out all the kinks yet and I need help from all of you
Here's the plan:
1) Have a DataGroup inside the are where you want to tile an ns:Image
2) Enable theclipAndEnableScrolling on the DataGroup
3) Feed a dynamically generated ArrayCollection which has a reference to the same image repeated enough times so as to cause a horizontal and vertical overflow.
4) Apply a TileLayout to the DataGroup
5) And hopefully we get something that tile dynamically loaded images.
The problem right now is that I also need to set the requestedColumnCount on TileLayout to make sure that I ask it to show more columns than it respectably can, therefore, causing the clipping to happen horizontally (vertically is already working) for the tiled image as well.
a) Setting requestedColumnCount="2" (static binding) works but I don't want to hardcode that as it may be a diff # for diff size images.
b) So I have requestedColumnCount="{(dataGroup.width / image1.width) + 1}" but even though I can see the dynamically calculated number "2" being  being set on TileLayout.as when I step through it in debug mode ... it doesn't have the same effect as the static binding any ideas?
Here's the unfinished and rather hard-coded proof-of-concept source:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo"
    height="100%"
    xmlns:ns="library://ns.adobe.com/flex/mx">
    <s:HGroup height="100%">
        <s:DataGroup
            id="dataGroup"
            width="700"
            height="140"
            clipAndEnableScrolling="true"
            >
            <s:ArrayCollection id="images">
                <!-- 502 x 72 image-->
                <ns:Image id="image1" source="images/top_banner.png" scaleContent="false"/>
                <ns:Image source="images/top_banner.png" scaleContent="false"/>
                <ns:Image source="images/top_banner.png" scaleContent="false"/>
                <ns:Image source="images/top_banner.png" scaleContent="false"/>
            </s:ArrayCollection>
            <s:layout>
                <!--<s:TileLayout verticalGap="0" horizontalGap="0" requestedColumnCount="2"/>-->
                <s:TileLayout
                    id="tileLayout"
                    verticalGap="0"
                    horizontalGap="0"
                    requestedColumnCount="{(dataGroup.width / image1.width) + 1}"
                />
            </s:layout>
        </s:DataGroup>
        <s:Label text="{(dataGroup.width / image1.width) + 1}" />
    </s:HGroup>
</s:Application>

Similar Messages

  • How to make keynote images full screen?

    Question:  how to make keynote images full screen?  I just noticed. after many successful full screen shows with Keynote 09  5.1.1 that I am no longer seeing the show full screen, at 1280, but only using the center part of my macbook pro 13 inch screen (which will mirror just like that on the projection screen, as far as I know).  Did I hit a setting I do not know about to keep the images so small?
      Thanks

    Keynote  >  Preferences  >  Slideshow:    Scale slides to fit display

  • How to make mirror image on officejet pro 8600

    how to make mirror image on officejet pro 8600

    Hi,
    You can not make mirror images with printers but you can print mirror images on printers. This is how to print mirror images on a normal printer:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=bpu02032&lc=en&product=61561
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to make slide images with Dreamweaver CS6?

    How to make slide images with Dreamweaver CS6? Please teach me.

    Hello
    in addition to Jon's hint, I'll send you some links to nice sliders (have fun with the different representations ):
    http://sandbox.scriptiny.com/javascript-slideshow/
    http://jquery.malsup.com/cycle/
    http://wowslider.com/best-jquery-slider-crystal-linear-demo.html
    http://www.jcoverflip.com/demo
    http://www.jacksasylum.eu/ContentFlow/
    http://addyosmani.com/blog/jqueryuicoverflow/
    You only need to use the source code to implant these shows there where you want. In my eyes it would be the best that you use first a very new and blank DW file to perform (maybe in LiveView) the one or the other.
    Hans-Günter

  • How to make background image editable in a template

    I have built a template and would like to make the background
    image editable, but not the rest of the settings in the body style.
    (I'm not sure of my terminology yet.) The background image is
    currently set in the locked part of the page. I've tried to insert
    an editable region in the html code, as I cannot get to the
    background image by clicking on it or selecting on the Design page.
    But I am not allowed to change the code in this way.
    What is the best way to do this? I'm not sure how to make a
    div of this one setting. Or even if that is what is needed.
    Thanks for any suggestions.

    So to give a different background image to different pages using CSS.
    Create a CSS file in your Dreamweaver site.
    Link it to your pages.(in your head tag like so: <link href="path/to/stylesheet.css" rel="stylesheet" type="text/css" />)
    In your HTML code find the body tag and give it an id (like so: <body id="myUniqueID">)
    In your stylesheet write the following code:
    #myUniqueID{
    background: #color, url("path/to/image.jpeg") repeat);
    And now extrapolate the above steps and code to your other pages and voila, you now have different background images for your different pages.
    To learn more about CSS - visit your local web search engine.
    To see the power of CSS, check out http://csszengarden.com/ where the exact same HTML file is styled by different CSS stylesheets.

  • How to make the images show up on a linked file in Muse?

    I am wondering how to get my images to show up on the linked files in Muse.  Basically, in Muse, I have a page that links to other pages I designed in Dreamweaver.  I put the images in the image folder and when I upload the site, the page links to the Dreamweaver page ok but the images are missing.  This is a vital part of the site.  Any suggestions?

    If you made the pages with Dreamweaver then they should be on your system some place and you could make a "dreamweaver" folder inside your Muse site and upload the pages to that folder using the upload files option... see this thread talks about sound files but almost any file can be imported to muse
    I need a recommendation for a slick way to embed audio
    Another option is to link across to an online resource using the built in muse html editor but that has pit falls because once you link yourself outside the site you also lose some control of the content;
    For an example of this have a look at an old demo page I made http://chec-garry2.businesscatalyst.com/index.html
    When you click on the Brahminy Kite bird you are looking at what used to be called an Iframe but the problem of control is highlighted when you click the Blue Wren and sometimes get pop up adds… I could import the Blue Wren page into my Muse site to fix this issue and in your case that’s a good option but I didn’t because I don’t have copyright over that pages contents and didn’t want to steal someone else’s work.
    p.s. if you have got a demo of the  website/ pages online someplace that would help us see your problem.

  • How to make an Image in Adobe Muse  100% height ?

    100% width, it's ok; but I don't find how to make a 100% height image (wich follows my browser height)?
    I work with adobe Muse CC 2014
    thanks !

    You can use the image as browser fill and then set the position of image such that it remains to its position. This can be used as a workaround for using image as browser height.
    Thanks,
    Sanjit

  • DVD burned on one G4 will not open up on another. How to make an image?

    Hello,
    This is a bit of a desperate problem, I have a dvd that was created of a 1.4 hour program and burned using iDVD3.0.1 on a G4 500 Mhz machine. Once the dvd is created I am able to play it on that computer using dvd player. I am running Tiger on that machine.
    Once I take that dvd over to my G4 1GHz machine also running tiger, the machine will simply not accept the dvd and keep ejecting the dvd; dvd player does not even open up in order for me to look at the video.
    The main purpose of me having to look at the dvd on the G4 1Ghz machine is to copy the dvd. Can you also briefly describe how to make a copy of a video dvd created using iDVD? I believe I have to make an image first. I cannot remember how to do that, please help. Once the image is made how do I copy that image onto a fresh dvd?
    Thanks,
    Vidur

    Hi Vidor
    first:
    I use DVD-R disks
    And Verbatim brand
    second
    iDVD 3.xx doesn't create Disk Images. Neither does iDVD 4
    (if iDVD prior HD/5 You have to add a hack to make this possibly
    named HPfurz and install it)
    Works on iDVD 4 - for iDVD 3 I don't know.
    Test this with Apple DVD-player - OK then burn it with iDVD
    or Toast if You have and don’t want to re-code the movie.
    third
    To make a DVD copy You need
    - a NON copy protected DVD
    - a program that can make it into a Disk Image eg. Roxio Toast™ (costs)
    - a new blanc DVD-R disk
    If Apple Disk Util tool - can make a disk image is out of my knowledg.
    Yours Bengt W

  • How to make background image scalable

    I am working on my site and I am constructing it using only
    external CSS. I am looking for a different look than I have
    previously done and want to use an actual image for the back ground
    of one of the DIV containers rather than just a color. My problem
    has been since I want my site to be fluid I need to find a way to
    have the image scale with the container. I could have sworn I saw
    how to change this attribute during some online reading I had done
    but I can not find it. Can anyone here help?
    Dara

    Scaling images is usually a bad thing - they will lose both
    aspect ratio and
    image quality when you do.
    However, if you are willing to suffer these indignities, you
    can place an
    image into a div that is 100% height/width (of whatever the
    <div> tag's
    contaner is), and make the image 100% height/width as well.
    Depending on
    the layout, that could accomplish your goals.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dara_BSI" <[email protected]> wrote in
    message
    news:f4vm0n$kei$[email protected]..
    >I am working on my site and I am constructing it using
    only external CSS. I
    >am
    > looking for a different look than I have previously done
    and want to use
    > an
    > actual image for the back ground of one of the DIV
    containers rather than
    > just
    > a color. My problem has been since I want my site to be
    fluid I need to
    > find a
    > way to have the image scale with the container. I could
    have sworn I saw
    > how to
    > change this attribute during some online reading I had
    done but I can not
    > find
    > it. Can anyone here help?
    >
    > Dara
    >

  • How to make floating image with dim background

    hi guys, i would like to know how to make a floating image and the background will dim? like for example when you click a thumbnail, the bigger version of that image will pop up on the same page and will have a dim background? can someone point me to a tutorial? any help would be appreciated, thanks in advance!

    Hi,
    If you look at the tutorials in fireworks such as changing images/rolover images you will start to get an understanding.
    Cheers

  • How to make an image of a folder.

    I want to make back up my applications folder cause I have alot of stuff that if I were to lose it I wouldn't even know what to redownload or get from where ever else, when I try to transfer the folder to my external hd it takes forever because it wants to scan everything in the package contents of every app. so I want to make an image so I can transfer real quick. and I can just restore everything a little easier. is there anything I can use to do this that came in OS X or any freeware I could get?

    It would actually be easier to make an archive of the folder. Just control-click the folder and select "Creat Archive of '<name of folder>'" But, if you still want to make an image, go do Disk Utility, and then click "New Image" at the top of the window. Next, you'll have to name the image, and select the size (everything other opttion can stay as it is). After you create the image, it will open and you'll have to drag your folders contents (or the folder) into the open image, then eject it. After that, your image is finished.
    Zeb

  • How can I make an image tile length of browser without using it as background image?

    I understand that if you use the rectangle tool and stretch it to the edge of the page, triggerring the red margin, the tiled image is supposed to stretch the length of the browser. Although this works for width, tiling horizontally, for some reason, it doesn't work for length, tiling vertically. When I preview my work in browser, the tiled image doesn't extend along with the footer as I scroll down the page.
    When I use the image as background fill and tile it, then it works, but I need to use a different image for the background.

    Hi
    As you have mentioned you can either use browser fill with tile fitting or design the browser background image outside of Muse using any image editor like Photoshop and then use as browser fill which would include both images the one you want to use as background image and the one that you want to use as Tile on page section.
    Thanks,
    Sanjit

  • How to make this image compatible as a laser cut file by changing stroke colour?

    My final aim with this image is to make it compatible as a laser cut raster engrave design, so the laser cutter will fill the black areas or white (either would be fine). If this is not possible then even as a laser cut outline would be suitable
    This is how the image will look when in Illustrator. however when I use the preview screen (ctrl+y) it creates an outline. This is how the laser cutter will read the image which is why it is very important the preview image is is what i would expect the final outcome to be.
    As a raster the laser cutter requires the stroke line to be blue r:0 g:0 B:255. Currently I cannot edit the colour, yet I can change the stroke weight. Also how I would I fill the engraved areas as a stroke? At the moment when I try converting the stroke to blue it turns grey.
    I am also unsure as to how I would make this feasible even to be cut out when I cannot change the stroke colour to red. This is required for laser cut designs as the laser cutter reads red lines to be cut.
    I can usually change stroke colours easily so I assume this is due to the fact that I have brought this file through from Photoshop so it is not yet fullu editable. I have used the live trace and live paint function in illustrator so far.
    Any help would be appreciated

    You need to expand the artwork and convert the strokes to genuine outlines to in turn be able to apply anotehr thin stroke to them again...
    Mylenium

  • How do make dynamic images ?

    Hi,
    I want to display dynamic images ? like if i want to design a a meter showing CPU temperature, how can i do that? here is one image example on this website..
    http://images.google.com/imgres?imgurl=http://www.snapstream.com/images/blog/godzilla/overheating_max_cpu_tn.jpg&imgrefurl=http://blogs.snapstream.com/2006/01/18/godzilla-pvr/&h=516&w=683&sz=80&hl=en&start=3&tbnid=huDY6gDdtS_o-M:&tbnh=105&tbnw=139&prev=/images%3Fq%3DCPU%2Btemperature%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG
    Am I supposed to use Swing? are there any online examples? plz help me..i need to do it ASAP. I posted the same thread in Java programming forum also, but something stupid comes up..some porno foto comes up when i open up the thread..so had to make another thread
    Anyways, I will wait for the reply...thanks in advance

    http://forum.java.sun.com/thread.jspa?threadID=5184236&tstart=0
    Don't double post! Use link above to make replies.

  • How to make moving image in photoshop?

    Hello,guy's i am the webmaster of  my website i want to make images which move like ads in google.Tell How i can make that in photoshop

    Are you talking about an animated GIF or Flash ?  What version of Photoshop, and do you have other Adobe products?
    http://99designs.com/designer-blog/2013/02/28/create-an-animated-gif-in-flash-and-photosho p-cs5/

Maybe you are looking for