PDA

Volledige versie bekijken : Iexplorer opent achter flash in fullscreen mode


pietjepel
%Europe/Berlin %897 %2007, 22:31
Ik ben een dvd interface aan het maken met daarin een "tree component" en koppelingen aangemaakt in xml.
Vanuit dit component wil ik bestandjes of mappen openen met bv. iexplorer en mozilla.
Het openen van een url werkte eerst niet in één van de beide browsers doordat de notatie in mozilla verschilt met die van iexplorer, dat probleem heb ik opgelost door onderstaande code te gebruiken.

Er is echter één groot probleem, wanneer de interface fullscreen staat en ik klik een bestand in de interface aan, dan laad de browser iexplorer de eerste keer normaal voor de flashmovie. Wanneer ik dan ie niet sluit en een ander bestandje aanklik dan laad hij hem achter de flashmovie in fullscreen modus.

Is er iemand die weet hoe ik dit probleem kan oplossen?

Hier een stukje code:
if (node.attributes.id == "dir") {
whoAmI = _url;
compare1 = whoAmI.lastIndexOf("/");
compare2 = whoAmI.lastIndexOf("\s");
if (compare1>compare2) {
drv = _url.substr(8, 1);
} else {
drv = _url.substr(7, 1);
}
getURL(drv+":"+(node.attributes.urllink)+"");


Bij voorbaat dank.

pietjepel
%Europe/Berlin %539 %2007, 13:57
Niemand een oplossing?

Scytale333
%Europe/Berlin %542 %2007, 14:00
Kan je er _blank achter de url inzetten?

pietjepel
%Europe/Berlin %544 %2007, 14:03
Met _blank opent hij IE nog steeds achter de interface in fullscreen mode

Scytale333
%Europe/Berlin %569 %2007, 14:40
mmm ik zou het helaas niet weten. Flash is denk ik meer bedoelt voor internet. Met Director zal dit makkelijker gaan misschien

xtr0
%Europe/Berlin %583 %2007, 15:00
volgens mij gebruik je de onMouseMove verkeerd:

onMouseMove (Mouse.onMouseMove event listener)
onMouseMove = function() {}

Notified when the mouse moves. To use the onMouseMove listener, you must create a listener object. You can then define a function for onMouseMove and use addListener() to register the listener with the Mouse object, as shown in the following code:

var someListener:Object = new Object();
someListener.onMouseMove = function () { ... };
Mouse.addListener(someListener);


Listeners enable different pieces of code to cooperate because multiple listeners can receive notification about a single event.

A Flash application can only monitor mouse events that occur within its focus. A Flash application cannot detect mouse events in another application.

Availability: ActionScript 1.0; Flash Player 6

Example
The following example uses the mouse pointer as a tool to draw lines using onMouseMove and the Drawing API. The user draws a line when they drag the mouse pointer.

this.createEmptyMovieClip("canvas_mc", this.getNextHighestDepth());
var mouseListener:Object = new Object();
mouseListener.onMouseDown = function() {
this.isDrawing = true;
canvas_mc.lineStyle(2, 0xFF0000, 100);
canvas_mc.moveTo(_xmouse, _ymouse);
};
mouseListener.onMouseMove = function() {
if (this.isDrawing) {
canvas_mc.lineTo(_xmouse, _ymouse);
}
updateAfterEvent();
};
mouseListener.onMouseUp = function() {
this.isDrawing = false;
};
Mouse.addListener(mouseListener);


The MovieClip.getNextHighestDepth() method used in this example requires Flash Player 7 or later. If your SWF file includes a version 2 component, use the version 2 components DepthManager class instead of the MovieClip.getNextHighestDepth() method.

The following example hides the standard mouse pointer, and sets the x and y positions of the pointer_mc movie clip instance to the x and y pointer position. Create a movie clip and set its Linkage identifier to pointer_id. Add the following ActionScript to Frame 1 of the Timeline:

// to use this script you need a symbol
// in your library with a Linkage Identifier of "pointer_id".
this.attachMovie("pointer_id", "pointer_mc", this.getNextHighestDepth());
Mouse.hide();
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
pointer_mc._x = _xmouse;
pointer_mc._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);


The MovieClip.getNextHighestDepth() method used in this example requires Flash Player 7 or later. If your SWF file includes a version 2 component, use the version 2 components DepthManager class instead of the MovieClip.getNextHighestDepth() method.

pietjepel
%Europe/Berlin %590 %2007, 15:10
Wat is Director?

Scytale333
%Europe/Berlin %595 %2007, 15:18
Dat is een oud programma. Die was voor flash. Die word geberuikt voor cdrom producties enzo. Maarja daar heb jij nu niks aan.

duivvv
%Europe/Berlin %628 %2007, 16:05
via fscommand een exe oproepen die die file opent...
zo werken wij

ietwat omslachtig, maar er is geen andere optie denk ik

pietjepel
%Europe/Berlin %652 %2007, 16:39
Erg omslachtig inderdaad, zeker als je je links via xml defineerd en meer dan honderd verschillende bestandjes moet aanroepen in flash.
Dan zou dit betekenen dat je honderd keer met een proxy moet werken.

Zie bijvoorbeeld flashJester (flashStart) of proxy.exe van Northcode
http://www.flashjester.com/
http://board.flashkit.com/board/showthread.php?t=519274&page=2

Laiverd
%Europe/Berlin %737 %2007, 18:42
Zie Zinc; dat is bedoeld voor standalone Flash applicaties.

John

pietjepel
%Europe/Berlin %907 %2007, 22:47
Zie Zinc; dat is bedoeld voor standalone Flash applicaties.

John

Dan werkt mijn interface niet goed meer en ik kan nergens iets vinden over links aanmaken naar bestanden in een map.

Laiverd
%Europe/Berlin %297 %2007, 08:08
Als je Zinc al hebt, is het het handigst om vragen daarover te stellen in het forum van Zinc. In mijn ervaring krijg je daar i.h.a. vrij snel en vrij goed antwoord > http://www.mdmforum.com/forum/

John