Flex :: StageWebView - Prevent Stretching Of The Bitmap Obtained Through DrawViewPortToBitmapData?

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


Similar Posts:


Prevent Images From Stretching In Full Screen?

Mar 24, 2010

I am having troubles with a Flash presentation (photo gallery) file that is stretching the images out of proportion. The photo gallery is a fullscreen presentation and it acquires the images from an external images folder via a XML file. Is there any particular code that I'm not aware of to keep the images displaying in their correct proportion in fullscreen instead of them stretching all the time?

View 3 Replies

ActionScript 2.0 :: Prevent FLV Video Player From Auto-stretching?

Nov 20, 2009

I have built an FLV video player and used Sorenson to compress a bunch of movies in hi, med, and lo quality. Everything works when I click to load these different video qualities but all the videos auto stretch to the MC width and height.

View 9 Replies

.net :: Using Classes Obtained Form Web Services In Flex

Mar 30, 2010

from flex, when calling a .net web method that returns a custom class, I always recieve an ObjectProxy, even if I have the same class created on flex. How do I manage this ObjectProxy as the class I have?

View 1 Replies

Flex :: Simulate A Click In StageWebView?

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

ActionScript 3 :: Flash CS5 - Mask With Keyframe Prevent Bitmap Loading

Feb 12, 2012

I have a Flash app that loads a PNG as a bitmap and adds it to a MovieClip instance called test_mc on the stage. test_mc contains a placeholder clip that we hide after adding the bitmap. E.g
test_mc.addChild(bmp);
test_mc.placeholder.visible=0;
This works fine. I then move the MovieClip around the stage in the timeline with a lot of keyframes. This works fine.

I then add a layer, called layer_mask, above the layer with the movieclip on. I create a shape on layer_mask and set layer_mask to mask the movieclip's layer. This still works fine. Now I add a keyframe in layer_mask. This stops working. The bmp is no longer loaded into the movieclip, and the placeholder is no longer hidden. The bitmap is actually loaded in and displayed correctly until the keyframe in the mask is hit, at which point it reverts to displaying the placeholder without the loaded bitmap.

View 1 Replies

Flex :: Load Local Javascript Using Stagewebview?

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

Flex :: Keep Focus On Spark TextInput After Setting StageWebView Source?

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

Actionscript :: Stagewebview Cannot Re-select Text Content In IOS Device - Flex 4.6

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

Sql :: Result Obtained On A Select In Sqlite - Not Getting The Id Column Value

Jun 29, 2011

I'm having a problem with the result obtained on a select in my sqlite. I already have a database fed, and I'm doing queries in my application in adobe air. In my table I have 6 columns:

[Code]....

All information came right, but the id value is incorrect ( correct is not 30 ) . It seems to me that i'm getting the numerical order and not getting the id column value. Has anyone had this problem? UPDATE My query is:

[Code]....

View 1 Replies

Flex - Function To Redraw Bitmap On Sprite Without Passing In Said Bitmap?

Feb 22, 2011

If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?

View 1 Replies

ActionScript 2.0 :: Save Information Obtained From Users To Files If The User Is Accessing The Flash File From A Cd

Sep 27, 2003

i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?

View 5 Replies

Flex :: Prevent Copying Style From One Flex TextArea To Another?

Nov 3, 2009

If you have two text areas with different styles (fontFamily, weight, color etc) and you copy text from one to the other it also copies the style from the originating text area. Is there any slick way to prevent that?

Here is a sample of code that will illustrate the problem. Type some text in the top box and some text in the bottom, then copy some characters from the top box to the bottom. I'm not using htmltext.[code]...

View 2 Replies

Professional :: StageWebView Could Not Be Found?

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

ActionScript 3.0 :: Dress Up A StageWebView Window?

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

Professional :: StageWebView Does Not Display On IPad?

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

Professional :: StageWebView <video> Support?

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

Flash - StageWebView With Transparent Background?

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

ActionScript 3.0 :: Gracefully Close A StageWebView And Return To App?

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

Professional :: AIR For IOS, Getting HTML5 Video To Autoplay In A StageWebView?

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

ActionScript 3.0 :: Setting Character Encoding To UTF-8 In AIR Or StageWebView?

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

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

Flex :: Prevent The Other Looking To SWC Library?

Aug 4, 2010

I hope I would not waste your time too much. I am going to publish my Adobe Flex library to sell in commercial, but I don't need anyone can open my SWC file and study the code in there. I see Adobe Flex library can prevent this activity. How could I do this too?

View 1 Replies

Iphone :: Flash - AIR - Make The StageWebView Content To Scale?

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

Android :: StageWebView Not Working On Samsung Nexus Device

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

Flex :: How To Prevent Itemeditor Destruction

Nov 24, 2009

My custom item editor opens a titlewindow (too much stuff to show in an inline editor) which obviously steal the focus, so I get a itemeditend event and the datagrid destroy the editor at the wrong (for me) time. I think to have to keep the itemeditor alive until the titlewindow job is done, but how? DataGridEvent reason is "other" and livedocs said preventDefault() can't help.

View 1 Replies

Flex :: Prevent Components From Rendering In It?

Mar 25, 2010

Is there a way to prevent a component from rendering in Flex (to save memory or processing power)?[code]...

View 3 Replies

Flex - Prevent Ie From Decoding A Utf-8 Url In Flash?

May 16, 2011

I'm finding that in flash (10.x at least) and ie (7, 8, 9) that if I try to load an image url that contains escaped utf-8 characters (p%C3%83%C2%A5) that the characters get decoded before it makes the url request, even if I double or triple encode them. Is there any way to prevent this so the url (with escapes) the way I want it is actually what is requested?

The problem its causing is we give a http status of 301 on utf-8 decoded url requests to the encoded url which flash then tries to request (but ie decodes it again) and I get stuck in an infinite loop because of the 301 + ie auto-decoding.

EDIT, adding code sample:

var url:URLRequest = new URLRequest('http://mydomain.com/p%C3%A5.jpg');
var loader:Loader = new Loader();
loader.load(url);

Now I want the request to go over the line as [URL] (and it does in other browsers), but in IE it goes over the line as [URL]

EDIT: replacing % with %25 (double encoding the %) but that didn't work, it just caused this request to go over the wire: [URL]

View 1 Replies

ActionScript 3.0 :: Stretching SWF To Fit The Browser?

Oct 21, 2009

Here is an example of a template I am trying to copy:[URL]..In particular, I am interested in making a background with scrolling movie clips, like the clouds, that will allow everything to remain the same scale, but allow the background to scale and the clouds to either have a shorter or longer distance to travel. Now I also mentioned resizing ActionScript, because I almost have things working, but my ActionScript is not quite right yet.Here is my AS3 code:

[Code]...

View 16 Replies

Professional :: Stretching SWF File?

Oct 25, 2011

I am using Flash cs5 on iMAC OS 10.6 When the SWF file opens on my screen, I try to enlarge it by draging the corner, but only the background color enlarges. Is there a way that I can get the whole SWF file to enlarge when I drag the corner? Is there a setting in the publishing setting?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved