How to open an swf in its own window outside flash using button

how do I open an swf in its own window outside the flash using button?

Hi,
Try this code:
import mx.containers.Window;
var my_button:mx.controls.Button;
var buttonListener:Object = new Object();
buttonListener.click = function(evt_obj:Object) {
var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Sample Image", contentPath:"uganda_animation_Scene 1.swf"});
my_win.setSize(320, 240);
my_button.addEventListener("click", buttonListener);
You must drag the window default component and place in to the library.
Saransoft

Similar Messages

  • How to open a swf in a new window

    I have a button in one swf that I'd like to open another swf
    in a new window. What's the easiest way to accomplish this task?

    Try to read this article
    http://74.125.39.104/search?q=cache:f8Iq_w8jem0J:kb.adobe.com/selfservice/viewContent.do%3 FexternalId%3Dtn_14192+flash+popup+window&hl=ru&ct=clnk&cd=1&gl=ua&client=firefox-a
    How is represented the list of mp3 files in your player? I
    have a similar task.. Do you use DataGrid?

  • How do I open a folder in its own window?

    All of a sudden my folders will not open in their own windows... Has anyone have this happen? Earlier I was fine then all of a sudden it stopped.

    Cevsinc,
    I don't know if this is what your looking for but here you go.
    To make it so that when you double click a folder it opens in a new window you have to turn off or hide the toolbar. To do so:
    Open a Finder window > Select "View" from the menubar > select "Hide Toolbar"
    Keyboard shortcut to do the same as above is ( Command ) (  Option ) ( T )
    Now every folder you double click on will open in a new window.
    It should remember that you elected to not have the Toolbar show and every time you open a new window it will be the same.
    To change back Do the same except instead of "Hide Toolbar" it will say "Show Toolbar"
    Hope that helps,
    Weston

  • 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

  • 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 pdf in its native reader in iOS using AIR?

    Hi there,
    I am wondering if there is any feasability of opening a pdf directly in its native reader in iOS environment. I needed this to happen from an AIR application.
    I have found that AIR can be extended using a java program to do the above task for Android.
    here is the link: http://www.jamesward.com/2011/05/11/extending-air-for-android/
    Thanks in advance,
    Sris

    Thanks everyone for the solutions.
    After working all the possibilities to open locally saved file on iPad
    1. StageWebView 
    2. navigateToUrl
    3. file.openWithDefaultApplication();
    4. Java socket extension for AIR,
    I finally found a solution.
    StageWebView works on ipad.
    the code that works is as suggested by xperiments.es.fr
    But the problem I faced was saving the pdf and opening the locally saved file.
    Since iOS does not support desktopDirectory & documentDirectory, I tried to save the pdf in applicationDirectory/applicationStorageDirectory, that didnt work when I tried to open the pdf from those locations.
    So the only way was to store the generated PDF in a temporary directory and StageWebView could locate and load that
    It works!!!
    Now the next challenge is, while the desktop (Windows) compilation of the app shows PDF reader with menu options, which does not show on iPad app. IPad app shows just a page index on left-top corner. It would be good if the options are shown as well.
    Lets see!!!
    Cheers,
    Sris

  • Why won't Firefox open Foxit Reader in its own window?

    When browsing with Frefox, I used to be able to click on a PDF link and have Foxit Reader open the file in a separate (Foxit) window. Now no matter what I do, the PDF opens within Firefox in what I suppose is a Firefox PDF reader.
    How canI make this work the way it used to?

    Could you try the steps in this support article and see whether they solve the problem: [[How to disable the built-in PDF viewer and use another viewer]].

  • Open a URL in a new window from Flash

    Looking for the simplest way to open a URL in a new window from Flash using AS3-CS3, Thank you.

    The following line of code will do that...fill in the URL
    navigateToURL(new URLREquest("http://www....", "_blank"));

  • I have a new MacBook Pro. I am using firefox, but my homepage is set to google. Firefox constantly keeps opening new tabs to its own homepage by itself. How can I disable this feature?

    I have a new MacBook Pro. I am using firefox version 7.0.1, but my homepage is set to google. Firefox constantly keeps opening new tabs to its own homepage by itself. How can I disable this feature.

    Hi [email protected]
    If you have set Google to be your homepage, that should be the first one to appear. Are you seeing the Firefox home page when you open new tabs? New tabs should be blank by default. The only reason I've seen Firefox open new tabs with Firefox data on it is after an upgrade of the product.

  • How to open a swf file in a new NON-browser window

    Hi, I'm trying to create a page where you click on the video thumbnail and the video opens up in its own window. I'd like the video to open at a specific size that I determine, not the browser, and I want it to be scalable. Here is what I have so far as a test file "http://petoweb.com/telos/TelosPlayerTEST.html"
    Here is what I am trying to emulate "http://www.jonesdaylondon.com/recruitment_videos/" (just click any of the videos)
    Any help appreciated. Thanks.

    if you are using AS2
    try GG jsWindow v2 component
    you can open a popup window with no tollbar,statusbar,menubar, and specified width and height of the window.
    download here
    if you are using AS3, or if you know javascript,
    you can also call a javascript command windows.open() from actionscript
    this method only works if you are viewing the swf inside a html loaded from web server.

  • Applet not opening a socket on its own host. Please help.

    I have also posted this in JSC2 forum.
    My applet is not able to open a socket on its own host.
    The applet is being served by a JSP (developed using Sun Creator2) from my laptop behind a DHCP broadband router at (say) 125.238.104.132 at my residence. I have a URL �samsub.no-ip.biz� that redirects port 80 calls to 29080 where my application runs. All required router rules/mapping are done and the JSPs run perfectly fine. In one of the pages, I have inserted an applet inside an escape disabled statictext field as follows:
    <applet code="AppClient.class" width=540 height=440></applet>
    The applet code and the test server code are shown below for your analysis. Note that, when run on the same machine (at home), the applet works fine. The commented lines will show other failed test. The error reported at the java console was: null pointer at line 56
    Could someone help me please. Thanx. MarySam
    The applet code
    1     import java.util.*;          
    2     import java.awt.*;          
    3     import java.applet.*;          
    4     import java.text.*;          
    5     import javax.swing.*;          
    6     import com.sun.java.swing.plaf.windows.*;          
    7     import java.awt.event.*;          
    8     import java.net.*;          
    9               
    10     public class AppClient extends Applet {          
    11     JInternalFrame jif;          
    12     JTextArea jta1, jta2;          
    13     Socket kkSocket = null;          
    14               
    15     public void init() {          
    16          try {     
    17               LookAndFeel lf = new WindowsLookAndFeel();
    18               UIManager.setLookAndFeel(lf);
    19          kkSocket = new Socket("125.238.104.132", 4444);
              //kkSocket = new Socket("samsub.no-ip.biz", 4444);
              //kkSocket = new Socket("125.238.104.132:29080", 4444);
              //kkSocket = new Socket("samsub.no-ip.biz:29080", 4444);
    20          }      catch(Exception e) {}
    21               
    22          setLayout(null);      
    23          setBackground(Color.black);     
    24          jif = new JInternalFrame();     
    25          jif.setLocation(20,20);     
    26          jif.setSize(500,400);     
    27          Container con1 = jif.getContentPane();     
    28          con1.setLayout(null);     
    29               
    30          jta1 = new JTextArea();      
    31          JScrollPane jcp1 = new JScrollPane(jta1);     
    32          jcp1.setBounds(10,10,410,100);     
    33          con1.add(jcp1);     
    34               
    35          jta2 = new JTextArea();     
    36          JScrollPane jcp2 = new JScrollPane(jta2);     
    37          jcp2.setBounds(10,115,470,245);     
    38          con1.add(jcp2);      
    39               
    40          JButton jb = new JButton("Go");     
    41          jb.setBounds(425,10,60,30);     
    42          jb.addActionListener(this);     
    43          con1.add(jb);      
    44               
    45          JLabel jlb = new JLabel();     
    46          jlb.setOpaque(true);     
    47          jlb.setBackground(Color.gray);     
    48          jlb.setForeground(Color.white);      
    49          jlb.setBounds(425,50,60,30);     
    50          con1.add(jlb);      
    51               
    52               
    53          jif.setVisible(true);     
    54          add(jif);      
    55          //jta2.setText(getCodeBase().toString());     
    56          jta2.setText(kkSocket.getInetAddress().toString());     
    57               
    58     }          
    59               
    60     public void start() {}          
    61               
    62     public void stop() {}          
    63               
    64               
    65     }          
    66               
    67               
    The test server Code
    1     import java.net.*;                         
    2     import java.io.*;                         
    3                              
    4     public class MyServer {                         
    5     public static void main(String[] args) throws IOException {               
    6                              
    7     ServerSocket serverSocket = null;                    
    8     try {                         
    9     serverSocket = new ServerSocket(4444);                    
    10     } catch (IOException e) {                         
    11     System.err.println("Could not listen on port: 4444.");          
    12     System.exit(1);                         
    13     }                         
    14                              
    15     Socket clientSocket = null;                         
    16     try {                         
    17     clientSocket = serverSocket.accept();                    
    18     System.out.println(clientSocket.getInetAddress().toString());          
    19     } catch (IOException e) {                         
    20     System.err.println("Accept failed.");                    
    21     System.exit(1);                         
    22     }                         
    23                              
    24     clientSocket.close();                         
    25     serverSocket.close();                         
    26     }                         
    27     }                         
    28                              
    29

    Hi Guys,
    I'm not actually from Mozilla Firefox, but I've had this problem before, and I've solved it with the help from another website.
    What you need to do is download a programme called "tdsskiller" from here:
    http://www.geekpolice.net/t23369-computer-infected
    scroll down the page and you should see a link. (I know the article itself seems irrelevant to your problem, but trust me, the programme they recommend works on this virus too.) It's only 1.3MB or so, so it doesn't take up huge amounts of space either! :)
    I can safely say that it is COMPLETELY safe to download this from geekpolice.net, as this website is a free website which helps people with viruses on their computer. If you ever have another problem with anything to do with computers, go and have a look on geekpolice.net, they should have something that might help you.
    Before anyone wonders why I am singing its praises so much, no I am not advertising them for any personal gain, but they have helped me get rid of some pretty nasty viruses on my computer before, so I am very grateful to them :)
    SO, anyway, after you've downloaded the tdsskiller, you should run it, and it may find some infected files, in which case let it repair them. After rebooting your computer, the annoying opening tab thing should be gone!
    I hope this works for anyone who's stuck :) If it doesn't, I'm really sorry, but it has definately worked for me!
    Good luck!
    Yashmeee :)

  • (macbook pro 2.4 ghz intel core 2 duo 2010 13" aluminum with 8gb of memory and a 250gb hard drive running version 10.6.8 with safari 5.1.4) Safari will open up intermittently on its own.

    I have a macbook pro 2.4 ghz intel core 2 duo 2010 13" aluminum with 8gb of memory and a 250gb hard drive running version 10.6.8 with safari 5.1.4. Safari will open up intermittently on its own. System preferences and the dock isn't set up to start safari. Can't figure out why this is happening. Had reloaded system from scratch and noticed this happening lately.

    Remove iAntiVirus, then reboot, see if it's better.

  • Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    I came up with an alternative solution.
    Instead of actually trying to move the JInternalFrame from one JDesktopPane to another, I added a single, maximized JInternalFrame to the left side. When one of the right side frames is to be docked, I merely copy its ContentPane to the single JInternalFrame on the left, set the original to be non-visible, and adjust the properties of the JSplitPane to make the "docked" frame appear.
    When the "close" button on the docked frame is pressed, I simply undo this procedure to "undock" the frame and redisplay it on the right-hand side (with its content intact from the docked frame, but in its original position).

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?
    For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
    In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.

    Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.collections.FXCollections;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    public class CustomBorderExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
      enableDragging(root);
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
      final Button closeButton = new Button("Close");
      VBox vbox = new VBox(10);
      vbox.setAlignment(Pos.CENTER);
      vbox.getChildren().addAll(choiceBox, closeButton);
      mainContainer.getChildren().add(vbox);
        closeButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      private void enableDragging(final Node n) {
       final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
       n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(new Point2D(event.getX(), event.getY()));
       n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(null);
       n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            Point2D anchor = mouseAnchor.get();
            Scene scene = n.getScene();
            Window window = null ;
            if (scene != null) {
              window = scene.getWindow();
            if (anchor != null && window != null) {
              double deltaX = event.getX()-anchor.getX();
              double deltaY = event.getY()-anchor.getY();
              window.setX(window.getX()+deltaX);
              window.setY(window.getY()+deltaY);
      public static void main(String[] args) {
      launch(args);

  • Opening image files in their own windows in PS4

    Before PS4, I could open image files in their own windows. In PS4, when I want to open more than one file, these open with tabs and any new file I open is added to the tab queue. It is annoying to right click on each tab so each file is in its own window. Is there a universal preference to change this annoying behavior?
    Using a Windows environment with Photoshop CS4 Extended.

    see the tabs setting in the preferences. you can turn that off.

Maybe you are looking for

  • Error Code: U44M1I210 on upgrade for Photoshop CC

    Progtram works fine but i can't upgrade. Tried many times for various days. Gives error after about 51%: Adobe Photoshop 14.1.2 There was an error installing this update. Please quit and try again later. Error Code: U44M1I210 Please advise. Thank you

  • How to stop a process chain tempararly

    Hi we have a process chain BI (7.0) which extracts data from R/3 scheduled everyday at 6AM. However, our basis team is shutting down the R/3 server around this time for maintenance. I want stop the process cain for this day and start regular schedule

  • Lost photos as iphoto crashed- how do I get them back?

    As I was downloading my photos from my exilim camera, iphoto crashed and I lost my photos. I pressed the download and delete from camera button as I usually do- so there aren't any files left on the camera. Can I open one of those files in the pictur

  • Time remapping question

    I'm still using FCP 4.5 (yeah, I know....Upgrade) Here's my question. I have a clip of a dog running towards the camera. It's around eight seconds long. The dog is jumping around it's owner (excitedly) for the first couple of seconds and then takes o

  • What types of video files can be run on Adobe Premiere Pro CC 2014?

    What types of video files can be run n Adobe Premiere Pro CC 2014. Please answer this fast. I need it ASAP.