Load, Resize and Position SWF into a blank MC

heeelp!!
I've honestly tried to look everywhere and have no clue how to do this. PLus i've tried for hours and still have no success!
As the post thread title states, I have a swf file and i want to import anothe swf file into a blank movie clip. Any ideas how? Can it be % wise? And can the image's width be set to say 100 and the height be automatic?
Also, what about the x and y positioning?
also, I do not need or want a progress bar....
I would really be greatful if anyone can lend me a hand.

Hope you include file path as an argument inside URLRequest constructor.
Ex:
loader.load( new URLRequest("bla.swf") );
That may be the reason you are getting an erroe.
Just throwing a stone in dark......

Similar Messages

  • Ihave a emac 1002 emc 1955 that igot from a auction,when i turn it on it never gets pass the loading screen and cant get into utilities

    i have a emac 1002 emc 1955 that wont go pass loading screen and cant get into utilities,i got from a auction and dont want to take it apart if i dont have to so looking for a little help before it goes that far.thanks

    Hi Mike, the Keyboard shouldn't matter, it should be OK in that respect.
    Your kind of stuck without any Install Disc to try to repair it or reinstall, but...
    Tough without the Install disc, but some things to try...
    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck...
    http://docs.info.apple.com/article.html?artnum=106214
    Tough without the Tiger Disk problems, but try fsck...
    To use fsck, you must run it from the command line. Unlike using your mouse to open an application to do something, you'll need to type a text command at the prompt (#) to tell fsck what to do. The Terminal application (/Applications/Utilities) and single-user mode are two examples of command-line interfaces in which you can type such commands. To use fsck:
    1. Start up your computer in single-user mode to reach the command line. Hold CMD+s keys down at bootup.
Note: If necessary, perform a forced restart as described in the Emergency Troubleshooting Handbook that came with your computer. On desktop computers, you can do this by pressing the reset/interrupt button (if there is one) or holding down the power button for several seconds. On portable computers, simultaneously press the Command-Control-power keys. If your portable computer doesn't restart with this method, you may need to reset the Power Manager.
    2. At the command-line prompt, type /sbin/fsck -fy
    (SPACE between fsck AND -fy important)
    3. Press Return. fsck will go through five "phases" and then return information about your disk's use and fragmentation. Once it finishes, it'll display this message if no issue is found:

    The volume (name_of_volume) appears to be OK 
If fsck found issues and has altered, repaired, or fixed anything, it will display this message:
***** FILE SYSTEM WAS MODIFIED ***** 

