CS3.....using actionscript 2.0.....how do i make a popup window that actually works?

Iv'e been trying all types of code and am pulling my hair
out......how do i go about making a javascript popup window that
works in safari, as well as all the other browsers? Im getting this
error when i try to use safari:
Safari doesn’t allow JavaScript to be used in this way.
I just want a simple javascript popup window thats not going
to give me any type of problems...please. I have a button on my
stage called StartSearch.
What code do i put in the actionscript? where do i place the
actionscript? What code and where do i place the code in the html
doc where the flash is embedded? Please help

ACTIONSCRIPT:
on (release) {
getURL("javascript:openNewWindow('
myMovie.swf','thewin','height=400,width=400,toolbar=no,scrollbars=yes')
HTML:
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<title>--* Home Solutions Today*--</title>
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures)
newWindow=window.open(URLtoOpen, windowName,
windowFeatures);
</SCRIPT>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
<link href="HSTPageLayout.css" rel="stylesheet"
type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(Stuff.jpg);
background-repeat: repeat-x;
background-color: #FFFFFF;
-->
</style>
</head>
<body>
<div class="Container">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','700','height','850','id','Header-','align','middle','src','Header-','quality','high',' bgcolor','#336699','name','Header-','allowscriptaccess','sameDomain','allowfullscreen','fa lse','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Header-'
); //end AC code
</script>
<noscript>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="700" height="850" id="Header-" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Header-.swf" /><param
name="quality" value="high" /><param name="bgcolor"
value="#336699" /> <embed src="Header-.swf" quality="high"
bgcolor="#336699" width="700" height="850" name="Header-"
align="middle" allowScriptAccess="sameDomain"
allowFullScreen="false" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
</noscript>
</div>
</body>
</html>

