power-box.de
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 14.03.2002, 17:03   #1
TP-Junior
 
Registriert seit: Mar 2002
spens macht alles soweit korrekt

HELP avi. and mpg load from flash


Hallo there

I need to load a avi and a mpg movie in a new window from my flash side is that posibel??

Please help me I'm stuck whit this problem

Spens
spens ist offline   Mit Zitat antworten


Alt 14.03.2002, 17:10   #2
TP-Greis
 
Benutzerbild von Lars
 
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
Lars bringt sich richtig ein
I'm not that good in Flash, but I think this should work proper:

First, create a normal HTML-document containing the embedded movie. Then you can access this file thru getURL("my_movie.htm","_blank"); (must be added as an action to a keyframe or button *). If you want to open a special window (i.e. without toolbar etc.), you should ask again...

*)
I think, this is the most common way. Righclick a button of your choice, choose "Actions" an type in the following code:

Code:
on (release) { 
   getURL("my_movie.htm","_blank");
}
__________________
Give up yourself into the moment — The time is now.
Lars ist offline   Mit Zitat antworten
Alt 14.03.2002, 17:21   #3
TP-Junior
 
Registriert seit: Mar 2002
spens macht alles soweit korrekt
Hey again

Thank's and you I need to open whitout toolbar.

I'll try to make it work the way you say'ed.

Thanks for the tip.

All the best Spens
spens ist offline   Mit Zitat antworten
Alt 14.03.2002, 17:22   #4
TP-Greis
 
Benutzerbild von Lars
 
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
Lars bringt sich richtig ein
As far as I know, you can use normal javascript within Flash (something like "toolbar=no,width=300,height=200"). But I don't know where to put it...
__________________
Give up yourself into the moment — The time is now.
Lars ist offline   Mit Zitat antworten
Alt 14.03.2002, 18:58   #5
TP-Insider
 
Benutzerbild von Johannes P.
 
Registriert seit: Jan 2002
Johannes P. ist auf einem guten Weg
Hi

Paste this within the <head> tag of your html document:
Code:
<head>
<script language="javascript"> 
   <!-- 
   function winOpen(url, breite, hoehe) {
      // calculates the coordinates required to center the pop up window
      links = (screen.width/2)-(breite/2);
      oben = (screen.height/2)-(hoehe/2);
      window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
   } 
   //--> 
</script> 
</head>
In the flash environment, assign the following script to a button by right-clicking it and choosing "actions" from the context menu:
PHP-Code:
on (release) {
    
getURL("javascript:winOpen(yoursite.html', 300, 200); void(0);");

javascript without a space between java and script.

yoursite.html represents the url of your page, '300'/'200' define the width/height of the popup window.
__________________
Gruß
Johannes
¬ 2-serious.de - Wo Veilchen blühen und Ideen sprühen.
Johannes P. ist offline   Mit Zitat antworten
Alt 14.03.2002, 19:02   #6
TP-Greis
 
Benutzerbild von Lars
 
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
Lars bringt sich richtig ein
@Johannes

Das bedeutet also, dass ich aus Flash heraus ganz normale Javascript-Funktionen aufrufen kann?


(In English : This means, I can access normal javascript-functions out of Flash?)
__________________
Give up yourself into the moment — The time is now.
Lars ist offline   Mit Zitat antworten
Alt 14.03.2002, 19:14   #7
TP-Insider
 
Benutzerbild von Johannes P.
 
Registriert seit: Jan 2002
Johannes P. ist auf einem guten Weg
Zitat:
Das bedeutet also, dass ich aus Flash heraus ganz normale Javascript-Funktionen aufrufen kann?
In der Tat, ist wie bei HTML Links, einfach ein javascript: voranstellen und die Funktion aufrufen.
Zitat:
(In English : This means, I can access normal javascript-functions out of Flash?)
Indeed, this applies to html links as to flash links as well.. just precede each function call with "javascript:" and it'll do fine
__________________
Gruß
Johannes
¬ 2-serious.de - Wo Veilchen blühen und Ideen sprühen.
Johannes P. ist offline   Mit Zitat antworten
Alt 14.03.2002, 22:47   #8
TP-Junior
 
Registriert seit: Mar 2002
spens macht alles soweit korrekt
Hey again

Thank's for the tip.

But I still cant get it to work ?
I'm shure that I'm the one who is doing it all wrong.
I've have to say that html. is not my strong side.

Well I gues that I just have to keep on trying.
spens ist offline   Mit Zitat antworten
Alt 15.03.2002, 00:20   #9
TP-Greis
 
Benutzerbild von Lars
 
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
Lars bringt sich richtig ein
At which part you exactly have the problems?
__________________
Give up yourself into the moment — The time is now.
Lars ist offline   Mit Zitat antworten
Alt 15.03.2002, 07:51   #10
TP-Specialist
 
Benutzerbild von the0bone
 
Registriert seit: Mar 2001
Ort: NDS
the0bone ist auf einem guten Weg
If it´s only a script problem, post a link to your site!
__________________
the0bone

Wissen ist Macht, nichts Wissen macht nichts!
the0bone ist offline   Mit Zitat antworten
Alt 15.03.2002, 08:03   #11
TP-Insider
 
Benutzerbild von Johannes P.
 
Registriert seit: Jan 2002
Johannes P. ist auf einem guten Weg
You have to make sure to paste the javascript code within the <head> tags of the opener page, not the page you'd like to open.
__________________
Gruß
Johannes
¬ 2-serious.de - Wo Veilchen blühen und Ideen sprühen.
Johannes P. ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash
HELP avi. and mpg load from flash HELP avi. and mpg load from flash
« flash formular | flashtext aus ext. *.txt »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

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

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


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:13 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67