Cs3 - UILoader Component

Hello,
After many different forum searches, I still can't find the
answer to my newbie problem when using Flash CS3.
I'm trying to use the UILoader component that creates an
empty container into which I want to load an external swf file.
Without using AS, in the parameter box for the "container" placed
on the stage of my main movie, I specify the name of the file I
want to load (box.swf). Upon testing the movie, two problems occur.
First, I can't figure out how to ensure that displayed
position the loaded swf is centered on the stage. I've tried moving
the container such that it's lower right corner sits on the stage's
spot where I want the UL corner of the swf to play, but no joy.
Secondly, instead of placing the external swf inside of the
container and scaling it appropriately, the loaded swf (as
mentioned previously) loads outside of the container's position,
and cuts off a portion of the swf. I've tried ensuring that the
container is the same size as the swf (or even bigger), but again
to no avail.
Can someone please point out what I must be doing wrong? The
external swf plays well on its own and simply represents a motion
tween of a box growing in size and changing shape over the course
of 20 or so frames.
Thanks in advance for any assistance!
Text

Thanks for your fast response, dzedward.
Here goes...I hope you'll bear with me. Since I don't know
what type of background info you need, I'll explain in detail.
Background:
I'm creating a flash presentation that we can display on a
large monitor at a tradeshow. The presentation will simply play
from a connected laptop and loop, without the need for user
navigation (no buttons). This is my first time creating such a long
file (I anticipate that this will play for 3-4 minutes straight) so
I thought it would be best if the main timeline were to call and
load successive smaller, stand-alone swfs at selected times, based
as the playhead moves through the timeline in a single pass. I'd be
able to minimize the size of the main file in this way.
Trouble Using AS3:
As a newbie, I don't have much experience with AS3. Using an
AS3 script found online I've been able to load a single swf into
the timeline of my main movie successfully, but when I try to load
another later on in the main timeline, neither swf plays....most of
the scripts and forum answers I've come across over this past few
days deal with AS2 or earlier versions, so I can't use or learn
from them.
Using the UILoader Widget:
Thats when I saw reference to using Flash CS3's UILoader
Component for this purpose (accessed via Window>Components
menu). What it does is create an empty container into which you can
load an external swf, jpg, or png file. You first simply drag and
drop the widget onto the stage from the component window. Then,
from the container's property window, you choose its dimensions and
placement on the stage. Via the container's parameter window you
tell it whether to autoload the content, maintain aspect ratio,
and/or scale the content, as well as provide the name of the source
file you want to load. It seems pretty simple - even I can do it
and can get it to work when I load a jpg or selected swf file. Upon
testing the movie, the jpg or swf plays back INSIDE the container,
scaled down or up based on the container's size as it relates to
that of the source file. So far so good.
You'll see from this widget that you only need to specify
"true" or "false" for the autoload, maintain aspect, and scale
content questions. I've done this inside the widget as I'm not sure
how to accomplish this with the scaleContent and scaleAspectRatio
parameters you mention using actionscript.
Problem When Using UILoader Widget:
Here's the problem I'm having. As I mentioned, I've created a
short 20-frame animation output to swf showing a white box that
grows in size and changes shape against a black background, using
the same frame rate (30fps)_and dimensions as my main movie. The
animation is a simple shape tween, with no actionscript other than
a stop ( ) ; placed on the last frame of an actionscript layer to
prevent looping. It plays as desired on it's own. However, when I
load it into the UILoader container that is centered on the stage
of my main timeline and then test the movie, two problems occur.
Firstly, the animation does not play inside the container;
instead, the upper left corner of the loaded swf animation shows up
where the lower right corner of the container showed up on the
stage (hence I only see one corner of the animation). Secondly, the
animation is cropped; the visible outer edges of the morphing white
box are cut off meaning that I lose the visual effect of the shape
tween.
I saw reference online elsewhere to the possible need to
position the container on the stage such that it's lower right
corner is where you want the upper left corner of the animation to
be placed, but this doesn't make sense to me (it's likely that I
misunderstood what I read). I did try this however, and while doing
so allowed me to more correctly center the external animation
within the main movie, it's edges are still cropped. To me it
should have been placed inside of the container and scaled.
I'd love to be able to do this using actionscript 3.0, but
I'm having even more trouble with this and haven't found any
comparable tutorials or forums explaining how to load and unload
multiple swfs into a main timeline without the need to control
using buttons or a mouse. I'd like to be able to specify on the
main timeline when a particular swf is played, then do so again
later on in the same timeline with another swf file, and so on.....
I don't know if this explanation will make anymore sense. I
could send you the fla or even screenshots showing what I see
during playback of the short animation inside of my main flash file
you can provide me with your address and feel that it would help.
It looks like I can only post code from this forum.
Thanks for reading through this and for your possible help!

