Using a button to open an SWF in the same player...

Hello,
I seem to be having some trouble figuring out the proper kind of script that would allow me to use a button to call up and play a new SWF in the exisiting player (in this case, the projector). I am working on an interactive presentation which is now complete. However, I need a splash screen that opens on launch which offer different langauges. Each langauge has its own swf. I need a menu on the splash screen that the user can use to select their langauge by clicking the respective button that lanches that particular swf. Right now, I just need one button as the other langauge versions are still in production.
With that said, is there an easy way to launch an swf from the splash screen? I have tried a few different actionscripts but I seem to be always coming back to loadmovie script (which I havn't really mastered yet). My early attempts would load the new SWF but the current one stays in the player. It is kind of a mess.
Anyway, I am hoping there is a simpler option. I am a beginner at actionscript 3, so I am still figuring things out. I have worked with AS1 and AS2 and it seems those versions were linked swfs easier that AS3. I just want the button to leave the existing player and open the new swf (but leave the splash screen behind). This would function like website navigation, so I am not needing anything fancy. Most of the documentation I have read so far either assumes you want the swf to import and be part of the internal navigation or want multiple swfs loaded internally. That is definitely not what I want.
Anyway, thank you in advance for any help/insight.

Well, I think I got it working. The code I came up with seems a lot more simple than what I was experimenting with. I am pretty sure I did something earlier that was similar to this code but the current swf stayed with the player when the new one loaded, I am pretty sure the old swf is hiding underneath the new one but after some testing, the actual presentation is working as intended so I am waving the AS3 white flag and am accepting how this functions in its present state. I nearly gave myself a heart attack trying to get this simple function to work
Anyway, heres my "final" code. If anyone sees something that should be adjusted, please let me know.
play_iv.addEventListener(MouseEvent.CLICK, loadmain);
function loadmain(event:MouseEvent):void {
            var prevu_english:Loader = new Loader();
            prevu_english.load(new URLRequest("assets/PreVu - English.swf"));
            addChild(prevu_english);
Also, Thankyou Ned. You pointed me in the right direction. If I didn't keep looking at the loader class, I probably would have spent days doing trial and error until I got somewhere.

Similar Messages

  • How to open other swf at the same window \ click to dissolve?

    Hey guys,
    I'm creating a simple flash feature with only three buttons, but I need your help:
    First button - click and it opens our inventory flash flip book. the problem is, the flip book is already in flash, and I have no idea how to make it so when i'm clicking the button, it opens the flip book in the same window.
    Second button - when you click it, it dissolves to a new window where you can see our contact information + 'back' button. how do I create this dissolve on demand and back?
    I got the third button ok.
    please help me with that,
    thank you!

    AS3 or AS2
    Escencially you can create a container with a tween alpha animation controled by the second button. To load the swf you can externally load the file swf as an image
    var myLoader : Loader = new Loader ( ) ;
      myLoader . contentLoaderInfo . addEventListener ( ProgressEvent . PROGRESS , onProgressStatus ) ;
      myLoader . contentLoaderInfo . addEventListener ( Event . COMPLETE , onLoaderReady ) ;
      var fileRequest : URLRequest = new URLRequest ( "myImage.jpg" ) ;
      myLoader . load ( fileRequest ) ;
      public function onProgressStatus ( e : ProgressEvent ) {
      // this is where progress will be monitored
      trace ( e . bytesLoaded , e . bytesTotal ) ;
      public function onLoaderReady ( e : Event ) {
      // the image is now loaded, so let's add it to the display tree!
      addChild ( myLoader ) ;

  • How to open a .SWF in the same window (similar to online photo galleries)?

    I have a .swf I want my users to be able to open, but without
    opening a new window.
    I'm sure you all have seen this effect. In a photo gallery,
    the user clicks a thumbnail, the screen darkens, a white box
    resizes to the size of the larger image and the full-size image
    loads...all without opening a new window. I'd like to do the same
    with a .swf. Does anyone know how this is done or could you point
    me to a good tutorial? Thanks.

    Are you wanting to open your .swf from an HTML page:
    http://weblogs.asp.net/jeff/archive/2006/10/25/Modal_2D00_style-pops-in-Javascript-and-CSS .aspx

  • I used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this?

    i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Opening an .swf file with flash player

    Is there any way to open a .swf in flash player ? When I
    click on a .swf it will open in flash player on my system (I have
    Fash CS3 installed) but when I am on another system without Flash
    CS3 installed, I have to right click and use open with, but I need
    it to open in flash player on its own, like an .exe. (I have flash
    player and shockwave player installed on the other system)
    I need to be able to open a .swf in flash player, like an
    .exe. How i can do this ?

    > I am new to the Captivate world as well as the new
    window options within
    > html
    > code.
    >
    > Currently I am using Captivate to re-create and update a
    DemoShield CBT
    > and
    > woudl like to call the .swf file the same way the
    DemoShiled file is
    > called
    > within the HTML. The DemoSheild file is called using a
    javascript
    > function
    > within a href tag.
    >
    > Is it possible to do the same with Captivate files?
    Create a link that
    > will
    > open a new browser window with the .swf being played by
    flash player?
    > (similar
    > to simply double clicking the file within the folder).
    >
    You should be able to use very similar code - buy instead of
    pointing to the
    swf directly, it's likely you need to point, instead, to the
    html file that
    is usually published with the swf.
    Without seeing the exact code you are talking about with
    DemoShield, I'm
    reluctant to offer you any alternative. Simply put, a
    standard link pointing
    to the correct html file should work. You can get clever and
    use JavaScript
    if you have specific needs, but the standard HTML link should
    be fine for
    your needs.
    Oh - maybe you should look at Captivate's Manu builder, as
    perhaps this will
    offer what you are looking for.
    Steve
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • HREF to open Captivate swf file with Flash Player

    Hello all,
    I am new to the Captivate world as well as the new window
    options within html code.
    Currently I am using Captivate to re-create and update a
    DemoShield CBT and woudl like to call the .swf file the same way
    the DemoShiled file is called within the HTML. The DemoSheild file
    is called using a javascript function within a href tag.
    Is it possible to do the same with Captivate files? Create a
    link that will open a new browser window with the .swf being played
    by flash player? (similar to simply double clicking the file within
    the folder).

    > I am new to the Captivate world as well as the new
    window options within
    > html
    > code.
    >
    > Currently I am using Captivate to re-create and update a
    DemoShield CBT
    > and
    > woudl like to call the .swf file the same way the
    DemoShiled file is
    > called
    > within the HTML. The DemoSheild file is called using a
    javascript
    > function
    > within a href tag.
    >
    > Is it possible to do the same with Captivate files?
    Create a link that
    > will
    > open a new browser window with the .swf being played by
    flash player?
    > (similar
    > to simply double clicking the file within the folder).
    >
    You should be able to use very similar code - buy instead of
    pointing to the
    swf directly, it's likely you need to point, instead, to the
    html file that
    is usually published with the swf.
    Without seeing the exact code you are talking about with
    DemoShield, I'm
    reluctant to offer you any alternative. Simply put, a
    standard link pointing
    to the correct html file should work. You can get clever and
    use JavaScript
    if you have specific needs, but the standard HTML link should
    be fine for
    your needs.
    Oh - maybe you should look at Captivate's Manu builder, as
    perhaps this will
    offer what you are looking for.
    Steve
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Open several PDFs in the same Reader window using tabs for each document

    How do I open several PDFs in the same Reader window using tabs for each document?  I'm using Reader 11.0.03 and Windows 7.  

    That would be a nice feature!  Suggest it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - hopefully it will make it into Reader XII.

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • Why my iphone 4 connect to wifi, but when i open safari and search something it say i not connect.. but in the same house my sister using iphone4 too but she can online with the same router

    why my iphone 4 connect to wifi, but when i open safari and search something it say i not connect.. but in the same house my sister using iphone4 too but she can online with the same router. i go and check over the detail of the network i connected, over the ip address and subnet mask have the numbers, but over the DNS and router don't have any number...isit the problem???? i can online at any other place but just my home cant...y????

    Hey confuddled_chica!
    Try the steps in the article below to troubleshoot this issue:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • "Open each folder in the same window" not working

    hey guys, just today, I noticed that whenever i double click a folder, it opens in a new window.  I went to folder properties, and made sure I checked "Open each folder in the same window," and its checked.  I tried switching it on, then off, then restoring all defaults in both those settings and the view settings, and I've tried restarting the computer, even using a system restore point.  No Matter what, whenever I double click a window, it opens in a new window, but if I use the navigation pane, or if I highlight a window and click the open button at the top left, it opens in the same window.  This is very very very annoying, because just navigating my harddrive, I might end up with 20 windows open to reach just 1 file.
    Does anyone know what's wrong?  or how I can fix this? 

    I was experiencing this same issue on my laptop and spent several frustrating hours of searching in vain for a solution. I tried most of the same fixes mentioned here with no success (re-registering DLL's, running the system file checker [sfc /scannow],
    turning off the navigation pane, performing virus scans, etc). After almost giving up, I discovered that I only experienced this behavior when I accessed Explorer from the shortcut which was pinned to my taskbar. When I opened the "Computer" shortcut
    on my desktop, I was able to open individual folders without having new windows open each time. I suspect that this is related to the new design/function of the taskbar in Windows 7. To get the results I wanted, I opted to revert to the "classic" style
    taskbar seen in Windows Vista (AKA the "Quicklaunch" toolbar) by following the instructions here:
    http://www.howtogeek.com/howto/windows-7/add-the-quick-launch-bar-to-the-taskbar-in-windows-7/
    Then, I simply added a new shortcut to "Computer" in the new Quicklaunch toolbar and, "Voila!" - problem solved. Oddly enough, I don't experience the same behavior on my desktop PC which is also running Windows 7. Ain't Microshaft grand?!? (a-hem)

  • How do i open 2 tabs at the same time, whenever i want to open a new tab, the other one disappears and i cant get both at the same time

    opening 2 tabs at the same time

    Hello Sandy.
    Although possibly not related to your problem, I have to remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. On top of this, it has known unpatched bugs and security problems. I urge you to update to the latest version of Firefox, for maximum security, stability, performance and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your problem, make sure your instructing Firefox to open the link in a new tab. For example, middle-clicking (pressing the mouse wheel or the central button of the mouse) the link will open it in a new tab.
    If that doesn't help, it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • CRVS2010 - open multiple rpts at the same time, like sheets in a xls file ?

    Hi all,
    is that possible to open multiple reports at the same time, like sheets in a excell file ?
    Is that possible create tabs beside the MainReport tab ? or include reports in the Group Tree ? how can I do it ?
    The application is in asp.net with VS2010 and CR2010.
    The reports used to be in excell with three sheets and now we are migrating them to crystal reports, how can I create the report with those three sheets ?
    thanks !
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Aug 31, 2010 7:33 AM

    I'll make the suggestion to the Program Management group.
    You may want to do a post to the [Crystal Reports Design|SAP Crystal Reports; forum and ask them how they's fake that sort of a requirement. E.g.; there may be some way to make this report look the way you want, but it will be best to ask the experts. Don't mention CRVS2010 as they don't support it and most likely you will not get an answer.
    Ludek

  • Can I save and open an attachemnt at the same time?

    I want to be able to open an email with an attachement or attachments and click on the save button for the attachment(s), designate the location (folder) where they are to be saved - but also tell Mail to save the attachments then open them up on the desktop. Two operations in one. If you understand my request you understand what you have to do now - two separate steps. Save. Then find the saved files and open them.
    OR
    Open the attachment from the email which then downloads the file to your designated "all-purpose" location (not the ultimate location you'd want to save it). Then once you've seen it, you do the save thing with the original mail attachment and then have to go back and delete the file from the designated all-purpose download location.
    This latter problem of having to delete unedited downloads manually could be solved with an option in Mail preferences to automatically delete unedited downloads in the "all-purpose" location after that same attachment had been downloaded to another specific location on your hard drive. This option for deleting unedited downloads does not exist, however.
    But even if this step-saver option existed in the preferences, you still would not be able to tell your Mac to save a particular Mail email attachment to a particular folder AND open that attachment at the same time in one command.
    That's what I want.
    Maybe I want both. Save and open together plus the ability to automatically delete unedited attachment downloads in the "all-purpose" download file after the same attachment has been downloaded to another specific location on your hard drive.

    with IOS 6 yes you will be able to do that

  • Image map (Open a link in the same place not a new Window)

    Image map (Open a link in the same place not a new Window)
    I'm using image map From KM a made a Image and I put the link like this "documents/images/image.jpg" okay, its works, but when I click on the link open other page, How to open on the same page ???????

    Hi Marcus,
    Try out this link. It may be helpful to you.
    Opening of IView in New Window
    Regards
    gEorgE

  • I am unable to open any app on my iphone. While i'm trying to open an app, it just shakes the screen and it does not get open and remains in the  same page. It worked fine until I charged the phone in my laptop. Please can anyone help me to recover it?

    I am not able to open any app on my iphone. While i'm trying to open an app it just shake the screen and it does not open and remains in the same screen. It worked fine until I charged the phone this evening. After that suddenly I'm facing this. Please can anyone help me to recover this issue? pls!

    This is covered in the basics section.
    A restore loses nothing.
    A restore does.  If you are using the iphone as designed, then everything should be on your computer.

Maybe you are looking for

  • CS5.5 files: can 5.5 files be opened with 5?

    In the middle of a project with a collaborator. If I upgrade to 5.5, will the user of 5 be able to open files also? Thanks

  • (Copy 1) printer not keeping the exact same driver settings

    I am almost finished with a a Windows 7 image build that will be going out to multiple locations.  Found a "bug" of sorts.  During our build (done with Powershell) several printer drivers are installed, including a PS3 driver from Lexmark.  We have s

  • Flash objects

    Hi Guys i have flash mx 2004 i have build a html web site with flash object in it and every time i am opening this html website and drug the mouse over this flash object i recieve this massage "Press SPACEBAR or ENTER to activate and use this control

  • 2012 R2 Terminalserver Shadow a Session from Session Broker

    Hi, I installed 3 RD Session Hosts Windwos 2012 R2 and one Session Broker also Windows 2012 R2. Now, when a user is logged in to a session on the RD Host, and i would to shadow it from the Session Broker Server Manager, or send a message, I bekame a

  • Tiger 12" Powerbook - Wake Up Triggers

    I'm retiring my powerbook from use as my primary computer, and I'm trying to figure out if I can change the triggers that wake it up from sleep, so I can use it as an iTunes box in my car. (This is kind of a pet-project, plus my aux-in jack in my car