Flash and open new window

Posted on 2004-11-15
Last Modified: 2010-04-07
I have developed an eBrochure for my company.  What I want to happen is for the a flash button to open a new window with the eBrochure movie in it.  But I want the window to stripped down of the location bar, menu bar, scroll bar, etc.  I've seen several references on how to do this via Javascript and I know that you can embed simple javascript in the getURL I don't know of a way to embed those functions that the links rely upon.

Is there a way to do this?
Question by:skibama1
    LVL 39

    Accepted Solution

    what exactly do you mean by

    "  I don't know of a way to embed those functions that the links rely upon. "

    which links and which functions?

    here's an example from kirupa. //directly on the button, no javascript required in the html.

    on (release) {
          //customize the window that gets opened
          // 0 equals NO.
          // 1 equals YES.
          address = "";
          target_winName = "kirupa";
          width = 400;
          height = 300;
          toolbar = 0;
          location = 0;
          directories = 0;
          status = 0;
          menubar = 0;
          scrollbars = 1;
          resizable = 0;
          //sends data back to the function
          openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);

    then the openWinCentre method on the timeline:

    Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
          getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin ='" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");

    LVL 8

    Expert Comment

    this is a better version. Check it out :
    this one will not only popup window but a window that is floating without any FRAME or Border..
    Recommened ;)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now