MovieClip in TileList sizing

Hello. I have created a monster and now am stuck how to get
the last part to work.
I have created a Flash ad which parses an RSS feed and
displays various nodes in 11 Movie Clips which each contain 2
dynamic text fields and 1 UILoader instance, which are then all
loaded into a Tile List.
All is working fine except that the MovieClips that are; a)
loading a jpg from the RSS (not all of them do), and, b) are
displaying below the visible height of the TileList (ie: you need
to scroll to see them), are coming in at a very reduced size. If
you scroll down and up and then down again they display just fine.
Here is a link to a proof.
http://www.canada.com/calgaryherald/webproof/600x400_proof.html
I have tried preloading the photos and the MovieClips. I
tried PreLoading the entire .swf. I tried changing the columnwidth
and the rowheight of the TileList. I am wits end.
The code is too extensive to ost here, so if anyone wants to
have a look and offer and suggestions (or just call me an idiot)
let me know and I will mail you the FLA.
Forrest

you should post you codes.. in sections ...if it is very long
.. but i think if you did not modify the scale properties... them
you might need to design it with out the use of components .... "
Make everything from scratch that way you can contract
everything.....

Similar Messages

  • Loading swf into movieclip object

    I am trying to load a swf file into a movieclip object on the
    stage. The movieclip object is sized smaller than the screen, and
    placed in the middle. I have defined a loader with:
    var myMovieClipLoader:MovieClipLoader = new
    MovieClipLoader();
    then use it like this:
    _level0.myMovieClipLoader.loadClip("moviename.swf",
    _level5.movieclipinstancename);
    (the movieclip object is used in a swf loaded in level5)
    When I load the swf like this, the swf loads at the correct
    location according to where I have placed the movieclip object,
    however it "blows up" to fill the screen from that point down and
    across, ignoring the size of the movie clip object (the loading swf
    actually expands beyond it's created size to fill the screen,
    making all the graphics and text much larger than intended). The
    actual pixel size of the swf I'm trying to load matches the size of
    the movieclip object (1024x350 in a 1280x1024 screen).
    What is the magic setting or property that will tell the
    loading swf to honor the size of the movieclip object I'm loading
    into?
    Thanks for your help!
    Barb

    Something I've been working on:
    Place the following code in a new file <your project
    folder>\as\MovieContainer.as
    Then open the properties for the symbol you want to be your
    movie container
    Set the AS 2.0 Class to as.MovieContainer and give it a name
    (I named mine 'loader').
    To load the movie, simply call:
    loader.queueSWF('my.swf');
    Hope that makes sense. Basically, it's just a self contained
    class for loading into an object on the scene. It draws a simple
    progress bar on the center of the symbol when it's loading and it
    resizes the loaded object on init to conform to the size of the
    object on the stage. Why queueSWF? Well, if it's currently loading
    a SWF, it will wait till it's finished and load a new one. The
    biggest problem right now is the progress bar, but it's fairly easy
    to remove if you don't like it. Hopefully it helps.
    If anyone else is reading this. I'm trying to figure out if I
    can load these movies into an array of movieclips. So far I've had
    no luck. If you know of a way, feel free to drop some input.

  • Rotation coordinates help

    I have no idea how to explain this. I am trying to create a
    movie that explains a bit about magnetism. I have 3 mc-s.
    The first, MC1 is static. I want to use the dimensions of
    this movie as constraints to the movement of a second movie.
    the second movie MC2 should go no higher than the top of the
    first mc or lower than the bottom of the same mc.
    The third MC3 rotates, the speed of this rotation should
    constrain how quickly/slowly MC2 moves.
    it is set up this way.
    MC1 does nothing.
    MC2 starts in the middle of MC1 and moves to the topmost
    limit
    MC3 starts to rotate
    by the time MC3 has rotated 90 deg, MC2 should be at the
    topmost limit of the boundaries of MC1
    MC 2 should then start to descend.
    By the time MC3 is at 180 deg, MC2 should be back at the
    centre
    By the time MC3 is at 270 deg MC2 should be at the bottom
    most limit of MC1
    by the time MC3 is back to 0 MC2 should be at the centre of
    MC1.
    How can I programmtically constrain these things. I can do it
    by tweening, but that's a pain in the backside and it isn't
    scalable?
    I hope this is clear.
    Thanks
    one mc that rotates around it's central axis. I have another
    mc which should go up and down

    Ok, I tried your "empty MovieClip" method, and it seems to work well. Please look at my code and see if I am doing it the most efficient way.
    These are symbols in my library:
    Clean (MovieClip) - Black stage sized rectangle to clear the buffer.
    Square (MovieClip) - Blue (100x100) Square centered on the crosshairs (so it can rotate on its center)
    // BEGIN CODE //
    var bitmap:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight,true,0xff000000);                    
    var buffer:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight,true,0xff000000);
    var image:Bitmap = new Bitmap(bitmap);
    addChild(image);
    var clean:MovieClip = new Clean();
    var container:MovieClip = new MovieClip();
    var square:MovieClip = new Square();
    container.x = stage.width/2-square.width/2;
    container.y = stage.height/2-square.width/2;
    container.addChild(square);
    square.x = container.width/2;
    square.y = container.height/2;
    addEventListener(Event.ENTER_FRAME,onEnterFrame);
    function onEnterFrame(event:Event):void {
        square.rotation+=5;
        buffer.draw(clean);
        buffer.draw(container, container.transform.matrix);
        bitmap.draw(buffer);
    // END CODE //
    A few questions I had about the code:
    1. On "var square:MovieClip = new Square();" should I keep MovieClip like I have, or use Square?
    2. If I make a Square.as file later, and have to use Square, do I retain MovieClip properties from my library symbol?
    3. For memory management, do I need to set my MovieClips to null, or anything else like that in some finishing function?
    Sorry about all the questions, I just want to get it right the first time. Thanks.

  • Sizing movieclip to fit the dynamic Textfield

    I'm adding text to a movieclip as you can see below. The text is alomost not visible because it's so small. If I don't scale the movieclip then the text becomes clipped. I basically want the movieclip to be a tight container (the same size as the textfield) for the Textfield. The below does not work. How can I do this?
    for(var i:int = 0; i < group.length; i++)
           var t:TextField = new TextField();
           t.name=i.toString();
           t.text=group[i];
           var f:MovieClip = new MovieClip();
           f.addChild(t);
           f.width = t.textWidth;
           f.height = t.textHeight;
           f.y = 50*i;
           addChild(f);

    In case anyone else is having this problem, by adding this
    t.autoSize ="left";
    it fixed it.

  • Static sized movieclips

    Let me try to explain this the best I can.
    I have a MovieClip, resizes horizontally, not vertically.
    Dyanically, using attachMovie, MovieClips are added.
    Thing is, I want these attached movie clips' background to
    resize like it's parent, as well as the content (Textboxes, but
    they don't stretch because the text isn't embedded). I'd also like
    the start of the background to ALWAYS be at 100px, and an image
    before that. Unfortunately, this isn 't working. I tried a funky
    offset with 9-slice scaling, but it always resizes as if it's one
    big image.
    Is there a way to have only part of those child images
    resize? I also noticed that using _width on the movie clip in the
    child makes it dissapear.

    Let me try to explain this the best I can.
    I have a MovieClip, resizes horizontally, not vertically.
    Dyanically, using attachMovie, MovieClips are added.
    Thing is, I want these attached movie clips' background to
    resize like it's parent, as well as the content (Textboxes, but
    they don't stretch because the text isn't embedded). I'd also like
    the start of the background to ALWAYS be at 100px, and an image
    before that. Unfortunately, this isn 't working. I tried a funky
    offset with 9-slice scaling, but it always resizes as if it's one
    big image.
    Is there a way to have only part of those child images
    resize? I also noticed that using _width on the movie clip in the
    child makes it dissapear.

  • Tilelist buffering / caching / setting up next tile not on stage?

    I've created a tilelist and attached a listener to the Event.ADDED and Event.REMOVED to it, so that I can be notified when a row within it gets added and removed, for visual effect.  The problem is that the tilelist seems to buffer rows / columns in view + 1.  This breaks the entire system.  I've a sample fla file which has the following code in,
    import example.testrow;
    function setup():void {
         for(var i:uint = 0; i < 6; i++) {
              var row:testrow = new testrow();
              setColour(row, colours[i % 3]);
              row.listIndex = i;
              myList.addEventListener(Event.ADDED, onAddRemove);
              myList.addEventListener(Event.REMOVED, onAddRemove);
              myList.addItem({source: row});
    function onAddRemove(event:Event):void {
         if(event.target is testrow) {
              trace(event.target.listIndex + ' ' + event.type);
    function setColour(row:MovieClip, colour:uint):void {
         var tempCT:ColorTransform = row.transform.colorTransform;
         tempCT.color = colour;
         row.transform.colorTransform = tempCT;
    myList.setStyle('skin', new Shape());
    myList.setRendererStyle('imagePadding', 0);
    var colours:Array = [0xFF0000, 0x00FF00, 0x0000FF];
    setup();
    This adds 6 new 'testrows' (simple movieclip containing a rectangle shape), then sets up the listeners as I've described, while also adding a 'listIndex' property to each row and changing their colour,  and also clearing all style from the TileList, so you can see clearly what's in it.  The TileList is set up very simply, with a rowCount of 3 and is vertical.
    Below can be seen by using the thumb scroller of the scrollbar, but is much clearer when using the up & down buttons.
    The problem can be seen straight away, because while only 3 should be shown, I get a trace statement from 0 to 3, ie 4 rows.  If at any stage you scroll down, it'll always be one step ahead of you, no matter how hard you try!
    I can't imagine this is the proper way it is supposed to work, with this sort of ambiguous, inconsistent lookahead.  I mean, the way it works differs completely from being at the start of the list to being at the end.  If you scroll from 0 position, to position 1, you'll get the notification '0 removed' and '4 added', 0 should have been removed, but again 4 shouldn't be added yet, it's not displayed.  If you go to the end of the list and go from position 5, to position 4, you'll see that the behaviour is totally different, No notifications at all.  This shows that flash is keeping the next item cached, or whatever, as if it's on stage, without being on stage any time it can do.
    This is very frustrating as I have been wanting a nice way to track what gets is on and off a tilelist and every other way has been just as frustrating, whereas I thought this would do it.  I initially thought it was just oddities with the sizing of the tilelist and the rows, but that's clearly not the case.  Is there *any* way to stop, or change this behaviour and have the tilelist add *only* the rows that are shown in the tilelist, rather than those rows, plus the next one?  It really doesn't seem like the best of behaviours.
    http://seadersforums.appspot.com/static/tilelist_buffer.fla

    1024x768 is 4x3.  2048x1536 is 4x3.  Both of these are current display dimensions for iPads 1-3.
    HD video (1920x1080 or 1280x720) is a 16x9 aspect ratio.
    Try putting a rectangle in a square. Unless you scale the retangle up and lose image on the sides you will not be able to properly fill the entire 4x3 display area. The easy compromise is letterboxing to ensure all of the rectangle is display in the square. The iPad is doing this with very little effort on your part.
    In FC you can create a new sequence and go into the settings and customize it to 1024x768, 2048x1536 or
    just about any other dimension. Even If you create a custom sequence at 1024 or 2048 in FC you will see the same results that the iPad is giving you with much less effort, render and conversion time (presuming your keynote workspace cannot change in dimensions or aspect ratio and you are unwilling to crop your 16x9 aspect ratio video to fill the space.) 

  • Get images into tilelist

    Hey,
    I am trying to make something that will have a list on the
    left, and a tileList on the right. When a user clicks on a list
    item, it changes the imageset lets call it, in the tileList. (eg.
    list item 1 loads imageset1 into the tile list and so forth)
    Now i have been having a few issues with this. First issue, I
    am using arrays (i think) to hold the sets of images, then when the
    list item passes the .data, the corosponding set is loaded. Well
    for one...is that how i should be doing this?
    Second issue, it seems that the images are being loaded in as
    thumbnails or something...they are about 50% the size i would say
    of the original, and thats just not on! i cant figure out why!,
    eventually - i want 2 columns of images at full size (going to be
    small banners)
    I have just been trying to piece together bits from the help
    file and such to make some hodge podge app, Im just learning!
    so...it sort of works, the first two anyway - except as i said,
    there somming through 50% the size
    *sidenote* if any of you can tell from lookig at my code
    (attached at the bottom) if i click on either the first or second
    item it loads 4 images virtically, left aligned into the tileList
    at about 50% size. and i can click back and forth between them and
    it changed the images but keeps the size and the layout. if i click
    the first or second one, then any of the others (with no code
    attatched to them) then click back on the same one again (first or
    second) 2 out of the 4 images go full sized, and they arrange
    themselved 2x2...go figure? i think it may have soething to do with
    the initCatalog being called twice? i dont know...help?
    Cheers!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="myCategories">
    <categories>
    <categories label="Zen" data="zen"/>
    <categories label="Music" data="music"/>
    <categories label="Black And White" data="black and
    white"/>
    <categories label="Flowers/Nature"
    data="flowers/nature"/>
    <categories label="Grunge" data="grunge"/>
    <categories label="Animals" data="animals"/>
    <categories label="Multicolored" data="multicolored"/>
    <categories label="Water" data="water"/>
    <categories label="Glitter/Sparkly"
    data="glitter/sparkly"/>
    <categories label="Fantasy" data="fantasy"/>
    <categories label="Textured" data="textured"/>
    <categories label="Fashion" data="fashion"/>
    <categories label="Patterns" data="patterns"/>
    <categories label="Animated" data="animated"/>
    </categories>
    </mx:Model>
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var selectedItem:Object;
    import mx.collections.*;
    import mx.controls.Image;
    private var zencatalog:ArrayCollection;
    private static var zengroup:Array = [
    "assets/group1/1.gif", "assets/group1/2.gif",
    "assets/group1/3.gif", "assets/group1/4.gif"
    private var musiccatalog:ArrayCollection;
    private static var musicgroup:Array = [
    "assets/group2/3.gif", "assets/group2/4.gif",
    "assets/group2/2.gif", "assets/group2/1.gif"
    // Initialize the HorizontalList control by setting its
    dataProvider
    // property to an ArrayCollection containing the items
    parameter.
    private function initCatalog(items:Array):void
    zencatalog = new ArrayCollection(items);
    musiccatalog = new ArrayCollection(items);
    private function load(event:Event):void{
    this.selectedItem=List(event.target).selectedItem
    switch(selectedItem.data){
    case 'zen':
    initCatalog(zengroup)
    group_List.dataProvider = zencatalog
    break;
    case 'music':
    initCatalog(musicgroup)
    group_List.dataProvider = musiccatalog
    break;
    ]]>
    </mx:Script>
    <mx:Canvas left="10" top="10" right="10" bottom="10">
    <mx:Panel y="0" width="31%" height="100%"
    layout="absolute" left="0" id="categoryview">
    <mx:List id="source" height="100%" width="100%"
    dataProvider="{myCategories.categories}" change="load(event)"/>
    </mx:Panel>
    <mx:Panel y="0" width="68%" height="100%"
    layout="absolute" right="0" title="{group_List.selectedItem.data}"
    id="catalogview">
    <mx:TileList right="0" left="0" top="0" bottom="0"
    itemRenderer="mx.controls.Image" id="group_List"
    direction="vertical" columnCount="2"/>
    </mx:Panel>
    </mx:Canvas>
    </mx:Application>

    With PSE off can you select and move the images, say to another folder or print them? If you can't , it may be some other program is interferring, such as your anti-virus. But, still why would some images select and others not?  The images could be corrupt in some way.  If you could move the folder to a memory card or CD and load them into another computer, running XP or something, and see if you could select them then.
    I don't know how they would behave in PSE.  I'm still trying to make sense out of the thing.  I had to read the PDF manual before I could figure out how to  move images from the Organizer to the Editor. Seems like there is too much emphasis on organization and not enough on editing.
    I have found Win 7 to behave strangely, anyway.
    Have you done a Google search for the problem?  There seems to be  a lot of people having trouble with PSE8
    Scroll down and read the comments at  JohnB1941 at Files not saved in organizer or version set. They are talking about PSE9,  but the comments may apply to your problem.  It seems as re-naming is creating some problems with working with the images.

  • Adding "loading" movieclip to dynamic image gallery?

    Hello again,
    I've completed my XML-driven image gallery, however upon live testing I'd realized I made a rookie mistake and not put some kind of placeholder "loading" movie clip loop while the thumbnails—and subsequent full-size images—are being loaded. The images will randomly appear when loaded and I would like to be able to insert a placeholder movie clip while they load, and swap them up with the thumbnails/images after it has been loaded. The placeholder movie clip is in my library (loadingLoop), but I'm having problems getting it to work correctly.
    Below is the original function that processes the XML and adds the thumbnail images; this is where I'm trying to insert the placeholder movie clip per XML child node (every attempt I've made just keeps throwing more errors, so I've omitted my attempts to avoid confusion), and I've attached the XML file for testing. And insight or help would be appreciated.
    //Locate the external XML file and trigger xmlLoaded when complete
    xmlLoader.load(new URLRequest("data/artGallery.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    //Load the XML and process the image locations
    function xmlLoaded(event:Event):void {
        xml = XML(event.target.data);
        //parse the nodes in the XML file
        xmlList = xml.children();
        //count the number of nodes in the XML file via XMLList
        trace(xmlList.length());
        //loop to load all of the thumbnails, based on the number of nodes in XMLList
        //"i" = every child node in the XML file
        for (var i:int = 0; i < xmlList.length(); i++) {
            //Add loadingLoop movie clip per node and wait for thumnail to load before swapping out with imageLoader thumbnail images <-- help!!
            //for every node, create a new instance to be put on stage
            imageLoader = new Loader();
            //load each thumbnail from its location per XML node's "thumb" attribute
            imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
            //position of thumbnail instances per XML node (horizontally across stage)
            imageLoader.x = i * 110 + 10;//thumbs are 100 x 100 so, +10 to the width, plus +10 from left edge
            //imageLoader.y = 10;
            //for each node in XML list, name the instance with the path to the location of the full size image
            imageLoader.name = xmlList[i].attribute("source");
            //for each node in the XML list, add a drop shadow
            imageLoader.filters = [thumbDShadow];
            //add thumbnails to stage
            addChild(imageLoader);
            dropTween = new Tween(imageLoader, "y", Bounce.easeOut, -100, 10, 1, true);
            //set up thumbnails to wait for a click to execute showPicture
            imageLoader.addEventListener(MouseEvent.CLICK, showPicture);
            //set up thumbnails to scale when rolled over
            imageLoader.addEventListener(MouseEvent.ROLL_OVER, sizeUP);

    Somehow I had a feeling this wouldn't be a copy-and-paste job for the full-size images. Sorry to be a bother. This is the showPicture function that is fired off when the thumbnail image is clicked (from our previous example). Two errors are thrown:
    When the thumnail is clicked:
    "Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/removeChild()
        at MethodInfo-51()"
    But the full-size image loads nonetheless. The second loading loop (loadingLoop2) is not removed. Below is the showPicture function:
    //Load the full-size images and place onto the stage
    function showPicture(event:MouseEvent):void {
        //add new movie clip container
        var mc2:MovieClip = new MovieClip();
        addChild(mc2);
        //clear the fullLoader—this is to help clear any full-size images that may already be on the stage (they have two options, click a new thumbnail, or close the current full-size image
        fullLoader.unload();
        //re-create the fullLoader, if there was one cleared
        fullLoader = new Loader();
        //load each full size image from its location per XML node's "source" deliniated by mc.ldr's "source" attribute
        fullLoader.load(new URLRequest(event.target.name));
        //add the loder to the container
        mc2.addChild(fullLoader);
        //create new instance of second loading loop
        mc2.fsloop = new loadingLoop2();
        //add the second loading loop to the container
        mc2.addChild(mc2.fsloop);
        //for each container, add a drop shadow
        mc2.filters = [fullDShadow];
        //set the container's position center on stage, making it the size of the loading loop until the full-size images are loaded
        mc2.x = (stage.stageWidth - mc2.fsloop.width) * 0.5;
        mc2.y = (stage.stageHeight - mc2.fsloop.height) * 0.5;
        //place container on stage
        addChild(mc2);
        //fade in each container
        fadeTween = new Tween(mc2, "alpha", None.easeNone, 0, 1, 0.5, true);
        //check to see if the image has been loaded completely—this is to make sure the image's attributes can be used to re-center on stage and remove fsloop
        fullLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, removeLoop2);
        //set field to multiline so that the <br> HTML tags can be used
        imageTextField.multiline = true;
        //add text frame for description
        imageTextField.x = 10;
        imageTextField.y = 125;
        //for each full-size image, load the description text from the XML child nodes
        for (var j:int = 0; j < xmlList.length(); j++) {
            //check to make sure that the correct full-size image matches the text node when clicked
            if (xmlList[j].attribute("source") == event.target.name) {
                //add each child node as a separate line in the same text field; added HTML tags for CSS application
                imageTextField.htmlText = "<p><span class = 'projectName'>" + xmlList[j].child("projectName") + "</span><br>"
                + "<span class = 'toolsUsed'>" + xmlList[j].child("toolsUsed") + "</span><br><br>"
                + xmlList[j].child("projText") + "<br>"
                + "<span class = 'liveURL'>" + xmlList[j].child("liveURL") + "</span></p>";
        function removeLoop2(event:Event):void {
            //re-position the container to center on stage to accomodating the full sized image
            mc2.x = (stage.stageWidth - fullLoader.width) * 0.5;
            mc2.y = (stage.stageHeight - fullLoader.height) * 0.5;
            //Add the text field
            addText();
            //hide instructional text, already on stage
            galleryInfo_mc.alpha = 0;
            //remove the full-sized loading loop
            event.target.loader.parent.removeChild(MovieClip(event.target.loader.parent).loadingLoop2 );
        //set up full-size images to "self close" by clicking on it
        mc2.addEventListener(MouseEvent.CLICK, clearStage);
    The second error gets thrown when the container is clicked and the function clearStage is executed, which does not remove the container:
    "TypeError: Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/removeChild()
        at artGallery_v1_5_fla::MainTimeline/clearStage()"
    This is the clearStage function:
    //Allow full-size image to "self close" by clikcing on it and removing the text description
    function clearStage(event:MouseEvent):void {
        //clear the fullLoader
        fullLoader.unload();
        //remove the container
        event.target.parent.removeChild(MovieClip(event.target.parent).mc2);
       //remove the text field
        removeChild(imageTextField);
        //show the instructional text that is on-stage
        galleryInfo_mc.alpha = 1;
    Help!

  • Inconsistent positioning of MovieClips

    I need a grid of display objects (50x50 pixel squares) that I
    use an AS3 script to create as a two-dimensional array. I have
    already confirmed with the AS3 forum that the code works when the
    objects displayed are not MovieClips. However, the positioning of
    MovieClips is always haphazard. There are always seemingly random
    aberrations in placement, with squares slightly overlapping each
    other here and there. I have confirmed that the sizing of the
    MovieClips are uniform.
    What's the problem with MovieClip positioning?

    it's your code that's the problem. either you're not
    positioning them correctly or you registration point is
    inconsistent.

  • TileList labels

    I'm using a TileList component on my flash project.
    I've changed the appearance of the "scrollbar" and the
    "cellrenderer" editing the movieclips
    I've found in the library under "component assets",
    but I cannot find a way to change the visualization of the
    labels attached to item.
    (something like text position or text color or no
    background).
    Anyone could give me a hint?

    I've found the way to change the text color or the font
    using:
    quote:
    tilelist.setRendererStyle("textFormat",tf);
    But I don't know how to change the position or the background
    of the "label" attached to the image.
    Anyone know how to do that?

  • MovieClip resizeing

    I have a movieClip attached to an external class file, the
    class file takes data and uses it to draw an bar chart ino the
    movieClip.
    If you re-size the movieClip and then compile everything
    displays correctly but obviously all elements in the movieClip are
    enlarged/shrunk depending on how you re-sized.
    I want to make my movieClip so that when it is resized
    certain elements stay their original size (text size, line
    thickness) and others are enlarged/shrunk to match the movieClip
    size (fill areas).
    How would i go about doing this, can it be done.
    The same as how when you re-size a component the text etc.
    stays the same size (and the position updates) but fill areas are
    enlarged/shrunk.

    Tolk,
    > I want to make my movieClip so that when it is
    > resized certain elements stay their original size
    > (text size, line thickness) and others are enlarged/
    > shrunk to match the movieClip size (fill areas).
    > How would i go about doing this, can it be done.
    You can check into 9-slice scaling, a feature new as of
    Flash 8. Search
    the phrase "About 9-slice scaling and movie clip symbols" in
    the
    documentation. Other than that, it's a matter of noting the
    clip's
    MovieClip._xscale and _yscale properties and cycling through
    to manually
    adjust nested _xscale and _yscales accordingly to compensate.
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Loader content got vanish on resize root movieclip

    Hello,
    I have made 30 dynamic movieclip and I put all these Movieclips in MainMovieclip, each movieclip loads one jpg image dynamically, when i resize root movieclip then
    all graphics got invisible. How can i resize parent movieclip, I can't resize individual loader content because there is complex thing will happen where i need to calculate x y position and height widh for individual,so that i put all movieclip in root moviclip and I resizing root movieclip.

    You likely already solved this issue...
    As I understand it, X, Y, width, and height are only read from the first frame of a loader object. Check to make sure that the content on the first frame of your object that your loading is the same size as the content of the entire object. In other words, if you have content on frame 50 that's 200 px wide in total from the registration point of x=0 y=0, and your content on frame 1 is only 100px wide, you'll need to add a transparent object on frame one (starting at x=0 y=0) that is also 200 px wide. If I understood your issue correctly, this should solve the problem. You can easily do a trace on the size of the object your loading to be sure that it's sizing correctly.

  • Scaling Movieclip

    Hoping Chris or someone can help me with this one...
    I have a background image I'm wanting to scale to the
    Stage.height and Stage.width but, keep it in proportion to itself
    as well.
    For some reason, I can not figure this out.
    Here's the code I have so far...
    quote:
    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    var stageListener:Object = new Object ();
    stageListener.onResize = positionContent;
    Stage.addListener(stageListener);
    stageW = Stage.width;
    stageH = Stage.height;
    bulbsWide = (stageW > lightbulbs._width);
    bulbsTall = (stageH > lightbulbs._height) &&
    (stageW < lightbulbs._width);
    function positionContent():Void {
    if (bulbsWide) {
    lightbulbs._width = Stage.width;
    lightbulbs._yscale = lightbulbs._xscale;
    } else if (bulbsTall) {
    lightbulbs._height = Stage.height;
    lightbulbs._xscale = lightbulbs._yscale;
    } else {
    lightbulbs._width = Stage.width;
    lightbulbs._yscale = lightbulbs._xscale;
    positionContent();
    I've tried a lot of variables on this as well.
    Including entering the actual width and height of the
    movieclip like so...
    quote:
    bulbsWide = (stageW > 811);
    bulbsTall = (stageH > 592) && (stageW < 811);
    What am I missing?

    No problem, I'm distracted too... I think that's why I'm not
    able to figure this out.
    Yes, I think you've got it.
    I want the background image to always fill the browser
    window, but, to stay in proportion to itself.
    Here's an example of a site I did that has a scalable
    background, but, if you resize your browser, you'll notice it will
    distort.
    http://www.latayne.com/
    Here's the site I'm working on... Notice how when you resize
    your browser on this one the light bulbs image doesn't distort,
    they stay correctly sized. But, also notice if you make the browser
    window narrow and tall you see a white space at the bottom of the
    window.
    http://www.parkeastinc.com/jenkins/
    Hope that clarifies.
    Thanks again for even looking at it with me.

  • Access to Class Instance inside TileList and DataProvider?

    I have a TileList that is fed by a DataProvider.  The DataProvider places a source Class (and corresponding MovieClip) into the TileList as visual and interactive objects.
         dpChords.addItem({ label:tt, source:ChordUnit, data:i, scaleContent:true }); 
    How do I pass unique values to the instances of the "ChordUnit" within the TileList?
    public function setChordBin(song:int):void {
              var dpChords:DataProvider = new DataProvider();
              var i:uint;
              // determine chord set
              if (song == -1) {
                        activeChords = allChords;
               else {
                        activeChords = songChordSets[song];
              // fill dataProvider
              for(i=0; i<activeChords.length; i++) {
                        var tt = activeChords[i];
              dpChords.addItem({ label:tt, source:ChordUnit, data:i, scaleContent:true }); 
              chordBin.dataProvider = dpChords;
         // FORMATTING
              chordBin.columnWidth = 105;
         chordBin.rowHeight = 115; 
              chordBin.direction = ScrollBarDirection.HORIZONTAL;
              chordBin.setStyle("contentPadding", 5); 
              chordBin.setRendererStyle("imagePadding", 0);
              chordBin.scrollPolicy  = ScrollPolicy.ON;
              // set style for labels
              chordBin.setRendererStyle("textFormat", textFormat2);
              // set the background skin
              chordBin.setStyle("skin", lightBackground);
              //set the cell renderer
              chordBin.setStyle("cellRenderer", MyTileListRenderer);
        // EVENTS
              chordBin.addEventListener(ListEvent.ITEM_ROLL_OVER, chordBinItemOVER);
              chordBin.addEventListener(ListEvent.ITEM_ROLL_OUT, chordBinItemOUT);
              chordBin.addEventListener(ListEvent.ITEM_CLICK, chordBinItemCLICK);

    Here is the "" Class:
    package {
              // associates to "ChordUnit" MC graphic in library
              import flash.display.*;
              import flash.events.*;
              import flash.net.URLRequest;
              public class ChordUnit extends MovieClip {
                   public var imagePath:String;
                   public function ChordUnit():void {
                        loadDiagramImage(imagePath);
                   public function loadDiagramImage(imagePath:String) {
                        trace (imagePath)
                        var request:URLRequest = new URLRequest(imagePath);
                       this.diagramView.scaleContent = true;
                        // this.diagramView.addEventListener(Event.COMPLETE,loadComplete);
                        // this.diagramView.addEventListener(ProgressEvent.PROGRESS,loadProgress);           
                        this.diagramView.load(request);
    Of course, without being able to pass a unique "imagePath" value into the Class instance, the trace is "null".

  • Data Federator Sizing & Usage

    Hi,
    I am looking for a Data Federator wiki & sizing guide..
    we have in the process of installing Data Federator 3.0 on a windows platform.
    I am not familiar with this component. Please throw some light on how is it exactly used..
    What does the Data Federator do ? why is it implmented...Please help me..

    Hi
    I would recommend to take a look at the user guide:
    http://help.sap.com/businessobject/product_guides/boexi3SP2/en/xi3_sp2_df_userguide_en.pdf
    Regards,
    Stratos

Maybe you are looking for