Estou com um problema.........
Estou abrindo um arquivo swf externo e queria um botao para fechar essa arquivo dentro do flash.
No aguardo.
Publicidade
|
|
Page 1 of 1
Botao fechar um swf externo Flash
#2
Posted 30 May 2006 - 07:01 PM
pra carregar vc usou o "loadMovie", creio eu, pra descarregar ou fechar vc deve usar o comando "unload".
#3
Posted 31 May 2006 - 10:09 AM
Eu estou usando esse codigo aqui.............
/ function: loadFlashPaper
// ------------------------
// Load FlashPaper document, size it,
// Parameters:
// path_s: Path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest MC
// height_i: New size of the dest MC
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
var pages_i = fp.getNumberOfPages();
ctrlHolder_mc.swapDepths(_root.control_mc);
dest_mc._visible = true; // Now show the document
_root.control_mc._visible = true; // Now show the controller
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}
// function: onLoaded()
// ------------------------
// Called once loading is complete
// Parameters:
// fp: FlashPaper interface (returned by getIFlashPaper())
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", false);
fp.showUIElement("Print", false);
fp.showUIElement("Find", false);
fp.showUIElement("Tool", false);
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", false);
fp.showUIElement("Overflow", false);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Hide the navigation controller until after the document is loaded:
_root.control_mc._visible = false;
// Create movie clip to hold the document:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
// Create movie clip to exchange the depth with the navigation controller clip:
var ctrlHolder_mc = this.createEmptyMovieClip("ctrlHolder",200);
// Position the document clip on the stage:
theDocMC_mc._x = 11;
theDocMC_mc._y = 105;
// Load the FlashPaper document:
loadFlashPaper("mp_intro.swf", theDocMC_mc, 699, 279, this);
stop();
nao estou usando loadmovie.......
quando abre esse swf eu nao consigo fechar,,,,,,,queria um botao para fechar esse arquivo.........
Esse arquivo esta abrindo dentro do flash
Obrigado
/ function: loadFlashPaper
// ------------------------
// Load FlashPaper document, size it,
// Parameters:
// path_s: Path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest MC
// height_i: New size of the dest MC
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
var pages_i = fp.getNumberOfPages();
ctrlHolder_mc.swapDepths(_root.control_mc);
dest_mc._visible = true; // Now show the document
_root.control_mc._visible = true; // Now show the controller
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}
// function: onLoaded()
// ------------------------
// Called once loading is complete
// Parameters:
// fp: FlashPaper interface (returned by getIFlashPaper())
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", false);
fp.showUIElement("Print", false);
fp.showUIElement("Find", false);
fp.showUIElement("Tool", false);
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", false);
fp.showUIElement("Overflow", false);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Hide the navigation controller until after the document is loaded:
_root.control_mc._visible = false;
// Create movie clip to hold the document:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
// Create movie clip to exchange the depth with the navigation controller clip:
var ctrlHolder_mc = this.createEmptyMovieClip("ctrlHolder",200);
// Position the document clip on the stage:
theDocMC_mc._x = 11;
theDocMC_mc._y = 105;
// Load the FlashPaper document:
loadFlashPaper("mp_intro.swf", theDocMC_mc, 699, 279, this);
stop();
nao estou usando loadmovie.......
quando abre esse swf eu nao consigo fechar,,,,,,,queria um botao para fechar esse arquivo.........
Esse arquivo esta abrindo dentro do flash
Obrigado
#4
Posted 31 May 2006 - 10:28 AM
Tenta esse:
Qualquer coisa é só falar.
Falow
| ActionScript |
dest_mc.unloadMovie(); |
Qualquer coisa é só falar.
Falow
#5
Posted 31 May 2006 - 01:18 PM
QUOTE(pdance @ 31/5/2006 09:05:48)
Eu estou usando esse codigo aqui.............
/ function: loadFlashPaper
// ------------------------
// Load FlashPaper document, size it,
// Parameters:
// path_s: Path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest MC
// height_i: New size of the dest MC
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
var pages_i = fp.getNumberOfPages();
ctrlHolder_mc.swapDepths(_root.control_mc);
dest_mc._visible = true; // Now show the document
_root.control_mc._visible = true; // Now show the controller
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}
// function: onLoaded()
// ------------------------
// Called once loading is complete
// Parameters:
// fp: FlashPaper interface (returned by getIFlashPaper())
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", false);
fp.showUIElement("Print", false);
fp.showUIElement("Find", false);
fp.showUIElement("Tool", false);
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", false);
fp.showUIElement("Overflow", false);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Hide the navigation controller until after the document is loaded:
_root.control_mc._visible = false;
// Create movie clip to hold the document:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
// Create movie clip to exchange the depth with the navigation controller clip:
var ctrlHolder_mc = this.createEmptyMovieClip("ctrlHolder",200);
// Position the document clip on the stage:
theDocMC_mc._x = 11;
theDocMC_mc._y = 105;
// Load the FlashPaper document:
loadFlashPaper("mp_intro.swf", theDocMC_mc, 699, 279, this);
stop();
nao estou usando loadmovie.......
quando abre esse swf eu nao consigo fechar,,,,,,,queria um botao para fechar esse arquivo.........
Esse arquivo esta abrindo dentro do flash
Obrigado

