Movie clip to seperate swf

hey quick question,
i already made my flash site but realized afterwards that swf file is way too big. i compressed the images in photoshop as jpgs (72 dpi) but the site still loads way too slow during the preloader. the only option that i can think of is to make the site a swf file and the work section as another swf file. how would go about creating a seperate swf from my work section (which is a movie clip)?
thanks

have you considered removing all the jpgs from the swf and loading them?

Similar Messages

  • Hide movie clip of external swf

    Hi there.
    I have my main.swf and in the second frame i load an external swf called first.swf with this method:
    [AS]var loader:MovieClipLoader = new MovieClipLoader();
    this.createEmptyMovieClip("myGalleryContainerproducts",5);
    myGalleryContainerproducts._lockroot=true;
    loader.loadClip("first.swf",myGalleryContainerproducts);
    myGalleryContainerproducts._y =86;
    myGalleryContainerproducts._x =50;
    [/AS]
    In first.swf i have two movie clips with instance names ena and dyo
    I want in main.swf in the third frame to hide these movie clips of first.swf  (only the movie clips not the whole .swf) or to move them (change x and y values) so they practically hide.
    Any solutions?
    Thank you in advance

    You will need to wait until the file is loaded to be able to interact with it, so if that might be an issue timing-wise then look into using the addListener method of the MovieClipLoader class.  If the movie is loaded you should be able to access the movieclips within it using the movieclip name you assigned (mygalleryContainerproducts) to target them.

  • Attach movie clips using seperate functions

    I'm having a little trouble with the following code. I'm
    calling two functions: init() and inittwo() to attach some movie
    clips to the stage. If I comment one of them out, the other works
    fine and the movement is okay. But as it is, only the "cloud" movie
    clips are being attached. I need for the clips in the "dreamarray"
    to be attached, and then for the "clouds" to be attached with a
    second function. I'm probably not going about this the right way,
    but I could sure use some help!
    It would also be cool if I could attach the dreams at set "x"
    values instead of random distribution. I'm not sure how to set a
    seperate x value for each item in the array being attached.
    var numClouds:Number = 10;
    var fl:Number = 250;
    var gravity:Number = .5;
    var vx:Number = 0;
    var vy:Number = 0;
    var vz:Number = 0;
    var friction:Number = .97;
    var vpX:Number = Stage.width / 2;
    var vpY:Number = Stage.height / 2;
    var vpY:Number = 400;
    var dreamarray:Array = new Array();
    dreamarray[0] = "dreamone";
    dreamarray[1] = "dreamtwo";
    dreamarray[2] = "dreamthree";
    init();
    inittwo();
    function init() {
    for (var i:Number = 0; i<dreamarray.length; i++) {
    var dream:MovieClip = attachMovie(dreamarray
    , "dreamarray" + i, i);
    //var dream:MovieClip = attachMovie("dreamone", "dreamone" +
    i, i);
    dream.x = Math.random() * 1600 - 800;
    dream.y = 50;
    dream.z = Math.random() * 800;
    //trace("functioncall");
    //tree.x = Math.random() * 2000 - 1000;
    //tree.y = 50;
    //tree.z = Math.random() * 10000;
    function inittwo() {
    for (var j:Number = 0; j<numClouds; j++) {
    var cloud:MovieClip = attachMovie("cloud", "cloud" + j, j);
    //tree.x = 400;
    cloud.x = Math.random() * 1600 - 800;
    cloud.y = 50;
    cloud.z = Math.random() * 800;
    function onEnterFrame():Void {
    if(Key.isDown(Key.UP))
    vz -= 1;
    else if(Key.isDown(Key.DOWN))
    vz += 1;
    if(Key.isDown(Key.LEFT))
    vx += 1;
    else if(Key.isDown(Key.RIGHT))
    vx -= 1;
    if(Key.isDown(Key.SPACE))
    vy += 1;
    vy -= gravity;
    vx *= friction;
    vy *= friction;
    vz *= friction;
    for (var i:Number=0;i<dreamarray.length;i++) {
    //i think there is a error here
    var dream:MovieClip = this["dreamarray" +i];
    dream.x += vx;
    dream.y += vy;
    dream.z += vz;
    if(dream.y < 200)
    dream.y = 200;
    vy = 0;
    if (dream.z <= -fl) {
    dream.z += 1000;
    else if(dream.z > 1000 - fl)
    dream.z -= 1000;
    var scale:Number = fl / (fl + dream.z);
    dream._xscale = dream._yscale = scale*100;
    dream._x = vpX + dream.x * scale/2;
    dream._y = vpY + dream.y * scale/2;
    //dream._x = dream.x * scale/2;
    dream._alpha = scale * 60 + 40;
    dream.swapDepths(-dream.z);
    for (var j:Number=0;j<numClouds;j++) {
    var cloud:MovieClip = this["cloud" + j];
    cloud.x += vx;
    cloud.y += vy;
    cloud.z += vz;
    if(cloud.y < 50)
    cloud.y = 50;
    vy = 0;
    if (cloud.z <= -fl) {
    cloud.z += 500;
    else if(cloud.z > 10000 - fl)
    cloud.z -= 10000;
    var scale:Number = fl / (fl + cloud.z);
    cloud._xscale = cloud._yscale=scale*200;
    cloud._x = vpX + cloud.x * scale;
    cloud._y = vpY + cloud.y * scale;
    cloud._alpha = scale * 60 + 40;
    cloud.swapDepths(-cloud.z);

    Hi Ive just taken a very quick look at your code and Ive
    noticed at least one or two mistakes.
    you are calling:
    init();
    inittwo();
    before the actual functions have been declared.
    Flash works from top to bottom when actioning code so by
    calling:
    init();
    inittwo();
    bofore the function has been declared and this will do
    nothing as it cannot find the functions to call as they have been
    declared AFTER the function calls.
    The best thing to do is put any calls right at the bottom and
    then you will know everything is ready to be triggered.

  • Accessing movie clip from flash swf file

    I have the situation where in flash i created a simple
    animated movie clip with few stop() commands on timeline. Movie
    clip consists of simple animatio played on roll over and on roll
    out which is controlled using actionscript. I loaded movie clip
    into flash using [embed] tag but actionscript code is stripped,
    there is no stop() action so movie clip loops continously. I guess
    that's normal behaviour for embedded flash swf files but i would
    like to know is there a way to still achieve that? Can i load swf
    some other way with its actionscript and then control movie clip
    from flex?

    You need the FLA's to open in Flash.
    You could download the free trial of a flash decompiler
    (www.sothink.com). The free trial won't give you actionscript, but
    it will give you all of the art in the swf.

  • Mask - movie clip loaded from .swf

    Hi!
    I have made an application where a movie clip (map_mc) is
    masked by another movie_clip (map_window_mc:
    map_mc.setMask("map_window_mc");
    This works fine until I try to load an "external" .swf into
    map_mc:
    map_mc.loadMovie("Testmap.swf");
    Then the mask does not work anymore......
    Any suggestions?
    (The testmap.swf is also displaced from map_mc.........)
    I use Flash 2004 MX pro
    terjem

    terjem,
    > My problem is probably that I really don't know wath
    event
    > handler I should use...
    Depending on the approach you're using, there may not even
    be an event
    handler when the external SWF loads. If you're using the
    MovieClipLoader
    class, there will be. If you're using a
    MovieClip.onEnterFrame loop, there
    won't be.
    > Here is the first ("non-automatic") code that works:
    Okay.
    > map_mc.loadMovie("Testmap.swf");
    > trace("Loading started!");
    > this.onEnterFrame = function() {
    > if (
    > map_mc.getBytesLoaded() > 0 &&
    > map_mc.getBytesLoaded() >= map_mc.getBytesTotal()
    > ) {
    > trace("Loading complete!");
    > trace("File width: " + map_mc._width);
    > delete this.onEnterFrame;
    > } else {
    > trace("File width: " + map_mc._width);
    > }
    > };
    Okay. So far, so good. When bytes loaded is greater than
    zero and
    greater than or equal to bytes total, you'll know the
    external SWF has fully
    loaded. You'll know, because the "Loading complete!" trace
    will be visible
    in your Output panel. Well, that means the place in this
    script that
    represents "where to put additional code" is right were your
    trace()
    functions are. Not in the "else" clause, but the first one
    this.onEnterFrame = function() {
    if (
    map_mc.getBytesLoaded() > 0 &&
    map_mc.getBytesLoaded() >= map_mc.getBytesTotal()
    trace("Loading complete!");
    trace("File width: " + map_mc._width);
    [delete these trace() functions, if you like]
    [add your masking code here]
    delete this.onEnterFrame;
    // etc.
    > The code below does not work (the positioning of the
    > map_mc works, but not the setMask):
    Your problem may be right here ...
    > map_mc.setMask("map_window_mc");
    ... because "map_window_mc" is in quotes. Yes, the
    ActionScript Language
    Reference says the parameter of setMask() may be a string,
    but leave the
    quotes out and see what happens. In any case,
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Target movi clip in separate swf

    Hi, i am updating a website and am trying to move the "skip"
    button to appear earlier. To do this I have to move the button to
    another swf file.
    now I can load the swf (dbo.swf) into an empty movie clip
    (named empty_mc) easily enough, but I am trying to target different
    things to happen inside of the newly loaded swf instead of playing
    from the beginning. I tried this:
    on (release) {
    empty_mc.loadMovie("swfs/dbo.swf");
    empty_mc.boxes_mc.gotoAndPlay("quickbuild");
    empty_mc.gotoAndPlay("jump_home");
    empty_mc.stopAllSounds();
    ...but it still plays from the first frame of dbo.swf instead
    of playing the appropriate movies and frames. any suggestions?

    When I load in a new .swf file into my main movie, it appears to load on top of the main movie.
    This is the load function that we set up:
    this.createEmptyMovieClip("target1MC",this.getNextHighestDepth());
    this.createEmptyMovieClip("target2MC",this.getNextHighestDepth());
    var currMC:MovieClip = target2MC;
    target1MC._alpha = 0;
    function loadF(y:Number, d:Number) {
    otherTargetF(currMC).swapDepths(Math.max(target1MC.getDepth(), target2MC.getDepth()));
    mcl.loadClip("floors_swf/"+y+"_"+d+".swf",otherTargetF(currMC));
    Is there a way to get the .swf file that gets loaded in to load behind the graphics in my main movie?
    It appears to be loading into the target1MC, but I don't see where to set the level that it loads into?
    Thanks

  • How to access dynamic movie clips in a loaded swf

    Hello,
    I have a main movie file that loads a swf through loadclip.
    There are several dynamic movie clips in the library of the
    loaded swf (all set to export in first frame).
    I'm trying to create a popup window (using the Window
    component) by using code in the main movie to popup content that is
    in a dynamic movie clip within the swf loaded by loadclip.
    So far, I can create the popup without any problem as long as
    the contentPath refers to a linkage identifier of a library item in
    the main movie, but it won't work for a library item in the loaded
    movie. Is there a way to make this work? Is there a special way to
    reference library items in loaded movies?
    Here's my code to create the window:
    myWin = mx.managers.PopUpManager.createPopUp(this,
    mx.containers.Window, true, {title:mytitle, contentPath:myref,
    closeButton:true});
    where myref is a string containing the linkage identifier for
    the library item within the loaded swf.
    Thanks in advance for any assistance,
    Julia

    I have found out that I can access a dynamic mc from the
    loaded library (using attachMovie), but cannot use that same
    dynamic mc as the contentpath for a popup window.
    Any ideas why?

  • Button within a movie clip not working

    Hiya,
    I have a movie clip within my swf website that is basically
    an icon that you roll over to produce the menu. The movie clip has
    coding inside it to produce the rollover effect. This is as
    follows:
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    Whilst this coding works fine for this movie clip, for some
    reason the buttons within the movie clip that appear as you
    rollover them will not work when pressed. I am trying to get them
    to navigate the main timeline, i.e. coding as follows:
    on (release) {
    _parent.gotoAndPlay("home")
    _parent should be correct, I've tried it without and with
    _parent._parent however still it has no effect. From what I can see
    everything should be working fine.
    Is there some reason why buttons will not work within this
    sort of roll over effect movie clip?
    Thanks for your help.

    you can't assign mouse handlers to a parent movieclip and
    expect a child movieclip to respond to mouse events: the parent
    will intercept those events.
    to remedy, either assign all your mouse handlers on the child
    generation movieclips or use a hitTest() for one of the
    generations.

  • Turning movie clips on/off with AS3

    Hi everyone ... I need help! I'm relatively new to Flash so hopefully I'll be using the correct terminology here so as not to further confuse any would-be problem solvers out there!
    I am working on an interactive map that allows the user to click on different categories and see them highlighted on the map. (For example - if you click 'retail' all the retail locations on the map will be highlighted.) I have several different categories - 6 to be exact - and I would like the user to be able to click on multiple categories at once, so they can see where residential areas are in relation to offices, for example.
    What I've done is create what looks like a 'toolbar' to one side with buttons for each category. (initially I was using actual flash buttons which redirected to a later frame showing only the highlighted buildings, and then the user could click a 'back' button to get back to  the toolbar.) I have now made each of these text objects into movie clips, and when I double click on the movie clip I have 10 frames. One is actions, obviously, one is the text itself (currently using TLF text) and the third is a .png file, which I've set up as a movie clip and tweened so that it goes from 0% alpha to 100% alpha within the 10 frames.
    In order to get the SWF to function where I'd be able to click on/off one of the categories more than once, I had to set the initial TLF text as 'read only' (when clicked this goes to frame 10 and stops, leaving the buildings highlighted). and the final TLF text as 'selectable' (when clicked, this one goes back to frame 1, where the buildings are not highlighted).
    Unfortunately, when I have all 6 of these movie clips in the SWF, if I click on more than one at a time, I must click them 'off' in the reverse order. Otherwise they will not turn off. EX - if I turn on 'restaurants, hotels, residential' in that order, I have to turn them off in the order of 'residential, hotels, restaurants'
    Does anyone have any tips to make this simpler? I don't know if there is a better way to have these categories 'turn on' other than using the TLF text. I hope one of you smart Flash experts can help me out ASAP!!!

    that's a task much easier to do using actionscript rather than use the timeline.  each location or parent location (if you want one parent for retail and one for residential etc) could have two keyframes.  one for highlighted locations, the other for non-highlighted.  you can timeline tween between the two keyframes, if you want.
    your main timeline would not change frames.  clicking the retail toggle button would cause all retail locations to tween to the highlighted frame.  clicking it again, it should cause the retail locations to tween to the non-highlighted frame.
    likewise for you other buttons and other locations.
    this setup will remove the complications caused by having various combinations of buttons toggled on and off.

  • Movie Clip / Browser Window Resize?

    Hello Everyone,
    I was wondering if anyone knew of a way that you could make a
    single movie clip in your .swf react to the current width of the
    browser window, when its loaded.
    I would like to use this specific piece of code to
    dynamically center an "enter" button on a website.
    Thank you in advance

    If you set the properties of your .swf to 100% width and
    height your movie will automatically fill the browser regardless of
    resolution. Note if your using a colored background for your web
    page you will see white striping down each side of your movie. just
    set the param for bgcolor to what ever you need it to be
    Kevin

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • How can I call in swf file to movie clip?

    Hi all ...
    This is my first post for advise, although fairly conversant
    with flash and as2.
    I am developing a new full screen background style website
    and have menu buttons contained within a movie clip (nav_c1) ...
    this re-aligns to the top centre of a page when user scales the
    browser window.
    I then have the content area (centre_content) movie clip ...
    this realigns to the centre of the page when a user scales the
    browser window.
    I have scripted the menu buttons to goto a labelled frame in
    the main timeline but I need, when at the labelled frame, to be
    able to call/load in an external swf file to play 'inside' the
    centre_content movie clip?
    for example:
    If I click my news button the flash file moves to the frame
    label news on the main timeline. This then shows a duplicate of the
    moive clip 'centre_content' which is called 'centre_news'. I need
    to be able to call/load an external news.swf, containing all the
    animated news info, to sit and play 'within' the movie clip
    'centre_news' ... so that it is effectively contained 'within' the
    movie clip file but loaded in place from an external swf file.
    Can anyone help please?
    I can post a rough working example online if need be.
    Many thanks
    A puzzled Adrian
    ps: I don't think I am needing to load the swf to a level 1
    area as I have tried this and instead of the swf file being loaded
    and contained within my movie clip file/area it instead seems to
    sit fixed on the main timeline (ie: not contained within the movie
    clip area).

    Thanks Sketchsta for you code. This looks like we're on the
    right lines as I see what the code is trying to do.
    Unfortunately though I can't seem to get this to work?
    I created a new file to get rid of other scripting that was
    going on and have placed a movie clip called centre_content onto
    the main timeline in frame 1 ... then I have applied your script to
    an actions frame above the movie clip also on frame 1. I change the
    path_to_file line with my swf name (callin.swf) which is a 1 frame
    flash file with some text on it ...
    ... but it doesn't bring in the callin.swf file ... it just
    shows the centre_content clip.
    Am i doing anything wrong?
    I also tried putting the script onto the first frame inside
    the centre_content movie clip but this doesn't appear to work
    either.
    Regarding the pre-loader ... can I simply build this into the
    swf file that is being called in to the movie clip?
    Thanks in advance for your support, it is much appreciated.
    Adrian

  • Movie Clip in swf won't show animation in adobe premiere pro cs4

    Hi, I am new to this forum and as well as a beginner user of adobe premiere pro cs4. I am recently making a animation using Adobe Flash CS5, I've been using movie clips symbol to create all the movement of the character, background and stuff. Unfortunately, swf movies exported from Adobe Flash CS5 do not show any animation at all in Adobe Premiere Pro CS4. I have to use movie clips symbol instead of graphic symbol because filters can be added to a movie clip symbol but not graphic symbol. Is there any way to help making the movie clip symbol to be shown in Adobe Premiere Pro CS4? Your help is much appreciated.

    Check Flash help in the "video" section, specifically "moving content between" PR and FL. (I was looking at CS4, but it must be there in CS5 help as well.)
    Your movie is to be watched on a TV?  I would do this in After Effects. because you'll lose most of the flash functionality once you go to video anyway,

  • Putting a preloader for a loaded .swf in a Movie Clip

    I am trying to use a preloader for a larger .swf file that loads inside of a movie clip. I was wondering what code might work and where to put it. (preloader is a .swf).  I am using CS4, ActionScript 1.0.  Thanks.

    it does nothing in that context.  so use:
    container._x =-258;
    container._y =-235;
    container.loadMovie("gallery.swf");
    this.onEnterFrame=function(){
    // if you have a textfield with instance name preloaderTF
    preloaderTF.text=Math.round(100*container.getBytesLoaded()/container.getBytesTotal())+"% Loaded";
    if(container.getBytesLoaded()>100&&container.getBytesLoaded()>=container.getBytesTotal()){
    delete this.onEnterFrame;

  • Exporting SWF diminishes quality of movie clip

    Im working on a Dragonball Z MMO. things are goin great so far utilizing Flash PHP and MySQL. but thats not the issue right now.
    Im running tests of the battle system. i have the enemy set up as Mr. Popo (character from the series) The quality of the sprite appears great and in good color.
    however, when i compile everything into the final .swf, the movie clip appears diminished, discolored, and just really crappy looking.
    good pre-compiled version
    crappy looking .swf running version >:(
    it only happens to this movie clip in particular, any insite would be grossly appricated.

    Check your export settings go to FIle -> publish settings. Check the slider for image compression/image quality. Should be at 80% by default. Also right click on that image (for that character) in the library and click properties. There should be 2 radio buttons where you can set the quality of the image. If you enter a value and press test, it will show you a preview in that window of what the image looks like at that quality. Let me know if this fixes ur problem.
    Jesse

Maybe you are looking for

  • Not saving work when app switch

    I rated the app in the store and was to explain further regarding my work getting lost.    I've actually up'd the star rating because I think it's not really an Adobe issue.  I think android closes apps when it reaches a certain limit of apps running

  • How to I get iCal/iCloud to retain old events?

    I've just switched over to icloud. I thought I had it all setup, but when I went to look at an event that occurred last year (to check the date), it was gone! In fact, everthing older than a couple of months is missing. My life is in that calendar. H

  • Displaying 2 worksets having 2 different pages in Portal

    Hi All, I have created 2 pages named page 1 and page 2 and 2 worksets named workset1 and workset2 page1 is assigned to workset1 and page2 is assigned to workset2 and both the worksets are assigned to a role named Role1 \Now the role is assigned to a

  • Portal User Time Out Setting

    Hi Does anybody know where one can set the time value after which a user will be logged off if there is no activity? Thanks

  • Rendering cell of JTable

    Hi, I want to know if the cells of JTable can be rendered so that it allows wordwrapping. Please help. Cheers, NNR