How can I control stage position for swfs loaded by Loader class?

I'm creating a grid of buttons that, when clicked, will load a specific swf and I'd like for each swf to play in a certain portion of the stage.  When I use the Loader class:
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("abc.swf"));
addChild(my_loader);
the swf always displays at top left.  Is this an attribute of the individual swfs that I'm loading, or can I address the position in the main movie?
Thanks-
Sean

addChild(my_loader);
my_loader.x = 500;
my_loader.y = 250;

Similar Messages

  • How can I control the positioning of a horizontal line?

    Hi - I'm wanting to control the positioning of a horizontal line in Pages.   Is there an easy way to do this?  Thanks.

    Adam,
    The Metrics Inspector has all the controls for positioning.
    Jerry

  • How can I control Read/Write for BegBalance under the same Scenario in different Years?

    As we know, we can set 'Start Year/Period' and 'End Year/Period' on a scenario member, e.g. Budget, to control whether planners can input data under this scenario.
    However, we can only choose years and month from Jan to Dec. BegBalance can't be chosen.
    Assuming a form putting Year dimension as a page, Scenario and BegBalance, Jan to Dec as column, Account as row.
    If planner chooses budget year in the page, every column from BegBalance to Dec is writable.
    The problem is, when planner chooses current year in the page, Jan to Dec is read-only, but BegBalance is still writable.
    This will make the planner confusion and put the data in a dangerous position.
    Is there any idea to avoid this situation?
    Thanks.

    You can disable (write) BegBalance for that Scenario by unchecking "Include BegBalance".
    Regards
    Celvin
    http://www.orahyplabs.com

  • How to make the stage transparent for SWF file being used in Dreamweaver

    I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given:
    in your html embedding code you need to set the wmode parameter to be "transparent"
    I'm wondering if this is the code in Dreamweaver or is this done in Flash. I'm working with CS5. Below is the code that matches the SWF file in Dreamweaver. I did change the wmode value from "opaque" to "transparent" and it didn't work.
    Thanks for any assistance.
    Sherri
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="650" height="400" id="FlashID" title="Convergence Gathering Title">
                 <param name="movie" value="Flash/gold_dust_title.swf" />
                 <param name="quality" value="high" />
                 <param name="wmode" value="opaque" />
                 <param name="swfversion" value="6.0.65.0" />
                 <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                 <param name="expressinstall" value="Scripts/expressInstall.swf" />
                 <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                 <!--[if !IE]>-->
                 <object type="application/x-shockwave-flash" data="Flash/gold_dust_title.swf" width="650" height="400">
                   <!--<![endif]-->
                   <param name="quality" value="high" />
                   <param name="wmode" value="opaque" />
                   <param name="swfversion" value="6.0.65.0" />
                   <param name="expressinstall" value="Scripts/expressInstall.swf" />
                   <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                   <div>
                     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                   </div>
                   <!--[if !IE]>-->
                 </object>
                 <!--<![endif]-->
               </object>

    Yes, change this to "transparent" in ALL the places where wmode is shown
    <param name="wmode" value="opaque" />
    Second, be sure that there is in fact nothing covering the entire stage, like a big white rectangle.
    Also, what is directly behind the .swf once it's on the Web page? If the background color of that page or the <div> that the .swf is in is white..... well then then .swf can have a transparent background but then the white from the Web page just shows thru.... so there's still a white background.
    Be sure there is a non-white background on the Web page...
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • How can I control a mac mini connected to a benchmark dac 2 for the purpose of listening to 24/192 audio files?

    How can I control a mac mini connected by USB to a Benchmark DAC 2 for the purpose of listening to 24/192 music downloads?

    Hello,
    About the dac 1, but may apply to the dac 2 as well in some ways...
    Here are more details:
    1) The current version of iTunes (7.5) for OSX is very broken. Some older versions work properly, but 7.5 introduces truncation and DSP artifacts that can measure as high as –80dBFS. These levels are easily audible. There is no system configuration that will permit transparent playback from 44.1kHz sources with iTunes 7.5. Curiously, the only format that works properly in 7.5 is 24-bit/96kHz. This iTunes problem has nothing to do with USB communications, as the results are the same when using the built-in optical port on our PowerBooks. As a workaround, we suggest using the free VLC for Mac player. VLC works perfectly with all formats (provided OSX is set to match the sample rate of the files being played). We highly recommend the VLC player for OSX users, and strongly advise against using iTunes. We will attempt to identify which versions of iTunes work and which ones don't. But beware, iTunes updates itself without user intervention. One of our test computers "upgraded" itself to the dysfunctional iTunes 7.5.
    2) OSX still does not have the ability to follow sample-rate changes. We consider this a nuisance for most users and a show-stopper for users who want to play a mixed list of 44.1kHz and 96kHz material. An OSX sample-rate mismatch will invoke the very-poor-quality sample-rate conversion that is built into OSX. The iTunes 7.5 bug seems to be locking on this sample-rate conversion at all sample rates other than 96kHz. Until this is fixed, OSX is not the operating system of choice for audio playback.
    http://www.stereophile.com/content/benchmark-dac1-usb-da-processor-headphone-amp lifier-manufacturer-comment

  • How can I control selection on a PDF

    I have Acrobat Pro 9 Pro build 9.4.6 and am constantly exporting documents from indesign to .pdf, and also building docs in the 'combine' feature from mixed pages. 
    While everything seems to go reasonably well, I have a few problems that are due either to my ignorance, or bugs.
    1.  The biggie; How can I control what I select, for the purpose of copying, moving and deleting?   When I drag the touch-up object tool over my selection, it selects what it wants to most of the time; sometimes it selects (i.e., puts a light blue box around) the entire page, instead of my selection (no pages are scanned).  There are very few instances when I get exactly what I want; there are usually a few lines above or below, no matter how careful I am in my selection.  The funny thing is that this is not a constant; sometimes, the tool works perfectly!  and I have my heart in my mouth every time I really need it to work, hoping that it will not force me to go back to Indesign to make minor corrections.   Perhaps my problems are connected to options I select when exporting my indds, but I've tried checking, clearing, and selecting various combinations and nothing seems to work.
    Sometimes, the text selection tool is strange; a wide blue swath develops over the selected text, even though it is still usually possible to  edit the text in this condition.  And BTW, is there anything to do about the fact that some text can't be edited at all because a suitable font replacement can't be found?  Can't a font be added somehow that will take care of this?
    2. Headers and Footers; fairly effortless, but if the footer contains two rows and I want them centered, the second row looks centered in the preview but not in the doc.  I have to go back to the footer dialog and guesstimate how many spaces to place before the second row to get it to look centered.  Also, is there any way to place a logo in a header?  That would be one of my requests for the next version of Acrobat, if not.
    3.Hyperlinks; they don't always work,even though I check Hyperlinks in the Export settings.  Sometimes yes, sometimes no.
    4.  Typwriter toolbar; it also seems to offer font and size changes whenever it feels like it, and I've tried all different orders of typing, selecting, etc.

    It's me again, sorry!  I wanted to save what I'd written, and my message popped up to the board.
    Thank you for any advice anyone has!
    PS  My indd and acrobat are the same version, as they came in the same package (CS4).  Windows XP sp3.
    Oh, one more thing I just remembered, as long as I'm complaining; sometimes if I place an object (the logo) and copy it to another page, it disappears on the original page, as if I've cut it.  Any fix for that?  (strange how I can edit tmy 'reply' but not my original post...well, at least I found where to ask a question fairly quickly!)

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • How can I control an iPad from a touch screen which is mirroring the iPad screen

    How can I control an iPad from a touch screen which is mirroring the iPad screen.
    This is a very important application for disability students who wish to use iPad apps but do not have sufficient fine motor skills to use the small screen of an iPad but could use a large format display touch screen.
    There must be a way.?????????? Help!!
    Peter Niass
    [email protected]

    Have a look here
    http://www.macstories.net/iphone/the-external-touchscreen-that-can-control-an-ip hone/

  • How can I control my fan speed?

    How can I control my fan speed on my macbook pro? I use SMC for gaming and streaming video from the internet when using my Mac OS, but I partitioned my drive and installed Windows 8 in order to play a different game (not a huge game) and the computer heats up dramatically when playing on Windows through Boot Camp to the point that it freezes every time (it never does this when playing a mac game or streaming on the normal partition Mac OS).
    Any suggestions or programs to control fan speed of the mac from windows?

    Get a cooling pad.  That will much better than trying to constantly adjust fan speeds.
    Ciao.

  • How can I control my my mac mini with my macbook air (no wifi)?

    How can I control my my mac mini with my macbook air (no wifi)? Also...what is the best method (less lag) for screen sharing? 
    I own a mac mini Quad Server 2.0 i7 and I use it for audio production.  It's great but I need to travel with it. I was hoping some form of screen sharing could be useful using the macbook air to control the mac mini.  Therefore, I'd be using the stronger processor of the mac mini but would still be using the keyboard and trackpad from the air. 
    My two problems: 
    1.  I can't depend on wifi to make this happen. Wifi is not always available when travleing.  What would be the best way to configure a LAN connection?
    2.  The less lag the better for screen sharing.  Which apps are fastest?
    Thanks in advance.

    Both of your devices have WiFi built in. Here is Apple Support's solution:
    http://support.apple.com/kb/TA25616?viewlocale=en_US&locale=en_US

Maybe you are looking for

  • Hosting an IWeb site... and Other Q's

    Hey all! I'm about to start a small business in my town and i've played around with iweb before, and like many of the things you can do with it. I have a couple questions that i hope you guys can help me with... 1) * Biggest one - Does I web allow yo

  • When in group chat, skype has bad connection and games lag

    Okay so I have searched almost every related post and cant find this exact issue and ive tried all the standard stuff to fix internet issuesWhat happens is So I moved to a new house and had no internet for 2 weeks starts may 20th about, and we got in

  • How to turn on Flat Sequence Structure based on a Boolean input?

    Hello, I trying to write a VI ( attached) that will sample an analog voltage coming through a an analog MUX. I using a flat sequance structure to change the select signals outputs to change the channel being sampled. I am wondering if I can turn on t

  • Fatal error in script

    I am getting a fatal error at script line 1087 "unable to open destination file" when trying to install my cvi project under win98. It works fine under NT. What should I do?

  • Lenovo T400 type 6475 Problems installing windows 7 64bit

    Hello everybody, I have a Lenovo T400 and a few day's ago i tried to reinstall my windows 7 from my dvd and everything went nice and smooth till it reached the last reboot before the time/zone settings and the username there it remained in the win 7