Html :: Rescue Flex HTMLLoader Crash?
Jun 7, 2011I use HTMLLoader component, and I have to load thousand of different websites per days by this component.But some times, HTML component produce several crash/days of my AIR application
View 2 RepliesI use HTMLLoader component, and I have to load thousand of different websites per days by this component.But some times, HTML component produce several crash/days of my AIR application
View 2 RepliesI'm currently downloading website via an ActionScript HTMLLoader to later have access to the DOM to get some information out of the page. The problem is: each resource that is linked on the page (images, stylesheets, javascript) is also loaded which takes some additional time. I don't really need those resources, because only the plain HTML/DOM is interesting. Is there any way to disable loading of linked resources? At first I tried using an URLLoader and parse the result as XML, but when the website isn't valid this doesn't work. I also didn't find a library that validates/parses a given HTML-string into valid XML.
View 1 RepliesI'm building an Flex 4 application using IntelliJ IDEA 9.0.2 generated sample Flex application. I replace the generated mxml with the following code from the book Hello Flex 4. It simply crashes the browser when I run it. It says "Waiting for [URL]..and then crashes I tried it on both FF 3.5.9 and Chrome 4.
[Code]...
I'm making a custom webbrower by Adobe Air.I would like to add a html filter function that disable javascript & iframe.If I can get html code before render, I would delete tag elements with regexp.I guess I can something with htmlloader when htmlloader's LocationChangeEvent dispatch.
View 2 RepliesI've got a flash file (compiling to Air) with a HTMLLoader object in it. The HTMLLoader object loads the web page I link it to correctly. The page is an intranet page within my company's domain.What I would like to do is to take the HTML/text in the HTMLLoader component and convert it to a string so that I can list it out in a textArea. I want to parse the text to grab information like names and phone numbers etc. I'm sure I'm just missing something obvious.
View 2 RepliesLets say i have a html file that contain a form:
<form method="post" action="url">
<input type="text" id="fullname" />
<input type="text" id="bodyText" />
<input type="submit">
</form>
we have load this html file using HTMLLoader inside an swf file.
_htmlLoader = new HTMLLoader();
_htmlLoader.paintsDefaultBackground = false;
var req:URLRequest = new URLRequest(urlValue);
_htmlLoader.load(req);
_stage.addChild(_htmlLoader);
After loading this Swf file using Loader inside main application, text boxes are readonly and can't type in it. But we can change focus of them using Mouse.
var loader1:Loader = new Loader();
loader1.load(new URLRequest("path to file.swf"));
// ...
this.addChild(loader1);
// ...
It is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class senocular .url... but it does not work.[code]
View 0 Repliesis there any event dispatched in HTMLLoader class when any of the input text field is being selected inside the HTML? If yes how to track not onlyt the Event but the input field also?
View 3 RepliesIt is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class [URL] - but it does not work I have something like this:
[Code]...
I'm using AlivePDF to create a PDF file, then save it to the desktop. I can then use an HTMLLoader to display my lovely PDF file.
Now, the print button in Adobe Reader works fine. However, there will be young children using the app, so I'd like to have a big "Print" button right above it. I figured I could just start up a print job and feed it my HTMLLoader. This won't work because the HTML loader rasterizes the content.
I am working on Flex 4.5 SDK and using Flash Builder 4 IDE for my Flex/AIR Desktop Application.
In my project I want to load one html page in one of the canvas areas. I am using HTMlLoader to load my page. My web page loads successfully in the canvas area.
The problem is that when I click on the links embeded in the html page that I have loaded, they do not open in my browser window.
There is a property of HTMlLoader "navigateInSystemBrowser" which need to be set to true to allow the embeded links of the page to open in a default browser window. But this property works only in Flex 4.0 I tried running the same thing a sample project using Flex 4.0 as the SDK and it works perfectly fine. But when I work with Flex 4.5 SDK it does not works.
I created an application with Flex and it open large PDF file, so when show PDF file it is too slow. Anybody, who know a solution which open PDF in background with HTMLLoader?
View 1 RepliesIn my AIR application in Flex 4, I use mx:HTML, and when I navigate to a location like this ut, some websites have "alert" function in javascript like this :lert('hello world!');nd AIR show the message in a box...I just want to remove, or ignore these messages, but I don't know how...
View 1 RepliesI want to do my stuff on LocationChangeEvent.LOCATION_CHANGE event which is introduced in AIR 2.7 but this event is not getting dispatched.My sample code is below. Please help me know if there is anything wrong that I am doing.
[Code]...
I have a flex Air program that loads external content with the HTMLLoader.Now for some reason whenever I load a page that has any flash content a blank system window pops up outside of my program. It's completely blank, all white with min, max and close buttons.If I close it any flash content I loaded stops working. For the life of my I can't figure out what's happening and there's no messages in the console and no title for the window.
private var webPage:HTMLLoader;
private function registerEvents():void
{
[code]......
I have built a Air 2/Flex 4 kiosk application with Flash Builder 4. Currently I am implementing a touch screen browser to enable users to navigate company training videos. In an attempt to improve the usability of the website on the touchscreen I have placed the HTML component in an adaption of Doug McCune's DragScrollingCanvas (updated to use the flex 4 'Scroller' component) to allow users to scroll the webpage by dragging their finger across the screen. The mouseDown event is used to start scrolling the viewport.
In addition the webpage was modified to disable text selection with the following css:
[Code]...
As an alternative I also tried adding a group container with the same dimensions as the HTMLLoader to detect the mouseDown events (so that the group container and HTMLLoader have the same Dragable parent container) and was able to capture mouseDown events and scroll the viewport as expected. However as the mouse event is handled by the group container, I am now unable to navigate the webpage.
have an advanced datagrid with a simple custom mxadvanceddatagriditemrenderer. I want the renderer to only display an image when the row is hovered or selected. Right now I am doing that by using the excludeFrom="normal" tag on my image.
It works fine (minus the selected state, it disappears when selected) when I have the states hovered and normal defined. When I try to define a selected state, upon row click I get the following error:
RangeError: Index 0 is out of range.
at spark.components::Group/checkForRangeError()[E:dev4.xframeworksprojectssparksrcsparkcomponentsGroup.as:1106]
at spark.components::Group/setElementIndex()[E:dev4.xframeworksprojectssparksrcsparkcomponentsGroup.as:1265]
[code]....
I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:
nc = new NetConnection();
nc.connect("rtmp://[website here]");
so = SharedObject.getRemote("ballPosition", nc.uri, false);
[code].....
I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Swish, when I set the on (release) on a text field, (to invoke .send() on my localconnection), it works splendidly. However, when I attempt to perform the same calls for an on(release) attached to a movieclip, it actually causes the Flash player, and even the browser plugin to crash. In fact, the browser (IE) crashes as well. I checked the debug trace that ie asked me to send to microsoft at the last IE crash, and i noticed a StackOverflow exception embedded deep in the trace, but I couldn't determine its source.
View 5 RepliesI installed the Adobe Flash Builder 4.5 which includes the eclipse plugin.I want 2 use my existing eclipse, so I copied the contents of plugin and features folder to existing eclipse folder.I see the Flex features in Eclipse, but trying to open the Flex Builder Path causes eclipse to crash. Error Message is :
"Please uninstall and reinstall the product
If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.[code]...
The program croaks when measureContentArea (in package mx.containers.utilityClasses, file CanvasLayout.as ) loops through the target's children from 0 to target.numChildren. When the program errors: n == 1, i == 0, and target.numChildren is now 0, when it was 1 before the loop. target.numChildren has changed while the loop is running. It's as if a child was removed by some side effect of calls in the loop.
This happens even when I have many IOComponents on the screen: Here This baffles me because I don't see how I can debug it. I do add and remove and insert children in my game code, but unless ActionScript is threaded I don't see how my code can reach into a loop in CanvasLayout.as .
I will be releasing my Air/Flex application soon, but I am pretty sure there are a couple of bugs that may pop up on the various platforms that Air is available for. So I was wondering if there is a way to implement a mechanism, that would send an error report, logging where the error happened, to a remote server each time an app crashes? This way I might catch errors that otherwise would go unnoticed.
View 1 RepliesI have a flex app using the 4.5.1 sdk and AIR 2.7 running on an Android 3.2 tablet. During use, I can get it to crash fairly regularly. It's usually when I'm rapidly scrolling around in a List control. I can't seem to find the cause.
The application will just suddenly close. It happens in both debug and release builds.
When in debug mode, it just disconnects from the debugger and doesn't give me any useful information.
I'm at a loss on how to debug this. What are some techniques I can use?
I found the "adb logcat" command. Relevant info from the log below, unfortunately it doesn't mean much to me.
[Code].....
since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird crash when accessing shared objects. Flex Builder's debugger pops up and prints a stack trace like this:
undefined
at flash.net::SharedObject$/getLocal()
at my.code::MyClass$/load()[/my/path/to/my/MyClass.as:27]
(...)
This happens when calling SharedObject.getLocal("someString") for the second time for the same string, though it doesn't always crash. When using another browser on the same machine (not configured as the preferred debugging browser in Flex Builder), Flash Player remains silent. The code is wrapped in a try/catch(Error) block which does not catch this error. I'm using Flex SDK 3.5 and Flex Builder 3 on Mac OS X 10.6.3.
I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:
[Code]...
But when it gets to the 3rd line, it crashes. I don't know how to use the debugger for flex sadly enough
I have a web application that converts SVG files into swf ones. In order to do so, there are 3 steps:
1 - Running through SVG Files in a folder
[Code]...
I am designing a web application in Flex 4 and currently facing an issue rendering advanced HTML tags and entities in Flex 4. All I want to do is basically render an HTML text coming to me something like the one given below:-
[Code]....
Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:
[Code]....
I don't understand why i can't let HTMLLoader work. It seems that the code is very very easy:
[CODE]...
I changed some strings, so there are no compile errors, but i only see the white screen (I know that AIR requires). I'm a newbie. If it's not difficult can someone give a source code... Maybe the problem is in settings.
I've got an AIR app that is loading mx:HTMLs. I would like to block the ads that show in them just like Adblock Plus for Firefox does (see http://adblockplus.org/en/). I subscribe to the Easylist USA filter.
var req:URLRequest = new URLRequest("http://www.google.com");
thisHtmlWindow.open();
thisHtmlWindow.htmlContent.htmlLoader.load(req);
I don't know where to begin to interrupt the HTML GET-ting process in actionscript. This is where I suspect I can add the HTTP filter. It'd be nice to subscribe to the filter and periodically download it/update it to make sure the major ad networks are blocked.