Similar Messages

  • How do I block a popup window that I have allowed to open on Firefox once? I now have the popup blocker set to block all sites, but the popup still opens every time I open Firefox or open (sometimes) a new tab.

    How do I block a popup? I allowed this popup to open once. Now I have set the popup blocker to block all sites but this popup still opens every time I open Firefox and sometimes (usually) when I open a new tab.
    I Have stopped and restarted Firefox multiple times.
    I have rebooted the computer.
    I have set the tools/options/content/block pop-up windows/exceptions to block all sites (no exceptions).
    I have no other issues with Firefox.
    I have Adblock plus (with (1) subscription) installed
    I am currently using Firefox version 4.0 on Windows7 Ultimate.

    Just to address the last point: check your History menu to see whether you have the Restore Previous Session option and use that if you can. If that is grayed out or doesn't restore everything, check the Recently Closed Windows and Recently Closed Tabs lists for other pages.
    The unwanted window may be generated by an add-on. Try disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Here are some other things to check:
    (1) user.js file that changes Firefox startup behavior and overrides your preferences. This article describes how to track that down and delete it if you have one: [[How to fix preferences that won't save]].
    (2) Possible hijacked shortcut. Check the "target" of the desktop icon you use to start Firefox to see whether it lists the unwanted page. To do that:
    right-click the icon > Properties > Shortcut tab
    For 64-bit Windows 7, the Target should be no more and no less than this:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    (3) Possible undisclosed bundle items. If you have installed any free software recently, check your Windows Control Panel, Uninstall a program for surprises. If you click the "Installed on" column head to group by date, it is easier to spot bundled junk. Remove everything suspicious or unrecognized.
    (4) Supplemental clean up scans. Our support article lists tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that cures it.

  • How do I re-install a version that actually works?

    The lastest "up-date" [that's a laugh!] has moved "Tabs" where I do NOT want them & my toolbars have all disappeared! How do I download a version that actually does what I want it to do?

    hello ralph, your system information says that you're still of firefox 3.6 - in case this is right please update as soon as possible, since your browser is [https://www.mozilla.org/security/known-vulnerabilities/firefox.html affected by numerous known security vulnerabilities] which will put the integrity of your system and your personal data at risk!
    if you have any questions on how to adjust firefox to your likings afterwards, please come back to the forum...
    [[How do I put tabs back on bottom like they used to be?]]
    [[Common questions after upgrading from Firefox 3.6]]

  • How can i make the popup window have scroll bar when the content is long?

    Hi,
    My page have a button, when click it, it will show a popup window, and invoke a taskflow.
    <af:commandToolbarButton text="edit"
                                             icon="#{sdk_EmImageMap.toolbar.editCommand.icon[true]}"
                                             disabledIcon="#{sdk_EmImageMap.toolbar.editCommand.icon[false]}"
                                             id="edit"
                                             binding="#{pageFlowScope.procBean.editBtn}"
                                             action="dialog:edit" immediate="true"
                                             partialSubmit="true" useWindow="true"
                                             windowEmbedStyle="inlineDocument"
                                             windowHeight="400" windowWidth="750">
    And the page in the taskflow is :
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
       <jsp:directive.page contentType="text/html;charset=UTF-8"/>
       <f:view>
          <af:document title="#{pageFlowScope.procStepEditor.pageTitle}"
                       id="document">
             <af:form id="f1">
                <af:panelStretchLayout id="pgl1" topHeight="10%">
                   <f:facet name="top"/>
                   <f:facet name="center">
                      <af:panelStretchLayout id="psl1">
                         <f:facet name="center">
                            <af:panelGridLayout id="pgl3">
                               <af:gridRow marginTop="5px" height="auto" id="gr1">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc1">
                                     <af:panelBox text="panel 1"
                                                  id="pb1"
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr3">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc4">
                                     <af:panelBox text="panel 3"
                                                  id="pb3">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                            </af:panelGridLayout>
                         </f:facet>
                         <f:facet name="bottom">
                         </f:facet>
                      </af:panelStretchLayout>
                   </f:facet>
                </af:panelStretchLayout>
             </af:form>
          </af:document>
       </f:view>
    </jsp:root>
    And in panel 2, the content is added dynamically, so it cannot control the width. Once it is very long, then the UI will not show all the data in panel2, and panel 3 also cannot display.
    So i want to the window have a scroll bar. How can i do this?
    Thanks.

    Hi Timo.
    Thanks for your replies.
    I change the panel 2 like this:
    <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
    <af:panelGroupLayout id="pgl4" layout="scroll>
    </af:panelGroupLayout>
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
    But it still cannot display a scroll bar for the panel 2.
    Thanks.

  • How do i stop the popup window that keeps asking me to import my bookmarks to firefox "hey there! do you want to backup your bookmarks by importing them to firefox?" It keeps popping up and its really annoying. Help!!!

    it happens every time i turn firefox on. FYI: i do have firefox private browsing on (if that makes a difference).

    I think I solved it.
    I searched my extensions folder (in my profile) for all image files (PNG and JPG), and found the pop-up images to be in an extension folder related to Firefox Sync (not an external extension, actually). But even though I had already disabled it and un-linked this computer from Firefox Sync, the message still popped-up.
    I think the image filename was SYNC.PNG, or something like that. Close Firefox, find the folder where that image is in, and rename the main folder (the one right under the extensions folder) to some other name (such as "original name_copy"). Then start Firefox. Check if it works OK and if the pop-up ceases to appear. If everything OK, then you can delete that folder.
    If something goes wrong, just rename the folder to what it was before.

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • Im making a photo slide show using imovie. how will i make a dvd copy that can play in both pc and dvd player.  i dont have an idvd anymore. m using a mbp early 2011 osx 10.8.5

    im making a photo slide show using imovie. how will i make a dvd copy that can play in both pc and dvd player.  i dont have an idvd anymore. m using a mbp early 2011 osx 10.8.5.
    after making the photo slide show, i clicked share>export movie.  after which i burned using toast. the file became a .mov.  i tried playing it in my mac and it worked. my fear now is will it also play in a regular dvd?... i read from google that mov files won't run in dvd players.  what format should i convert it to so it'll play in a dvd player.  can you suggest a faster way i can burn my projects for it takes me almost an hour to export.  im going to make 28 slideshows for my kids in school. *=( if i need to do this process 28 times, i may not be able to finish it on time.  please suggest a software or an alternative as to how i should do this... m more comfortable using imovie than iphoto.  thanks and i hope to hear from someone soon *=j

    Thank you QuickTimeKirk...used toast to burn project... my project was in .mov, i tried to play it a dvd player, it did play... will try again tomorrow using another dvd player just to be sure it'll will really work with dvd players.  thank you again for your reply *=)

  • I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?

    I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?
    Also I cant make a right click on the pad. Is that normal?

    Your first going to have to remove all your personal data off the machine to a external storage drive, do not use TimeMachine when it asks as this will copy the entire drive and is unnecessary at this time (also takes too long).
    You need to drag and drop copy your personal data folders (Music, Pictures, Movies etc) to a external storage drive, once done, unmount and disconnect this drive.
    Most commonly used backup methods
    Next your going to follow the Zero Erase and install method for your OS X version, either 10.6 or 10.7, here
    How to reinstall just OS X or erase/install OS X
    10.7 requires your AppleID and password to install, so make sure to have that ready.
    Once you reboot your into the real setup of OS X, which will require your name etc, so it's now your machine.
    Install your programs, iLife package is only free for the owner of the machine.
    If you have the 10.6 machine specific disks, then it's on there.
    If your using 10.7, then you'll have to purchase it from the App Store.
    Last, return your files from the storage drive, consider setting up a TimeMachine or clone on the external drive.

  • Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    Using the retouch tool, how do you make it change color? The old iPhoto one did, this one seems to be flesh-tone only, which is not how I need it to be. In old iPhoto, used the local color to blend, it was great.

    I don't know which old version you're referring to but iPhoto 6's,  7's and 8's retouch tool works exactly the same as iPhoto 9's. The color of the enhance tool's area while applying is a light brown color but the retouch works on any color using the surrounding colors as a basis.
    During retouching:
    After retouching:
    OT

  • How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?

    How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?
    Basically I like the control over the compiling process that I get by using Ant - but I really want traces to come up immediately without having to switch contexts.
    I have an ant file that successfully launches a swf in the flashplayer - but I don't know how to make the flex console start displaying the trace output. I assume that I will have to point it to the appropriate trace output file - but I am not sure how to have ant even address the console.  Is this possible?
    Here is the the target node from my ANT file:
        <target name="launch">
            <exec executable="${FLASHPLAYER_EXE}" errorproperty="trace.output">
                <arg line="'${DEPLOY_DIR}\test.swf'" />
            </exec>
        </target>
    Thanks for any thoughts, or alternatives!

    For the record, I ended up using Logwatcher - it worked perfectly.
    http://graysky.sourceforge.net/

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • How do I revert to my old version of Firefox? You know, the one that actually worked!

    I recently upgraded to a newer firefox version and I am very unhappy with it. How can I revert back to my older version - the one that actually worked. Also I hate the restore last session feature. It raises huge security concerns when children have access to my computer.

    Disabling Session Restore
    * http://kb.mozillazine.org/Session_Restore#Completely_disabling_session_store
    * https://support.mozilla.com/en-US/kb/Session%20Restore#w_privacy-issues
    Check and tell if its working.
    What are the problems you are facing by using Firefox 6 ?? We might be able to help you resolve those issues.
    Starting with the release of Firefox 6, the previous versions of Firefox (4.0.x and 5.0.x) are no longer maintained with Security and Stability updates. Firefox 3.6 is the last previous Firefox version that is still being maintained.
    Firefox versions 4.0.x 5.0.x contain Security vulnerabilities that are known and could be exploited by some websites to gain unauthorized access to information or to disrupt critical processing. Only the Latest version 6.0 and an Older version 3.6 of Firefox are secure against these known vulnerabilities.
    * http://en.wikipedia.org/wiki/Vulnerability_%28computing%29#Vulnerability_consequences
    * http://www.mozilla.org/security/known-vulnerabilities/firefox.html#firefox6

  • How can I make my movies pro for mac work?

    How can I make my movies pro for mac work?
    I have downloaded it i click on the icon but I cant make it work

    Delete the app using this free utlity > Download AppCleaner for Mac
    Then re download the app using the same Apple ID it was originally purchased from. You won't be charged again.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    If you still have problems, I located the app developer's website. Contact details for help here >   http://www.mymovies.dk/about.aspx

  • How can I make a calender entry that makes a sound when it is its turn?

    How can I make a calender entry that makes a sound when it is its turn?

    Have you even looked at the calendar app? Did you not notice the "Alert" field in the event details when you create a calendar event?

  • How do you make the open window as big as the screen?

    When I open a window in safari it does not take up the whole screen. I have tried to maximize yet I still see the desktop in the background. How can I make the current window take up the whole screen?

    On the Mac, 'maximize' (the green button in the title bar) is +context sensitive+ - it expands the window based on the content of the window. If the content is not screen-filling, the window won't get any bigger than necessary. There's no 'global' solution to this for OS X, but for Safari in particular, the Saft plugin has an option for full-screen browsing.
    http://pimpmysafari.com/plugins/saft

Maybe you are looking for