Important: If this message appears, repeat the fsck command you typed in step 2 until fsck tells you that your volume appears to be OK (first-pass repairs may uncover additional issues, so this is a normal thing to do).
    4. When fsck reports that your volume is OK, type reboot at the prompt and then press Return.
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    Does it boot into Open Firmware with CMD+Option+o+f ?
    http://docs.info.apple.com/article.html?artnum=42642
    reset-nvram (press Enter)
    set-defaults (press Enter)
    reset-all (press Enter)
    Have you done a PRAM reset, CMD+Option+p+r...
    http://docs.info.apple.com/article.html?artnum=2238

  • Should I load properties and or preferentces into a hashmap??

    Would this make any difference performance wise?
    I use properties mostly for localized labels so it shouldn't affect much as they're loaded only once. But my code is checking preferences quite often...
    On the oder hand prefferences are writen to storage asynchronously but... is this true for reading? does the jvm maintain some kind of preferences cache or does it access back end for each prefference read?
    Thanks in advance,
    David

    oh, I'm sorry if I didn't express my question correctly, let me try again :-)
    I'm using both properties and preferences for two distinc pourposes:
    First I use properties for localization. I'm not really bothered for performance in this case as these are read only once at startup anyway. I was jus curious.
    Second I use preferences for application configuration data persistance. Say the current db url, or some path... This preferences are to be checked a lot of times during programm execution, hence the question.
    If preferencesr were not cached by the system then it would make sense to load them into a hashtable at startup and use this instead. If they were in fact cached by the system then I would preffer to stick with the convenience of having the jvm storing them automatically at shutdown time.
    Third: there are probably many performance problems in your code,This I'm sure but I've to try caching any problem I can see :-)
    Fourth: Property objects are loaded once and then cached.Ok, this part is now clear thaks to your reply and the one from sabre which, of course, I thank a lot.
    Regards,
    David

  • Components that auto-resize and position

    Hi there
    I have written a small swing application and in this application i have a tabsheet with two tabs and on each tab there is a toolbar. on the toolbar on the one sheet i have a check box and when it is checked, i set two components visible to false and another one to true and visa versa. sometimes when one of the components is set visible to true, then it resizes itself to the screen and positions itself in the top-left corner. it does not do this all the time, i could recompile and it goes away, but then it does this action on another machine. any ideas why? and how i can solve this problem?
    ~Glen

    I am not using a layout manager at all, but placing the components according to the location and size that I want. I found that by using a layout manager would make my toolbar look rather messy, espeiclally when I need to toggle certain components on and off and wanting to preserve the exact location of the components that are toggled as visible.
    ~Glen

  • TS1702 When I tried to update existing Pages app it did not complete loading update and has 'locked' into loading mode. I do not want to trash the existing Pages because it contains documents I need. Any advice?

    My problem is that when attempting to load updateed Pages the app has frozen in 'loading' mode and will not complete the loading. It is now unusable and does not respond to turning off the iPad and restarting. The Pages icon is in 'shadow' and will not respond . Cannot get the red minus symbol. Can get X symbol but do not want to trash it because it contains many documents I do not want to lose.  Suggestions welcome!

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • How? loading seperate music player .swf into main site prob.

    hey all!
    Ok something that I still don't really understand, have tried
    to modify afew flas but with no luck.
    Anyhow to the point. I have a main fla file with all my
    content in it and a litlte music player that plays 3 to 4 external
    swfs with music &animated LEDs in it. Anyways right now the
    music player itself is built into my main fla file. I would like to
    move the player a little bit so its coordinates change.However
    obviously when i do this and test movie the external music swfs
    that load have little LED moving animations and the 2 files just
    dont match up, so they load into the wrong area. I also tried to
    move the LED elements exactly the same amount as i did with changes
    in the main fla in moving the music player graphics but still not
    working. Do you think these files are working with "tell
    targetting" or? Im sorry im awful with code so..
    Any good and simple tutorials for a numb nut like me would be
    appreciated on this topic so i can understand whats really going on
    here. Normal logic doesnt seem to be getting me all that far.
    Tks!

    ahh thanks Jeff i guess i would say for nuthin.
    Hopefully someone else can give me a litte bit more to go on
    then that!

  • Resizing and positioning a stage with a background image

    Hey guys,
    I'm trying to get some specific behaviour on a stage as I think it'll work out best for the application I am doing. The module I am working on right now consists of a stage with an imageview bound to the width and height and an image inside. I'm eventually looking to setup some animations and such which will overlay on the image but I want the window to be resizable in various ways.
    Right now, when the stage is created I manually set the width and height so the image fits perfectly in the stage. For resizing, I want the user to be able to drag either the height or width or diagonal sliders but have the original aspect ratio of the stage retained. I have the preserveRatio variable set to true in the ImageView which makes the image not become distorted, but the stage can be extended horizontally/vertically/diagonally to any ratio which I'd rather not have. In terms of fullscreening, I'd like to allow it and have the image centred.
    I've tried to see if the LayoutInfo class can help me out, but it doesn't seem to have any implementations which are too useful for what I am trying to do. So does anyone know how I can accomplish the above? I'm very new to JavaFX so if anyone can make any other suggestions in terms of the objects I am using and what's best practices for what I am trying to do, it would be much appreciated. I've looked into using PathAnimation and PathTransition for the animations I am using and while they'd do most of the job well, I need to be able to place objects, modify speeds, locations etc. so I'll probably just end up making some custom drawing methods.
    Thanks in advance,

    Similar request in [JavaFX rezising-scaling scene & elements|http://forums.sun.com/thread.jspa?threadID=5437642]...
    Mmm, I made various experiments. The difficulty is to watch both dimensions, because when one change, the other must be changed as well, but the watch is then triggered, making a cascade of changes... I solved it (partly) with a boolean disabling the secondary change.
    def image = Image
        url: "file:///D:/images/forest_0003_1024.jpg";
        preserveRatio: true
    def startSize = image.width / 3;
    var bResizingWidth: Boolean;
    var bResizingHeight: Boolean;
    var stw = bind scene.width on replace
    println("Width -> {stw}");
        ResizeStage(true);
    var sth = bind scene.height on replace
    println("Height -> {sth}");
        ResizeStage(false);
    var scene: Scene;
    var iv: ImageView;
    def stage = Stage
        title: "Proportional Stage"
        scene: scene = Scene
            content: iv = ImageView
                image: image
                preserveRatio: true
                fitWidth: startSize
    def frames: java.awt.Frame[] = java.awt.Frame.getFrames();
    //~ println(frames[0]);
    def insets = frames[0].getInsets();
    //~ println("T={insets.top} L={insets.left} B={insets.bottom} R={insets.right} ");
    def insetX = insets.left + insets.right;
    def insetY = insets.top + insets.bottom;
    function ResizeStage(bIsWidth: Boolean): Void
        if (stage.width == 0) return; // Init, nothing to do
        if (bResizingHeight and bIsWidth) // One dim is changed, don't react on setting of other dim
            bResizingHeight = false;
            return; // Just ignore secondary change
        if (bResizingWidth and not bIsWidth) // Idem
            bResizingWidth = false;
            return; // Just ignore secondary change
        if (bIsWidth)
            bResizingWidth = true;
        else
            bResizingHeight = true;
        println("Stage: {stage.width} x {stage.height}");
        def ratio = image.width / image.height;
        if (bIsWidth)
            stage.height = scene.width / ratio + insetY;
            println("H {scene.width} -> {stage.height}");
        else
            stage.width = scene.height * ratio + insetX;
            println("W {scene.height} -> {stage.width}");
        iv.fitWidth = scene.width;
    }There are still some glitches, but it roughly works...
    [EDIT] Changed to avoid resizing the dimension that the user is changing. Result is more logical but slightly worse... (?)
    Edited by: PhiLho on 29 mai 2010 13:24

  • How do I resize and position a logo to an object in Photoshop using Warp & Vanishing Point?

    How do I resize, rotate and reposition a logo within a Photoshop object using Warp and/or Vanishing Point? This may be a Photoshop question.

    You will have to explain better and usee the right terminology. What does "Photoshop object" mean? A placed graphic? Some copy&pasted path work? and there is no Vanishing Point in Illustrator to begin with, so it's even less clear what exactly you are trying to achieve.
    Mylenium

  • How do you load an AS2 swf into AS3?

    I think this is the way around my dilemma. How do you load and AS2 .swf into an AS3 file?
    thanks again!
    Steve

    check that code in your last thread:
    What is the  code to load a .swf file in AS3 on the same layer?

  • Load random swf into movie

    I need to load a randomly selected .swf into my main movie.
    Have found the code below which does all the loading fine...
    ... however, I need to keep elements from the original, so is
    there a way to load the new movie INTO the main one?
    I think I might need to load into an empty instance? If so,
    what does my code need to look like?
    Thanks in advance

    You should use the MovieClipLoader class.
    var mcl = new MovieClipLoader();
    var lis = new Object();
    lis.onLoadInit = function(target:MovieClip){
    //target is loaded and ready when this fires
    mcl.addListener(lis);
    function loadFile(fileURL){
    mcl.loadClip(fileURL, content);
    Now you can just call loadFile with a url and it will be
    loaded into the
    clip 'content', which can be an empty clip on stage. You
    don't have to do
    anything in the listener, but you can set width, height,
    alpha etc. in
    onLoadInit.
    HTH
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to Load an SWF into the Parent SWF

    Hi all,
    I have 3 SWFs.
    X.SWF - Parent application. Contains an empty movie clip for
    loading external swfs using loadClip() method.
    B.SWF - Has some text and pics. Gets loaded into the empty
    movieclip on X.SWF. Also has a button saying 'Load A.SWF'.
    A.SWF - Similar to B.SWF with a button saying 'Load B.SWF'.
    When I start the main application (X.SWF) and load B.SWF into
    it all is fine.
    But would like to click on the 'Load A.SWF' button on B.SWF
    and load A.SWF into X.SWF. And visa-vesa.
    The problem is I'm not able to refer to the parent container
    (X) from these child (A and B) SWFs.
    Is there any way to do this?
    Thanks

    First if you use
    Button.onPress=function(){
    this._parent.loadMovie();
    the movie try to load swf into B.swf because "this" mean the
    button.Try with more ._parent or just if you X.swf is into the one
    MovieClip in 1st stage _level0.SWF.loadMovie();.Also if you want to
    load the A,B.swf into the stage simultaneously just create two
    movieclips into the X.swf mcA and mcB and the path has gone to
    _level0.SWF.mcA.loadMovie("A.swf"); :)

  • Can an image resize automatically to fit into a template?

    Many (weaker) programs allow you to drag an image into a template and have it resize to fit into a specific area.  Can this be done in CS6?  For instance .... if you designed a 4x6 Christmas card template and it had a (place holder?) for a 2x2 photograph, and you dragged an image into this 2x2 area, can it resize automatically to "fill" just that 2x2 area?  This would result in some cropping of just the longest dimension, if the image inserted wasn't a square.

    It can be done with Photoshop Scripting.   Note when the inage has a diffenebt aspect ratio or different shape then the template the images is sized to fit and fill the template open and any excess is masked off.
    I have a free download you can use.  In Photoshop version  CS2 through CS5 Below CS2 some required features are missing and there are bugs in CS6 scripting.
    Photo Collage Toolkit 
    Photoshop scripting is powerful and I believe this package demonstrates this. The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are ten scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples
    Download

  • Need help loading and positioning a swf into a swf

    This is the swf  I'm trying to load.
    These actions load and position a small simple swf just fine and the trace in the onLoadProgress function indicates that it loads completely
    but I can't see it.  What am I doing wrong?
    this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
    var my_listener:Object = new Object();
    my_listener.onLoadComplete = function(target_mc:MovieClip) {
    target_mc._x = 150;
    target_mc._y = 100;
    my_listener.onLoadProgress = function(target_mc:MovieClip) {
    trace(target_mc.getBytesLoaded() + " out of " + target_mc.getBytesTotal());
    var my_loader:MovieClipLoader = new MovieClipLoader();
    my_loader.addListener(my_listener);
    //my_loader.loadClip("little.swf", container_mc);
    my_loader.loadClip("cam01.swf", container_mc);

    do you see a rotated swf if you use:
    this.createEmptyMovieClip("container_mc", 1);
    var my_listener:Object = new Object();
    my_listener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._x = 150;
    target_mc._y = 100;
    target_mc._rotation = 22;
    var my_loader:MovieClipLoader = new MovieClipLoader();
    my_loader.addListener(my_listener);
    my_loader.loadClip("cam01.swf", container_mc);
    if yes, either:
    1.  you are repositioning your swf and for some reason don't recognize that or
    2.  you're changing container_mc or one of its parents _x,_y properties elsewhere.

  • Loading swf into swf in exact position

    It's very simple to load an external swf into a main swf with
    loadMovieNum("name.swf", 50);
    But how do I control the position of the loaded swf?
    Currently it just pops in the top left.

    Try loading your external .swf into a pre-positioned
    movieClip, for example myMovie.loadMovie("name.swf). If you do not
    want to do this you can position the loaded movie later in your
    application or onload by setting the x and y pos with some
    AS.

  • I open a site, it loads and i'm already reading or looking at it and suddenly it turns into a blank page without me doing nothing or moving or clicking anywhere. Have happened to me on 3 different addresses

    Hi.
    I'm having a problem with Firefox. Lately it have happened to me that I'm looking at a site and suddenly the site turns into a white blank page and that happens without me doing anything or clicking anywhere. The site loads normally and I can navigate through the page but then all the content disappears and shows just a white page. At first I thought it was a problem with the address because that problem happened to me just in this one(http://www.ksl.com/index.php?nid=231&cat=144&category=142) while I was looking at the classifieds but today I was browsing other pages(e.g. www.collegeboard.org) and the same thing happened. And it doesn't happen on every site, so far is has been just in a couple of addresses. Then, in order to fix this, I have to click the "go back one page" button to get to the same page I was on. It looks like when it turns white is because it goes to a different page because if I reload that white page nothing happens until I click "go back". I hope you can help me.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for

  • "Documents" folder is suddenly locked, can't change HELP!!

    Help!! All of a sudden my Documents folder, in my home folder has a little "lock" in the icon and its marked "read only". The attributes ar "dr-xr-Sr-- " I've never seen the "S" before, no clue... Nothing I do will change this. What could have possib

  • Adding Images in the Interactive Form

    Dear All,     How to add a image in the standard SAP Deliver interactive forms for the PCR. Can i able to change the logo which is available in the system to the custom logo. So that will it get reflected in the all the standard screen using the logo

  • Cant access my information from old sync

    I have my recovery key, username, and password from old sync account. I have a pre v28 fire fox. i was at one point able to request a password change, and received the email to the account i had signed up with long time ago, but when i would click th

  • Acrobat Distiller crashing

    Can someone help me? As part of my job I use Acrobat distiller 8.1.0 when I have to created PDF's from ESP files. My problem is that, when I click to open disitller from my dock it crashes. Each time I want to use distiller I have to restart my mac.

  • Intrastat declaration file creation

    The results of step 6 can be then included in a file. There are several options Not all the options are available for all countries of declaration. Create u2018test fileu2019: The file is created following the specific format required by the authorit