stage web view

4 views
Skip to first unread message

Alex Gatica91

unread,
Mar 16, 2013, 9:31:15 PM3/16/13
to riac...@googlegroups.com
hola, intentando probar algo en flex, queriamos utilizar la clase stage web view, teniamos un ejemplo que habiamos hecho y que funcionaba, desafortunadamente, ese ejemplo ya no lo tenemos, quisiera saber si alguien tiene un ejemplo para flex que funcione porque intentando varios en la web y otros mas nos marca error, cualquier ayuda es bienvenida

Alex Gatica91

unread,
Mar 16, 2013, 10:37:25 PM3/16/13
to riac...@googlegroups.com
adjunto mi codigo, ahora no me marca error, simplemente no hace nada, no se cual es el problema, espero y me puedan ayudar

<?xml version="1.0" encoding="utf-8"?>

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009
xmlns:s="library://ns.adobe.com/flex/spark" >
<fx:Script>
<![CDATA[
import spark.events.ViewNavigatorEvent;
import mx.events.FlexEvent;
import spark.components.View;
protected var swv:StageWebView;
private function resizeSWV():void
{
if (swv !=null)
{
swv.viewPort = new Rectangle(0, stage.height - height, width, height);
}
}
]]>
</fx:Script>
<s:creationComplete>
<![CDATA[
swv = new StageWebView();
resizeSWV();
swv.stage = this.stage;
swv.loadURL("http://www.yahoo.com.mx")
(owner as View).addEventListener(ViewNavigatorEvent.REMOVING,function(event:ViewNavigatorEvent):void{
swv.dispose();
});
]]>
</s:creationComplete>
<s:resize>
resizeSWV();
</s:resize>
</s:View>

sergio...@gmail.com

unread,
Mar 16, 2013, 11:44:49 PM3/16/13
to riac...@googlegroups.com
Descarga el Tour de Flex allí vienen varios ejemplos :D

Sent from my BlackBerry 10 smartphone.

--
Has recibido este mensaje porque estás suscrito al grupo "Riactive" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus correos electrónicos, envía un correo electrónico a riactive+u...@googlegroups.com.
Para obtener más opciones, visita https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages