ActionScript 2.0 :: Multiple Pop Up Windows/JavaScript?

Apr 16, 2007

I used the pop up window tute from this site and it uses javascript which I know very little about.Basically the tute opens a customised url window from the swf file but only one at a time.I need to open two or more at the same time.What would I have to change so I could open more than one at a time?here is the script ....

_root.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h +

[code].....

View 1 Replies


Similar Posts:


Javascript :: Multiple Windows In One Page For Bookmarks?

Apr 26, 2011

I want a single online web page for my bookmarks. The page should include small windows which opens the following pages:

Fizy, Facebook, Guardian.

There should also be a button for adding a new window with an URL text input.Here's an illustration of how the page should look: http:[url].....I've built a version of this at http:[url]...., but as you may see, it uses iframes under javascript windows, which can not open frame-breaking sites (like fizy.com), or Facebook.

View 2 Replies

ActionScript 2.0 :: Control Multiple JavaScript Pop-Up Windows

Jun 12, 2006

I am trying to launch 2 different JavaScript Centered Pop-Up Windows within a Flash movie. There is a main movie, then 2 other movies that load into the main. The main movie resides in the index page and all of the JavaScript is in the header. I need one pop-up to load an FLV (movie.html) with NO SCROLL BARS......and the other to load a results.php page (results.php) WITH A VERTICAL SCROLL BAR only. I have been referring to the a tutorial on the Kirupa Website [ [URL] ] but I'm not totally clear how to write with the properties in the Java Script to talk to these windows individually.

View 2 Replies

SwfObject And Javascript ExternalInterface On Windows

Jul 22, 2009

I have a chat application that I built using Flex. The application on page load is hidden by setting the <object> in the page height to 0px. I did this because I need to be able to talk to the swf with javascript and setting the object to hidden really does "hide" it. In other words it treats the swf like it is not loaded on the page at all.I have an HTML button on the page that says "chat". When you click the button a couple of things happen. First I show the swf by setting the <object> height to 330px and I also tell the swf what person I am going to be chatting with by passing in a user name variable using javascript.On Windows using FF and IE my javascript can't find the swfobject.getObjectById("myswf") if the <object> height is set to 0px. Sometimes it can't find the swf at all event if height is set to 300px.The javascript calls work perfectly on OS X in any browser and it works on windows using Safari.

View 1 Replies

ActionScript 2.0 :: Javascript Pop Up Windows In XML Gallery?

Aug 22, 2007

I have been trying to get my images (not the thumbnails) in kirupas xml photo gallery to launch a pop up window (with javascript) that displays another swf. The window needs to be centered, 800 x 600, toolbars, etc etc, but I cant get it to work.

I have read alot of posts on this, but nothing seems to work for me to get a pop up window working (I can get the link to work with a _blank window, but I need it to constrain to 800x600 and preferably be centered)

Has anyone got this to work using a javascript pop up window?

View 8 Replies

Javascript :: Javascript - Target Multiple Objects With A Single Operation Using ECMAScript's `with` Statement?

May 2, 2011

The following doesn't work (although it gives no explicit error), but why not?nd... Is there really no way around it, strictly using the with statement? Forget using for / foreach.

with (object1, object2) {
attribute = value;
method();
}

Why the code above gives no syntax error, doesn't work but is accepted by with?If it's possible, how could we change multiple objects with same attribute using with?

var object1 = { attribute: 3 };
var object2 = { attribute: 2, method: function() { alert('blah'); } };
var object3 = { method: function() {alert('bleh'); } };

[code]....

View 2 Replies

Javascript :: Flash - Monitor Browser Windows From The Same Domain?

Jun 23, 2009

My webpage loads a background flash which will connect to the server using socket. If a user open multiple windows/tabs of my website, the server will get multiple socket connections. Any idea of how to make sure that only one socket is connected from the same user and same browser?

I am thinking of using Javascript to monitor the window close event, if a window that was connected to the server is closed, one of the other windows will try to connect to the server. But I can't find a way to listen to that event.I was thinking of Flash's LocalConnection too, but can't find a way to assign unique connection names and let other Flashes know.

View 3 Replies

Javascript :: Sending A Array Not Working In Safari For Windows

Jan 28, 2011

I am sending over a JavaScript Array to ActionScript. The JavaScript code is as follows:

[Code]....

When I run this on Safari for Windows, arrayInput is null. However, this method works fine in Safari for Mac, IE, FF, Chrome, and the variable holds the actual array.

View 1 Replies

JavaScript :: Windows.Onload Event Not Wait For Flash Object To Load

Jul 11, 2011

I'm embedding a flash object in an html page and calling windows.onload to initialize the Flash movie. The problem is that the windows.onload does not wait for the Flash object to completely load. Is there way to make sure that the Flash object has fully loaded?

