Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 08-10-2005, 14:47   #1 (permalink)
Neuer User
 
Registriert seit: May 2004
Beiträge: 97
Popup Prototype mehrere Fenster?

Hallo Alle

Ich habe eine Funktion zusammen geschraubt um aus Flash ein Popup Fenster zustarten. Ohne Javascript im Html Code. Soweit funktioniert dies auch, nur mit mehreren Fenstern nicht. Hat jemand eine Idee wie ich den Code erweitern muss, um dies zu machen.

ActionScript:
  1. // im ersten Frame auf der _root
  2. Movieclip.prototype.openWindow = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable)
  3.     {
  4.         getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(\'" + 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);", "");
  5.     };
  6.  
  7. // auf dem Button:
  8. on (release)
  9. {
  10.    openWindow("popup.html", "window1", 400, 300, 0, 0, 0, 0, 0, 0, 0);
  11. }

Gruss

Bohnen
bohnen ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 02:12 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele