Foros del Web » Creando para Internet » Flash y Actionscript »

Incluir un swf en un .fla

Estas en el tema de Incluir un swf en un .fla en el foro de Flash y Actionscript en Foros del Web. Hola a tod@s.... Estoy comenzando con flash y aunque he encontrado mucha información no logro entender... acá va mi problema: Estoy usando CS4, y tengo ...
  #1 (permalink)  
Antiguo 26/05/2010, 07:04
Avatar de Salome  
Fecha de Ingreso: noviembre-2002
Ubicación: Colombia
Mensajes: 1.032
Antigüedad: 21 años, 5 meses
Puntos: 1
Incluir un swf en un .fla

Hola a tod@s....

Estoy comenzando con flash y aunque he encontrado mucha información no logro entender... acá va mi problema:

Estoy usando CS4, y tengo un archivo .fla el de la flip la revista. entonces quiero que en una de sus hojas me cargue una galeria un swf y no tendo idea como.. que he estado haciendo.

1. Ubicada en el flip.fla importo a la biblioteca el swf
2. Luego arrastro el swf a la hoja que quiero y publico...

Cuándo lo hago asi, digamos que si se ve la galeria pero no para de moverse, comienza y comienza....

He encontrado código donde dicen que como contenedor pero no logro entender como... creo que necesito plastilina.

Desde ya, les agradezco a tod@s su colaboración....
  #2 (permalink)  
Antiguo 26/05/2010, 08:12
 
Fecha de Ingreso: mayo-2010
Mensajes: 20
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Incluir un swf en un .fla

utilizando loadmovie?

on (release){
loadmovie("tupeli.swf", 1);
}

tupeli.swf >> Aqui pon el nombre de tu swf si está en el mismo directorio, si no pon la ruta al directorio en el formato "Directorio1/Directorio2/tupeli.swf"

1 >> el nivel donde quieres poner tu peli. Si quieres ubicar la pelicula puedes poner un clip de pelicula en el escenario, donde quieras, y poner-le un nombre de instancia (p.e: contenedor).
y escribir este codigo.

on (release){
loadmovie("tupeli.swf", "contenedor");
}
  #3 (permalink)  
Antiguo 26/05/2010, 08:36
Avatar de Salome  
Fecha de Ingreso: noviembre-2002
Ubicación: Colombia
Mensajes: 1.032
Antigüedad: 21 años, 5 meses
Puntos: 1
Respuesta: Incluir un swf en un .fla

Hola...

No pasa absolutamente nada.... puse en el primer frame esto:

on (release){
loadmovie("galeria/gallery.swf", 1);
}

