 |
| Hinweise |
Willkommen im TP-Hilfe-Forum!Dies ist ein Forum zu den Themen Photoshop, Dreamweaver, Flash, Selbständigkeit und mehr, in dem Du Hilfe, Anleitung oder eine Lösung zu Deinen Problemen erhältst. Aktuell bist Du in unseren Foren als Gast mit reinen Leserechten unterwegs. Wenn Du Dich registrierst, kannst Du eigene Themen verfassen, deine Frage stellen und privat mit anderen TPlern kommunizieren. Weitere Foren werden zugänglich, und Du wirst – falls gewünscht – per Mail über neue Beiträge informiert. Die Registrierung ist schnell und kostenlos. Sollten bei der Registrierung Fragen auftauchen, reicht ein Klick in unsere Hilfe - Häufig gestellte Fragen oder eine kurze Mitteilung an das Support-Team. Viel Spaß bei Traum-Projekt.com |
14.03.2002, 17:03
|
#1
|
|
TP-Junior
Registriert seit: Mar 2002
|
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
|
|
|
14.03.2002, 17:10
|
#2
|
|
TP-Greis
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
|
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.
|
|
|
14.03.2002, 17:21
|
#3
|
|
TP-Junior
Registriert seit: Mar 2002
|
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
|
|
|
14.03.2002, 17:22
|
#4
|
|
TP-Greis
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
|
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.
|
|
|
14.03.2002, 18:58
|
#5
|
|
TP-Insider
Registriert seit: Jan 2002
|
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.
|
|
|
14.03.2002, 19:02
|
#6
|
|
TP-Greis
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
|
@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.
|
|
|
14.03.2002, 19:14
|
#7
|
|
TP-Insider
Registriert seit: Jan 2002
|
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.
|
|
|
14.03.2002, 22:47
|
#8
|
|
TP-Junior
Registriert seit: Mar 2002
|
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.
|
|
|
15.03.2002, 00:20
|
#9
|
|
TP-Greis
Registriert seit: Jun 2001
Ort: Bonn-Altstadt
|
At which part you exactly have the problems?
__________________
Give up yourself into the moment — The time is now.
|
|
|
15.03.2002, 07:51
|
#10
|
|
TP-Specialist
Registriert seit: Mar 2001
Ort: NDS
|
If it´s only a script problem, post a link to your site!
__________________
the0bone
Wissen ist Macht, nichts Wissen macht nichts!
|
|
|
15.03.2002, 08:03
|
#11
|
|
TP-Insider
Registriert seit: Jan 2002
|
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.
|
|
|
|
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
|
|
|
| Themen-Optionen |
Thema durchsuchen |
|
|
|
| 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.
HTML-Code ist aus.
|
|
|
Alle Zeitangaben in WEZ +2. Es ist jetzt 13:13 Uhr.
|
 |