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
Similar Posts:
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
Mar 31, 2011
I have some German content which contains an umlaut (ü). This content is being built into an XML file. I then have a flash file which uses the xml to build a coverflow. My problem is that the 'ü' character is not being displayed in the coverflow. I've made sure the xml is encoded correctly, as you can see from the snippet below:
<?xml version="1.0" encoding="UTF-8"?>
<artworkinfo>
<albuminfo>
[code]....
As you can see, the umlaut is in the albumName element, but when that text displays it simply misses out the 'ü'. I've added a bunch of encoding groups to the text element in the coverflow file, as well as specifically adding the 'ü' in the 'Include these characters' element. I'm stuck for how to get this to display.
View 1 Replies
Mar 17, 2010
I have a webpage which is served as UTF-8 and has the following meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I have an swf on the page which has some textfields on it each of which are just using arial for their font and no embedded fonts.
Now when someone types an @ into one of the textfields the " character is displayed instead, I thought this would be because my browser is set to ISO-8859-1 character encoding, but changing it UTF-8 and refreshing makes no difference.
View 1 Replies
Aug 1, 2011
I need to perform encoding of a wav file into base64...
View 2 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
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
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
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
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
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
Sep 24, 2010
I have a 9 frames image of a character.In other language generally i used to make character animation by looping the array consisting of different frames and drawing each frame when pressing key.What i want to do is when i press left or right key, i want to draw each frame that makes character movement and update x coordinates of frames, and it will appear as character is moving.
View 4 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 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
Nov 27, 2010
Does anyone know the regular expression to test if a single string character has both upper and lower case character?
eg. All A-Z and a-z.
View 0 Replies
Aug 11, 2009
i was wondering if any of you out there could tell me how it is possible to make a movieclip of a character and when the character is dragged about the screen by the curser, how do you make the characters arms and legs swing about in a realistic fashion.
View 2 Replies
Jan 13, 2004
I would like my character to move as if he was drunk I am unsure how to do that I am using the keyboard for his movement. I also have a character that moves at random I would like the drunk moving character to be able to catch this character and play a scene from within the drunk characters movie clip but I want this character to try and escape the idea is the drunk character gets points for how long he is able to hang on to this character
View 2 Replies
Jan 20, 2012
is there any solution on StageWebView.loadURL(), how I can handle URLs in HTML Pages which have target="_blank"?
It's a mobile Android App (TabbedViewApplication)
View 6 Replies
Apr 23, 2008
I've been using Flash Video Encoder for quite a while now and never had a problem encoding flash from wmv. But in the last week suddenly encoding crashes on ever attempt. At first I thought it was a change in the format of the video that was being introduced, but then I tired videos that I know that I've converted previously. They crash too. I've also tried on 3 different computers, that have all had success in the past.
View 6 Replies
Dec 4, 2010
So I have recently created a Tshirt design application where a user can draw on a tshirt / add text / upload images. Though I am having a few problems. Problem #1: Using the pen tool I can only allow users to draw and reset the drawing using the graphics class, no idea how to create an eraser tool
Q1 - Is there any way to create the eraser? Problem #2: Once a user saves the shirt it is later encoded into a JPG or PNG With no way of editing the shirt in the future.
Q2 - I thought of saving the locations of the shapes / items they uploaded onto the shirt and colors and later re-creating the shirt once loaded. But ran into one problem that is I cannot save the drawing they did using the pen tool, only the location of the objects (MC's) is there any better way to creating this?
View 5 Replies
Jun 3, 2002
which characters need to be encoded for PHP and SQL, and how to do it?
View 2 Replies
Aug 24, 2010
what encoding unescape() function uses? I have problem that URL param has utf8 foreign chars, that flash fails to read.
View 1 Replies
Nov 2, 2011
I'm wondering if there is an encoding like UTF8/16 that can account for characters that are bold, italic, underlined, and super/sub-scripted? If not, is it under consideration by the powers that be? Reason for the question is that I have a large excel file where many cells contain rtf text such as italics, bold, superscript; and I need to access the information on a row-by-row basis. I know I can save the file in html or xml, but I would like to import the data into MySQL - keeping the formatting - and then being able to access the data a row at a time.
I've considered using Markdown or Textile, but that means a whole lot of time changing each cell - we're talking about 5,000 records. Also, I want to continue to use Flex and I'm not sure if Flex can display html formatted text in their text controls because of their their text engine...
View 1 Replies