Similar Messages

  • UILoader Component's coordinate( Movement) problem

    Hi All
    In my program I am allowing user to drag and drop Video
    thumbnails on the main stage. The UIComponent is loading external
    SWF as soon as user drops video on the main screen. Also the user
    can successfully drag and drop the opened video pane (which is
    UILoader Component) wherever he wants on the screen.
    My problem is that when user drop the UIComponent on the main
    screen, the dropped UIComponenet moves little bit from the mouse
    position.
    I used the code that on
    stopDrag,UILoader.move(MouseX,MouseY). But it did not work
    because the stage is taking UILoader's top left corner as MouseX
    and MouseY and move UILoader's top left corner to the cursor
    position. I came up with tricky solution in which I use on
    stopDrag,UILoader.move(MouseX-200,MouseY-200). This solution
    was little better in my case but that's not exactly what i want
    because this solution is giving inconsistent and inaccurate
    results.
    Does anyone has better solution? I just need that if user
    stops dragging the UILoader Component , the Component should be
    placed on the coordinates wherever he/she left the mouse cursor.
    I will appreciate any kind of help
    Thanks a lot.
    Anuj

    Dear Jeevan,
    I assign one operation to external processing by control Key - PP02.
    When i create production order , PR is generated for the external operation.
    In this when , i see COOIS report at component level , qty withdrawn  shown as zero.
    But when i relesae PR to PO for the external opertaion , there is qty shown  in  qty withdrawn column  ( Same as qty required ) ?? in COOIS report.
    But i have not issue any qty, than why there is qty shown in qty withdrawn column.
    Regards
    Vin

  • CS3 video component - which files to upload

    When using a video component in CS3, and the movie is
    rendered, does it, or does it not
    take all 4 files to show the movie on the web.
    1 question - may I please get an answer to this.
    Thank you,
    Luke wonderly

    I've spent 3 WEKS trying, rerendering, going back to Adobe
    tutorials . .
    I KNOW it's something very simple . . . but I CAN'T GET PAST
    IT.
    I've had several questions on this forum for over 3 weeks -
    2 or 3 were answered - 1 saying go somewhere else and pay
    more money to someone to do it for me -
    I did - and am still screwed.
    I have serious content - and (after my phone call to Adobe
    this Morn)
    that will probably end up to be QT only.
    NO FREAKIN FAULT OF MINE - I FREAKIN TRIED.
    I've been EXTREMELY diligent in my efforts to make this work.
    In 1999 I created HUNDREDS of Flash Virtual Reality Tours
    (along with QT)
    that won State, Federal & special Congressional
    recognition & awards . . .
    Flash 5 was very easy for me to learn, and produce content.
    After investing in the CS3 Software, the training, and the
    new computer to run it all on - I'm absolutely no further along
    than I was when I started.
    This has been a freakin nightmare - with VIRTUALLY no support
    and a complete indifferent attitude.
    See what Adobe says

  • Anyone know how to dynamically change the border of UILoader Component

    Hi All
    I am loading multiple instances of UI loader containing
    external SWFs on my stage. When user double clicks on the video
    thumbnail, an instance of UIloader will be placed on the main
    stage.The user can place as many UIloader instances on the main
    stage. My aim is that if user puts any UIloader on top of already
    existed UIloader, the existed loader will be replaced with the
    placed loader. I am successful in implementing that by using
    hitTestObject method for that. I am planning to provide enough
    feedback to the user for this UIloader replacement process, so i
    was thinking to change the border of the UIloader as soon as the
    dragged UIloader hits the already existed UIloader.
    Does anyone know how would I animate UIloader to give enough
    feedback to the user that it is being replaced. Creating an
    invisible movie and moving it wherever UIloader goes doesn't sound
    much efficient.
    Please help me out in figuring out this problem. Also
    if anyone has better idea to give enough feedback to user, that
    will also be welcome. Just to be little clear i have provided
    little pseudo-code(below) of what i am doing here.
    Any help will be highly appreciated.
    Thanks
    Anuj
    /***************Abstract Pseudo code for my
    problem*****************/
    myUILoader.startDrag();
    //Putting video on top of already existed videos
    var trackChild:Number=container.getChildIndex(myUILoader);
    var childContainer:DisplayObject=
    container.getChildAt(trackChild);
    for( var z:Number=0;z<=container.numChildren-1;z++)
    var restChild:DisplayObject=container.getChildAt(z);
    if(childContainer!=restChild)
    if((childContainer.hitTestObject(restChild))==true)
    //Show Animation during replacement
    //how would i give feedback here
    container.removeChild(restChild);

    What is a Lopp Browser?
    A typo I meant Loop Browser, sorry. On your iPad you can see the iTunes Library in the Loop Browser:
    Open the Loop Browser
    Tap the Loop Browser button in the control bar. The Loop Browser button is available only in Tracks view.The first time you open the Loop Browser, it shows the Instrument grid.
    I was told by a sales person at the Apple Store at one of my One-on-One sessions, that Mac would not transpose nor change tempo because my "live music" was not a "midi" file.
    GarageBand 10.0 will change the pitch and tempo of live recordings - midi as well as audio instruments, but not of audio files. But you need to enable the "Follow tempo and pitch" option in the track editor.
    Then you can transpose the region using the "Transpose" slider.
    And if you change the project tempo in the LED display after you enabled "Follow Tempo&Pitch" the recording will follow the new tempo.
    You can test this with a new project created on your mac.

  • CS3 Loader component and IE7

    I'm not too sure I want to troubleshoot anymore when it comes
    to the Loader component and IE7, but I wanted to check if anyone
    has anything new on the matter. All searches concerning this issue
    show unanswered posts, so I guess it's just another bug/conflict
    that Adobe isn't concerned about or if the issue is just with IE7.
    The main issue is when loading images into the loader component,
    scaleContent set to default (true), autoLoad set to default (true),
    when images are loaded, they are not always aligned properly in the
    center. Plus, most of the time I see a flicker of the image
    appearing either on the top left or bottom left of the loader
    before the image appears as it should. I've even tried AS2 to
    center the loader.content._x and loader.content._y on
    listener.complete (see code), but randomly the loaded image's (0,0)
    position seems to be in the center of the loader (I was going to
    provide a screen shot of what I'm talking about, but I think the
    explanation is clear). All the above works great on Firefox, Opera,
    Safari, and even the crappy AOL browser, but not consistently on
    IE7.
    Is this a known issue or an unsolved bug?
    Unless anyone has an answer to the above, I would like to
    also ask around about purchasing loader components online. I've
    seen several, but wanted some testimonials from people who have
    used them.
    If anyone wants to visually see what I'm talking about, go to
    Design Visions of
    Austin and click "on the boards". If you compare the website
    using Firefox versus IE7, you will see what I mean.
    Thanks to anyone who can help. I hope this post doesn't go
    unanswered. In the past, I've helped a lot of people, so I would
    appreciate if someone could help me for once :) thanks again...
    I just realized... two variables I mentioned in my code were
    assigned prior to the attached code.
    var cpLoader:mx.controls.Loader;
    var cpLoaderWidth:Number = cpLoader.width;
    var cpLoaderHeight:Number = cpLoader.height;

    The flicker happens on both FF2 and IE7, and is because you
    are positioning after the load is complete. To solve this, set the
    visibility of the Loader to false (cPLoader._visible = false;)
    before moving the content, and to true after. IE (you could try it
    this way, but it might not work)
    cpLoaderListener.complete = function(evt_obj:Object) {
    mcPreloaderClip._visible = cpLoader._visible = false;
    var cpLoaderContentWidth:Number = cpLoader.content._width;
    var cpLoaderContentHeight:Number = cpLoader.content._height;
    cpLoader.content._x = (cpLoaderWidth - cpLoaderContentWidth)
    / 2;
    cpLoader.content._y = (cpLoaderHeight -
    cpLoaderContentHeight) / 2;
    cpLoader._visible = true;
    It would be better to set cpLoader._visible = false on the
    button click that loads the image, maybe with an automatic fade out
    implemented to make it smoother. Then setting it back to true after
    moving it fixes the flicker effect.
    As for the centering not working in IE7. The very first image
    does not center properly in IE7, but after that everything works
    identical to FF. I am unsure how to fix that issue. I have always
    implemented a centering script myself to ensure that things get
    centered properly, and have not yet had any problems with it.

  • CS3 Datagrid Component

    There has to be some way to get an html link to work in a CS3
    Datagrid. I can't find anything on html links using Flash CS3 and
    Actionscript 3, which seems pretty remarkable to me. I'm surprised
    Adobe didn't code the datagrid to recognize when an html link is
    being clicked in the grid.
    I've spent the last couple of days trying to do this with no
    success. I've emailed Adobe and received no response.
    Has anyone successfully gotten an html link to work in a CS3
    Datagrid? If so, please share.

    There has to be some way to get an html link to work in a CS3
    Datagrid. I can't find anything on html links using Flash CS3 and
    Actionscript 3, which seems pretty remarkable to me. I'm surprised
    Adobe didn't code the datagrid to recognize when an html link is
    being clicked in the grid.
    I've spent the last couple of days trying to do this with no
    success. I've emailed Adobe and received no response.
    Has anyone successfully gotten an html link to work in a CS3
    Datagrid? If so, please share.

  • How to communicate a button to a movie_clip inside of UiLoader component using AS3?

    Hi, i'm making a flash application to test various paints, for a company.
    I have movie clip on stage having some buttons on left side and a uiloader on other side which loads an external swf file on button(thumb_01) click-target. In main movie clip there are two buttons. 1 trigger a function to select a wall and 2nd trigger a function to select roof. External swf(movie_01.swf) file has two movie clips 1 is a wall(mask_01) and 2nd is roof(mask_02). Now the problem is i want to click a button to select wall inside of external swf file to change it's color. I'm sure that the problem is in path through which i'm trying to select a wall movie which is inside of UiLoader. Can any one tell me What'll be the path to trigger a function to a movie clip inside of Uiloader?
    Here is my code for Button to select a wall or roof ==================================
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    var targetObj:Object;
    selectWall_btn.addEventListener(MouseE… selectWall);
    function selectWall(evt:MouseEvent):void {
    targetObj = uiloader.movie_01.mask_01; <--------- I think problem is in this path....
    trace ("Wall is selected!");
    Here is code for uiloader ========================================…
    import fl.containers.UILoader;
    Object(this).slider_mc.thumb_01.addEve… loadMovie_01);
    function loadMovie_01(evt:MouseEvent):void {
    trace ("Movie is Loading!");
    var uiLoader:UILoader = new UILoader();
    uiLoader.source = "movies/movie_01.swf";
    uiLoader.scaleContent = false;
    uiLoader.x = 291;
    uiLoader.y = 19;
    addChild(uiLoader);
    uiLoader.addEventListener(Event.COMPLE… completeHandler);
    function completeHandler(event:Event) {
    trace("Number of bytes loaded: " + uiLoader.bytesLoaded);
    Error is this....
    Scene 1, Layer 'ActionsScript', Frame 1, Line 43
    1120: Access of undefined property uiLoader.
    Can any one Help me?

    PArt of the problem will be due to declaring the uiLoader inside of a function.  When you do that you limit its scope to within that function.  You should declare it outside of any function if you need to access it in more than one function.
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    var uiLoader:UILoader;
    var targetObj:Object;
    The other problems I see regard the line you point to.  It is not spelling the name the same, using a lowercase "l". Also, if you want to target what the UILoader contains, you should target its "content" property, as in...
    targetObj = uiLoader.content.mask_01

  • CS3 Scrollbar component

    I'm noting an odd behaviour with this component.
    If I run the app locally all is fine.
    When it is delivered via a web server it does not display / function properly ..
    see .. http://bellsouthpwp2.net/h/i/hisheirs/Background.html
    any thoughts ???
    THANKS in advance .. Dave

    Can you describe the strange behavior and what should be looked for in the link you provide?  There's a chance you are getting good results locally versus not due to not waiting for things to load before taking actions.  Locally things load quickly, online they are subject to load time.

  • TextArea component CS3

    I've searched the net, joined Safaribooksonline, bought Colin
    Moocks Essential Actionscript 3.0 & Actio0nscript 3.0 cookbook
    and nowhere can I find out how to apply an imported css stylesheet
    to a CS3 TextArea component. I used to do this all the time in AS2
    and it worked a treat. The only help I can find in the CS3
    authoring tool and in live docs relates to AS2 which causes errors
    in my AS3 class. I'm building a custom TextAreaManager class for my
    general use. If anyone knows how to do it please let me know.
    Thanks
    Dave Towers

    Try this example. It's about altering the context menu of the main application, but it might as well work for single components.
    Good luck,
    Michiel

  • UILoader and TransitionManager together?

    Hey,
    I'm starting to learn Flash CS3 and AS3 so i'm sorry if this
    is an uber noob question... I want to build a 3 panel slideshow
    where images transition in every few seconds in one of 3 view
    areas.
    My problem is, that I can't get the TransitionManager to work
    on the UILoader, nor does it seem to want to work if I just use an
    AS3 Loader and and the loaded image to the stage?! I was looking to
    try and use the photo type in the TransitionManager... No go. I
    also loaded a JPG into a Loader and added that to the stage, and
    get a similar error. I'm so new to AS3 my head is spinning.
    Anyway, I'm wondering if anyone has suggestions on the best
    way to get a nice clean transition (maybe more than just a fade,
    something like a white out fade) between 2 loaded JPG images using
    AS3.
    this is the error I get when trying to use TransitionManager
    with the UILoader.
    1067: Implicit coercion of a value of type
    fl.containers:UILoader to an unrelated type
    flash.display:MovieClip.

    If you want to use a UILoader component, just change the source property of the loader.  YOu don't need to change frames or anything...
    someBtn.addEventListener(MouseEvent.CLICK, changeSource);
    function changeSource(evt:MouseEvent):void {
        myUILoader.source = "some.swf";
    If you named your buttons using the swf filenames, you could share the same event handler function for all the buttons...
    swf1.addEventListener(MouseEvent.CLICK, changeSource); // load swf1.swf
    swf2.addEventListener(MouseEvent.CLICK, changeSource); // load swf2.swf
    function changeSource(evt:MouseEvent):void {
        myUILoader.source = evt.currentTarget.name+".swf";

  • How to create two UILoader that can be nested with each other and save the parent UILoader - as3

    Hi all,
    I am currently researching on the problem but I can't find any solution in the web.
    Here is my problem:
    I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a button that will save all contents on loader_outer. Unluckily, when I trigger the save function, I only got  a white image file. I was expecting that the contents of loader_outer (with loader_inner) to be saved also.
    Note: background_1.jpg and rabbit.jpg are present in the directory. loader_outer and loader_inner where manually placed in the scene using UILoader component.
    Here is a code snippet:
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");
    My expected output should be that background_1.jpg and rabbit.jpg should be saved in an image file and must be positioned like the ones placed in the scene.
    Any ideas on this?
    Thanks ahead.

    the load method is asynchronous so you don't want to apply that draw method until both loads are complete.  ie, use a complete listener:
    loader_inner.addEventListener(Event.COMPLETE.loadcompleteF);
    loader_outer.addEventListener(Event.COMPLETE,loadcompleteF);
    var loadNum:int=0;
    loader_inner.load(new URLRequest("background_1.jpg"));
    loader_outer.load(new URLRequest("rabbit.jpg"));
    loader_outer.addChild(loader_inner);
    // you should declare these variables outside this function so there are no gc issues.
    function loadcompleteF(e:Event):void{
    loadNum++;
    if(loadNum==2){
    var bitmapData:BitmapData = new BitmapData(loader_outer.width,loader_outer.height);
    bitmapData.draw(loader_outer);
    var jpgencoder:JPGEncoder = new JPGEncoder(100);
    var mybyte:ByteArray = jpgencoder.encode(bitmapData);
    var myfile:FileReference = new FileReference();
    myfile.save(mybyte,"test.jpg");

  • Border color change of UILoader

    Hi
    Does anyone now how to change the border color of the
    UILoader component when user clicks on that. I have put UILoader in
    the sprite container and i need to implement that if user selects
    that UILoader its border color will be changed (to red may be).
    Please help me out . Here's the my dummy code for that.
    Basically what I need is the border of UILoader to be shown as soon
    as mousedown event is generated and the border to hide as soon as
    mouseup event is generated.
    Any help or any new idea will be highly appreciated.
    Thanks
    /****************CODE******************
    var container:Sprite=new Sprite();
    var myUILoader:UILoader = new UILoader();
    myUILoader.source = "XYZ.swf";
    myUILoader.load();
    container.addChild(myUILoader);
    addChild(container);
    myUILoader.addEventListener(MouseEvent.MOUSE_DOWN,dragUILoader);
    myUILoader.addEventListener(MouseEvent.MOUSE_UP,dropUILoader);
    myUILoader.addEventListener(MouseEvent.CLICK,
    moveSelectedVideoOnFront);
    function moveSelectedVideoOnFront(event:MouseEvent):void
    //Brings selected UILoader on top
    function dragUILoader(e:MouseEvent):void
    //Allows dragging of the UILoader
    function dropUILoader(e:MouseEvent):void
    //Allows dropping of the UILoader

    <a href="/HTML/index.html">Catalog</a>
    <a href="index.html">Home</a>  
    Just so you'll know, this is not a good way to link to the default file in any folder (including the root folder. These links *should* be like this -
    <a href="/HTML/">Catalog</a>
    <a href="/">Home</a>
    without mentioning the default filename. That's because when the site is spidered, the spider will think you have two different pages (in this case both default and index.html), and may penalize you for having "two" pages with identical content. So, anytime you are linking to the default file within a folder, just remove the filename from the link, and just link to the folder instead.

  • TextArea component AS3

    I'm having trouble both working out or finding out how to
    apply an imported css file to the CS3 TextArea component. I've
    frequently done this in AS2 using Flash 8, but that code no longer
    works. If anyone knows could you please let me know. Here's the AS2
    code I've used previously:
    private function loadCss(){
    var myStyle = new TextField.StyleSheet();
    myStyle.load(this.CssPath+".css"); // the CssPath variable
    here was supplied within an object passed through to the
    constructor
    textArea.styleSheet = myStyle;
    loadXml();
    }

    Thank you Anirudh,
    I have been using the TextArea component because it has code to handle scrollbars, and in Flash this component is a wrapper for a TextField object. As far as I can see this is not the case in Flex, and my AS3 code sets almost all of the TextField attributes, so I probably can't use Flex and the Flash Builder anyway. At least not without throwing all my code away.
    Besides, the .swf file generated seems to be much bigger than in Flash.

  • Progress bar Fl cs3 as3.0

    below is my very simple code to load images from a instance
    of button component into an instance of UIloader component.
    there are multiple buttons like this one
    i can't get it... the way to get progress bar to listen and
    respond to the loading of the image
    img_02_btn.addEventListener(MouseEvent.CLICK, onClick2);
    function onClick2(event:MouseEvent):void
    trace("typeMe");
    loaderOne.source = "assets/b300.png";
    loaderOne.load();
    }

    Thanks Jongware I knew it had to be something simple.
    Working version:
        var myStop =6;
        var myWindow = new Window ( 'window','Progress');
        var myProgressBar = myWindow.add ('progressbar', [12, 12, 350, 24], 0, myStop);
        var myStaticText = myWindow.add('statictext');
        myStaticText.bounds = [0, 0, 340, 20];
        myStaticText.alignment = "left";
    function stagesLeft(myText,stageVal){
        if(stageVal == 1){   
            myWindow.show();
            myProgressBar.value = stageVal;
            myStaticText.text = myText;
            myWindow.text = 'Stage '+ stageVal + ' out of ' + myStop;
            if(stageVal == 6){
            myWindow.close();
    To use the function:
    stagesLeft("This is the first stage",1)
    then further on in the script when another process is taking place
    stagesLeft("Here is stage 2 of this script",2)
    etc etc.
    Cheers, John.

  • UILoader issue-different sources, but the same content appears.Why?

    Hi,
    It is strange, I have tested a couple times in different ways but can't figure out why this happens. I will try to brake it down to be clear as I can:
    I have picked up a uiLoader component, and copy-pasted four times, so now I got five of them in my flash movie. Each got a different source (dresses/dresses1.swf, dresses/dresses2.swf, dresses/dresses3.swf, dresses/dresses4.swf, dresses/dresses5.swf). But When I launch the movie, all the 5 uiLoaders display the same content: dresses/dresses2.swf, and I can't understand why. For a test, I have replaced the .swf file with some jpeg files, and they were ok, but as I put the swf files back they show the same content again.
    The sources are ok, they work perfectly separately, so I can't figure out what is the reason why the swf files are loaded incorrectly..
    Please help,
    ved

    Thanks man for the reply, after a break I have revisited the code while composing a message for u, and I have found the bug...
    Thanks!:)

Maybe you are looking for

  • How can I use multiple constructor

    Hi, I have some problem to using multiple constructor in java. It shows some error while compiling the following program. can any one give better solution for me....... public class Test6{    public Test6(){ this(4);    /* C:\Test6.java:5: cannot fin

  • Problem in Material master creation

    when iam creating material master, in sales view1 maintained Tax claassification. After saving the master record the Tax classification is disappearing. could any one know the solution? please help me.

  • Flash hangs IE as user/non admin with protected mode

    Windows 2008 R2. IE 8 Versions of flash since 11.4 all exhibit this behavior. Install as Admin on 2008r2 works fine. Log on as user and flash hangs IE. The only way to get page to be functional is to disable protected mode or disable the shockwave pl

  • [SOLVED]/etc/vconsole.conf doesn't react to any change

    Hi, I'm new in Arch Linux, so sorry if I'm missreading something. I try to change my font and keymap using this manual: https://wiki.archlinux.org/index.php/KEYMAP So i edit /etc/vconsole.conf like this: KEYMAP=cz-lat2 FONT=Lat2-Terminus16 but nothin

  • My trackpad is dead, and I'm looking for ways around this?

    So my mac recenty the trackpad on my macbook started acting weird. Literally, one day I woke up and half of the trackpad wasn't working. Slowly less and less of the trackpad would work and now none of it works, sometimes the right click works but I h