Here is the code I'm using:
<head>
<script>
var falshObj = null;
function pageInit() {
thisMovie();
[Code] .....

View 1 Replies

Html :: Handling JavaScript Calls To Window.open()- Not Using Native Windows - Adobe AIR

Jul 26, 2010

I am developing an Adobe AIR application which uses both native windows and floating panels. Is is possible to enable the creation of a floating window instead of a native window when a JavaScript window.open() function is called?

It is required that all of the floating windows are contained within one native window, therefore the creation of more native windows is not suitable.

I have used a Custom HTMLHost class in order to enable the creation of a native window but I can't work out a way of creating a MDI window instead. I am using the flexMDI framework for my floating panel interface.

View 1 Replies

IDE :: Multiple Windows On Desktop?

Nov 22, 2011

This post might belong to the As3 forum, but i think i might fit in here too..I am trying to get 2 "windows" or swf to to connect together (one sending event and the other receiving them, one way.) for a desktop application offline. First i thought I should use the localConnection, but it doesnt really work offline, i get errors and sandbox violations Now i am considering the nativewindow with a AIR app. All this using Flash CS5 (not flex). What is the best way to proceed?

View 1 Replies

Close Multiple Library Windows?

Nov 25, 2009

I did open 4 windows of the library. I can close these library windows one by one but when I chose to show my library again all 4 windows open. I tried to reset it with chosing my standard workspace but it still happens allways when I open my library window again again.

View 2 Replies

ActionScript 3.0 :: Multiple Air Instances/windows?

Jan 22, 2011

I've done an Air app and now I realize I need to run two instances of it at the same time. I've searched the web and first it seemed that it was impossible, but I've found something about the invoke event. Pretty much all I've found was for flex and I just use plain flash cs5 so it's of no good to me. So far I have this function that I think is supposed so be called every time the app is launched:

[Code]...

View 1 Replies

ActionScript 3.0 :: Open Multiple Windows?

Apr 30, 2011

I have a swf file with 5 buttons each button goes to a different url, so lets say i have 5 buttons, button 1 goes to preloader1 button 2 goes to preloader2 and so on.the problem is if i click on button 1 and open preloader1, then click on button 2 it opens preloader2 in the same window as preloader1, how would i do it so it opens a different window,here is the as3 code

Code:
function viewPopup(e:MouseEvent) {
var address1:String = "room2/preloader.php";
var jscommand1:String = "window.open('" + address1 +

[code]...

i have changed this _self to _blank but still doesnt work

View 1 Replies

ActionScript 3.0 :: Multiple Air Instances/windows Via InvokeEvent?

Nov 28, 2009

I've done an Air app and now I realize I need to run two instances of it at the same time. I've searched the web and first it seemed that it was impossible, but I've found something about the invoke event. Pretty much all I've found was for flex and I just use plain flash cs5 so it's of no good to me. So far I have this function that I think is supposed so be called every time the app is launched:

function invokeHandler(e:InvokeEvent) {
// insert action
}
NativeApplication.nativeApplication.addEventListen er(InvokeEvent.INVOKE, invokeHandler);

View 10 Replies

ActionScript 3.0 :: Multiple Air Instances / Windows Via InvokeEvent

Jan 27, 2011

I've done an Air app and now I realize I need to run two instances of it at the same time. I've searched the web and first it seemed that it was impossible, but I've found something about the invoke event. Pretty much all I've found was for flex and I just use plain flash cs5 so it's of no good to me. [code]If this is right, what I'm totaly missing is the "open a new instance" part.

View 5 Replies

Flex :: Open Multiple Pop Up Browser Windows From ActionScript?

Jun 1, 2010

How to open multiple pop up browser windows from ActionScript?

View 2 Replies

Windows :: Use Multiple WebBrowser Tabs For 1 Flex Application?

Sep 13, 2010

I'm developing a flex application to view charts and statistic data about real-time stock price. The requirement is that 1 user can view multiple windows (or panel, or canvas) of multiple stock symbols at the same time. I want to have 1 button, when I click at that button, a new panel will be pop up in a new WebBrowser tab. 1 user can open 5 or more panels like that in 5 more webbrowser tab to see 5 different stocks. And all 5 panels must be managed by the main Application. So that the Application can send stock price data to those 5 panels.

View 2 Replies

Actionscript 3 :: Playing A Multiple Videos In Windows Sidebar Gadget?

Apr 12, 2010

how to play a multiple videos by using actionscript in a windows sidebar?

View 1 Replies

Flex :: Flash Projector With Multiple Windows, Each With A New FlashPlayer Instance?

Oct 22, 2010

Does anyone know of a flash projector 'project' or 'framework' that uses a new flashPlayer for each window?We've used mProjector, which works well to a point, but I'm very disappointed in the fileIO patterns they use. It is very buggy with regard to reading and writing files.

mdm zinc uses multiple windows, but it is all sits on one flashPlayer 'session'. The same applies for AIR. It is great, but there isn't a way to make each window run on a seperate flashPlayer... extreme number crunching on one window will lock up all other windows.

edit - Just to clarify my needs (since I'm adding a little bounty), the app is an ERP application, built on Flex 3.x, and the size and scope of the project == huge.

tl;dr -- I need an exe wrapper (for windows), similar to AIR, that can have multiple windows, running each window on a seperate flashPlayer instance, and when a window is closed, it blows-away that flashPlayer instance / stage / etc.

View 2 Replies

Actionscript 3 :: Avoid The Display Of Multiple Alert Windows In Flex?

Feb 18, 2011

I have a timer in my application. For every 30 min, it will hit the web services and fetch the data and updates the UI. The application was working fine till yesterday. Suddenly, because of some issue, the web services were not available for some time. During that period, Application displayed the RPC Error multiple times(More than 100 alert boxes) in alert window. Because of this alert boxes, my application was hanged and i was not able to do anything.

I have tried several approaches, but nothing worked.Finally, I have tried to use a flag. In all the approaches, this looked promising. so i have implemented it.Basically, in this approach whenever we open an alert we will set a flag.While opening and closing alert we will reset this flag.

View 1 Replies

ActionScript 2.0 :: Launch Multiple Chromeless Windows From One Html Page?

Oct 10, 2004

I did a tut from actionscript.org about chromeless windows. It works fine but I would like to launch multiple chromeless windows from one html page. I pasted the script two times, added the correct addresses and now one button is launching the page behind the other button and the other button isn't working

View 2 Replies

Professional :: Prevent User Open / Play Flash Game On Multiple Browser Windows At One Time?

Mar 12, 2012

I made a game as the same site URL..Anyone knows how to prevent user open and play game on multiple browser windows at a time?I used flash control to embed flash into aspx page and connect to sql server

View 4 Replies

Windows :: PDF Displaying Correctly In Flex Mx:HTML Control In Windows / Reader X

Oct 28, 2011

I'm having an issue with the PDF displaying outside the viewable area of the mx:HTML control in Flex. When the application starts up - the mx:HTML is set to a certain size, but can be enlarged if the application is maximized. These are the following conditions to replicate it: Issue only happens in Windows (Windows 7, not on Mac) Issue only happens with Reader X installed (not with previous versions) Issue only happens when running the built app, does not happen in debug / development mode from FlashBuilder

[Code]...

View 1 Replies

Embed Flash Games Into Windows Forms Application.net Compact Framework Under Windows Mobile 6?

Feb 5, 2010

I want develop an application on windows mobile.In this app, i need to show some Flash games to the end user.ow should I do?embed an Flash ActiveX Control (in Windows mobile Form application) ?embed an IE control?BTW (because i do not have a windows mobile device now)Can I views flash in IE of the windows mobile device?for play flash, Macromedia Flash Player 7 for Pocket PC should be installed on your windows mobile emulator.DIT2:after practice i found following package should be installed before your windows mobile progr

Vista SP2
Visual Studio 2008 SP1
Windows Mobile Device Center

[code].....

View 2 Replies

Windows :: Flex - MXMLC Throws A Java.lang.NullExceptionPointer When Compiling In Windows (not In Mac Nor Ubuntu)

Feb 23, 2011

I'm running ant to compile a Flex application, and the build keeps failing when running it on a windows command line. Other people in my team can successfully run the very same build under mac and linux. This is the error shown in the command prompt:

[Code]...

All tokens are set in corresponding build.properties and filter .properties files (and, as I said before, it compiles perfectly under mac and linux). The windows version is 7 Ultimate, FLEX_HOME is set as an environment variable to the Flex SDK 3.5 (the 3.5.0.12683 build that comes with Adobe Flash Builder Burrito). ${compiler.fork} is set to false, to avoid an issue with the SDK and the source files being in different logic drives.

View 1 Replies

Windows :: Flex - FileReference: Loading A Windows-locked File?

Mar 8, 2010

I'm using Flex in Flash Player 10 on Windows, using FileReference to load a file into memory, as below.My issue is that when a file is locked by Windows, my FileReference is not giving me any feedback that the file is inaccessible--it simply never dispatches any events after my calling load().Does anyone have insight into how to tell that Flash Player is unable to open the file?

var fileReference:FileReference = new FileReference();
private function onClick():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, onSelect);

[code]....

View 1 Replies

Windows :: Flex - Adobe Air - Lauch Windows Virtual Keyboard Osk.exe

Nov 25, 2011

From an Adobe Air application, I need a function to launch the Windows Virtual Keyboard (c:windowssystem32osk.exe). I tried the Native Process, but it didn't work when telling it to execute cmd.exe /C osk.exe. How should I launch the keyboard application from an Adobe Air application?

View 1 Replies

Windows :: Flex - Air - Alwaysontop - Does Not Work In MAC But Works In Windows

Aug 29, 2009

i setup alwaysOnTop="true" in mx:WindowedApplication alwaysOnTop="true" tag. but this does not work in MAC but works in windows.

View 1 Replies

Windows :: Embed Windows Media Player In Flex?

Aug 24, 2010

I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in windows media player and that required the installation of three codecs : Mp4Audio.ax, Mp4Video.ax, Mp4Src.ax.

As i see it, it will be very convenient if i could embed a windows media player plugin in flex or i could specify the audio and video codecs in the flash player

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved