AS3 how to put the buttons always on top of the external swf in the code below?

how to put the buttons always on top of the external swf in the code below?  I am  beginner use to as3, can someone help me?
thanks, for all!!
var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btns Universal function
function btnClick(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btn listeners
eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
stingray.addEventListener(MouseEvent.CLICK, btnClick);
demon.addEventListener(MouseEvent.CLICK, btnClick);
strongman.addEventListener(MouseEvent.CLICK, btnClick);

use:
var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btns Universal function
function btnClick(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChildAt(loader,0);
// Btn listeners
eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
stingray.addEventListener(MouseEvent.CLICK, btnClick);
demon.addEventListener(MouseEvent.CLICK, btnClick);
strongman.addEventListener(MouseEvent.CLICK, btnClick);

Similar Messages

  • QA32 spreadsheet needs to unmark the button "always use selected format"

    Hello Experts.
    I am currently doing some testings in QA32, i want to transfer my list in printable documents, when i am in the menu LIST- EXPORT - SPREADSHEET , then the list for choices appears if(excel, all available formats)then there is this button box "always use selected format" which i have marked it and saves..then when after i proceed to QA32 again, i can't choose the format that i want in the selection.I believe it is the result of marking the button "always selected use format"
    how can i unmarked the  button "always selected use format" so i can have the chance to choose again?
    Thanks

    Exporting to Spreadsheets  
    Use
    You can export the list as various spreadsheet formats. The following list summarizes the most important of these formats and the corresponding file name extension for the files:
    Format
    File Name Extension
    Excel (in MHTML format)
    MHTML
    Excel (in MHTML format for 2000/97)
    MHTML
    Star Office (in ODS format 1.0)
    ODS
    Excel (in Office 2003 XML format)
    MHTML
    SAP-internal XML format
    XML
    SAP standard (internal table)
    XML
    Excel (in previous XXL format)
    XLS
    A format is only included in the selection options if it is available on your PC. The system administrator can also restrict the list of possible formats or even reduce the export to a certain format.
    When you export the list in one of these formats, the system automatically generates a file with the name export and with the corresponding file name extension. Exactly which parts of the list are exported to the file depends on the format.
    Exactly which data is exported to the file depends on the format:
    ●      In MHTML and XML formats, for example, you export the data that is displayed in the list on the screen. The number, selection, and sequence of columns as well as the sorting, filter, and calculation settings are all included in the export.
    ●      In Excel XXL format, any functions that you executed on the list are not included in the export. The file contains all the columns that you have displayed, but your sorting, filter, and calculation settings are ignored.
    Prerequisites
    To be able to display and, where necessary, further edit the file that you have generated with the export, the relevant program must be installed.
    Procedure
    Exporting the List
           1.      Choose  with the quick info text Export and select Spreadsheet in the selection list. In full-screen mode, choose List ® Export ® Spreadsheet.
    If you have a choice of more than one format, the Select Spreadsheet dialog box opens.
           2.      In the Select Spreadsheet dialog box, select the format in which you want to save the exported data.
           3.      Confirm the settings.
           4.      In the dialog box that appears, specify the path and name of the file and save the file.
    For some formats, you also need to specify other settings for the file that is saved.
           5.      Make the required settings, where applicable.
    If an installed program is linked to the selected file name extension, this program is started automatically and the generated file is opened.
    Keeping Settings
    If you plan to reuse the same spreadsheet format, you can save the settings for the format. By doing this, you can omit the step with the Select Spreadsheet dialog box and can export the list more quickly.
           1.      Proceed as described above in steps 1 and 2.
           2.      In the Select Spreadsheet dialog box, select Always Use Selected Format.
           3.      Confirm your settings and continue as outlined above.
    From now on, whenever you export your list as described above, you bypass the Select Spreadsheet dialog box step and proceed immediately to saving the data.
    4.      If you want to display the Select Spreadsheetdialog box again during the export, in the context menu for the list, choose Spreadsheet.
    The dialog box opens; the Always Use Selected Format indicator is not set.

  • APEX:How to put dynamic buttons in a Report.

    Hello all,
    I am creating one application in which i want two buttons in every record. I can't put it manually because it should change according to records in a table So Can anyone tell me how to put dynamic buttons in a report.
    Thanks & Regards,
    Jiten Pansara

    Hi Jiten,
    you cannot create buttons in the report, but you can always create link columns with some css class to show it as button.
    So in the both link column report attributes you will have class="button1" and class="button2"
    And in dynamic actions you need to bind the events based on your link column's jquery selector like:
    .button1
    .button2Thanks

  • How to put Skype button in adobe flash website

    how to put Skype button in adobe flash website. I got the code from "http://www.skype.com/intl/en-us/tell-a-friend/wiza​rd/" but unfortunately it can generate codes for only html websites and emails but my site is in flash and these codes are not working. Pls help me to put the Skype button on my flash website.

    Hi,
    Please refer to the following link Shopping Carts
    Regards,
    Aish

  • How to put a button on this class?

    hello
    i had a problem and i saw the comment of  Kevininstructor,and
    i tested and i think this might help me
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/d14a09e9-9f12-48fd-bef5-914d976de7b9/save-a-file-automatically-by-code?forum=vbgeneral
    does somebody know how to put a button on that class to execute it?
    thank you

    you are right armin
    here is the code posted by Kevinisnstructor
    '****************************** Module Header ******************************'
    ' Module Name: Solution2.vb
    ' Project: VBAutomateWord
    ' Copyright (c) Microsoft Corporation.
    ' Solution2.AutomateWord demonstrates automating Microsoft Word application
    ' by using Microsoft Word Primary Interop Assembly (PIA) and forcing a
    ' garbage collection as soon as the automation function is off the stack (at
    ' which point the Runtime Callable Wrapper (RCW) objects are no longer
    ' rooted) to clean up RCWs and release COM objects.
    ' This source is subject to the Microsoft Public License.
    ' See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
    ' All other rights reserved.
    ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
    ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
    ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
    #Region "Import directives"
    Imports System.Reflection
    Imports System.IO
    Imports Word = Microsoft.Office.Interop.Word
    #End Region
    Class Solution2
    Public Shared Sub AutomateWord()
    AutomateWordImpl()
    ' Clean up the unmanaged Word COM resources by forcing a garbage
    ' collection as soon as the calling function is off the stack (at
    ' which point these objects are no longer rooted).
    GC.Collect()
    GC.WaitForPendingFinalizers()
    ' GC needs to be called twice in order to get the Finalizers called
    ' - the first time in, it simply makes a list of what is to be
    ' finalized, the second time in, it actually the finalizing. Only
    ' then will the object do its automatic ReleaseComObject.
    GC.Collect()
    GC.WaitForPendingFinalizers()
    End Sub
    Private Shared Sub AutomateWordImpl()
    Try
    ' Create an instance of Microsoft Word and make it invisible.
    Dim oWord As New Word.Application
    oWord.Visible = False
    Console.WriteLine("Word.Application is started")
    ' Create a new Document.
    Dim oDoc As Word.Document = oWord.Documents.Add()
    Console.WriteLine("A new document is created")
    ' Insert a paragraph.
    Console.WriteLine("Insert a paragraph")
    Dim oPara As Word.Paragraph = oDoc.Paragraphs.Add()
    oPara.Range.Text = "Heading 1"
    oPara.Range.Font.Bold = 1
    oPara.Range.InsertParagraphAfter()
    ' Insert a table.
    Console.WriteLine("Insert a table")
    Dim oBookmarkRng As Word.Range = oDoc.Bookmarks.Item("\endofdoc").Range
    Dim oTable As Word.Table = oDoc.Tables.Add(oBookmarkRng, 5, 2)
    oTable.Range.ParagraphFormat.SpaceAfter = 6
    For r As Integer = 1 To 5
    For c As Integer = 1 To 2
    oTable.Cell(r, c).Range.Text = "r" & r & "c" & c
    Next
    Next
    ' Change width of columns 1 & 2
    oTable.Columns(1).Width = oWord.InchesToPoints(2)
    oTable.Columns(2).Width = oWord.InchesToPoints(3)
    ' Save the document as a docx file and close it.
    Console.WriteLine("Save and close the document")
    Dim fileName As String = Path.GetDirectoryName( _
    Assembly.GetExecutingAssembly().Location) & "\Sample2.docx"
    oDoc.SaveAs(fileName, Word.WdSaveFormat.wdFormatXMLDocument)
    oDoc.Close()
    ' Quit the Word application.
    Console.WriteLine("Quit the Word application")
    oWord.Quit(False)
    Catch ex As Exception
    Console.WriteLine("Solution2.AutomateWord throws the error: {0}", _
    ex.Message)
    End Try
    End Sub
    End Class

  • Hello everyone, my iTunes is always on top and if I open other windows remain below. How do I remove this feature? Through 1000, Elvis.

    Hello everyone, my iTunes is always on top and if I open other windows remain below. How do I remove this feature? Through 1000,
    Elvis.

    To attempt a new chat session...
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    http://helpx.adobe.com/x-productkb/global/service1.html

  • When i open facebook the games always say upgrad ur flash but i have the latest

    when i open facebook the games always say upgrad ur flash but i have the latest
    == URL of affected sites ==
    http://www.facebook.com

    Try clearing cache and cookies following https://support.mozilla.com/en-US/kb/Deleting+cookies?s=clear+cache+and+cookies&as=s and https://support.mozilla.com/en-US/kb/How+to+clear+the+cache?s=clear+cache+and+cookies&as=s
    and reload the page.
    If that does not work clear your Flash data via http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html and reload the page.

  • HT201210 My phone keeps turning itself off and I have to hold down the buttons to reset it today I tried to do the same but no luck and it just froze with the apple sign or the battery power sign what can I do?

    My phone keeps turning itself off and I have to hold down the buttons to reset it today I tried to do the same but no luck and it just froze with the apple sign or the battery power sign what can I do?

    See this article how to go about restoring your device from recovery mode:
    http://support.apple.com/kb/HT1808
    Good luck!

  • How do you import photos from a library on an external drive to the current library running in iPhoto?

    How do you import photos from a library on an external drive to the current library running in iPhoto? I have a few different pictures in each library and would like to have all my pictures in both libraries. The library on the external drive is my backup. I would appreciate any help.

    Depends on exactly what you want to do.
    Just move some of the Photos? FIle -> Export from one and export the shots to the Finder. Then import them to the other.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    Move the photos and all versions and metadata: use iPhoto Library Manager it's the only way to do this while preserving everything. Merge two Libraries into one?
    If you have Aperture 3.3 or later and iPhoto 9.3 or later you can merge libraries with Aperture.
    Otherwise the only way to merge Libraries is with the paid ($20) version of iPhoto Library Manager

  • MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    Ive tried using wifi and 3G seperately. Ive tried restarting the phone. Ive tried restoring it from a backup but none of these have worked yet.

  • How to keep Calendar Helper always on top?

    In my jsf page, I have a input field with a calendar helper. Below this, is a drop down combo box. My problem is that when i click on teh calendar helper, the calendar appears in a drop down manner, and inspite of this, my combo box which is below, overlaps and appears in the middle of my calendar. Is there a way to avoid this? Perhaps by keeping the calendar always on top, or atleast making the calendar appear on top rather as a drop down.?
    My code snippet is like this:
    <TR>
                                                 <TD width="40%" align="right" height="30"><h:outputText
                                                      styleClass="normalText" id="text12" value="#{msg.To}"
                                                      style="color: black; "></h:outputText></TD>
                                                 <TD width="60%"><h:inputText styleClass="inputText" id="text13"
                                                      onblur="return func_2(this, event);">
                                                      <f:convertDateTime dateStyle="short" />
                                                      <hx:inputHelperDatePicker />
                                                      <hx:inputHelperAssist inputAssist="true" autoTab="true" />
                                                 </h:inputText><h:message styleClass="message" id="message2"
                                                      for="text13"></h:message></TD>
                                            </TR>
                                            <TR>
                                                 <TD width="40%" align="right" height="30"><h:outputText
                                                      styleClass="normalText" id="text10" value="#{msg.Status}"
                                                      style="color: black; "></h:outputText></TD>
                                                 <TD width="60%"><h:selectOneMenu styleClass="selectOneMenu"
                                                      id="menu1">
                                                 <f:selectItems value="Option1" /></h:selectOneMenu></TD>
                                            </TR>

    We are having the same results. Have you heard of a "fix" for this?

  • I have scanned a document, how do I save to a specific folder on an external drive from the Preview application?

    I have scanned a document, how do I save to a specific folder on an external drive from the Preview application?

    There is no 'Save as' in Lion.  If it's a new document then select File -> Save will bring up a standard 'Save' dialog box which will allow you to specify the location.  Otherwise select File -> Duplicate and then save the duplicate.

  • How to put a Jpanel always over a JtextArea ?

    I want to have a little Jpanel above a JTextArea.
    At the initialize section, I add first the Jpanel and after the JtextArea (both in a 'parent' Jpanel with null layout)
    When I run the program I see the Jpanel over the JtextArea, but when I write on it and it reaches the area when the Jpanel is placed, the JtexArea brings to front and the Jpanel is no longer visible.
    So, how can I have my Jpanel on top always ?
    And another question , is there a hierarchy that control that I Jpanel is always over a Jbutton (even if the initial z-order of the button is higher than the Jpanel's)
    Thanks
    ( I do not send any code because it is so simple as putting this two components into a Jpanel)

    tonnot wrote:
    And another question , is there a hierarchy that control that I Jpanel is always over a Jbutton (even if the initial z-order of the button is higher than the Jpanel's)JLayeredPane
    ( I do not send any code because it is so simple as putting this two components into a Jpanel)Try it with a JLayeredPane and if you still have problems, post a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://mindprod.com/jgloss/sscce.html].
    db

  • How to put iconic button in forms 10g?

    Hi All,
    I've created a button with iconic property set to yes and icon file set to open. in forms 10g
    But when I run the form, the button appeared without the open icon show!

    In webforms, you have to put your icons in a jar file and put the jar file in a directory where Java can read from. the easiest place to put the jar file is the %ORACLE_HOME%/forms/java directory found in your Oracle installation directory
    for instance if you have your devsuite installed in C:\devsuite10g put the jar file in C:\devsuite\forms\java.
    check out [url http://www.oracle.com/technology/products/forms/pdf/webicons.pdf]Webicons it has both detailed steps to deploy icons in webforms and an easy and fast way to do it.
    Tony

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

Maybe you are looking for

  • Workbooks : Save as  and Save

    Hi, we have read a lot of message about workbooks authorizations and how to allow users to save in their favorites. Also we have found differents message where some collegues try to avoid users to save workbooks, not in a role neither in their favori

  • Comparison Sales report by period

    Hi Experts, I am trying to figure out how to create a report for which I have sales figues for one quarter compared to another quarter and then have these compared to the previous year? In other words the report should look like this                 

  • Configuration Property ,Function Module or BAPI

    Hi Gurus I need information regarding any BAPI or function module which do following job: It'll return the Maintain Value for Characteristic in Configuration View of MM03. ex: I have a material like AFS-MAT Class: AFS_class Characterisic : Size if i

  • Urgent!!!: Usage of connectionfactory with pre-configured... additional info

              In addition to my previous mail the exception seems to occur when:           the message driven bean in the weblogic deployment desriptor uses:           - Only <connection-factory-jndi-name> which points to a topic connection factory      

  • Adobe reader blocked for this site

    Since the transfer to OSX Mavericks it happens rather frequent that at opening a site page I get the message "adobe reader blocked for this site". I do not know if the installation of Adobe reader is required by Mavericks. I thought it is by default