Need Help Loading SWF in a FLA

I simply want to call a swf into an existing fla. I have
tried everything. When dragging the timeline, you see the swf. When
you preview, it is not there. Background - I have an exisiting fla
that contains the image background for all. I want to set a
transparent carousel menu on top of the background that is in the
fla and leave the existing background and lower objects in place.
The carousel.swf will need to call java and an xml file on the web
server.....all external to the "summed" final. If I could layer
flashed in DW, then the problem would also be solved. Please be
detailed, I am obviously not a developer.

although I'm not certain why you would not just 'place' the
background 'image' on the stage in the fla (probably because you
wish to change it dynamically down the road) - you need to 'load'
the swf, not 'place' it within the other file. you do this with the
MovieClipLoader class.
with the swf that you wish to load in the same directory as
the swf of the carousel file, place something like the following in
the first frame, on a layer called actions, in the actions panel:

Similar Messages

  • Need help loading .swfs one by one, in specific order

    i have been trying to figure this out for weeks now, and have
    even posted on other forums about this, but nobody seems to be
    willing to help me. i have a main swf, which is the basis for my
    image gallery. once this page loads, a thumbnail should start
    loading with a preloader displaying the precentage loaded. once the
    percentage hits 100%, the image shows up, and the next thumbnail
    starts, and so on. there are 15 thumbnails total that have to be
    loaded. each one should load with a 10 pixel gap all around, and i
    want to have 5 images load per row. i think i need to create empty
    movie clips for each thumbnail to load into, but i'm not sure.
    hell, i don't even know how to code this so it will work correctly.
    would someone be willing to put this together for me? i am a
    beginner actionscripter, and if people simply tell me "add this
    line in so this will happen," i will have no idea what to do, so
    that is why i need the code put in for me. i'm hoping someone here
    is nice enough to do this for me, because being ignored on two
    other forums has made me just want to say "screw it."
    so PLEASE, can someone help me?
    i have uploaded my files into a .zip file. i have only
    uploaded 6 of the pictures, so that i can see if the code (that
    someone will hopefully make) works when i asked for 5 thumbnails
    per row.
    file is located here:
    http://www.arielseri.com/fla_files.zip

    i completely understand. i've actually come up with a
    semi-working solution!
    i have 15 thumbnails total, but when i play the movie, all 15
    load on one line and after 5 show up, the rest go off the stage. i
    would like to set it up so that there are 5 .swfs per row. i have
    one main .swf file, and two .as files. the code for each is as
    follows (the ========== is just to separate the code):
    main .swf code (called test.swf):
    ==========
    fscommand("fullscreen", "false");
    fscommand("allowscale", "false");
    // A container clip for our thumbnails
    var thumbnails_mc:MovieClip =
    this.createEmptyMovieClip("thumbnails_mc",
    this.getNextHighestDepth());
    // An array holding the paths to our thumbnails
    var thumbnailPaths_arr:Array = ["1.swf", "2.swf", "3.swf",
    "4.swf", "5.swf", "6.swf", "7.swf", "8.swf", "9.swf", "10.swf",
    "11.swf", "12.swf", "13.swf", "14.swf", "15.swf"];
    // Our ThumbnailManager
    var thumbnailManager:ThumbnailManager = new
    ThumbnailManager(thumbnails_mc, thumbnailPaths_arr);
    ==========
    ThumbnailManager.as code:
    ==========
    import Thumbnail
    class ThumbnailManager
    private var counter:Number = 0;
    private var root_mc:MovieClip;
    private var thumbnailPaths_arr:Array;
    public function ThumbnailManager (target:MovieClip,
    paths:Array)
    root_mc = target;
    thumbnailPaths_arr = paths;
    (thumbnailPaths_arr.length > 0)? createThumbnail() :
    null;
    private function createThumbnail ():Void
    var thumb:Thumbnail = new Thumbnail(this,
    thumbnailPaths_arr[counter], root_mc, counter);
    counter++;
    public function onThumbnailLoaded ():Void
    if (counter < thumbnailPaths_arr.length)
    createThumbnail();
    else
    ==========
    Thumbnail.as code:
    ==========
    import AsBroadcaster
    import ThumbnailManager
    class Thumbnail
    public var addListener:Function;
    public var removeListener:Function;
    public var broadcastMessage:Function;
    private var thumbnailWidth:Number = 88;
    private var thumbnailHeight:Number = 61;
    private var thumbnailOffsetX:Number = 10;
    private var thumbnailOffsetY:Number = 10;
    private var view_mc:MovieClip;
    private var image_mc:MovieClip;
    private var loader_mcl:MovieClipLoader;
    public function Thumbnail (manager:ThumbnailManager,
    url:String, target:MovieClip, d:Number)
    AsBroadcaster.initialize(this);
    this.addListener(manager);
    render(url, target, d);
    private function render (url:String, target:MovieClip,
    d:Number):Void
    view_mc = target.attachMovie("thumbnail", "thumb_"+d+"_mc",
    d);
    view_mc._x = (d * thumbnailWidth) + (d * thumbnailOffsetX);
    view_mc._y = 0;
    image_mc = view_mc.createEmptyMovieClip("image_mc",
    view_mc.getNextHighestDepth());
    image_mc._x = 0;
    image_mc._y = 0;
    loader_mcl = new MovieClipLoader();
    loader_mcl.addListener(this);
    loader_mcl.loadClip(url, image_mc);
    public function onLoadError (target:MovieClip,
    error:String):Void
    broadcastMessage("onThumbnailLoaded");
    public function onLoadProgress (target:MovieClip, bL:Number,
    bT:Number):Void
    public function onLoadInit (target:MovieClip):Void
    broadcastMessage("onThumbnailLoaded");
    ==========
    can anyone help me out with what code to put where? i have
    uploaded a .zip file which contains all of the files here:
    http://www.arielseri.com/thumbnails.zip

  • Need help or someone to edit .fla file

    Need help or someone to edit .fla file

    The .fla file I want to edit is the flash in header at www.ridinggigistyle.com I want to remove the event button titled Boot Camp. I can send .fla file and request that edited changes be sent back to me. Direct email [email protected]

  • I need help loading a swf file in a flash website

    Hi,
    I am an interactive design student working on a flash portfiolio and need help. I can't figure out how to load a game I made in flash into my porfolio so that it loads after clicking on a button, becomes playable, then have a button to leave the game and go back to my portfolio. I'm working in Actionscript 2.0 because that's all my teachers will show me and I have minimal actionscript knowledge.
    Thanks,
    Emily

    I thought I got it to work with loadMovie, but it only plays the intro, and then either repeats or exits as soon as the first bit of actionscript starts

  • Need help loading DLL in labVIEW project

    I have a DLL that was written in C# that I want to load it to my labVIEW project. I have never done this before, so I need help. I chose Connectivity-Call Library Function Node then loaded my DLL. After, under function name, I typed in the function name from the code. I don't know what to do with other like Parameters.
    They don't let me attach dll file 
    Can someone explain how to set the parameters and etc?

    Well, it seems that you really need to learn quite a bit about .NET (ActiveX is very similar!) first.
    The constructor node in your code creates an object in your .NET CLR (Common Language Runtime). This object exposes properties and/or methods. Use Property Node(s) and Invoke Node(s) to access these. Usually, you get references to other objects which you can work this.
    Remember the golden rule for ActiveX and .NET:
    Close all references you created in your LabVIEW code on your own (using Close Reference)!
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Please I need help with swf folders.

    Hi everybody,
    I install adobe flash and when i surf on the internet it is
    working. But I have a lot of swf flash folders stored in my disk c.
    When I go to open them It appears like adobe flash is not install
    in my disk to be able to open these files. I only can open this
    files with firefox or microsoft explorer. Adobe flash is only
    installed in my system and as i told you i am able to see all the
    flash folders which i find on the internet when I enter to any
    website with flash adobe folders. I installed and unistalled adobe
    flash several times. But this is not resolved.
    Please I need help.
    Many thanks

    Click here and follow the instructions to change the iTunes Store country.
    (82303)

  • Need help with swf auto slider...

    Hi,
    I downloaded a flash auto slider from one site. But I don't
    know how tu use it. It has a lot of AS external files. I imagine,
    that it should read data from an xml file, and there is AS file,
    which calls xml, but I need help, to create that xml, or to show
    how to use that auto slider...
    This slider is simillar like this one in observer.com main
    site (with 4 thumbnails).
    Here is all files need in slider.
    Click here for
    download.
    Thanks for any help...

    you have in the same directory the .swf, html page, flv., and
    the actual video?

  • Need help loading data from Excel data file to oracle tables

    i need to load an Excel spreadsheet to Oracle table.
    The spreadsheet contains 20 columns, the first 8 columns contains basic info, but the rest 12 columns contains info like
    1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    So what i need to accomplish is:
    break that one record(with 20 fields) in Excel to 3 records for each fiscal year in the Oracle table, so each record in the database table will look like
    8 basic field + fiscal_year + 1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    8 basic field + fiscal_year + 1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    8 basic field + fiscal_year + 1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    There are about 10000 rows in the data file, so how can i use sqlldr to perform such task? beside sqlldr, any other good suggestions?
    thx

    External Tables is just an Oracle API for sqlloader. If you going to load this data over and over again, External tables would be a good idea, but if it's a one time thing, sqlldir is simpler, unless you just want to learn how to use External Tables.
    I used to run a data warehouse, so I have done, at least similar, to what you are doing in the past.

  • Need help loading an external SWF

    I'm not very proficient in Flash, so any help will be greatly appreciated. I'm trying to load an external SWF with the following code:
    T1_Bttn_BloodCar.onRelease = function() {
    t1_images_mc.loadMovie("images/T1_Gallery/BloodCar_SWF/T1_BloodCar.swf");
    t1_images_mc._alpha = 0;
    It loads the SWF, but doesn't play it correctly when I test it. Here's how the loaded movie is supposed to look:
    http://www.theroboteye.com/T1_BloodCar.html
    But instead, it plays without the transitions, like this:
    http://www.theroboteye.com/TRE2009b.html
    I've been trying to figure this out for a few days and have tried adding "this._lockroot = true;" to the SWF I'm trying to load, but I can't get it to play correctly. Can anyone tell me what I'm doing wrong? Thanks in advance.

    Try using the MovieClipLoader class (loadClip method) instead of the loadMovie method.  That way you can have a listener that waits for the movie to be loaded and then pull it into play, assigning actions and properties to it after the fact.

  • 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.

  • Need help with SWF page transitions please :)

    I am having an issue recreating something I have seen on
    other flash sites... (For example on 2Advanced.com) It is hard to
    explain but I will do my best. I am advanced in design, layout,
    tweening, and am a beginner to intermediate action scripter. So
    even if your solution is a point in the right direction to some
    code I could pick up and noodle around with that would be great.
    That having been said, on to the issue, it's a 2 parter:
    Part 1:
    I have a Master FLA (or SWF) containing navigation that loads
    secondary SWF pages into movie clip containers for the 5 additional
    pages of the site. These load above the Master movie clip masking
    it (Navigation floats above) so the loaded pages are sandwiched in
    between.
    View page in it's current state here:
    http://sky.prohosting.com/tk421808/rwip/gallery_MAIN.html
    This works ok right now, but I have the SWFs replacing one
    another in one single movie clip container. What I would like to do
    is similar to shuffling 5 cards... if you want the 4th card down
    you pull it out, it goes to the top and slides over the last
    visible card on top. So I would like the first page clicked to
    slide in covering the master MC, the second page clicked, to slide
    in covering that one, and so on and so forth. This would be easy if
    the pages were linear, then I could just stack the movie clips, but
    since the user will click out of order I need a way to load one
    into MC_2 (on top), Then when another is clicked have the MC_2 SWF
    move down a level (Swap MC?) to allow the second to slide in above,
    and then delete the movie that has moved down into level one
    (Bottom) then have this repeat when another movie is clicked. This
    way it will look like the page you clicked is always sliding in
    over the one you are leaving.
    Part 2:
    I have no idea how to do this next part but... I believe it
    involves a gotoAndPlay. I would like to have animation in the movie
    that is unloading after the button for the next page to load is
    clicked... in other words, you have loaded a page, you click on
    another link, and before the new external SWF page loads, the
    current performs a gotoAndPlay where I have animated some
    de-constructing swipes that remove the text, shapes holding the
    text, and the image. ONLY THEN does it start to load the movie for
    the link it selected. I think what I am trying to ask here is how
    does it carry the link through the unloading animation until it's
    done and then execute the loading of the new external SWF of the
    link they just clicked?
    I pray this makes sense... If not I would be happy to explain
    further. :) Thanks in advance for any help!

    >> I have no idea how to do this next part but... I
    believe it involves a
    gotoAndPlay. I would like to have animation in the movie that
    is unloading
    after the button for the next page to load is clicked... in
    other words,
    you
    have loaded a page, you click on another link, and before the
    new external
    SWF
    page loads, the current performs a gotoAndPlay where I have
    animated some
    deconstructing swipes that remove the text, shapes holding
    the text and them
    the image, and ONLY THEN does it start to load the movie for
    the link it
    selected. I think what I am trying to ask here is how does it
    carry the
    link
    through the animation until it's done and then execute the
    loading of the
    external SWF of the link they just clicked?
    <<
    You don't use frames. I'd probably use Fuse for this - which
    is a sequencing
    engine. (www.mosessupposes.com) You can call a function when
    the sequence is
    done animating - using what's known as a callBack function.
    That'd be the
    best way, IMO.
    For part one, you could either place mutliple empty movie
    clips, or just
    create them using createEmptyMovieClip - which is a MovieClip
    method, and
    then load your swfs into them with MovieClipLoader. You can
    use swapDepths
    for layer control, in order to have any given clip move above
    another, layer
    wise.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Still need help :( loading outside files in actionscript

    Ive been all over the forums online trying to get this
    problem fixed and no one has really settled it for me (its been
    MONTHS)
    So I'm going to attempt to be as in depth as possible and
    post code as well.
    Heres the deal- its a portfolio site, www,darrenlasso.com
    The problem is when i load multiple swf files into levels.
    When i first call on an outside swf from a button inside the main
    file the code looks something like this:
    on(release){
    _level1._visible=false;
    loadMovieNum("cover.swf", 1);
    cvrbtn._visible = false
    acibtn._visible = false
    When from inside THAT file, I want to return back to the MAIN
    navigation file, the code looks more like this:
    on(release){
    mcl.addListener(mclListener);
    mclListener.onLoadInit = function(mc:MovieClip){
    mc._visible=true;
    mc.gotoAndPlay(76);
    _level1._visible=false;
    mcl.loadClip("darnen.swf", 1);
    Ive messed around with the code so many times now trying
    everyones different suggestions that i dont even know if that is
    the code I have live right now but i know its not working how i
    want it to. The problem seems to be that i can only load into level
    1, and when i do that, going between these various calls on outside
    files there is a 'flicker' of a frame or two of the OLD previously
    loaded file that will play BEFORE the new one initiates. As this is
    a portfolio site it needs to be polished so i can't have stuff like
    this plaguing it. Its been unfinished for months now because i just
    can't figure it out. Please please help me if you can.. hopefully
    you like a challenge because i just havent been able to get the
    help i need from anywhere else :/

    when i load the swf from outside, i want it to then be able
    to return to the main navigation file which i guess would be level
    0. So does that mean that the code for buttons navigating back to
    the main flash file would be more like:
    on(release){
    mcl.addListener(mclListener);
    mclListener.onLoadInit = function(mc:MovieClip){
    mc._visible=true;
    mc.gotoAndPlay(76);
    _level1._visible=false;
    mcl.loadClip("darnen.swf", 0);
    As i load in all these different files from outside I've been
    loading them all into level 1 because that seems to be the only way
    to get them to display at all with the code I'm using. I assume it
    might be better to load them all into individual levels? I'm not
    sure. I'm still just kinda learning AScript as i go along..

  • Need help loading xml parameter into component

    I am using a third-party flash component (no source access)
    that takes in a location of an xml file and manipulates it. The
    problem is, I want that file's location to be dynamic and be loaded
    from an argument to the end .swf that can then be forwarded to the
    internal component. How can I load a component at runtime and set
    it's xml_file parameter before/during construction of the object? I
    have tried to drag it to the stage from components and change the
    xml_file parameter in actionscript directly, but by the time this
    change gets triggered the xml has already been read in and it
    doesn't work.
    This may be really simple, but I just can't figure it out. I
    would appreciate anyone who could help. Thanks.

    First, set the size of the component with the setSize method,
    not "height" and "width". That may be the entire source of your
    problem.
    e.g.: this.componentInstanceName.setSize(175, 175);
    Second, I am unsure all the parameters you specify in the
    initialization object are valid {x:10, y:10, height:20, width:20,
    font_color:'#333333', player:"vidPlayer", xml_file:"list.xml"}.
    Only put in the initialization object parameters that are valid for
    the component you are instantiating.
    Third, make sure you are specifying the correct import
    statements for your component at the top of your code. Since it is
    a custom one, I can't help with knowing what to import. The code I
    attached in my first post assumed import statements and the
    components needed in the library, but here are the import
    statements that I used:
    import mx.controls.*;
    import mx.containers.*;//for scrollPane
    import mx.styles.CSSStyleDeclaration;
    import mx.transitions.easing;
    Fourth, don't forget the ignoreWhite method for importing XML
    into Flash:
    XML.prototype.ignoreWhite = true;// sets ignoreWhite
    globally

  • Need help Loading images with selection on a form field?

    So I'm kind of a newb.. I can do basic forms but I need to set up a form field drop down box that will give me the ability to load images correlating to the users choice. I'm at a total loss for where to start, so ANY help would be appreciated. If you know of any good books or tutorials on the subject please share.
    Thanks in advance
    Sincerely,
    Stumped4now 

    P.S. I think I'm getting a better understanding of OCGs after lots of research today. However I still seem to be missing something
    var docOCGs = this.getOCGs();
    for (var x=0; x < docOCGs.length; x++)
      if(docOCGs[x].name == "Layer1")
      docOCGs[x].state = !docOCGs[x].state;

  • Need help with swf inside swf

    Hello. The last few weeks I have come along way in flash,
    being new to the whole software. I have watched numerous video
    tutorials, one from www.entheosweb.com about creating a simple
    gallery.
    http://www.entheosweb.com/Flash/video_tutorials/basic_slideshow.asp
    So after this, he saves as fla. I want it to be a movie I
    embed on my flash website, labeled gallery. I have tried different
    ways to do this, import to library. I exported my gallery as an SWF
    movie, AND of course, FLA so I can go back and tweak as needed.
    When I import the SWF to the library, so I can place it in
    the gallery frame of my master movie, it brings in ALL the pictures
    and next and prev buttons. It brings in all the frames into the
    library, AND the SWF file. When I convert the swf to a movie clip,
    and stick it in the page, its there in my gallery page, but its
    playing REALLY fast, and all the action script I wrote for this
    gallery has gone away. The prev and next buttons don't work. What
    am I doing wrong?
    I have read where I have to use file>open to library and
    import the .FLA, but thats like 17 frames, and not a flattened
    movie. What do I do then?
    Thanks, I'm SOOOO ready to cry or punch my monitor.

    You need to use loadMovie();
    Do some searches in the forum for that...

Maybe you are looking for