Actionscript 3 :: Adobe Air : StageWebView Inside MovieClip
Mar 1, 2012
I want to have a StageWebView inside a MovieClip so if the MovieClip is moved, the Stage is moved to.
[Code]...
Even though the "view" mc has a y value of 50 and an x value of 10 the webView is locatet at x:0 and y:0. Of course I could just change the viewPort settings but I really need the WebView to move around with the "view" mc.
View 2 Replies
Similar Posts:
Jan 25, 2012
I have a Button that is inside MovieClip1 which is inside MovieClip2; yet when i click the Button it doesn't dispatch Event.
View 5 Replies
Jan 19, 2011
I just put the code on the first frame. I'm getting an error saying flash.media.StageWebView could not be found. How do I use this?
using Flash Pro CS5
import flash.display.MovieClip;
import flash.media.StageWebView;
[code]......
View 9 Replies
Mar 29, 2010
Couldn`t find any ActionScript native APIs even in the beta documentation, am I right supposing that this means the only way to measure CPU / memory consumption is by cooking up a custom native solution, hooking it up with AIR and making it work on each targeted platform?
Basically the aim is to be able to have this information available inside AIR and not having to use an external application for profiling, not even Flex / Flash builder.Seems for the CPU load the only solution will be some command line scraping using NativeProcess.
View 4 Replies
May 17, 2010
I am writing a custom item renderer to render a column series in my application.
Its a stacked chart and i want to use the same item renderer for both the column series. The color for each series in the stack is different and am setting that in the 'fill' property of the two series. My doubt is how can i get the color specified in the fill property of the column series from the item renderer. if this works then i can very well use the same renderer for both series.
View 2 Replies
Mar 26, 2011
I have the following component in an AIR application from Flex 4:
<mx:HTML id="viewObject"
x="10" y="42" width="634" height="313"
location="http;//localhost:8080/mypage.php" />
Now I want to run a javascript when the page loads but the javascript isn't inside the target page. I want to run the following javascript:
javascript:alert('Hello world.');
I tried approaching it by setting the location property again to the javascript after the page has loaded like below.
<s:Button x="10" y="10" label="Button">
<s:click>
<![CDATA[
[Code]....
Unfortunately for me, that doesn't seem to work.
View 1 Replies
Jul 28, 2011
This code work in flash, but when i try run using adobe air 2, the enter key is not detected, but instead ctrl+enter work. how to get this work? txtTLF is TLF TEXT EDITABLE
import flash.events.TextEvent;
txtTLF.addEventListener(TextEvent.TEXT_INPUT, teclado);
function teclado(e:TextEvent):void{
[code].....
View 1 Replies
Sep 5, 2011
Is it possible to dress up a StageWebView window with borders etc?As it is, I just get this raw picture on the app screen. Could use a border...
View 5 Replies
Sep 10, 2011
I'm using a simple document. It has nothing in the library and the SWF is pointed to the class "Main" (Main.as is in the same folder). All Main.as has in it is this super complex code:
[Code].....
Nothing shows up. I run it in flash (ctrl+enter test movie) and I see google load. On the ipad2 I see absolutely nothing. why I don't see the StageWebView?
View 4 Replies
Mar 29, 2012
When working in the Flash CS5 IDE and publishing this code it basically tells me I don't have <video> support.
import flash.geom.Rectangle;
import flash.media.StageWebView;
var webView:StageWebView = new StageWebView();[code].....
I can confirm this by publishing this code and clicking the "Test Video Support" button:
import flash.geom.Rectangle;
import flash.media.StageWebView;
var webView:StageWebView = new StageWebView();[code]....
Is it something to do with the browser used by StageWebView? Air WebKit? Something to do with the IDE?
View 4 Replies
Feb 25, 2011
I have a Flex Mobile Project with a View in it. I placed a background image on that view. Now I want to add a StageWebView on it to render an HTML file, in such a way that the contents of the HTML scroll while the View's background is visible. However, when the StageWebView gets rendered, it has a white background. I didn't find a Background property on it to modify. I tried to change the stage's alpha, but it didn't work.
View 1 Replies
Jul 16, 2011
I'm working on a flex mobile project now. I've created a StageWebView and call function loadString()[URL]..
It's a simple sample that if you click on the bookmark and you can get access to it.
But I want to put the content in the tag into a spark list. And get the same result when I click the list which needs some kind of simulation of a click in a webView.
View 1 Replies
Dec 27, 2011
Is It possible to load Html page Inside Adobe Flash CS5.
Originally, i wanted to bring in through <IFRAME> but i don't see that flash understands that.
View 3 Replies
May 16, 2010
In Adobe Flash, I have a movie clip that is added to the stage when the keyboard is pressed. I want it to travel across the screen and disappear once it reaches the edge of the stage. At the moment I use this but the image appears and then stops. Here is my code:
addEventListener(Event.ADDED_TO_STAGE,runtime);
var c = 0
function runtime(){
[code]....
View 2 Replies
Sep 5, 2011
I am trying to gracefully close a StageWebView, created in this case as (webview), and return to the app that is running it.At present I have three types of things I want displayed. Three different views of maps.I can call each type up, and it positions a webview on the screen in the top three/quarters of the screen.A button is displayed just below this, overlaying the app main screen, below the map window.In experimenting, I tried this option, which actually works, but then leaves the running app in a non-functional state.
This snippet of code shows;
Clearing the button. ( works fine ) &
removing the WebView ( works fine ),
[code]......
View 1 Replies
Sep 23, 2011
The video performance I get from the built in FLV video is pretty poor. I'm considering using a StageWebView to display a HTML5 page with a standard <video> in it.
The video shows up and (if I enable controls) can be played and it looks great (much better than FLV). The only issue is I cannot find a way to have the video autoplay once the StageWebView is loaded.
I've set the <video .... autoplay> parameter. I've also tried using JavaScript to send a video.play() (after the window load event is complete and the DOM is ready).
I can't wait for AIR3.0 so we can just use StageVideo.. But for now I'm using AIR2.7 via Flash CS5.5 publishing for an iPad2 via AIR for iOS.
View 1 Replies
Feb 28, 2012
I'm making an AIR app that uses StageWebView to display an external html page. The external page displays Spanish accented characters fine in browsers, but they show up as �� in AIR.Is there a setting available that I'm unaware of for setting character encoding to UTF-8 in AIR or StageWebView?Here's my code:
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 660, 180, 335, 480);
View 4 Replies
Jul 24, 2011
I'm currently developing a flex mobile project. I currently need to load local javascript using stagewebview. Like:
var str:String = '<head>'+
'<script src="myLocalJs.js"/>'+
'</head><body>...</body>';
webView:StageWebView = new StageWebView();
webView.loadString(str);
Is there any way to load local javascript using StageWebView? I'm not expecting an answer like 'There is a project called StageWebViewBridge' since it does't have all the features I need.
View 2 Replies
Sep 24, 2010
I currently have a network camera that streams video as a .swf (and also as a motion JPEG as well...) and I want to be able to embed the stream inside of either a Flash or Air project that I'm creating myself. The only examples i've been able to find though, require the .swf to be saved as a resource of the project; clearly, this is undesirable for a live stream.
Another option is to utilize the motion JPEG. I have some generated code (shown below), but unfortunately only the first image is displayed when viewed via adobe air (if I were to view it in a HTML browser, the image would automatically update, effectively showing the stream:
<SCRIPT LANGUAGE="JavaScript">
function displayImage( )
{
// Set the BaseURL to the URL of your camera
[Code].....
View 1 Replies
Jul 20, 2011
I am using Flash Builder 4.5 to build an iPhone app.In order to display ads I plan to use StageWebView and load a webpage containing the ad code.Lets say the ad will be 320x50 pixels.So the Actionscript code would look similar to this:
adView = new StageWebView();
adView.loadURL("http://www.myadishere.com/ad.html");
var top:Number = navigator.actionBar.measuredHeight + 1[code]....
In the application I have set the applicationDPI="160" so the application is displayed properly when run on iPhone3 and iPhone4.However the content of the StageWebView looks tiny on iPhone4.If I do adView.drawViewPortToBitmapData() the bitmap's size is OK.how to make the StageWebView content to scale accordingly, so it looks OK regardless of the screen DPI?
View 4 Replies
Feb 9, 2012
I have following code And it is working fine in AIR device simulator on my desktop. But when I install it on device(samsung nexus with Android 2.3) it is loading nothing.
Code:
import flash.media.StageWebView;
import flash.events.LocationChangeEvent;
import flash.geom.Rectangle;
var wv:StageWebView = new StageWebView();
wv.viewPort = new Rectangle(0,0.stage.width,stage.height);
wv.stage = stage;
wv.loadURL("[URL]");
View 1 Replies
Jan 19, 2010
I am trying to develop a P2P conferencing application in flex using RTMFP. So I have to make connection to Adobe Stratus server for Id of Flash Player instance. I am a student and behind the http proxy. I have checked in NetConnection class but, didn't find anything related proxy configuration.So, How can I configure proxy settings for my flex application.
View 1 Replies
Apr 13, 2012
I'm using StageWebView to load mp4 & pdf files in my iPhone app (Adobe air 3.2 for iOS, in Flash CS5.5)
Below is the code I'm using to load the pdf file (same code to load an mp4 file).
I need to save the file on the iPhone, so the next time the user opens the app, i'll check if the file exist I'll load it using FileStream.open(filePath, FileMode.READ);Is there a way to save a file loaded using the StageWebView? [code]...
View 2 Replies
Nov 4, 2011
I am trying to show the page displayed using StageWebView as a bitmap. As per thedocumentation we need to use DrawViewPortToBitMapData. While displaying the bitmap in a
UIComponent, the image is getting stretched. How can I prevent that?
bitmapData = new BitmapData(webView.viewPort.width, webView.viewPort.height, false,
0x000000 );
webView.drawViewPortToBitmapData(bitmapData);
[code].....
View 1 Replies
Jan 15, 2012
I have a mobile application that has a Text Input used for searching. Below the search TextInput is a StageWebView. When I set the source of the StageWebView using loadURL() the key input is shifted to the StageWebView. How can I prevent this?
View 2 Replies
Jan 31, 2012
Developing APPs on IOS using Flex 4.6 I am displaying parsed epub files into stagewebview. It works fine on the device. However, when I try to add the annotation tool which (likes the ibook annotation), I can only select one single word!! I tried the "Game of Flex" which it did the same way as loading a web content into a stagewebview component, and it cannot have control to select more word as well. Therefore, I think its the current limitation (correct me if there is actually a way to do that in stagewebview) on the stagewebview. So, do you guys have other good ideas to display content as html without the limitation? like use other components, call JS? or use native object-c?
View 1 Replies
Jun 13, 2010
I am currently working to a Role-Playing Game in Adobe Flash CS3 with ActionScript 2. I must include doors inside rooms, but when I do that, my player dissapears. I use this code:
Code:
...
for (var i = 0; i<mapHeight; ++i) {
for (var j = 0; j<mapWidth; ++j) {
this.attachMovie("tile","t_"+i+"_"+j,++d);[code].....
View 1 Replies
Apr 17, 2010
I am trying to activate a rollOver-function when the mouse rolls over a movieclip inside of a movieclip.On the main window (root), first you rollOver a button where a window shows up with more options (movieclips).From stage, my first movieclip is called "catapultas_read_more" which leads to amother movieclip called "pic1_mc". The label that is going to play when mouse over on pic1_mc is "rollOn".I tried this.gotoAndPlay("rollOn); directly inserted to the movieclip, but the movieclip inside pic1_mc never starts
View 8 Replies
May 4, 2011
I have the scenario below. I have a movieclip on the stage (root). Inside this movieclip I have a frame with the action below:
_root.MCHappy.visible = false;
_root.MCSad.visible = false;
_root.MCNormal.visible = true;
I cant get this working with AS3. How is the correct way to do that inside a MovieClip with AS3?
View 6 Replies
Oct 21, 2005
I'm creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.Now the menu bar is twice as WIDE as what is visible on the stage.The only part you can see is the text 'menu' on a bar.Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.
On the last frame i have the 'stop;' code
On the first frame I have this code:
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
[code]....
View 2 Replies