ActionScript 3.0 :: AIR HtmlLoader Air Swf ClickTAG?
Jan 17, 2011
1. Create a air app that can load any banner .swf from File.nativePath using htmlLoader.
2 .Passes clickTAG params into banner.swf
3. Listen for the click on the clickTAG
4. Detect the clickTag click in the air app.
So far I have completed number 1, and having trouble with 2, 3, 4
View 2 Replies
Similar Posts:
May 9, 2011
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.
View 3 Replies
Dec 14, 2010
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.
View 1 Replies
Sep 22, 2011
I'm testing HTMLLoader class. But it seem that Flash does nothing when I use Adobes example with Flash CS5 and AIR for iOS:
package {
import flash.display.Sprite;
import flash.html.HTMLLoader;
import flash.net.URLRequest;
public class Main extends Sprite {
[Code] .....
View 3 Replies
Feb 18, 2010
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.
View 1 Replies
Nov 29, 2010
There is powerful HTMLLoader component for AIR wrapped in mx:HTML for Flex.I want to supply images manually (ideally from bytes) for mx:HTML, which will display my generated contentThe point is to pack all resources in the application without external files. I can pack different html pages in the app and switch them when mx:HTML dispatchesEvent.LOCATION_CHANGE. Now I want the same for images
View 1 Replies
Mar 17, 2011
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.
View 1 Replies
May 11, 2011
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 Replies
Oct 30, 2009
Here is the code for using the UIScrollbar component with the HtmlLoader:
Code:
import flash.html.*;
import flash.net.URLRequest;
import fl.controls.UIScrollBar;
[Code].....
View 2 Replies
Oct 30, 2009
Some useful code for pulling the source code from the HTMLLoader:
[Code]....
View 1 Replies
Aug 11, 2010
I need to find a way to pull the source code from an HTMLLoader object.I can't use URLLoader because the user needs to see what's on the page... is there a way I can do that? I've gone through the docs for HTMLLoader, but can't seem to find anything that would let me natively do that.
View 0 Replies
Jun 7, 2011
I 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 Replies
Dec 24, 2011
My Flex AIR App HTMLLoder() showing PDF and its toolbar Nice in Mac but under Windows XP its showing PDF but not showing PDF toolbar how can i solve it? [URL]
View 1 Replies
Dec 24, 2011
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 Replies
Feb 13, 2009
I'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 Replies
Apr 3, 2011
In 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 Replies
Jun 9, 2011
I 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]...
View 1 Replies
Oct 10, 2011
Lets 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);
// ...
View 1 Replies
Jun 25, 2009
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]......
View 3 Replies
Sep 26, 2011
We are having problem with one certain Flash banner. We need to insert an active transparent button or to be completely correct we would need the clickTag as an active transparent button and the next function as follows:
on (release)
{
getURL (_level0.clickTag, "_blank")
}
We designed a banner with simple animation but the whole banner must be a clickable button with clickTag, so that our client can track the click and traffic.
View 1 Replies
Jun 16, 2010
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.
View 2 Replies
May 15, 2009
I've got a movie clip which is the entire size of the stage and is activated on rollover and again on rollout to return to its original state. This works fine but now I need to add a clicktag over the top of the movie clip. The clicktag then disables the movie clip when published leaving it static.
View 1 Replies
Sep 19, 2009
Getting clickTAG to work should be simple (using CS4 to generate AS2), On the top layer of my swf in frame 1, I placed an invisible box, made it a MC and called it transpBox_mc. In another layer of frame 1, I placed the following code:
transpBox_mc.onMouseUp = function():Void {
// with or without :Void it still doesn't work
if (_root.clickTAG.substr(0,4) == "http") {
getURL(_root.clickTAG, "_blank");
}}
// also tried this as a transparent button with an onRelease event
In the HTML, I placed a Param tag in the Object section:
<param name="flashvars" value="clickTAG=[URL]" />
And also placed the variable in the Embed section:
embed src="movie.swf?clickTAG=[URL]"
// also tried flashvars="clickTAG=[URL]"
In all cases, the movie plays fine, but the link doesn't work. I tried locally, on my server and also tried the tester at [URL] (though it isn't clear which part of the parameter to enter).
View 4 Replies
Jan 14, 2010
I am just about to pull my hair out - please help as I don't have that much hair to pull out. I created a flash file in Flash CS3 and was told I need to add a click tag for an agency who want to keep track of the click throughs for the ad.
I have created the invisible button layer and set up the 'hit' and tried and tried and tried to select the button and add some action script to it. (which I have seen three different codes to use)
Each time I export it or publish it I get the error message: mouse events are permitted only for button insances on release. I have read and understand I need to assign the code to the button and not the frame but for the life of me, I cannot figure out how to do that.
I select the button (which I have converted to a 'button') and F9 or left click to get the Actions panel and once I am there and try to use the '+' to add code, it automatically shows 'Current Select/Frame 1 in the left side of the Actions panel. I get that it is adding the code to the frame but how do I get it to add the code to the button???
View 4 Replies
Mar 28, 2011
I've been asked to add clickTAG to a banner ad. I used ActionScript 3 and my research shows it only works with ActionScript 2. Is this true?
View 3 Replies
Mar 17, 2008
I've created a flash banner that on rollover changes to a form and onrelease posts the variables - this works fine.My confusion is when I need to include the clickTAG script for adwords tracking.The code I've used is simple and is the following:[code]If I have both on codes one after the other will google track correctly? Is there another way that I can pass the variables to the URL that is defined in adwords via the clickTAG?
View 2 Replies
Jul 15, 2009
I made a banner ad and the site gave me this code to work with:
on (release) {
if (clickTAG.substr(0,5) == "http:" ) {
getURL(clickTAG, "_blank");[code].........
I made an invisible layer and put this code on it. The swf showed the hand, but when I clicked on the banner nothing happened, on my end or on the live site.Then I used this code:
on(release)
{getURL(clickTag,"_blank")}
On my end it would open a blank page. On their end they got a 404 message.Why is it not connecting to the server and opening the link? Is there something in my file that could be preventing either clickTAG from working?I exported in Flash 9. I'm using a loop code. I have many layers and masks, but all are under the invis. layer.
View 4 Replies
Sep 25, 2009
I've been asked to replace the clickTAG on the submit button of a form (see AS below) with the following URL but I can't get any of my AS it to work
URL Supplied by client (to replace clickTAG): [URL]
AS on SUBMIT button:
on( release ) {
// VALIDATION ONLY
var errors:Array = new Array( );
[Code].....
View 1 Replies
Oct 27, 2010
I'm just finishing off my first bannerproject in AS3, but I'm having some issues with the clicktag. The code I've used works just fine on all browsers except IE, which blocks the popup window. I've figured I'm supposed to use the externalinterface call to work around my IE problems. Something like this...
[Code]....
View 0 Replies
Apr 11, 2006
I have an ad banner that the client says the clickTag layer must be the top most layer. The problem is I have movies below that layer that animate on rollOver:
Code:
on (rollOver) {
this.gotoAndPlay("bounce");
}
These do not work unless they are above the clickTag layer. Is their a way I can adjust the rollOver code to acomodate for this? Both the clickTag and the movies are on the main time line but the rollOver animation is in its own movie.
View 1 Replies