Positining loader clip

Hello (again),
I am building a gallery for a photographer.
The setup: one large mc loader on mainstage (myLoader_mc).
Several movie clip thumbnails contained in one large movie clip.
You click on the thumbnail, large image loads into myLoader_mc. I
am using a purchased component from extend studios for my
transitions.
The problem: my jpgs are of different height and width. I
want to keep using the same movie clip to load the images
(myLoader_mc) but position the loader with different x and y
coordinates for each loaded image so that it is centered on the
stage. I am using the following script but the loader clip is stuck
in the position defined by the first thumbnail. the script is in
layer 1, frame 1 of the movie clip containing all of the thumbnail
movie clips.
th1_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/1b.jpg");
myLoader_mc._x = 162;
myLoader_mc._y = 5;
th2_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/2b.jpg");
myLoader_mc._x = 282;
myLoader_mc._y = 5;
The image loaded by thumbnail 2 is stuck in position on
thumbnail 1. Need to change this dynamically no matter which thumb
is clicked.
I had also tried creating different empty movie clips to
accomodate each different sized jpg, but I could not get the
previous loader clip to unload when another thumbnail was clicked.
The previos clip would just stay on the stage. I was using this AS:
th1_mc.onRelease = function(){
_parent.myLoader_mc.unload;
_parent.myLoader_mc.loadMovie("/assets/family/1b.jpg");
Any help is appreciated and I hope I have explained this
clearly enough. If you help me solve this, i will toast my next
drink to you.

Well, I guess we could put some closure to this thing, I
don't like loose ends. Not that i will ever remember any of it but
here's my code:
stop();
var mcl:MovieClipLoader = new MovieClipLoader(); // create a
new MovieClipLoader object
_root.loader2_mc._visible = false; // make the container MC
invisible
var lis = new Object(); // create an event listener object
lis.onLoadInit = function() {
mc._x += (Stage.width - mc._width) /2;
mc._y += (Stage.height - mc._height) /2;
_root.loader2_mc.visible = true; // make the loaded content
visible
_root.loaderfx.initEffect(); // initialize the effect
_root.loaderfx.startEffect(); // start the effect
mcl.addListener(lis); // add the listener object to the
MovieClipLoader
mcl.loadClip(img, mc); // load the image
th1_mc.onPress = function() {
loadImage('/assets/family/2b.jpg');
th2_mc.onPress = function() {
loadImage('/assets/family/4b.jpg');
Much to my amazement (ha, ha) nothing happens. this is just
from a generic test file as i deleted the original. i have a
component attached to it and what i have done is blended the code
the knuckleheads at extend studio gave me and what you have given
me, which has turned into Actionstein.
does it matter if you use "lst" or "lis"? Was wondering about
that.
Anyway, all i was asking was to load images of different
sizes into the same movie clip and have them all centered.

Similar Messages

  • Loss of quality in loaded clips

    Problem:
    http://img706.imageshack.us/img706/3715/probka.png
    It's sample of video I have. It's quality isn't already gratifying, but when I load it to Premiere CS4, sample looks this way:
    http://img697.imageshack.us/img697/7840/probka2.png
    Second picture shows apparent distortion and pixelize, general loss of quality.
    How can I fix it? Any settings which I could change to improve quality of loaded clips?
    thanks for help and sorry for my poor english

    Did you drop your footage in a PAL widescreen sequence with the fields set default to lower or did you set up a sequence with the fields set to upper
    because that is what the mpeg files are: TFF
    Sequence should match the footage.

  • Determining width of loaded clip

    Hi all,
    Is there a way I can get and set the width and height of a
    loaded movie clip? I have created an empty movie, and then loaded a
    small swf file into the empty movie with loadClip. I now want to
    determine the width and height of this loaded clip, and scale it to
    the size of my movie dimensions. Can this be done? Although the
    movie loads fine, and I can position its x and y coordinates, the
    width and height show as zero.
    Can anyone help me with this one? I'm using Flash
    Professional 8.
    Thanks,
    brayne

    you must wait until loading is complete to access the loaded
    swf's _width and _height. and then you'll see the _width and
    _height of the on-stage objects in the first frame if you access
    those properties as soon as the swf is initialized.

  • Bug? firefox doesn't load clips!

    Hi everybody...
    I have this terrible problem...
    I'm developing a site entirely made with flash (customer's
    request...), and I rely on flash's ability to loadClips (movies)...
    It already works on Internet Explorer, Opera, and other
    browsers, but with firefox... it is like it doesn't even send the
    request to the server to load the clip, since I put some listeners,
    and the onLoadStart() isn't called...
    I'm using the MovieClipLoader object to make the loadings...
    so... does anyone have any idea on what's going on? any solution?
    the site i'm making is:
    http://colegiosalesiano.org.mx
    , perhaps it's a problem of my ISP, i don't know... and you all
    must agree that I MUST enable the functionality of the flash on
    firefox
    Hoping for an answer... wish you all a happy new year

    it's a lot of code.... I have this Moviecliploader object,
    and a function loads the clip... like that...
    listeners=new Object();
    listeners.onLoadStart=function(){
    //things that I should recognize it this is called
    listeners.onLoadProgress=function(){
    //the progress report
    listeners.onLoadComplete=function(){
    //completed
    mcl=new MovieClipLoader();
    mcl.addListener(listeners);
    addSection=function(swf){
    mcl.loadClip(swf,mccontainer);
    So many buttons call the "addSection()", like...
    button.onRelease=function(){
    _root.addSection("dir/sample.swf");
    Now, the code I pasted is not the used on the flash, but it
    works like that... on the Flash it doesn't
    presents any syntax error, so, it's not like that the posible
    error, but a logical planning, I guess... or
    simply the plugin for firefox doesn't works properly, or I'm
    missing something... dont know.

  • IMovie Hang after loading clip made by FCEHD

    I am trying to load movie clip which was made by Final Cut Express HD. The length is about 11.7 GB (56 min).
    But iMovie was hang up when the process was almost done.
    Any idea? Thanks,
    Kenny

    Kenny,
    in FC choose only one sequence as a test and then go on file export to QT and save the .dv file. Within iMovie, choose import from the menu and locate the .dv file and open it. It should open as a clip into your clip pane. Hope that helps. iMovie should not hang itself in this scenario. What you cannot do is to import the sequence directly from FC into iMovie.
    Hisham

  • PP 6.02 loading clips painfully slow

    Hello.
    I am trying to edit a 10 hour mini-series on Premiere Pro 6.
    I have about 20,000 clips in the project.
    Up until the recent update it would load everything in about 5 - 10 minutes.
    As of now I've been waiting an hour and it's only 30% done.
    This started with the recent 6.02 update.
    I'm using OS 10.7.4 32gbs of RAM dual Xeon processors with 10 TBs of drive space.
    Any suggestions as to how to get this back to normal?
    Thanks in advance.
    Best,
    Dare

    lasvideo, thanks but that's not the same problem I am having. Appreciate you chiming in though!
    Stephen, thanks for writing. It's a pretty massive project and because clips often criss-cross between segments I have been working everything inside the same edit. I also wanted to see just how hard I could push Premiere (I've been using Premiere for 7 years now). Mind you once everything loads it still does just fine. Edits like a champ. Just was a bit frustrating with the load time.
    On #1, I don't have time machine set-up anymore as I ate up all my space.
    On #2 this is an interesting suggestion. I'm letting project manager analyze my project right now. I've never used project manager to break off individual edits so this should be interesting. Yes, just me on one machine. I'm shooting and editing at the same time and also doing graphics so I reckon by December. I have two full backups of all footage and edit files and save to a new edit file every couple of days (plus I have auto-save rolling).
    And for whatever reason, today when I opened a different project and then went back to the large project, suddenly the problem dissappeared. Weird but there it is. All 20,000 clips now load again under 4 minutes.
    Thanks for the assistance.
    Best, Dare

  • Loading clips into loadmovienum.. trying to make load in background

    I swear that this was working earlier but i must have changed something because now it isnt. I have a few clips that im trying to have load in the background without actually being visible upon initial load. To accomplish this i was going with something like this on the first frame of the main clip:
    loadMovieNum("dl_illustration.swf",4);
    _level4._visible = false;
    I SWEAR this same code was working just fine about 30 mins ago and now ive been playing with some other stuff and its not working anymore- the illustration clip just loads right over top of the main clip, basically ignoring my call for it to be invisible. Does anyone have ANY clue what is going on here?

    you have to preload _level4, not _root:
    on frame 1:
    fill._xscale=0;
    loadMovieNum("dl_illustration.swf",4);
    this.onEnterFrame=function(){
    var lb:Number=_level4.getBytesLoaded();
    var tb:Number=_level4.getBytesTotal();
    if(bl>0){
    var loaded:Number = 100*bl/bt
    fill._xscale = loaded;  // assuming there's something on-stage with instance name fill
    prcnt_done.text=loaded+"% Loaded"; // assuming there's a textfield with instance name prcnt_done on-stage
    if(bl>=bt){
    delete this.onEnterFrame
    // loading is complete.  do whatever
    p.s.  the _visible property is reset in load-targets so it's not usable to hide loading swfs/images.  you can use the _alpha property because that's not reset in load-targets.  but, again, the target has to exist before you can reference it.  your best solution, if you want to use _level4, is to place an empty keyframe in your external swf in frame 1 and attach a stop() to that frame.  after loading is complete, apply a play() method to _level4 when you want it to play.

  • How do I unload previously loaded clips

    Ok so here I go. <alert>noob</alert> I am creating a 40 slide presentation with soundtracks, narration, and animations. Each slide is a separate swf clip (by previous advice). I have noticed that when I load a new clip, the previous clip is still loaded (I wasn't using any background so I could see through the first clip and see the second). This tells me that I should consider unloading the previous clip or use backgrounds. Putting on a background is easy however if I should want to unload the previous clip, how do I do that? Here is how I load the next clip: 
    mmBtn.addEventListener(MouseEvent.CLICK,loadMM);
    function loadMM(event:MouseEvent):void {
    trace("Main Menu Button was Pressed")
    var loadMain:Loader;
    loadMain = new Loader();
    addChild(loadMain);
    loadMain.load(new URLRequest("mainMenu.swf"));
    } Some slides will have many navigation options and others will only have one or two.I have AS in each slide to keep each slide self contained. This makes it easier for me to develop and test.
     Is there a way to remove the current slide contents (from the stage and memory) and load the next slide? I'm really concerned about the memory usage. 

    I have been trying to decipher this response to no avail.
    I have created a test sample that shows the problem.
    It can be accessed at http://belshe.net/zip_file.html
    I really need a solution that completely removes the current clip and replaces it with the new clip when a button is clicked.

  • Loading clips into levels into physical stage locations

    i have 9 clips loading into 9 levels onto the stage which
    form a certain physical arrangement. they load properly relative to
    each other, but as a group, the group is way out of position. how
    do i control their placement? i created a target clip for them like
    loadMovie("grid.swf", _level1.gridClip); but that action produces
    nothing at all. whattayathink?
    sbb

    are you loading into a _level or loading into a movieclip?
    if you're loading into a movieclip, just position it where
    you want on-stage and flash will load the upper left of your
    external file into the center of your target movieclip. or you can
    use actionscript to position the movieclip (but DON'T use the px in
    the code supplied by funkysoul).
    if you're loading into a _level, you must wait until loading
    is complete (for the first item loaded into a _level) before using
    something like:

  • Load clip with a component

    I have a swf file made with flash 8 as2 that I load into a
    container (also
    flash8 as2).
    The swf file has a combo box in it which works fine within
    the swf but fails
    when it is loaded into the container and then it does
    nothing!!
    Any ideas? This one is really urgent and I can't see anything
    I'm doing
    wrong.
    Many thanks
    Dave

    Ok, I have simplifed this to the absolute minimum code and
    still the problem
    exists.
    The container movie has the following code
    this.createEmptyMovieClip("mCONTAINER",10);
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mclListener.onLoadInit=function(mc:MovieClip) {
    trace("onLoadInit: " + mc);
    mcLoader.loadClip("combobox.swf", mCONTAINER);
    mcLoader.addListener(mclListener);
    The combobox.swf movie has the following code
    cbTOPIC.setStyle( "fontSize", "20" );
    cbTOPIC.setStyle( "color", "0x000000" );
    //cbTOPIC.setStyle( "fontWeight", "bold" );
    cbTOPIC.setStyle( "fontFamily", "arial" );
    cbTOPIC.dropdown.rowHeight = 30;
    cbTOPIC.rowCount = 17;
    aTOPICS=new Array();
    aTOPICS.push("");
    aTOPICS.push("Strategy - UK");
    aTOPICS.push("Strategy - Europe");
    aTOPICS.push("Ventures");
    aTOPICS.push("Finance");
    aTOPICS.push("Other");
    cbTOPIC.dataProvider=aTOPICS;
    stop();
    The combobox.swf works fine on its own, but the combobox does
    nothing when
    loaded into the container movie.
    I really need to sort this one, any further ideas?
    Thanks for your help
    Dave
    "NedWebs" <[email protected]> wrote in
    message
    news:gmf5jd$l7$[email protected]..
    > As is, with the code you offered loading the cb in the
    one swf, and that
    > swf being loaded into another swf, there is no problem.
    There must be
    > something else you're doing that's causing the problem.

  • Dispatch loaded clip's keyboard event with parent's mouse click

    Hi. I'm building a swf wrapper which loads third-party swf games. The client would like a button in the wrapper which will dispatch a keyboard event in the loaded swf.
    Can anyone give me hand on how to construct a dispatch event in the wrapper that reaches into the loaded swf?
    Many thanks!

    after loading is complete:
    MovieClip(yourloader.content).dispatchEvent(new KeyboardEvent(somekeyboardevent));   // if the loaded swf is a movieclip

  • Referencing loaded clips

    I have an index file which loads he navigation and home page
    files like this
    //create home page holder
    this.createEmptyMovieClip ("rotateClip",
    this.getNextHighestDepth ());
    //load homepage
    rotateClip.loadMovie ("home.swf", [GET]);
    //create nav holder
    this.createEmptyMovieClip ("navClip",
    this.getNextHighestDepth ());
    //load navigation
    navClip.loadMovie("navigation.swf");
    I then load the services page replacing the home page by
    referencing rotateClip from the loaded nav file attaching this code
    to the services button
    on (release) {
    _root.rotateClip.loadMovie("services.swf");
    The services page has sub sections which I load in the same
    way as the home page. They load fine once services page is loaded
    like so
    on (release) {
    _root.rotateClip.loadMovie.servHolder.loadMovie("servMgmt_mc.swf);
    servHolder is to services what rotateClip is to the index
    page.
    How can I get it to work if the user hasn't loaded the
    services page?
    when I put this line before it or on a preceding frame
    _root.rotateClip.loadMovie("services.swf") to make sure
    services gets loaded the servHolder doesn't load anything

    what do you think this is doing?

  • Load .swf help. Loaded clip loses file locations?

    Hi,
    File A is a .swf loader
    File B is the loaded .swf
    File C is the xml file for File B
    I am trying to have file A - load in file B and then have its xml load from C.
    They all sit in the same folder, but it is not working
    I can load file B up and it reads it's xml no problem.
    A loads in B but then B cant find C?!
    If this was AS2, I would just _lockroot on B to solve it.  Any work around for AS3 for this?  Or any tricks I can do to fix this?

    B is a client .swf that I dont have access to, it may be using global varriable or such for its xml load I dont know. (pano.swf)
    A is using simple .swf load code ->
    var req:URLRequest = new URLRequest ("pano.swf");
    var loader:Loader = new Loader();
    loader.load(req);
    addChild(loader);
    (B) pano.swf loads fine into (A) and gives me output saying so, but it cant find its pano.xml file when loaded into A.
    If I open up B as an .swf, it loads C fine.

  • Using one instance of a Movie Clip to load Graphics from library

    Hi all,
    another question... How would i go about loading a variable into a movie clip and have it pull different graphics from my library at different spots in the main timeline???
    thanks!
    Patrick

    Hi NED! thank you for all your help so far!!!
    I was wondering about the flexability of loading movies into a movie clip.
    Currently, thanks to your help i am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
    i shot from the hip and tried this code, but didnt have any luck:
    mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1);
    mc_LCD_loader.g._x = 0;
    mc_LCD_loader.g._y = 1000;
    mc_LCD_loader."X"._x = 0;
    mc_LCD_loader."X"._y = 1000;
    - - - where "hilight" is the identifier name of a given movie clip and "header" is the identifier of a given movie clip in the same library...
    "hilight" loads fine
    i dont fully understand what "g" means to the identifier...
    i am just unsure of how or if it is even possible to load another MC into the same MC Loader...
    is it possible? if so could you give me a hint?
    thank you!
    - patrick

  • How to load movie clip internal in .fla file

    Hi - How do I load a movie clip inside a .fla file?........I
    know the script to load a .swf file but I do not know the script to
    load a movie clip (New symbo l= movie clip) made in the same .fla
    file.
    I have a series of movie clips I woud like to load with a
    button - can anyone please guide me in the right direction with a
    script or some info.....
    Thanks
    steen

    Do you mean loading clips that are in the library?
    Use MovieClip.attachMovie();
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "Jean Bang" <[email protected]> wrote in
    message
    news:ef88kj$c10$[email protected]..
    > Hi - How do I load a movie clip inside a .fla
    file?........I know the
    > script to
    > load a .swf file but I do not know the script to load a
    movie clip (New
    > symbo
    > l= movie clip) made in the same .fla file.
    > I have a series of movie clips I woud like to load with
    a button - can
    > anyone
    > please guide me in the right direction with a script or
    some info.....
    >
    > Thanks
    >
    > steen
    >

Maybe you are looking for

  • System PRofiler and ECC RAM

    All, Does the System Profiler indicate when RAM is ECC memory? Does it indicate when it's not? How does it indicate this? The Apple documentation recommends against mixing ECC and Non-ECC memory, but the System Profiler doesn't seem to indicate the d

  • Aperture asks for original serial number after migration to new MAC

    After migrating my software and files from my iMac to a new Mac Mini. Aperture asks for serial number first time I wanted to use it. Will not accept the serial number from either my first, Aperture 2 version of my Aperture 3 upgrade. I believe I neve

  • Generic Object Services (GOS) Question

    I'm using "GOSAddObjects" to store documents but I wanted to know where/how SAP stores these document. I can't seem to find if they are saved in a table or where they go. Any help would be great. David

  • Insert data from source table to destination table dependning up on a criteria.once inserted delete from source table.

    HI, I have a source table with millions of records .I need to insert some of the data (depending on a condition) to a repository table. Once they are inserted they can be deleted from the source table. The deletion is taking a lot of time . I need to

  • Tax conditions

    Hi All, need your help.. Below is the requirement from the business for tax condition types. there are two types of condition types we need to define one is for sales Tax and one more is for Service tax but once the sales order is created  only one c