Embedding Flex App/Component/Chart in a PDF
I know there are solutions out there like AlivePDF and PurePDF. However we also want to be able to embed pieces of our application into the pdf we generate. An example is saving an interactive grid into a pdf so that a client can also use the chart as if he/she had the application open.
Is there any pdf actionscript library out there that can achieve RIA functionality?
Thanks in advance.
I'm not sure to your question.
Check the examples:
http://www.davidortinau.com/blog/generate_pdfs_with_actionscript_using_alivepdf/
In my case I use coldfusion to create a report forms, pass the info to my form variables and then save as pdf.
I see that you can include images.
Johnny
Please rate answers.
Similar Messages
-
How do make the mouse wheel scroll in my Flex app/component instead of the browser?
Let's say I have a DataGrid or Tree or List component which
has hundreds of rows. When I place my mouse over the component and
scroll the mouse wheel, I notice that [most of the time] it scrolls
the component a little, then starts scrolling the browser window. I
want it to only scroll the component until it reaches the end of
the rows. Any thoughts?I have confronted the same issue.
Was anybody able to solve it?
I think mx.contorols.TextArea seems to do well. -
Write data to SharePoint from embeded Flex swf
I am trying to integrate Flex 3 applications into SharePoint 2007 environment which would allow our users to read/write/delete data from SharePoint using an embeded Flex app inside SharePoint. While the article from matthew.meier on "Adding Event Driven Flex Components to Microsoft Sharepoint 2007" is great and another article by Serge van den Oever on "Use Flex to retrieve data from a SharePoint list" is fantastic, they neither touch the topics of writing or inserting data into SharePoint. My goal is to create a two-way communication between Flex and SharePoint to dynamically pull (read) data into Flex from SharePoint lists, etc via GUID or other method AND to also write or update SharePoint from a front-end Flex inside SharePoint.
I have been working on a solution which appears like it would work, but I am getting errors. The source code and examples are found on Code Project http://www.codeproject.com/KB/aspnet/FlexASPWebService.aspx?msg=3270246#xx3270246xx This Flex/ASP example uses a web service to communicate to a SQL database. Flex makes a web service call to the .asmx file via WSDL and the magic happens. I am running into a roadblock as I receive an error that the app cannot find the WSDL. I have tried to run the same WSDL URL in a browser and I get an server application error.
I also tried a solution found at http://shardulbartwal.wordpress.com/2008/03/20/import-web-servicewsdl-wizard-in-flex-30/ to load the WSDL file directly into Flex, but I ran into another roadblock. When I get to this step below Flex gives an error that it cannot find the WSDL file either…
Here is the WebService call from Flex…
The files from Code Project contain a directory structure as such:
TestWebService\Service.asmx
TestWebService\Web.config
TestWebService\App_Code
TestWebService\App_Code\Service.cs
TestWebService\App_Data
The Service.cs file is inside the App_Code directory and is referenced from the Service.asmx file with this code:
My Flex file calls the Service.asmx?WSDL which then calls the file Service.cs and then it breaks.
The Code for the Flex file is as follows…
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
private function init():void {
// Get Data from WebService and fill datagrid when you fist invoke the application
ws.GetEmployees();
private function GetEmployees(event:ResultEvent):void {
// Databind data from webservice to datagrid
datagrid.dataProvider = event.result;
private function SaveEmployee(event:ResultEvent):void {
// To Refresh DataGrid;
ws.GetEmployees();
Alert.show("Saved Successfully");
private function AddRecord(event:MouseEvent):void {
// Save a record using a WebService method
ws.SaveEmployee(txtEmpId.text, txtEmpName.text, txtEmpEmail.text); //
private function fault(event:FaultEvent):void {
// Oppps some error occured
Alert.show(event.toString());
]]>
</mx:Script>
<!-- WebService definition -->
<mx:WebService id="ws" wsdl="http://localhost/TestWebService/Service.asmx?WSDL" fault="fault(event)">
<mx:operation
name="GetEmployees"
resultFormat="object"
result="GetEmployees(event)"
/>
<mx:operation
name="SaveEmployee"
resultFormat="object"
result="SaveEmployee(event)"
/>
</mx:WebService>
<mx:Panel x="41.5" y="66" width="714.5" height="237" layout="absolute" title="ASP.NET WebService + Flex Demonstration">
<mx:HBox height="95%" width="95%" horizontalCenter="0" verticalCenter="0">
<mx:DataGrid id="datagrid" width="465" height="100%">
<mx:columns>
<mx:DataGridColumn headerText="Emp Id" dataField="EmpId"/>
<mx:DataGridColumn headerText="Emp Name" dataField="EmpName"/>
<mx:DataGridColumn headerText="Emp Email" dataField="EmpEmail"/>
</mx:columns>
</mx:DataGrid>
<mx:Form x="608" y="74" width="100%" height="100%" borderStyle="solid">
<mx:FormItem label="EmpId">
<mx:TextInput width="106" id="txtEmpId"/>
</mx:FormItem>
<mx:FormItem label="EmpName">
<mx:TextInput width="106" id="txtEmpName"/>
</mx:FormItem>
<mx:FormItem label="EmpEmail">
<mx:TextInput width="106" id="txtEmpEmail"/>
</mx:FormItem>
<mx:FormItem width="156" horizontalAlign="right">
<mx:Button label="Add" id="btnAdd" click="AddRecord(event)"/>
</mx:FormItem>
</mx:Form>
</mx:HBox>
</mx:Panel>
</mx:Application>
The Flex app error states it cannot locate the WSDL. Any ideas?
I don’t know what I am doing wrong… -
Embedding swf/parts of flex app in pdf
Hi,
We want to be able to export to pdf in our flex app. I know alivePDF among others do this. However, we want to take the extra step to be able to embed flex into the pdf itself - making the pdf interactive and not just a report. Is there a third party library that someone can recommend that can do this? I believe lifecycle services does this, but we don't have a license.
Thanks in advance.You must use the 3.4.1 SDK that is provided on LiveCycle DVD or from an installation of Workbench (See the Customizing LiveCycle Workspace ES2 at at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf or the Creating Flex applications enabled for LiveCycle Workspace ES2 guide http://help.adobe.com/en_US/livecycle/9.0/createflexapps.pdf guide).
There are functions in the SwfConnector component that allows you to communicate with the IFrame but as far as I know, there are no APIs that are exposed.
I'll defer to others if they know about it.
Hope that helps! -
Generating PDF with Flex App (swf) embedded
Hi,
Does anyone has the experience in developing a Flex Application that is to be
embedded into a PDF and open in the Reader/Acrobat for data capturing?
How to embed the Flex Application (swf) into a PDF in a Livecycle process?
With the XML data prepopulated into the PDF (embedded with a schema) and
accessible by the Flex Application when open in Reader/Acrobat.
Users will still be able to save the data filled in the Flex Application into the PDF
and also to generate a XML data (with data capturing in the Flex App) to be
submitted back to the server.
How can these be achieve? Any example?
Thanks alot.Just wondering, am I in the correct section of the forum? it seems like most of the discussions listed here are related to form designing rather than form rendering.
I know this is FORMS ES section, just that i come across something that might related to the topic.
Has anyone try out Adobe LiveCycle PDF Generator ES2 new features?
Based on Adobe Upgrade Center http://www.adobe.com/products/livecycle/upgrade/pdfgenerator.html, it mentioned that PDF Generator ES2 has the ability to embed SWF files in PDF.
But is this also applicable to Flex Application compiled SWF file?
Does the generated PDF function as a normal interactive form?
Able to retain its embedded schema and objects (scripts)?
I will try to install LC ES2 to try out but need sometime to setup the system, really appreciate if someone can give me a head start.
Thanks. -
An AS component doesn't appear in a flex app
The following AS draws a line and works in its own right,
package components {
import flash.display.Sprite;
import flash.display.Shape;
public class DrawTest1 extends Sprite {
public function DrawTest1() {
var shape:Shape = new Shape();
shape.graphics.lineStyle(0,0x0000FF, 1);
shape.graphics.lineTo(100,100);
addChild(shape);
It was then included in a flex app as
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:custom="components.*"
layout="horizontal">
<custom:DrawTest1 />
</mx:Application>
but only a blank screen (i.e. without the line) was displayed
when the flex app was executed (no error message was given during
compilation). Please help.Flex containers (incluing Application) can contain only
components which are derived from UIComponent or implement
IUIComponent interface.
To get your component to display in the application create a
UIComponent as child and add the DrawTest1 component as a child to
it.
<mx:UIComponent id="p1"
creationComplete="p1.addChild(t1)"/>
<custom:DrawTest1 id="t1"/> -
Flex app calling CF cfc to download file gets "Channel disconnected" fault
I am a newbie with ColdFusion and Flex. I am trying to implement file download/streaming functionality in my Flex 4.5 application and I am running ColdFusion 9 as my back end. More specifically, I have a component in my Flex app that displays a list of files - some of these files can be available for opening (or "previewing") via the client. I want the client to be able to click a button and download the file from the ColdFusion server, after the appropriate security checks are performed (also in ColdFusion). Right now I am just trying to get the basic download functionality to work with a very simple cfc. Here is the cfc code:
<cfcomponent displayname="Preview Document"
output="false">
<cffunction name="streamFile" access="remote" returntype="any">
<cfargument name="filename" displayName="Filename" type="string" required="true" />
<cfheader name="Content-Disposition" value="attachment;filename=#filename#" >
<cfcontent type="application/unknown" file="c:\myserverpath\#filename#">
</cffunction>
</cfcomponent>
When I try this via a cfm, it works fine (I get a File Download window where I can choose to either open or save the file). But when I try to use this in my Flex app, I get an error.
In my Flex app, I have a RemoteObject to access my cfc and a CallResponder:
<s:RemoteObject id="PreviewDocument"
source="PreviewDocument"
destination="ColdFusion"
showBusyCursor="true"/>
<s:CallResponder id="PreviewDocumentResult"
fault="Alert.show('CallResponder PreviewDocumentResult: ' +
event.fault.faultString + '\n' + event.fault.faultDetail)"
result="PreviewDocumentResult_resultHandler(event)"/>
Then I created a button whose click even executes the following line:
PreviewDocumentResult.token = PreviewDocument.streamFile("myfile.pdf");
When I run my app, I get the following fault:
faultCode = "Client.Error.DeliveryInDoubt"
faultString = "Channel disconnected"
faultDetail = "Channel disconnected before an acknowledgement was received"
I have tried many different approaches and searched online for help with this fault, but I could not find any helpful clue to where I can start investigating this.
Can anyone help with why I am getting this fault?
Thanks in advance.@sir_teddy, thanks for your reply again.
Yes I have created a simple cfc that returns a string successfully (in fact I had used the same cfc and basically just commented out the cfcontent and cfheader tags, and returned the name of the file being requested in the cfreturn tag). When I un-comment the cfcontent tag from the code, the error comes back.
So I am really at a loss here... -
Hi all,
I've got a strange problem on Linux (Ubuntu 8 running in
VMware): I've got a quite complex Flex application running in FP
10.0.12.36 where (in both Opera and Firefox)
- the "Settings" link in the FP context menu is greyed out
- the Settings popup does not appear when the Flex app tries
to save more data in a SharedObject than currently allowed for this
domain
- the Settings popup window does not appear when deliberately
triggered (via Security.showSettings)
With another simple Flex test application running in the same
OS as the same user in the same browsers, all these problems don't
appear. The only difference which I can see at the moment (apart
from the complexity of the application which of course shouldn't
play a role) is that the complex application is compiled from an
Ant task whereas the simple app is created and compiled inside Flex
builder.
I did not deliberately set anything in the Ant task which
could avoid the "settings" issue to work properly. In the Flex
compiler options I also can't see anything related to these
settings.
Does anyone have had a similar problem? Any clues or
suggestions?
btw: here is the Ant task:
<target name="compile_annex_flex_files"
depends="checkFlexHome">
<echo>Compile: start</echo>
<echo>FLEX_HOME: ${FLEX_HOME}</echo>
<mxmlc file="${ANNEX_SOURCES_DIR}/AnnexInterface.mxml"
output="${ANNEX_OUTPUT_DIR}/AnnexInterface.swf"
locale="en_US" debug="false" use-network="true"
static-rsls="false">
<load-config
filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<runtime-shared-library-path
path-element="${FLEX_HOME}/frameworks/libs/framework.swc">
<url
rsl-url="${SERVER_PATH}/framework_${FLEX_BUILD}.swz"/>
<url
rsl-url="${SERVER_PATH}/framework_${FLEX_BUILD}.swf"/>
</runtime-shared-library-path>
<compiler.source-path path-element="src"/>
<compiler.library-path dir="${basedir}" append="true">
<include name="lib/scrollbar.swc"/>
</compiler.library-path>
</mxmlc>
<echo>Compile: end</echo>
</target>
Thanks,
ThomasYou must use the 3.4.1 SDK that is provided on LiveCycle DVD or from an installation of Workbench (See the Customizing LiveCycle Workspace ES2 at at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf or the Creating Flex applications enabled for LiveCycle Workspace ES2 guide http://help.adobe.com/en_US/livecycle/9.0/createflexapps.pdf guide).
There are functions in the SwfConnector component that allows you to communicate with the IFrame but as far as I know, there are no APIs that are exposed.
I'll defer to others if they know about it.
Hope that helps! -
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? -
How to call Flex app from Javascript in portal question
I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
"src", "<%= srcPath %>",
"id", "<%= (String)request.getAttribute("portlet_name") %>",
"name", "<%= (String)request.getAttribute("portlet_name") %>",
"width", "<%= request.getAttribute("width") %>",
"height", "<%= request.getAttribute("height") %>",
"align", "middle",
"quality", "high",
"FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer");
</script>Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
thanks
Dan -
Should I learn Fireworks or Builder to Design Flex Apps?
I need help in making a process decision on how to build Flex
Apps going forward.
In the past, we have built the concept for our Flex app in
Photoshop and sent it over to our development team in India to
build. The process has been difficult because our engineers are not
designers and our designers are not engineers. Invariably we spend
alot of time bridging the gap between whats possible and what we
want to see in our Apps.
I want to bring our Design and Dev much closer together and
essentially take the GUI out of the hands of my Indian Developers
and let them focus on the backend.
To accomplish this goal, I will be training my US Design team
to become either Fireworks Experts or Flex Builder Experts....
(they are already Photoshop experts) This is where I need your
help. If you were starting from scratch with a talented design team
that could learn either tool, which one would you choose to
accomplish the goal? Does the Fireworks to Flex export create
crappy code like Dreamweaver thats tough to modify manually? Does a
"true" Flex developer despise Fireworks-generated code?
I have read up on the Fireworks>Flash Catalyst>Flex
Builder Path and dont understand the additional step... is Catalyst
part of Fireworks and thats how Flex code is developed or is it a
new code generation engine that does code better than Fireworks
CS4?
Thanks in advance.I am understanding my question better now... Please read
below
I am attempting to remove inefficiencies in my Flex
development process by re-tooling my design team so that their UI
and application design output files can be imported directly into
the developers environment. Essentially, I want designers to
produce prototypes with working client-side interactions while the
developers focus on back-end interactions.
Our current process has a number of throwaways that occur
during the web application build process: from wireframe, to
Photoshop, to development using the Photoshop output as a guide for
development... this last step is often the most mangled because is
difficult to implement the design exactly as the designer created
it in Photoshop because designers do not fully understand what is
possible. I want to remove the steps in-between and have found two
possible solutions to do this.
Option 1) Fireworks CS4>Catalyst(Thermo)>Flex4
SDK>*.SWF
Option 2) Fireworks>Flex3 SDK>*.SWF
With Option 1, we would tool up our Designers on Fireworks
and Catalyst and get our developers on the Flex4 SDK. The output of
the design/build would be only compatible with Flash10 and the
stock component library for Flex4 would be limited.
With Option 2, we would tool up our Designers on Fireworks
and use the native Fireworks export to Flex 3 (not sure how well
this works?). The output would be compatible with Flash 9 and the
stock and aftermarket component library for Flex3 would be rich.
Do I have this right? Which option would you choose and why?
Thanks in advance. -
Ebedded Flex app does not play automatically
I have a flex app that is embedded in a web page.
When the page loads for the first time the app does not run
automatically but is in "loop" mode.
In order to embed the application in the html page we have
copied the html and javascript files that the Flex builder
generates :
AC_OETags.js, history.htm, history.js etc.
This only happens the first time the page is loaded,
subsequently it loads and plays automatically.
I would be grateful is anyone has some insight here.Thanks for your answer, we found a similar workaround.
We did the following:
1) disable automatic starting of the SWF in the script that
created the plugin by adding these parameters:
"play", "false",
"loop", "false",
2) adding some own javascript to the template-html:
var isMovieLoaded = false;
function setIsMovieLoaded(){
isMovieLoaded = true;
function start(id) {
var swf = document.getElementById(id);
if (swf) {
swf.Play();
function playMovie(){
if( !isMovieLoaded ){
start( "${application}" );
window.setTimeout("playMovie()", 3000);
3) calling setIsMovieLoaded() via ExternalInterface from the
loaded application when initializing:
if (ExternalInterface.available)
ExternalInterface.call("setIsMovieLoaded");
This way when the application loads and plays correctly, the
delayed call to playMovie in the html-template does nothing,
because the flag isMovieLoaded was already set by the application.
If that is not the case, the movie is explicitly startet via
the start function.
Thanky anyway :-) -
Embedding Flex applications inside a portlet question
I'm trying to embed a Flex application within a Java portlet on my WLP 10.3.2 portal. I'm able to display the Flex app in the portlet but now I'm trying to access data. Does anyone know of any documents that cover how to access Flex data from a portlet and how to access portlet data from the embedded Flex application?
thanksWhen you mentioned you integrated Flex App inside a Portlet, are you using like iFrame tag or Browser Portlet where in iFrame tag you specify the Flex app url like that. If so, then you will not be able to share any data/information between this iFrame portlet and the actual other real portlets.
If these Flex app has something like JSR based Flex portlets, then you can integrate them in WLP more easily. Another option is to consume these Flex Portlets as remote portlets using WSRP on WLP Side and the producer will be Flex Portal App (with flex portlets).
See if this link helps: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=wsrp_1.html
Ravi Jegga -
I want to use some components from a Flex app that we are
developping to create a standalone application for some of our
clients who just want to use a few (small) features of our
application.
I'm planning to use the in-process HSQLDB database and no
server-side code (i.e. no server at all), and have the following
questions:
1. Did anyone try to this yet? Is it at all possible?
2. How can I setup a jdbc connection to an in-process
(embedded) hsqldb, without going through a server object?
Thanx in advance for any suggestion (even: "not possible,
forget it...")
RuiYou want to look for Adobe Apollo (coming out next year) or
mdm Zinc's product. At least with Zinc, You can make standalone
Flex exe projects that can connect to local databases etc... -
Flex app doesnt not appear until mouse over?
I have a flex app embeded into a web page. It seems to work right in FF and Chrome but all the IE users it is just blank, and stays blank until you move the mouse over the blank spot where it is supposed to be...then it appears instantly. Does anyone have any clue why or how to fix this?
Thanks!!I found an answer here: http://forums.adobe.com/message/1979424#1979424
I need to set focus on load like this:
<body onload="document.getElementById('WeddingBandBuilder').focus()">
However I am having trouble doing this because the <body> tag is locked my the template..is there a way I can do the equivalent with a script in the <head> tag?
Maybe you are looking for
-
Attribute Change run taking too long time to complete.
Hi all, Attribute change run has been taking too long time to complete.It has to realign 50 odd aggreagates, some by delta , some by reconstruction. But inspite of all the aggregates it used to finish in quick time earlier. But since last 4-5 days it
-
Hi 3 Chatters -- I decided to post this in the clear rather than posting it separately to several of you who are reporting problems others have reported to me in several (approximately 10) multi-party test chats in which I have participated since ins
-
SuperDrive 8x dual layer for 15''
Why isn't Apple offering the SuperDrive 8x dual layer as an optional upgrade to the current 15'' models? I priced one and noticed that option does not exist. Is there a techical explanation as to why Apple is missing out on that business? I don't wan
-
Macbook pro 15" stutter/lag in photoshop
I just bought my 15" macbook pro and installed Photoshop on it. It stutters when moving pictures, when moving zommed in canvas etc. The picture im moving is a 2mb small picture and there is a noticable lag when moving it. I've changed the performance
-
Looking for LabView driver for Watlow 96 Series Temp. Controller.
In need of LabView driver to control a Watlow 96 Series Temperature Controller. The controller has a RS232 output, so I'm preferably looking for a serial port driver. Thanks in advance.