Scrollpane all screwy  inside loaded swf

I have had this problem using both the scrollPane component
from Flash 8 and an open source code scrollpane that I found in
Flashkit. I have an swf in which I'm using a scrollPane which works
fine when I test the movie. However, I'm loading this swf into
another master swf using loadMovie. When I do this, the scrollpane
inside the loaded swf gets really buggy. First, the scrollbar will
not stop scrolling when I release the mouse. Also, the whole
scrollPane gets a green highlight around the edges (except in the
open-source code scrollpane). HELP!! Does anyone know how to load a
scrollPane into another swf without it getting all weird?

//below is the code for the "slideshow.swf"
//For the main movie.. I'm doing....
button_btn.onRelease = function() {
myMovieClipLoader_mc.loadMovie("slideshow.swf")//
this.createEmptyMovieClip("container_mc",this.getNextHighestDepth());
this.createEmptyMovieClip("buttons_mc",this.getNextHighestDepth());
//loader//
this.attachMovie("loader2","loader_mc",this.getNextHighestDepth());
loader_mc._x = (Stage.width - loader_mc.width)/2;
loader_mc._y = (Stage.height - loader_mc.height)/2;
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress =
function(target,bytesLoaded,bytesTotal) {
loader_mc._alpha = 100;
var pct = Math.round(bytesLoaded/bytesTotal*100);
loader_mc.bar_mc._xscale = pct
myListener.onLoadComplete = function(target) {
loader_mc._alpha = 0;
//button movies//
buttons_mc.attachMovie("prev","prev_mc",buttons_mc.getNextHighestDepth());
buttons_mc.attachMovie("next","next_mc",buttons_mc.getNextHighestDepth());
buttons_mc.next_mc._x = Stage.width -
buttons_mc.next_mc._width;
buttons_mc.next_mc._y = 10;
buttons_mc.prev_mc._x = 10;
buttons_mc.prev_mc._y = 10;
//variables//
var numPics:Number = 5
var picArray:Array = new Array();
var currentElement:Number = 0;
for (i=0;i< numPics;i++) {
var location:String = "pics/pic0" + (i+1) + ".jpg";
picArray.push(location);
myMCL.loadClip(picArray[currentElement],container_mc);
//next button//
buttons_mc.next_mc.onRelease = function() {
if (currentElement < picArray.length-1) {
currentElement++;
else
currentElement = 0;
myMCL.loadClip(picArray[currentElement],container_mc);
//prev button//
buttons_mc.prev_mc.onRelease = function() {
if (currentElement > 0) {
currentElement--;
else
currentElement = picArray.length-1;
myMCL.loadClip(picArray[currentElement],container_mc);
}

Similar Messages

  • Listening to Events from inside loaded swf

    In Flash Builder 4 I have a swfLoader with which I load swf files. The swf files that get loaded get created in Flash Pro, and I would like to be able to listen for events from the level that they get loaded from. What would I have to specify in the Flash file for the path? Can't seem to be able to specify the right path.
    Thanks a lot for any help!

    I wouldnt say this is elegant but we have been having issues gaining direct access to the SWF's loaded in via OSMF. However I have done setups where I dispatch an event from a SWF and have it bubble up and catch it on the MediaContainer level. Not elegant but works- otherwise may need to make a custom MediaElement and bypass the SWFElement to gain tighter control - seems like there should be a better way, but I havnt found it.

  • Applying an onDrag actionscript to a loaded swf

    I want to make a loaded swf file dragable within the main
    stage. Can someone point me to a tutorial or show me how to do it?
    Thank you!

    This one took a few tries to get right. But I think I figured
    it out for yuh'. I assumed you were using a "ScrollPane" for your
    scrolling and that there was a button inside of that component. Let
    me know if this is wrong. It shouldn't be too different even if
    you're not using the "ScrollPane". Aslo, all the code below goes on
    the main timeline.
    notes:
    "container" is the empty clip that holds the content.
    "mc" is the MovieClip inside of the ScrollPane ( located in
    the loaded *.swf ).
    "mouseIsDown" is a boolean ( true/false). It checks to see if
    the user is holding down on the mouse or not.
    The rest is pretty easy to figure out.

  • Loading a SWF inside another SWF question

    Hello friends,
    1. (IMPORTANT) As all we know when putting some Flash SWF
    inside an HTML page, normally it starts playing as soon as its
    first frame is loaded.
    Now in my case I have to load a SWF (let call it Flash A)
    inside another Flash, I used mx.controls.Loader control to do this.
    But this internal loaded SWF (Flash A) doesn't display untill it is
    completely loaded. Although what is interesting is that if it
    contains a sound track I can hear it while it is being loaded.
    I wana know is there any way that we can make this Flash
    display while being still loaded.
    2. Is there anyway to change a Flash playback FPS at runtime?
    Thank you so much for any note and help.
    - M

    damatrixhasu wrote:
    > i want to know how i can load a flash inside another
    flash container
    go to help - search for 'loadmovie'
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Controlling all audio from one SWF as others load into it.

    Hello,
    I have a project which consists of multiple swf files and one
    main shell (basically a backdrop for all of the loaded content).
    The only thing in the "to be loaded" swf's are text and audio as of
    now. The files are loaded into an empty movie clip on the shell via
    the tree component and through playback controls. Is there a way
    that I can control the volume of the loaded swf from the
    main/shell? I've tried using a slider to control the volume of the
    movie clip using it's instance name, but that's not really
    referencing the SWF. Also, if I do have a controller like this will
    it maintain the level that the user sets it at as the swf's load in
    sequence? ie if they change the volume to level 20 will it stay @
    level 20 when the select another movie to play? Thanks, any
    assistance is greatly appreciated!

    if you're publishing for flash player 10, you can use unloadAndStop() instead of the loader's unload() method.
    if you're not publishing for fp10, you must explicitly stop all streams before unloading.

  • Controlling loaded SWF inside a child

    Hello to everyone, may this question be too obvious to
    everyone, but I've been googling for hours without any luck.
    Have seen examples but they are not exactly as my scenario...
    Please, I need some help.
    I have loaded a SWF and attached to a MovieClip which exist
    in my current movie using the following code, and now I just want
    to access the loaded SWF to send it orders like play() or
    gotoAndPlay(); I have tried also: container=
    MocieClip(loader.content); instead adding child, but it trhows an
    error

    //this is your minimum code to load a file
    var url:String = "put your url here ";
    var request:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadComplete);
    function loadComplete(event:Event):void {
    addChild(loader.content);
    //you don't need all that code just concentrate on the bit
    you need; when this work then you can start putting the rest

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • Map and externally loaded swf working together

    Here's the setup:
    I have a panoramic viewer, and i'd like to have a map go
    along side it. The panoramas are loaded externally into the player.
    Inside these external swf files are "hotspots" that link to other
    panoramic swf files that load and take the previous swf's place. I
    have all of this set up, and you can see how I did it in my
    previous post:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1274410&enterthread=y
    So now my new question is... how can I have a map with points
    on it, that when you click on a point, it will load a corresponding
    swf file into the player. I believe that part is easy. My big
    problem is if someone clicks on a hotspot in the external swf file
    first, which in turn loads another swf file, and if that person
    goes back to the map, I want the map to change the position of lets
    say, a marker or a pin to indicate the new position on the map that
    correllates to the new external swf that was loaded.
    make sense? Any ideas? I was thinking maybe it would be some
    kind of listener or something so that should a specific swf load,
    it will recognize it and automatically change the location of the
    marker on the map to the point that relates to the loaded swf or
    something...

    Hi Thanks for your reply, I tried with a small AS3 file as
    well and I get the same ERROR.

  • Using the DateField in an Externally loaded SWF

    Hello,
    I have been having major trouble trying to get a basic PHP
    contact form to work within an externally loaded SWF file inside of
    a parent SWF. When I test the movie on its own it seems to work
    fine (example: I'm able to select a date from the DateField
    component). However, when I open up the parent SWF file and call
    the external SWF file with the form the DateField is basically
    unusable (example: when you click on it nothing happens, no
    calendar pops up to select a date).
    I have no ActionScript on it yet, simply because I figure I
    need it to work before I tell it what to do with the PHP file. The
    instance name on the DateField is "theDate". Any help is very much
    appreciated. Thank you.
    Also, I have just successfully used the contact form on the
    web. But, the only user interface components I am able to edit are
    the input text boxes, not the DateField or the ComboBox I have in
    it as well. This is very odd, I was not aware that anything special
    had to be done using these UI components within an external file.
    Elijah

    Hello 2m,
    Maybe if you were to see it, it may help you out a bit. If
    you
    click
    here for the external file you will see that the components are
    working. However, if you
    click
    here for the parent file and then click on "Meetings" on the
    top menu you will see that they do not work at all. However, if
    someone were to hit the "send" button, the PHP code would actually
    interact with the form. Let me know if that helps at all. Thanks
    again for replying.
    Elijah

  • Can't Access MovieClips and Functions in Loaded SWF

    Hi everybody,
    I'm trying to simply access anything inside this loaded SWF and all I get is 'null'.
    I have code in the parent SWF that needs to tell the child SWF movieclip what to do but nothing works. This was a piee of cake in AS2 and I can't seem to get anything to crossover in AS3.
    Here's my code:
    import com.greensock.TweenMax;
    import flash.display.MovieClip;
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("SWCS_S3_500x250_exp_panel_2.swf"); // in this case both SWFs are in the same folder
    myLoader.load(url);  // load the SWF file
    panel2.addChild(myLoader);   // add that instance to the display list, adding it to the Stage at 0,0
    panel2 = myLoader.content as MovieClip;
    photo_about.alpha = 0;
    photo_downloads.alpha = 0;
    //panel2.content_about.alpha = 0;
    //panel2.content_downloads.alpha = 0;
    function closeSection():void
              panel2.controlsMC.forcePause();
              TweenMax.to(photo_about, .5, {alpha:0});
              TweenMax.to(photo_downloads, .5, {alpha:0});
              TweenMax.to(photo_home, .5, {alpha:0});
              TweenMax.to(panel2.content_about, .5, {alpha:0});
              TweenMax.to(panel2.content_downloads, .5, {alpha:0});
              TweenMax.to(panel2.controlsMC, .5, {autoAlpha:0});
              TweenMax.to(panel2.content_home, .5, {alpha:0});
    panel2 traces null and all the clips loaded within pull up undefined property errors.
    Can somebody please tell me what I'm doing wrong? I'd be stoked to know what I'm missing and feel like this should be a piece of cake.
    Thanks for any help!

    You are not adding the content to the stage at 0,0, you are adding it to panel2 at 0,0.  THen you take panel2 and assign it to be something that likely doesn't exist by the time you assign it.  You need to wait until the loader completes loading before you attempt to do anything with its content, otherwise it has no content (null).  Similarly, you cannot control anything in the loaded swf until it has finished loading.  So assign an event listener to the contentLoaderInfo property of the Loader to determine when loading is complete, and have the event handler function deal with starting the interaction with it.
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("SWCS_S3_500x250_exp_panel_2.swf");
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, processLoadedSWF);
    myLoader.load(url);
    function processLoadedSWF(evt:Event):void {
        // deal with the loaded swf here
        // but you don't want to be assigning it to the panel2 object that contains the loader
    As far as controlling anything inside the swf you load, is it an AS1/2 or an AS3 swf?

  • Is it possible to load SWF files from an SQL database?

    Hi all, I am very new to flash (I am primarily a C'# developer!) and I have been asked to investigate the possibility of doing the following;
    Create an application that allows swf files to be uploaded and stored inside of a SQL database as binary data (Why a database is a long story!)
    Allow this binary data to be extracted via a http request to be dynamically loaded inside of a web page.
    Now the first part was easy. I have all of my swf's uploaded and stored inside of the database. I have code that can make a request for the binary and write it to the response, so far so good. Now this is where I am stuck.
    I thought I could dynamically load the swf binary data by creating a very basic swf that simply contains a movie clip holder and for now a simple loadMovie statement. My idea being that I can could provide a url for the loadMovie statement that returns the swf binary data. This is where I have ground to a halt.
    I can see the call being made from the swf, I can see the data being returned but I cannot get it to render. I remember seeing an article some time agao where someone stated that they had used this method with success but I cannot find now. Has anyone ever done anything like? Is it even possible? Am I missing something simple?
    I have tried to return both the raw binary data and also used response.write but to no avail. Can anyone help?

    You are possibly trying to load AS3 swf into an AS2 Container at least the use of loadMovie() points in that direction. Be sure to use AS3 and target at least Flash 9 in your Loader/Main.swf. Also the AS3 concept of how to load swfs  differs a lot from the old concept.
    Look into the docu:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml
    But the biggest Problem seems to me -what you mentioned- that Loader needs a (defined) URLRepuest and since your swf files have no "real" URL and you surely don`t want to let the user directly write to your server, a workaround would be to write the BinaryStream with AIR-functionality to a local installlation directory and load it then from there.

  • Color external loaded swf in AS3 Help Urgent!

    Hi i have loaded swf from an external path using the following command.
    var cviewer:Loader=new Loader();
    var curlRequest:URLRequest=new URLRequest("clipArts/"+evt.target.name);
    So this is the scenario.
    Suppose say i load Movie1.swf
    I have three movie clips inside Movie1.swf called step0, step1, step2
    I need to change the color of step0, step1 and step 2 from the parent flash file which loads movie1. All the inner movie clips color may be different from each other.
    I am able to change the color of the whole movie clip by using
    var colorInfo:ColorTransform = cviewer.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    cviewer.transform.colorTransform=colorInfo;
    But not of individual ones. I even tried cviewer.step0.transform.colortransform and other stuff to see if it would work. But nothing worked. Help at fastest would be deeply appreciated.
    Regards and thanks in advance.

    try:
    var colorInfo:ColorTransform = MovieClip(cviewer.content).step0.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    MovieClip(cviewer.content).step0.transform.colorTransform=colorInfo;

  • Using embeded fonts in loaded swf.

    I have a .Swf, which has 3 fonts embedded in it, they are all exported in frame 1 for AS.  This swf loads any number of external .swfs which have dynamically generated textfields inside of them.  This text must be embedded text because effects may be applied to them.  I do not want to embed the three fonts into every external swf, and do not think I should have to.  The font exists in the Loading swf and I have registered the fonts to the global font list.  If I print this list from the loaded swf, all three fonts are present, but when I try to use any of them, my textfiels are empty.
    My question is how do I utilize a font which is embedded in a swf, from a swf which has been loaded into that swf?
    From my external swf, this code:
    [PHP]var embeddedFonts:Array = Font.enumerateFonts(false);
    embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE);
    trace(embeddedFonts);[/PHP]
    produces the following:
    [PHP][object CenturyBook],[object MyriadProRegular],[object MyriadProItalic][/PHP]
    which are the three fonts that are embedded in the loading swf, So I assume the LOADED swf has access to these fonts.
    When I apply this code to the externally loaded swf:
    [PHP]var FontClass:Class = getDefinitionByName("MyriadProRegular") as Class;
    trace("FontClassInstance -> " + FontClass.toString());
    var linkedFont: Font = new FontClass();
    trace("Font name: " + linkedFont.fontName);
    var textFormat: TextFormat = new TextFormat(linkedFont.fontName, 14);
    //... The next lines set up the text box and apply the format.  I am sure this is done correctly.
    [/PHP]
    I get the following output:
    [PHP]FontClassInstance -> [class MyriadProRegular]
    Font name: Myriad Pro[/PHP]
    which is exactly what I would expect.  Yet, my text box is still blank.  I have embedText = true on the text box, and have applied a string to the "text" property, so it's nothing silly liek that.
    Any help would be appreciated...

    You may also want to look at the various embedded font format issues. Many of the Flex 4 components use a newer embedded font fortmat, which is not the same as the one generally used in Flash. So even if ther Flash font gets registered properly, it still may not work with some of the spark components.
    You should be able to create a swf using Flex that contains fonts embedded in either format, which can then be used in the way you describe, though, since Flex 4 suports both font formats.
    Hopefully, someone else will jump in here if I got some of this wrong.
    -JM

  • Load swf-version=17 into swf-version=10  -  VerifyError: Error #1014.......

    Hi Guys,
    I have very interesting situation, and I would like to ask you for any help.
    History: I've started the new project for "one" company (my project is small web game). The first and the main requirement for this project was using Stage3D. The company I'm working for, has it's own "SWF-Container" for all projects (about 1000+ small projects). The second requirement was using this "SWF-Container" to load my project inside.
    Main Issue: "SWF-Container" can't be changed/modified (a lot of functionality + a lot of project already online). "SWF-Container" wroted using Flex SDK 3.6 ("A long time ago in a galaxy far, far away...."  ) -swf-version=10. When I'm trying to load the new project ("-swf-version=17") into this old container - I'm receiving the error:
    [Fault] exception, information=VerifyError: Error #1014: Class flash.display::Stage3D could not be found.
    (and I thing the same will be for all new classes like: JSON, Context3D, etc...)
    No errors if I'm opening my project stand-alone.
    My ideas/suggestions:
    1) Ask for new "SWF-Container" - Failed. No resources to support a few "SWF-Container"s.
    2) Ask for change "SWF-Container" to be "-swf-version=17" - Failed. No simple way to change SWF version using Flex SDK 3.6 + a lot of conflicts with current projects (at least global class "JSON").
    3) Find some solution with loading the new SWF to the old SWF - in progress. Currently - with no success.
    Projects:
    I've created two project that simulate my situation: https://drive.google.com/file/d/0Bw4xj8VbNvNuZ1gybzFYcEpkLVk/edit?usp=sharing
    By using next URL you can find ZIP with two FlashDeveloper projects inside:
    a) OldContainer - project that simulate "SWF-Container" (Flex SDK 3.6)
    b) NewGame - project that simulate my new project (Flex SDK 4.6).
    I will be very grateful for any help in finding a solution for this problem.
    With best regards, Vadym.

    Hi kglad,
    Thank you for good point. But there are no way to change current mehanisms to embed/load "SWF-Container".
    Imaging, that "SWF-Container" is not a simple empty SWF, but it's site core, that display in one time a lot of different widgets - small AS3 projects with really different functionality (one of these widgets should be my small game).
    Thanks, Vadym.

  • Loaded swf does not recognize stage of parent correctly

    I have an issue that is probably easily solved, but my attempts to solve it have been frivolous. 
    I am creating a “lightbox” to display artwork, but I have come across a slight hiccup.
    I am executing the lightbox functionality from a swf file that is loaded by a parent swf.  For testing purposes, when the lightbox button is clicked, the image should fill the entire stage.  Even though both the loaded swf and the parent swf recognize the same stage dimensions at all times(validated through tracing statements) and the lightbox image is positioned to the top/left corner of the stage, the image instead aligns to the top/left corner of the loaded swf.  And if the stage is resized after the lightbox image is displayed, the container MC (which is located in the parent swf and centers all the site’s content) re-aligns to the top/left corner of the stage . 
    To better illustrate these points, click the link below to see some screenshots with captions:
    http://newsite.katech.com/assets/images/lightbox_screenshots.jpg
    Also, here is the code applicable code from the loaded swf:
    stop();
    picture.visible = false;
    picture.x = 0;
    picture.y = 0;
    picture.width = stage.stageWidth;
    picture.height = stage.stageHeight;
    lightboxBtn.buttonMode = true;
    trace("embedded swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
    function onStageResize(event:Event):void
                    trace("embedded swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
                    picture.x = 0;
                    picture.y = 0;
                    picture.width = stage.stageWidth;
                    picture.height = stage.stageHeight;
    stage.addEventListener(Event.RESIZE, onStageResize);
    function showImage(event:MouseEvent):void
                    picture.visible = true;
    lightboxBtn.addEventListener(MouseEvent.CLICK, showImage);
    And for the applicable code from the parent swf:
    stop();
    trace("MAIN swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
    //aligns site content to center of stage
    function onStageResize(event:Event):void
                    trace("MAIN swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
                    container.x = (stage.stageWidth/2) - (container.width/2);
                    container.y = (stage.stageHeight/2) - (container.height/2);
                    if (container.x < 0)
                                    container.x = 0;
                    if (container.y < 0)
                                    container.y = 0;
    stage.addEventListener(Event.RESIZE, onStageResize);
    How can I get the loaded swf to display the lightbox image correctly in respect to the parent swf?  What am I doing wrong?

    I have still yet to resolve this issue on my own, if anyone could point me in the right direction, it would be greatly appreciated.
    Also, when I updated my previous post something "screwy" happened with the edit, so I went back and corrected the mistakes in case it made things unclear.
    Thanks.

Maybe you are looking for

  • Ipod shut off and wont turn on or charge

    i was driving in my car with my ipod 1st gen ipod nano plugged into the casset adapter and it just turned off. i came home and when i plug it into the wall or my laptop... nothing happens... help

  • Batch Management in different plants

    Hey SAPers I am using batch managment for certain materials. But I don't need batch management of same materials in other plant. SAP is not allowing to change the status in other plants. Business needs to maintain materials in batches in warehouse bu

  • Calculate Avg  for the given months based on the no. of days in months

    Dear Experts I  have a report in which there is a characterictic claenderyr/month.The Input paramter is claenderyr/month which is restricted by a variable of type interval. i mean user will enter calenderyr/month as interval say 012010 to 06.2010. No

  • Areca 1680 SAS Raid

    Hello all In my previous post i clarified much of doubts i have on mac pro raid capabilities thanks to this forum. I still have a question: if i buy the Areca 1680 sas raid controller, that is bootable via firmware upgrade, how can i install macosx o

  • Query On SAP SCM PP certification

    Dear All, There are two sap certifications available, TSCM42_05 and TSCM34_40 i am a bit confused that which one shall i choose? can anyone help me in this regard. Regards