y no pasa nada, no carga la galeria.... :(
  #4 (permalink)  
Antiguo 26/05/2010, 08:46
 
Fecha de Ingreso: mayo-2010
Mensajes: 20
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Incluir un swf en un .fla

esto lo tienes que poner en el boton.

Si quieres que ocurra automáticamente en el frame pon solamente:

loadMovie("galeria/gallery.swf", 1);
  #5 (permalink)  
Antiguo 26/05/2010, 08:52
Avatar de Salome  
Fecha de Ingreso: noviembre-2002
Ubicación: Colombia
Mensajes: 1.032
Antigüedad: 21 años, 5 meses
Puntos: 1
Respuesta: Incluir un swf en un .fla

No tengo botón, quiero que cargue automático... y definitivamente sigue sin pasar nada...

loadMovie("galeria/gallery.swf", 1);
  #6 (permalink)  
Antiguo 26/05/2010, 08:57
 
Fecha de Ingreso: mayo-2010
Mensajes: 20
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Incluir un swf en un .fla

http://www.adobe.com/livedocs/flashlite/2_es/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000169.ht ml

Aqui te lo explica bien el loadMovie, asi almenos sabras si realmente es lo que necesitas.

Quitale el espacio entre el ht y el ml del final (del .html), que queda separado no se porque
  #7 (permalink)  
Antiguo 26/05/2010, 09:00
Avatar de Diegoazul  
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Incluir un swf en un .fla

Lean la sintaxis de loadMovie:
Cita:
Usage
loadMovie( " url ", level / target [ , variables ])
Parameters
url The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path must be relative to the SWF file at level 0. The URL must be in the same subdomain as the URL where the movie currently resides. For use in the Flash Player or for testing in test mode in the Flash authoring application, all SWF files must be stored in the same folder, and the filenames cannot include folder or disk drive specifications.

target A path to a target movie clip. The target movie clip will be replaced by the loaded movie or image. When the Actions panel is in normal mode, you can specify either a target movie clip or a level of a target movie; you can't specify both.

level An integer specifying the level in the Flash Player into which the movie will be loaded. The level parameter is vailable with the loadMovie action only when the Actions panel is in normal mode. If you select a level of a target movie while in normal mode, Macromedia Flash MX automatically changes the un loadMovie action to the un loadMovieNum action in the Actions panel Script pane. When the Actions panel is in expert mode, you cannot specify a level with unloadMovie . You must use unloadMovieNum instead.

variables An optional parameter specifying an HTTP method for sending variables. (In expert mode, the variables parameter is identified as the method parameter.) The parameter must be the string GET or POST . If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL, and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables.

Returns
Nothing.

Description
Action; load a SWF or JPEG file into the Flash Player while the original movie is playing. The loadMovie action lets you display several movies at once and switch between movies without loading another HTML document. Without the loadMovie action, the Flash Player displays a single movie (SWF file) and then closes.

When you use the loadMovie action with the Actions panel in normal mode, you can specify either a level in the Flash Player or a target movie clip, into which the movie will load. If a movie is loaded into a target movie clip, you can use the target path of that movie clip to target the loaded movie. If you specify a level, the action changes to loadMovieNum .

When you use the loadMovie action with the Actions panel in expert mode, you can specify the target parameter but you cannot specify the level parameter. You must use the loadMovieNum action to specify a level in expert mode.

A movie or image loaded into a target inherits the position, rotation, and scale properties of the targeted movie clip. The upper left corner of the loaded image or movie aligns with the registration point of the targeted movie clip. Alternatively, if the target is the _root Timeline, the upper left corner of the image or movie aligns with the upper left corner of the Stage.

Use the unloadMovie action to remove movies loaded with the loadMovie action.

Example
The following loadMovie statement is attached to a navigation button labeled Products. There is an invisible movie clip on the Stage with the instance name dropZone. The loadMovie action uses this movie clip as the target parameter to load the products in the SWF file, into the correct position on the Stage.

on(release) {
loadMovie("products.swf",_root.dropZone);
}
__________________
{ Flash }
  #8 (permalink)  
Antiguo 26/05/2010, 09:03
Avatar de Salome  
Fecha de Ingreso: noviembre-2002
Ubicación: Colombia
Mensajes: 1.032
Antigüedad: 21 años, 5 meses
Puntos: 1
Respuesta: Incluir un swf en un .fla

Definitivamente algo estoy haciendo mal porque no funciona

1. nuevo archivo
2. primer frame abro las acciones y agrego

loadMovie("galeria/gallery.swf",_root.dropZone);

o


loadMovie("galeria/gallery.swf", 1);

3. Publico y no carga.. no carga y ahi está bien la ruta y el nombre.. pero ni idea...
  #9 (permalink)  
Antiguo 26/05/2010, 09:13
Avatar de Diegoazul  
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Incluir un swf en un .fla

Cita:
Iniciado por Salome Ver Mensaje
loadMovie("galeria/gallery.swf",_root.dropZone);
_root.dropZone es parte del ejemplo de la referencia de adobe, lo que tienes que poner ahí es el nombre del clip donde vas a cargar tu .swf.

//Lee la referencia que te puse ahi esta documentado.
__________________
{ Flash }
  #10 (permalink)  
Antiguo 26/05/2010, 09:18
 
Fecha de Ingreso: mayo-2010
Mensajes: 20
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Incluir un swf en un .fla

en lugar de 1 pruebe de poner un 0.
  #11 (permalink)  
Antiguo 26/05/2010, 10:32
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Incluir un swf en un .fla

Hola Salome:
Si quieres cargarlo por niveles tu código debes de escribirlo así, en el primer frame de tu película:
Código:
loadMovieNum(("galeria/gallery.swf", 1);
Si quieres cargarlo dentro de un MC_vacío, al colocarlo éste MC en el escenario ponerle un nombre de instancia, por ejemplo: contenedor.
Y el código escríbelo así:
Código:
contenedor.loadMovie((("galeria/gallery.swf");
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/

Etiquetas: fla, incluir, swf
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:15.