/ function: loadFlashPaper
// ------------------------
// Load FlashPaper document, size it,
// Parameters:
// path_s: Path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest MC
// height_i: New size of the dest MC
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
var pages_i = fp.getNumberOfPages();
ctrlHolder_mc.swapDepths(_root.control_mc);
dest_mc._visible = true; // Now show the document
_root.control_mc._visible = true; // Now show the controller
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}
// function: onLoaded()
// ------------------------
// Called once loading is complete
// Parameters:
// fp: FlashPaper interface (returned by getIFlashPaper())
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", false);
fp.showUIElement("Print", false);
fp.showUIElement("Find", false);
fp.showUIElement("Tool", false);
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", false);
fp.showUIElement("Overflow", false);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Hide the navigation controller until after the document is loaded:
_root.control_mc._visible = false;
// Create movie clip to hold the document:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
// Create movie clip to exchange the depth with the navigation controller clip:
var ctrlHolder_mc = this.createEmptyMovieClip("ctrlHolder",200);
// Position the document clip on the stage:
theDocMC_mc._x = 11;
theDocMC_mc._y = 105;
// Load the FlashPaper document:
loadFlashPaper("mp_intro.swf", theDocMC_mc, 699, 279, this);
stop();
nao estou usando loadmovie.......
quando abre esse swf eu nao consigo fechar,,,,,,,queria um botao para fechar esse arquivo.........
Esse arquivo esta abrindo dentro do flash
Obrigado

AMIGO VLW, MAIS ESSE SCRIPT NAO\DEU\CERTO.........
NAO FECHA O SWF EXTERNO.
TENTEI MAIS NAO FOI,,,,,,,,
ALGUM OUTRO MEIO.
EU TENHO QUE FECHAR ESSE SWF PARA APARECEER A TELA, PQ ELE FICA EM CIMA DE OUTRA TELA.....
Share this topic:
Page 1 of 1
Similar Topics
| Topic | Forum | Started By | Stats | Last Post Info | |
|---|---|---|---|---|---|
|
Sugestão para a maratona de botões e menus
Sugira um menu ou botão! |
Tutoriais e Artigos |
TiagoPeres
|
|
|
|
Linkar menu poup up do flash em DW
Menu feito em flash como linkar ele ??? |
Dreamweaver |
jrdesigner13
|
|
|
|
Nokia vai fechar 410 postos de trabalho em plano de reestruturação
|
Notícias |
Notícias
|
|
|
|
Conversão de .dir para .fla ou .swf
alguem sabe um programa? |
Director |
matewz
|
|
|
|
eBay vai fechar operações na China
|
Notícias |
Notícias
|
|
|
|
Positivo pode mudar seu estatuto para fechar venda
|
Notícias |
Notícias
|
|
|
|
Menu Circular em Flash [DUVIDA]
Pedido de Tutorial de menu circular em Flash |
Dreamweaver |
Kairo Morlin
|
|
|
|
Facebook vai fechar loja de presentes virtuais
|
Notícias |
Notícias
|
|
Publicidade
|
|

Help













