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

como puedo abrir *.exe desde Swf con puente de AutoPlay Media Studio

Estas en el tema de como puedo abrir *.exe desde Swf con puente de AutoPlay Media Studio en el foro de Flash y Actionscript en Foros del Web. Se que no se puede abrir un .exe desde swf solo de un proyector flash. Tengo un swf y lo he montado con AutoPlay Media ...
  #1 (permalink)  
Antiguo 30/06/2011, 18:30
Avatar de Pelipe  
Fecha de Ingreso: abril-2011
Ubicación: Nuestra Señora de La Paz
Mensajes: 90
Antigüedad: 11 años, 7 meses
Puntos: 4
como puedo abrir *.exe desde Swf con puente de AutoPlay Media Studio

Se que no se puede abrir un .exe desde swf solo de un proyector flash.

Tengo un swf y lo he montado con AutoPlay Media Studio... todo bien hasta ahi.


Pero mi swf requiere que tenga flashplayer 10, he hecho que si es inferior a 10 salga otra opcion en la que hay un boton.. que te dice instalar flahs... ahi esta el problema...

No se como mandar esa variable u orden, desde mi swf a AutoPlay Media Studio... para que este lo detecte y ejecute mi exe: install_flash_player_active_x.exe... o en todo caso que me muestra algun boton haciendo visible el boton para instalar flash (tendria que estar invisble si tengo flash player actulizado).. o me sugieren otra idea mejor

Se que en html, javascript y swf... se manda variables de swf a html y viceversa...

pero con AutoPlay Media Studio como lo hago. He visto que tiene sus propios script... pero no tengo experiencia con este... alguans de sus script son asi:

pero no se en realidad como ejecutarlo... tengo algunas pistas pero no estoy seguro, en su ayuda viene algunos codigos

creo la calve desde el swf es fscommand()"

algunos comandos son..:

Cita:
Flash.GetFlashVariable

string Flash.GetFlashVariable (
string ObjectName,

string FlashVariable )


Example 1
total = Flash.GetFlashVariable("Flash1", "Total");

Gets the current value of the Flash variable called "Total" in the Flash object called "Flash1" and stores it in a variable called "total."

Example 2
fs_url = Flash.GetFlashVariable("Starfury Anim", "MoreInfoURL");

Gets the current value of the Flash variable called "MoreInfoURL" in the Flash object called "Starfury Anim" and stores it in the fs_url variable.


Flash.SetFlashVariable


Flash.SetFlashVariable (
string ObjectName,

string FlashVariable,

string Value )


Example 1
Flash.SetFlashVariable("Flash1", "UserName", FirstName .. " " .. LastName);

Sets the value of the Flash variable named "UserName" inside the Flash movie that is currently loaded in the "Flash1" Flash object to be equal to the contents of the variable "FirstName," followed by a space, followed by the contents of the variable "LastName."

Note: The concatenation operator (..) is used in this example to combine three different strings (one in FirstName, one in LastName, and a literal string between quotes) into a single string value.

Example 2
Flash.SetFlashVariable("Flash Progress Display", "UserMyDocumentsPath", MyDocumentsDir);

Sets the value of a Flash variable called "UserMyDocumentsPath" inside a Flash object called "Flash Progress Display" to the contents of a variable called "MyDocumentsDir."

Flash.SetReturnValue

Flash.SetReturnValue (
string ObjectName,

string XMLReturnValue )


Example 1
-- This code is meant to be placed on the Flash Object's On FlashCall event.
strXML = XML.SetXML(e_FlashCall);
strFunctionName = XML.GetAttribute("invoke", "name");

-- Check for a specific function call from the Flash actionscript request.
if (String.CompareNoCase(strFunctionName, "FunctionRequested") == 0) then
Flash.SetReturnValue("Flash1", "<string>FunctionRequested result string to return</string>");
end

This example responds to an actionscript function call on a Flash object's "On FlashCall" event. If the function being called is named "FunctionRequested", the string 'FunctionRequested result string to return' is returned to the Flash file.


Otra pista esta aca... pero no le entiendo muy bien..,..


Cita:
On FlashCall
The actions that will be performed whenever an exposed Flash actionscript function is called using the control's external API (ExternalInterface class) causing it to dispatch its FlashCall event. You can respond to Flash actionscript function calls using the Flash.SetReturnValue action, or call Flash actionscript functions using the Flash.CallFunction action.

Flash's external API offers additional functionality compared to fscommand() by allowing any number of arguments to be passed as well as various data types.

Note: This event is only available in Flash version 8.0 or later.

e_FlashCall
(string) An XML formatted string containing the function request from the Flash file's actionscript code. This string can be parsed using the available XML actions.

On Focus
Note: This event is available for input objects, listbox objects, combobox objects, richtext objects, and tree objects in your project.

The actions that will be performed whenever the object is given focus. For example, it will be given focus if the user clicks inside the object.

On FSCommand
The actions that will be performed whenever an fscommand() function is performed in the Flash file's internal actionscript code.

Note: "fscommand()" is the name of a Flash actionscript function that allows a .swf file to send a message or "command" to the application that is playing it. Whenever a Flash file calls the fscommand() function, AutoPlay responds by performing the action that you assigned to the On FSCommand event.

Tip: The Flash fscommand() function passes a command in the form of a short text string. You can use AutoPlay's own scripting abilities to differentiate between fscommand() calls that pass different command strings. In fact, your Flash file can use the fscommand() function to send any number of custom commands to your AutoPlay application, and you can make your application respond to each command in any way you want.

The following event variables are automatically set whenever this event is triggered:

e_FSCommand
(string) A string containing the last FSCommand fired within the Flash object.

e_FSArgs
(string) A string containing the arguments of the last FSCommand fired within the Flash object.
Necesito un empujoncito mas...

Etiquetas: autoplay, exe, media, puente, studio, 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 18:40.