Displaying Ads on a Flex App ?
Hi,
I have a flex based application that resides on 100% of the browser page.Now i want to display some Ads on the flex based App. Google Adsense is not supported i think.I read some blogs using an iframe we can display some Ads.I don't want to do that, it might slow the app.Is there a better way.
There are some Ads that i see made in flash, we should be able to display them directly right.Can you suggest some ad networks that provide such ads.
Thanks
Rajat
I would suggest a proxy located on the server. It would connect to adSense, then communicate with your FLEX app. BLAZE could be used for both the proxy and the "PUSH" to you app to display the text in the ads. We are building this for ourselves right now, if you'd like to know more you can contact me at curtis dot fisher at procontent dot net.
cheers,
Curtis
Similar Messages
-
Can I somehow add "Google Ads" to a Flex app?
I wonder wether it is possible to develop a Flex app which other users and web site owners can embed in their
own web pages. The Flex app itself should contain an area where the well known "Google Ad links"
are placed. This area should be automatcially updateable as usual and the developer should benefit from Google ad clicks
of users of the Flex app.
Is this possible?
Or are Google Ads only embeddeable in native HTML code/web pages?
PeterFor IFrame:
http://code.google.com/p/flex-iframe/
however, do a good research on use of iframe. -
How to display ads in Flex APP
Hi All,
How i can place a ads in the flex application.
Any work around.
Please send the sample link or tutorials
Thanks & Regards,
chaitanyaAn ad would be an image or Flash movie, both of which can be displayed quite easily and given hyperlink behavior. It all depends on what kind of logic you need to support rotation. You will want to keep the ad content resources external of the swf. Maybe have an XML properties file to load in specifying resources, their links, and whatever else you need.
-
Flex app doesn't work when moved from original location
I'm trying to make an image gallery in flex. It works when I run it in Flex Builder perfectly fine. The html and swf files from the bin-debug folder work perfectly fine when opened in any browser also, but ONLY when those files and all related files are opened from the default location that the application was built in. When I export a build to a different folder, the swf loads but none of the information from the xml file displays. I tried setting all of the paths of the reference files (namely the xml) in the flex app to the exact absolute location on the server, and it still didn't work when I uploaded it to the server.
I've tried several approaches starting from scratch and they have all come up with the same issue. I'm working with an educational license for Flex Builder, I'm not sure if they jip you on those and ruin the compiled swf.
Please help! I'm losing my mind over this.I think it has to do with something else besides the code since it works fine when I hit "Run", but if anyone thinks it will help to post the code let me know.when you build an application using one of the wizards (like coldfusion flex application wizard) it hard codes
paths to cold fusion CFC's, and sometimes gets it wrong.
If your application references cfc's (or other remote objects) then it may be necessary to adjust the flex code
when moving the code into a different base folder.
For example in my own application, the url is http://localhost/crm_dev_flex and the built application gets put into
c:\inetpub\wwwroot\crm_dev_flex\bin-debug
References in the code to components found in c:\inetpub\wwwroot\crm_dev_flex\bin-debug\components\cfgenerated
(in the flex code these looks like crm_dev_flex.bin-debug.components.cfgenerated.<mycomponent> )
These need to change when you move the code to somewhere else.
Also, if you are using wizard generated cfc's then these also contain similar references that need to be changed.
IHTH.
Cheers -
Loading purchased swf into Flash Builder 4 Flex app
I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
thermometer.swf
thermometer01.fla
thermometer01.html (A sample that works.)
xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
caurina/transitions (Mostly .as files.)
Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
<mx:SWFLoader
id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
private function initThermometer():void {
Alert.show('Thermometer loaded');
The Design view looks fine. I can see the thermometer default image (see below).
When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
Any help figuring out how to get this to work in a flex app would be appreciated.You should probably add more event handlers to see what's going on. Especially "ioError". The complete list is below. For coverage, add a handler for each event. You can also use in MXML
complete="initThermometer(event)
and add an argument to your Actionscript method, to find out details about the event.
private function initThermometer(event:Event):void {
Alert.show('Thermometer loaded ' + event.type);}
Events
complete="No default"
httpStatus="No default"
init="No default"
ioError="No default"
open="No default"
progress="No default"
securityError="No default"
unload="No default
General info here:
http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
I did not test my code suggestions, but it's probably close. -
Why would I need to use LiveCycle Data Services in a Flex app?
I cannot figure out what additional functionality is provided by using LiveCycle Data Services in my Flex apps. I cannot get a clear understanding of how using LiveCycle Data Services would benefit my applications. Does someone out there use LiveCycle Data Services? If so, what do you do with it in Flex?
Thanks!- data push for publish/subscribe implementations
User has to do nothing to get updated information. You push it to their machine when new data is available, like Yahoo finance updated quotes.
- data paging
You don't want to display one million rows in your datagrid at once. Get a batch of data, if the user scrolls down, get the next batch, etc.
- server side clustering
One server does not get overloaded. High traffic sites have their large number of concurrent connections managed more efficiently.
- JMS services
JMS is a powerful technology for messaging throughout an application, and LCDS makes it much easier.
- RTMP tunneling
Allows the use of the RTMP protocol in LiveCycle Data Services applications. Makes it easier to traverse firewalls and proxies appropriately that currently prevent direct RTMP client connections to the server.
If this post answered your question or helped, please mark it as such. -
How to have HTML tags in Flex app wrapper.
If I put this just below the <body> tag in my Flex app
HTML wrapper, it displays:
<h2>Greg Lafrance</h2>
But if I put that tag just above the ending </body>, it
does not show up.
I'm sure it is something simple, but can someone please
enlighten me?Hi,
overflow property will tell the browser to hide the content
if it is overflowing the available space. Please find more details
at the URL below.
http://www.w3schools.com/Css/pr_pos_overflow.asp
IE is ignoring this style property and so we have scroll
property for the BODY tag also. As Tracy mentioned, these are set
to make sure Flex application occupies the browser.
Hope this helps. -
Flex app can't connect to the internet / server when uploaded?
I made a simple app that submits a data via POST using the HTTPService. My problem is, when I Run the application from the Flash Builder IDE, and it opens in the browser as a local file, it interacts with my server (remote server) without any problem and does its job well. However, when I upload it to my website, it fails to interact. It displays on the status bar of Firefox that it's connecting to the server that requires interaction but after some time the status reverts to "Done" with my Flex app not showing any Alert boxes if it either succeeded or failed.
It's really making me frustrated not knowing what's wrong..
Also if it would be an added help, I decided to use the Flex 3.5 SDK to make it more compatible with commonly installed Flash Players on people's computers since the features that I used doesn't really need those of 4.0.Contact the app developer and ask... That's an XML error on the host.
-
Hello,
I am new to Flex and am looking at developing some neat web
based instrumentation apps.
My apps will need to access serial ports, local files and be
able to connect to servers other than the one from which the app
originated. I am looking into doing all this from a flex app
launched from the internet (not Adobe AIR).
Is it possible to accomplish this in some way, such as
digital signatures, configuration files etc???
I have previously developed such apps using signed java
applets, and am wondering is something similar exists for flex.
your feedback will be much appreciated
LKWhile a web-app can't access local resources, a web app can
communicate with an AIR application, which might act a a proxy for
local interaction.
As an example, Parleys
http://www.parleys.com/display/PARLEYS/Parleys.com+V2+BETA+Program
stadnalone version
http://www.parleys.com/download/attachments/3440646/Pandora.air
communicates with the browser based version
http://www.parleys.com/display/V21Beta/Home#page=Home. -
HTTP request logger/simulator for flex app
I have a server that provides input xml data to a flex app in a browser be displayed on the screen for editing over http. Can someone suggest a way to cache and simulate this server's response? I need the flex app in the browser to work even when the server is down (for testing and UI dev). Any tools or ideas that I may be able to use?
Thxjust point your HTTPService tag to any local xml file having static data snapshot using url attribute
If you feel this message answers your question or helps, please mark it respectively -
Playing with Session Data in Flex App
Hi!
I'm trying to figure something small out.
1. Users login to (Index.php) and Session information is stored.
2. When I want to display specific session data, I use the code: $session->username
Now for the Flex Application
How do I display that "$session->username" in a label? on that exact page? (Index.php which loads the Flex App)
Any help is really appreciated.
Thanks!I am going to assume by, "with subnods(sp)" you mean things nested like a tree control in the rows. The name of this control in Flex is AdvancedDataGrid, with that a simple google reveals:
http://flexgeek.wordpress.com/2007/06/13/simple-ganttchart-using-advanceddatagrid-of-flex-30-moxie/
http://flexpearls.blogspot.com/2007/06/advanceddatagrid-summary-roll-up-sample.html
http://livedocs.adobe.com/labs/flex/3/langref/mx/controls/AdvancedDataGrid.html
Adobe Labs info with known issue list:
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Advanced_DataGrid -
Automating a flex app on a headless server
I have a flex chart drawing application that needs to be automated. When automated it will read in data from the DB, draw the charts, and save them as .png files. This works flawlessly on my localhost version of oc4j on my Mac. However it has never worked on our Solaris oc4j deployment which is a headless server. I've set flex to run as headless in the config files but no dice. How can I get this working? Here are some of the error messages I'm getting:
LINUX/UNIX browser attempting to launch /opt/sfw/bin/firefox http://flexdomain.yadayadyada
08/11/06 14:41:53
user dir: /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/j2ee/home
08/11/06 14:41:54 ERR>The application 'firefox-bin' lost its connection to the display flexdomain. yadayadyada:1.0;
08/11/06 14:41:54 ERR>most likely the X server was shut down or you killed/destroyed
08/11/06 14:41:54 ERR>the application.
08/11/06 14:41:54 ExitValue: 1
And here's a snippet from the Java which launches the flex app in the firefox browser:
String cmd = "/opt/sfw/bin/ff.sh "+ url; // ff.sh is a script which sets DISPLAY and launches firefox with the flex url
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
I'm using 10g, by the way.
Thanks!
Edited by: Solerous on Nov 7, 2008 7:04 AMOk, I'm convinced that this is some sort of configuration problem. I can get the browser to launch when written as a simple java program compiled at the command line:
import java.util.*;
import java.io.*;
public class Launcher {
public static void main(String args[]) throws IOException {
String url = "http://www.ebay.com";
String[] commands = {"/bin/sh", "-c", "/opt/sfw/bin/firefox ", url, "-width", "1600", "-height", "1200", ":5"};
ProcessBuilder pb = new ProcessBuilder(commands);
Map<String, String> env = pb.environment();
env.put( "DISPLAY", ":5" );
Iterator it = env.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
System.out.println("\t>> environ: "+pairs.getKey() + " = " + pairs.getValue());
Process process = pb.start();
The output is just to show the environment variables and it looks like this:
>> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
>> environ: LANG = C
>> environ: DISPLAY = :5
>> environ: ORACLE_BASE = /oracle
>> environ: ORACLE_TERM = vt100
>> environ: PWD = /usr/local/u00/de8
>> environ: _ = /usr/bin/java
>> environ: MAGICK_HOME = /usr/ImageMagicK/ImageMagick-6.4.4
>> environ: ORACLE_SID = cots
>> environ: USER = de8
>> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
>> environ: EDITOR = /bin/vi
>> environ: MOZILLA_SOLARIS_PATCHCHECKER = disable_patchchecker
>> environ: HOME = /u00/de8
>> environ: SSH_CONNECTION = 128.219.196.118 64994 160.91.230.33 22
>> environ: LD_LIBRARY_PATH = /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc:/opt/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ImageMagicK/ImageMagick-6.4.4/lib::/oracle/product/9.2.0/lib
>> environ: LOGNAME = de8
>> environ: SHELL = /bin/ksh
>> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
>> environ: SSH_TTY = /dev/pts/1
>> environ: MAILMSG = [YOU HAVE NEW MAIL]
>> environ: MANPATH = /usr/opt/SUNWmd/man:/usr/man:/usr/local/man:/usr/share/man:
>> environ: NNTPSERVER = time.ornl.gov
>> environ: SSH_CLIENT = 128.219.196.118 64994 22
>> environ: MAIL = /var/mail/de8
>> environ: TZ = US/Eastern
>> environ: PS1 = ${PWD###/} $
>> environ: TERM = vt100
>> environ: PATH = /oracle/product/10.1.3.2.0/OracleAS_1:/oracle/product/10.1.3.2.0/OracleAS_1/OPatch:/usr/xpg4/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/u00/de8/bin:/opt/NSCPcom:/sbin:/usr/local/etc:/usr/lib:/usr/opt/SUNWmd/sbin:/usr/bin:/usr/local/bin/perl5.00502:/usr/openwin/bin:/opt/sfw/bin:/usr/ImageMagicK/ImageMagick-6.4.4/bin:.:/oracle/product/9.2.0/bin
I decided to output the env vars in hopes that it would show what needs to be reset. But if I use the exact same code in my deployment, it fails and I get the following env settings:
08/12/09 14:14:27 >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
08/12/09 14:14:27 >> environ: LANG = C
08/12/09 14:14:27 >> environ: DISPLAY = :5
08/12/09 14:14:27 >> environ: ORACLE_CONFIG_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
08/12/09 14:14:27 >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
08/12/09 14:14:27 >> environ: TMP = /tmp
08/12/09 14:14:27 >> environ: TZ = US/Eastern
08/12/09 14:14:27 >> environ: NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
08/12/09 14:14:27 >> environ: ORA_NLS33 = /oracle/product/10.1.3.2.0/OracleAS_1/ocommon/nls/admin/data
08/12/09 14:14:27 >> environ: LD_LIBRARY_PATH = /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc/server:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/../lib/sparc:/oracle/product/10.1.3.2.0/OracleAS_1/opmn/lib:/oracle/product/10.1.3.2.0/OracleAS_1/lib32
08/12/09 14:14:27 >> environ: X_LD_LIBRARY_PATH_64 = /oracle/product/10.1.3.2.0/OracleAS_1/lib
08/12/09 14:14:27 >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
08/12/09 14:14:27 >> environ: SHELL = /bin/bash
Does anyone know how I can get the deployed version (running in the server container) to work exactly in the same way as the version run from a simple command line? -
Read byteArray(binary) from backend and display as pdf in flex titleWindow
i have requirement where the pdf come as byteArray from backend, which i need to read from flex app and diaplay as pdf in the flex titleWindow or any flex popup.
any ideas on this....,Hello Sandra,
Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
Can I just pass the pdf_fsize imported from CONVERT_OTF which is of type i.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_FSIZE
bin_file = pdfxstring
TABLES
OTF = L_JOB_OUTPUT_INFO-OTFDATA
LINES = LT_PDF
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
CALL METHOD G_HTML_CONTROL->LOAD_DATA(
EXPORTING
TYPE = 'application' "'text' " 'application'
SUBTYPE = 'pdf' "'html' "'pdf'
size = PDF_FSIZE
IMPORTING
ASSIGNED_URL = lv_URL
CHANGING
DATA_TABLE = LT_DATA "i_html "LT_DATA
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
OTHERS = 4 ).
Thanks,
Jaya. -
Can I load a swf into my Flex app that loads other swf's?
The code below loads an AS2 swf into my Flex mobile for IOS app and it works. If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
initialize="init()">
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
private var loader:Loader = new Loader();
private var myComponent:UIComponent = new UIComponent;
private function init():void{
myComponent.percentHeight = 100;
myComponent.percentWidth = 100;
loader.load(request);
myComponent.addChild(loader);
player.addElement(myComponent);
]]>
</fx:Script>
<s:Group id="player"
height="100%" width="100%"/>
</s:Application>
But if that AS2 swf loads other swf's, they don't load or display. My FlashBuilder debugger reports no errors or security sand box violations. I'm using the most elemental code in my AS2 swf so as to not cause problems. This is it in its entirety:
this.onLoad = function(){
_root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app. They also load and run fine if I cut out the AS2 swf and access directly from my Flex code. So I know there isn't a path issue. More likely not accessing the right layer in the AS2 swf from Flex or something. Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console. When run console just reports:
[SWF] SwfMobile.swf - 2,639,761 bytes after decompression
[SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
Is there something inherently wrong with loading swf's that load other things? Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue. Just the act of embedding a swf that loads other things seems to be the problem.Ah, yes. Using an AVM1 SWF could prove difficult...
I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
*a few moments later*
Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
Keep me posted! -
Providing application-level help within Flex apps
What is the general guideline / approach for help (not
embedded or field-level help but page level or application level
help like you get when you click Help in most applications) within
a Flex app? Is it to spawn a new Window that goes to standard
HTML-based help engines/content or to display the content in a
dialog within the Flex application itself? ThanksSlow down! Found it here:
http://raghunathraoflexing.blogspot.com/2006/12/flex-i-frame.html
Maybe you are looking for
-
STO - outbound delivery partially do PGI in warehouse
Based on the STO, we are creating outbound delivery, most of the outbound delivery has nearly more than 200 line items, out of 200, nearly 120 line items TO created and confirmed, now the user wants to save PGI for only confirmed 120 line item,
-
Mac book pro wont run apple hardware test
Hi, I have several problems with my Mac book Pro. Problems started so that I couldn't sign in to my account, three other account worked quite normally. I did run disk utility to fix problems that there was. That didn´t fix account problem. Then I tri
-
Ipad 2 digital av adapter through reciever
hi, i was wondering if anyone got the apple digital av adapter to transmit audio and video if you plug it into a reciever? it worked to just the tv fine but i got no surround sound. when i plugged it into my onkyo reciever, i got just audio and video
-
Nasty page flash on swf pop up in IE 7 only - fix?
Go to http://www.enhancedwireless.net/Technology/patentPortfolio.shtml and rollover 71 Countries... I know that it works on IE 7, but when you rollover the "71 countries," the entire page has a nasty flash to it as the pop up is activated - in other
-
Hi, I'm trying to call an RFC enabled function module from excel. My code in VB is: Set theFunc = sapConn.Add("ZGETREVENUE") theFunc.Exports("VBELN") = strSalesOrder ResultsOk = theFunc.imports("OK_CODE") Set objSalesOrder = theFunc.