Loading external .jpgs or .swfs on different layers

Hi all. Hope someone can help me. How do I get an external
file I upload onto a website through a movieClip instance, to load
behind certain stuff. For instance: I have drop-up and drop-down
menus and want the file thats uploaded to load behind that specific
layer. Do I use code like "send to back", and what would the code
be? I am attaching my currant code so that you can tell me what to
add, and where. Thanks.

create a new layer that is under the layer of your 'certain
stuff'. then create a new symbol, Movie Clip, and drag an instance
of it from the library to the stage on to the newly created layer..
then give that movie clip an instance name of holder_mc. and take
out
var holder_mc = this.createEmptyMovieClip("holder_mc",
this.getNextHighestDepth());
from the code

Similar Messages

  • Vista problem with loading external JPGs?

    I'm really pulling my hair out on this one. I did a quick
    flash piece for a preschool's web site and have tried several
    different Flash components inside of a larger FLA file that load
    external JPG files in a predefined area. With each component, I
    have received complaints (so far only from Vista users) that the
    user sees nothing in the area where photos are supposed to be
    loading. Instead they just see a white or black box.
    Is there any known issue with this? They can see everything
    else in the SWF file (the swinging girl and the text), but not any
    of the loaded JPG photos. Can anyone else out there with Vista tell
    me that they have the same problem? I'd like to track down what the
    common denominator is.
    I've asked two of the users to completely uninstall the Flash
    player and reinstall it, but to no avail. Deactivating Norton
    Antirvirus also didn't seem to do anything.
    Here is the URL:
    http://www.countryvillageps.com
    -- the flash item is the top banner.

    As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.

  • Can you load external jpg files

    Is there a way to load external .jpg files on the fly or do
    they have to reside in the swf file?

    Hi Persons,
    macrofireball is correct as always, but I'll just add a
    thought to this thread because I suspect "rfull" isn't actually
    asking what he/she
    appears to be asking.
    No photo can ever be displayed "by itself". That is, image
    files are always "opened" in some sort of vehicle. It might be an
    image editor, or it might be a document like a *.DOC or a *.HTM ...
    but
    something must "contain" the image.
    So you can access a photo at any time you wish by putting it
    on a web page, then linking to the web page (for instance). Is
    something like that what you really had in mind?
    Have a good 'un folks!
    .

  • Preloader whilst loading external .jpg

    This is the script I use to load external .jpgs into a site
    btn1.onRelease = function (){
    loadMovie("Bike.jpg", _root.photo.empty);
    _root.stick.gotoAndStop(80);
    How would I create script so that it creates a sepaprate
    preloader whilst each image is loading.

    for something like this it's best to use the MovieClipLoader
    class, rather than loadMovie() - doing so will allow you to use the
    onLoadPrgress handler to update the preloader while it's being
    loaded. it would go something like this:

  • Load external jpg

    I cannot load external jpg, they're not progresive.... the
    jpg files are inside a folder, and I write the next code:
    this.createEmptyMovieClip("mc", 100);
    mc.loadMovie("flash/photo1.jpg");
    but it doesn't work...
    Thanks

    use trace(mc) to confirm "this" refers to a movieclip, make
    sure there's nothing at a greater depth preventing you from seeing
    your image, double check your spelling of flash/photo1.jpg (and
    case counts) and make sure your html file is in a super folder of
    the flash folder, if you're testing in a browser.

  • As3 loaded external jpgs

    developing a ui in flash for photo gallery which I am loading
    into dreamweaver.
    using as3 in flash to load external photo files so not all
    having to download on opening.
    have had no problem in dreamweaver with swfs with embedded
    jpgs.
    ui comes up in dreamweaver but not external files. even
    though when I open swf movie or the flash created html of same
    file, on its own, no prob.
    anyone run across this problem, jpgs are in same file as
    flash media, also dropped them into image file just in case that
    might work---no go
    any ideas ?

    your isse begins here ..
    loadSection()
    you use the same loader to not only load files but you are tyring to use it to target the movieClip you also want to play.
    The issue is loader.  The loader can only reference one load at a time.. otherwise you screw up your listeners and the ability to unload files properly.
    You should load all files in Your current system as its own variable so that while one loads you can still control a movie.
    So what type of end transitions do your files have?
    What exactly with this seems like youre getting an issue.. looking at it looks alright aside from the fact that some methods are not used at all by your class

  • Loading external scripts or swfs?

    Hello, all
    I’m trying to build a highscore system for my game.
    I’ll give away the game, so the game can be hosted in several
    different servers, but they’ll load highscores from MY
    server.
    The problem is: I know many security changes were made past
    player versions, and sometimes things just stop working because we
    can’t access a file or script that is hosted in a different
    server!
    I guess I have two choices:
    1) Making all games load a separated swf,
    “highscores.swf”, that will contain all highscores
    access routines; or
    2) Putting all highscores inside the game, and then loading
    an external php script that will contain highscores data.
    I know both solutions – loading an external swf and
    loading an external php file – were blocked once in Flash
    Player lifetime, hehe. So what’s the safest one? Which one
    should I use to maximize the lifetime of my highscores system? Does
    anyone knows if they are planning to block loading external swfs,
    or external scripts?
    Thanks
    --Malu

    sorry about multiple posts, I double clicked submit button
    and now we have all those repeated messages :( Can't find the
    button to delete the copies...

  • [Q] duplicating movieclip with loaded external jpg file

    Hi, Im trying to make thumbnail and enlarged picture by
    duplication.
    What i tried was using duplication of thumbnail movieclip
    which jpg image is loaded
    However it seems not working as i intended,so I had to make
    empty movieclip and loaded image again!!!
    I am concerning that if I use new movieclip and loading the
    image again..it means users have to download the same image twice.
    Basically, I am trying to make a list of thumbnailed images
    with enlarged picture popes up when mouse rolls over them
    Is there any proper way to make it happen?
    or duplication just doesnt work even thou movieclip is
    already loaded with image?
    Thank you for your time~

    > simple create your movieclip. Now create an empty clip
    inside. You will
    load
    > your JPG in the empty clip. This one can't be
    duplicated, but you will be
    able
    > to duplicate its parent. Like that:
    > myMc.anEmptyClip.loadMovie("blabla.jpg");
    > myMc.duplicateMovieClip("theNameYouWant",
    levelNumYouWant);
    >
    > That will works.
    No, that will not work
    You are partly right - if you create a nested clip and assign
    properties
    (such as an onPress handler) to the parent clip, you can then
    load content
    into the child without overwriting the parent's properties.
    If you load an
    image into the child and then duplicate the parent however,
    the image in the
    child clip *will not be duplicated*. Try it.
    > 2- Also, the way you where going to do, works too. yes
    the user will have
    to
    > load it again, but it is already in the Browser Cache.
    It means that will
    load
    > quickly the second time and after that. Bad side is more
    that you will
    doble
    > the bandwidth of the images loading on your site.
    Again, partly right. Lets take it bit by bit:
    > yes the user will have to
    > load it again, but it is already in the Browser Cache
    The movie will have to load it again, but will probably load
    it from cache.
    > Bad side is more that you will doble
    > the bandwidth of the images loading on your site.
    Not so. If it's in the cache, it doesn't use any bandwidth at
    all - that's
    what caching means! A copy of the image is saved on the
    user's local hard
    drive, so no bandwidth needs to be used when loading from
    cache.
    Basically, for the *majority* of users, loaded images will be
    cached (this
    is dependent on browser settings, but most users will have
    their browsers
    set to cache). This means that after the first load,
    subsequent loads of the
    same image will be quick and carry no bandwidth overheads.
    The real issue here is that dynamic content in movieClips,
    such as loaded
    images, swfs, or graphics created with the drawing API will
    not duplicate
    when the clip is duplicated/ The accepted work around used to
    be simply to
    reload the aimge. Now with Flash 8 though you can use the
    BitmapData class
    to grab a copy of the image and redraw it to the newly
    created clip if you
    so wish.
    Pete
    Remove '_spamkiller_' to mail

  • Need to load external jpgs at once

    I am using loadMovie to load all my external jpgs at once. On
    start I have thumbnails which animates, and using loadMovie load
    jpgs into that thumbnails. Offline it works fine, but online it
    only loads few jpgs first with animation and rest loads without
    animation just blink and loads. can you help me out for this.
    this is my sample page link:
    http://suewong.yourdemowebsite.com/editorial.htm

    Look at MovieClipLoader instead - images take time to load.
    You have to wait
    until your files have loaded before trying to use them - MCL
    is best for
    that, with its onLoadInit method.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Load external jpgs.. to a loader component to transition

    I need to load external
    images to a loader component, in the main scene, than change
    automatically after 2 seconds in a fade transition,,, please help.

    JamesHammerstein wrote:
    > Dear All - Can anyone help?
    >
    > I have created a spry gallery page with a dropdown to a
    number of different
    > categories...
    >
    >
    http://aster.rhul.ac.uk/STAR/galleries/gallery_prototype.php
    >
    > I want to be able to add links on another page that will
    automatically load a
    > particular gallery from this page, i.e. select a
    particular category to be
    > displayed from a link on another page.
    Try asking your question in the Spry forum where you'll get a
    more focused group of viewers for your question :
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Loading external JPGs

    I'm building a generic slideshow. The slideshow displays NINE
    buttons. Each button, when clicked, will load a corresponding
    external JPG. For example, if I click BUTTON THREE then JPG THREE
    is loaded. BUTTON TWO loads JPG TWO, etc.. I'm looking for a way to
    "recognize" if there are FEWER available JPGs than the NINE BUTTONS
    in my slideshow. For example, if I have just FIVE JPGs available
    and I click on button number SEVEN, I want nothing to happen. At
    the moment I get an error message that JPG SEVEN does not
    exist.

    that error message won't be seen outside the authoring
    environment. once you publish, pressing button 7 will result in
    nothing happening.

  • How to load and unload same SWF with different xmlFilePath?

    I have a slideshow on my homepage and try to load and unload same instance with different xmlFilePath based on language on the same page.
    var flashvars = {
            xmlFilePath: escape("http://www.bodto.com.tr/kik.aspx"),
            xmlFileType: "OPML",
            lang: swfobject.getQueryParamValue("lang")    
            //initialURL: escape(document.location)   
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
            allowScriptAccess: "always"
          var attributes = {}
              swfobject.embedSWF("/swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
    Actionscript3
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Based on above informations, how could I achieve it?

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

  • Loading External Files From SWF Root

    Hi All,
    I do not know anything about flash.  I have been provided with some flash movies/apps to include in a web design that I am doing.  These flash movies load an external xml file.
    This is failing.
    The problem appears to be that when the flash movie goes to load the file using a relative directory path, it starts at the very root of the web directory, where the main jsp file is, instead of the where the .swf file is located.
    For example, say my website is www.mywebsite.com/mysite.jsp and I have stored the flash in a directory similar to /mywebsite.com/flash/movie1/movie1.swf.
    When the movie goes to play, I am getting a 404 error in firebug because the flash movie is trying to load the external xml from /mywebsite.com/file.xml instead of /mywebsite.com/flash/movie1/file.xml.
    How can this be corrected?  Is there a way for the flash application to use the .swf root directory instead of the .jsp file root directory?
    I hope this made sense.  Good chance it doesn't. 

    When you load the Flash file into a web page, the web page becomes its frame of reference for loading other content.  So to fix this situation you should either relocate things to where the Flash file lives in the same directory as the web page that loads it, or retarget the files that the Flash file is loading as if it were in the web page's folder (using absolute paths should guarantee correct targeting).

  • Flash MX Preloader for external JPGs

    Hey all! Any help would be greatly appreciated. In all
    honesty, I have searched and studied and worked to get this myself,
    which I do alot with code, etc. BUT I am going to admit I'm a "make
    it pretty on the outside" kind of guy, and coding makes my eyeballs
    fall out and well, honestly, I just don't get it. My brain can not
    wrap itself around this. Sigh! So I could use your help a little.
    This is what I'm wanting to do. I have a website,
    www.luxeillustrato.com, and if you go to the portfolio area, and
    click on any of the sections (take fine art for example); it will
    showcase my works by loading external jpg files each time you click
    the forward arrow button.
    You can see I have preloaders on the site, that work fine. My
    main page has a movie target with the instance name of photoM. You
    click "artist", and it loads a new swf file into the photoM target.
    IF you click on "portfolio", "fine art", it loads the fine art swf
    file into photoM, using a preloader. THEN, if you click on the
    forward arrow button, a new jpg image of my work is loaded into the
    fine art movie target with the instance name of just
    photo. As you can see, you have to wait until the jpg image
    loads (and you start to wonder if it's doing anything.)
    The problem is, it is not preloading the external jpgs, it's
    just preloading the fine art swf. My preload code is currently:
    stop();
    onEnterFrame = function () {
    totalBytes = _parent.getBytesTotal();
    loadedBytes = _parent.getBytesLoaded();
    percent = Math.ceil((loadedBytes/totalBytes)*100);
    gotoAndStop(percent);
    info_txt.text = percent+" %";
    if (percent>=100) {
    _parent.gotoAndPlay("inter");
    I already have the preload animation bar created (as you can
    see on the site.) What do I need to do to alter the code above (or
    replace it) in order to have the external jpgs be preloaded as
    well? For example's sake, let's just say I have four jpgs, titled
    "door.jpg", "orange.jpg", "boyfriend.jpg", and "untitled.jpg" (in
    case these are needed for the code. They may not be.)
    I hope this is easy to understand. If NOT, just tell me. I'll
    simplify. And seriously, thanks!

    put a stop() on the first frame of your external swf in an otherwise empty first frame.  when preloading is complete apply a play() to your loader's content cast as a movieclip:
    function contentLoaded(evt:Event):void {
        //Optionally change to a clip holder and set progressbar visibility.
        addChild(contentLoader);
    MovieClip(contentLoader.content).play();

  • Passing variables to loaded external movie

    Ok, this problem has beaten me for the last 2 days. It seems
    to be extremely simple, I am on main movie and I am using
    MovieClipLoader class to load external movie callMe.swf into movie
    holder called holder_MC, then from main using onLoadInit or
    onLoadProgress listeners I can target dynamic text inside
    callMe.swf as holder_MC.myTXT.text = "blablabla" or I can change
    frames in callMe.swf by holder_MC.gotoAndStop(5). But HOW TO PASS
    VARIABLE myVar to callMe.swf so it executes something there? Using
    holder_MC.myVar DOESN'T WORK!!!!!!!!!!!!!!
    Thanks for any help,
    Zbynek

    UPDATE... I copied the link to another page with my variables in the image attributes as I posted above. And it works using the values that are cached for those items. Is there any way to do this on the same page as my original link without my users having to change to a different page?

Maybe you are looking for

  • Query using the SQL 'go' command  on a JAVA code

    Hi, I am trying to create a new database on MS SQL and at the same time verify whether the data base exist already and then add a new table. The query statement works well on the query windows on MS SQL, but when the query is place using a JAVA code

  • Pd0-ppu017 program unit source must define a  subprogram body  or package

    Hi Iam new to oracle l and trying to teach myself my problem is when I compile any function in program units of forms , the following error message obtained:- pd0-ppu017 program unit source must define a subprogram body or package. for example this r

  • Change JTable's row color on row selection

    Hello! Everywhere I've looked they're only explaining how to draw rows in different colors WHEN THE TABLE IS BEING CREATED, via prepareRenderer. But that is not what I am looking for. What I want is to actually change the row's color after the table

  • Map Builder and SSO?

    Does anyone know if it is possible to use SSO (Single Sign On) to connect to Map Builder? I cannot seem to get this to work regardless of the connection options I try. Thanks for any insight... -mcslain Edited by: mcslain on Mar 24, 2011 10:05 AM

  • J2SE 1.4 assertion facility

    I'm trying to test drive the new assertion facility in J2SE 1.4 but can't get even a simple example to work: public class Foo      public void m1( int value )           assert 0 <= value;           System.out.println( "OK" );      public static void