Run Flex App in Frame?
1. Can I run a flex app in a frame? Like a nav bar at the top
of an html page for example.
2. Can the flex app register mouse clicks from an html frame
that it is not running in?
3. Can anyone point me to references on these subjects?
Thank you very much.
Yes you should be able to. I've personally run it in an
iframe.
You can use javascript and ExternalInterface to possibly have
some message from the html frame passed to the navbar. However,
ExternalInterface has issues with having your page open in multiple
tabs/windows, so you may need to randomize the id of the navbar if
that is a concern.
Just google ExternalInterface, for the most part.
Similar Messages
-
Could not run flex app in debug mode
All of a sudden I am having issue running my flex app on debug mode that was running fine before. When ever I launch my app on debug mode, I get a popup information that says,
"This file you chose is not inside a project, so many Flex Builder features will be disabled."
I asks me to create a new flex project. I have tried to close the FB and relaunch it, restarted my machine couple of times, cleared the browser cache. nothing seem to work?
What is the issue with this? I have never come across this issue before. Any help will be highly appreciated. Thanks.
KMTry asking on the Flash Builder forum
-
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! -
What is necessary for a web host in order to run Flex apps? How to configure?
I did find a few past postings on the forum but none seemed
to address the problem.
Can somebody who had hands on experience share his/her
knowledge about a migrating a Flex application to production
environment? Do I need to modify any settings? When I transfer the
bin folder contents the UI works fine but the data connection
throws errors.
Does the web host need to have any specific software
installed? More specifically, my host has CF 7 but do not have Flex
data services installed. All I use is RemoteObject so I guess this
can be done without Flex data services. Is this correct?
Finally, if you can refer me to a configuration guide that
the web host would need to follow, it would be greatly appreciated.
Thanks for your time in advance.
EmreThanks for the response, here is the error message that I am
getting.
(mx.rpc::Fault)#0
errorID = 0
faultCode = "Server.Processing"
faultDetail = (null)
faultString = "Permission denied"
message = "faultCode:Server.Processing
faultString:'Permission denied' faultDetail:'null'"
name = "Error"
rootCause = (Object)#1
cause = (null)
localizedMessage = "Permission denied"
message = "Permission denied"
Obviously some data connection is failing due to permissions.
My host, however, does not know what permisson is causing it and
what the fix would be. Thanks for the input in advance -
Run flex app on system startup
Hi all
I have developed an app .Now what i want is that when ever the PC start the installed air app to start as the system starts..
Like the way yahoo messenger starts on system start up i want to implement that functionality ..can anybody tell me what i have to do in my app to implement this..
ThanksThanks paul it worked
private function RunAtStartUp():void
try
nativeApplication.startAtLogin=true;
catch(e:Error)
trace('error =' + e.message.toString());
is there any need to call this function in init() of my app ?
right now i m not calling it in init()..js created a seperate function without calling it in any other function..any it launches the app whn i restart my pc.. -
I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
Anyone have an idea on other things to try to debug/resolve this?
Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
Thanks!After a week's worth of debugging, I found the issue.
The Java type returned from the call was defined as ArrayList. Changing it to List resolved the problem.
I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid. And, why it works in Debug mode and not in Release build is even stranger. Maybe someone can shed some light on the logic here to me. -
Running a Flex App using Coldfusion Flash Remoting Services gives me a blank SWF file but no errors
I cannot get flex to compile to display anything. even if its
just a single panel and some text. If I use the wizard and choose
"Basic" or whatever, I get a flex app. But i am using cfcs so I
selected "Coldfusion Flash Remoting Services" and when I select
run, the browser pops up with a nice big blank screen. No loading
progress bar, no errors, nothing.
I am running cf8 as a standalone (developers edition)
under project properites --> server
root folder: C:\ColdFusion8\wwwroot
root url
http://localhost:8500/
context: (blank)
I have messed with context and webroot.
I doesn't matter if I use a remoteObject or not. Nothing
happens
i through in a crossdomain.xml into the root to open it up,
just to be sure.
I am really stumped. I had this working fine on a previous pc
(running cf7)
any ideas anyone???I tried with some of the AS3 files from Adobe samples (http://www.adobe.com/devnet/actionscript/samples.html), for eg., the Drawing API. There are slider components in the flash app that don't show up either. Does that give anyone a clue as to what might be wrong? Thanks, Ramesh
-
Run out other tools directly from a Flex app
Hi all.
I develop a flex app and I want to integrate it with another tool.
More specifically, I would like to click a button at my interface, and automatic and transparently to the user, a file with name and address pre-defined be written at the HD (without to use the FileReference object) and after, that an interpreter automatically run this file.
I had saw this is possible with the AIR technology, but the web nature of my project doesn't allow me a platform change.
So, I woudl like to ask you if my demand could be accomplished using the flex technology.
Thanks in advance,
PériclesProbably not. Otherwise lots of great malware would be delivered via Flash.
-
Flex apps will not run in Browser after install
I am running IE 6 (Wintel) and have tried both installers for
the most recent Flash player -- activeX and the other standalone
one. I cannot view any Flex apps now in my browser - most notably
the derby examples. It seems to hang on a screen that has the title
"Flash Player Installation" -- like something in the apps is
sniffing for the player, not finding it, and then hanging on some
"automatic" install hook that has been built for Flex but not
completely implemented yet. That is my suspicion, but I just want
it to work -- do I need to uninstall/reboot/install again ? Any
tips would be greatly appreciated as I need to start a Flex 2
project next week. thanks.You definatately need to run the unistaller 1st. Also make
sure that all IE browser are closed, and that nothing that could
possibly be using IE functionality (things like outlook, file
manager etc...) are not running or the uninstall may well fail.
Once this is succefully accomplished, re-install. -
Adobe AIR Needed on Android / iOS to Run Adobe Flex Apps
Hi all,
I want to confirm if the user has to install Adobe AIR before launching Adobe Flex apps on Android and iOS Devices. Is there any way that we could embedd Adobe AIR setup in the app file so that the user dont have to hastle in installing Adobe AIR.
TaimurIt gives you only three options:
Signed packages for each target platform.
Signed AIR package for installation on desktop.
Intermediate AIRI package that must be signed later.
For mobile apps, we need to select the first option to get the .apk and .ipa file as the second option would generate .air file. None of the options offer to package AIR runtime. Only the first option gives you the option on NEXT window to include the download link of AIR Runtime.
If i am wrong, kindly point me to that specific checkbox.
OR do i have to put Runtime.apk in the assets folder of my source code so that it gets packaged? -
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 -
Deployment of Flex app to web and app server
Hi
I'm working on putting a Flex front-end on an existing J2EE
app which gets deployed as an ear file. The architecture consists
of web server, app server and database server. Is the following
approach to deployment possible / recommended?
My Flex app will be deployed to the web server. The J2EE ear
file will be deployed to the app server (Weblogic). BlazeDS will be
bundled within the ear file as a war file. Remote Objects will be
configured in my BlazeDS configuration files to enable me to access
the code in my J2EE app. In the compiler options of my Flex app,
I'll be setting the server root folder and server root URL to point
to the BlazeDS war file on my app server.
At present I'm at the stage where I can run my Flex app
directly from Flex builder on my development PC and it's able to
connect tto the J2EE app, which is running on the app server
(Weblogic) also on my development PC. I can't find documentation
explaining how to extend this to work on a multi-tier architecture.
Thanks
DavidHi,
I replied to your post in FDS forum. Please visit the URL
below for the response.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1373523
Hope this helps. -
Flex App with remoting works on local Apache server - fails on production server
Hi Everyone,
I have a Flex app that uses Data Services. The application works correctly on my local Mac Server and Apache. When uploaded to my production CentOS server, the Data Services fail. When the app is done loading, the following error message comes up:
Class "ModelsService" does not exist: Plugin by name 'ModelsService' was not found in the registry; used paths:
: /www/html/mdubb//PHP2/bin-debug/services/
#0 /var/www/html/mdubb/ZendFramework/library/Zend/Amf/Server.php(550): Zend_Amf_Server->_dispatch('getAllModels', Array, 'ModelsService')
#1 /var/www/html/mdubb/ZendFramework/library/Zend/Amf/Server.php(626): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#2 /var/www/html/mdubb/PHP2/bin-debug/gateway.php(73): Zend_Amf_Server->handle()
#3 {main}
Where getAllModels is a method of my custom ModelsService.
I changed the Zend path in the amf_config.ini file so it references the correct directory. If I browse to gateway.php, it prompts to download the file, which I think is correct.
I added in the config file the path to the services folder.
I tried adding $server->addClass("ModelServices") in gateway.php, but it didn't like that.
The file structure on the production server is the same as the local server (I litterally uploaded everything in my local web root), so I can't think of what would be differenet between the two.
I have already pulled one all nighter trying to get this to run. Do you know what I should troubleshoot next?
Thanks in advance,
RyanHi,
With reference to Lumira 1.15, the minimal SP we support is BI 4.0 SP6. Please upgrade at least to this. Everything is detailed in the PAM https://websmp107.sap-ag.de/~sapidb/011000358700001095842012E
Best regards,
Antoine -
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. -
Help needed with building Flex App without FlexBuilder
Hi Guys,
I was building my application on Struts framework with JSPs
as the front end. I just got a new requirement to try and build my
application's GUI with Flex (completely replacing JSPs). I cannot
use FlexBuilder as my company won't buy it. I've been trying to dig
through all articles and documentation to find out how to write
MXML files and compile them without a FlexBuilder. I have learnt
that I can write MXML files using plain notepad, but I am totally
lost when it comes to understanding how to compile my MXML files
with FlexBuilder. I know about the ant compiler and web compiler
but How do I use them? I want to use the web compiler but how can I
configure the Web Compiler to compile my MXML files when I run my
app? Can someone kindly help me out.
Thank You,
TNJYou can use mxmlc to compile your mxml files into swfs.
Google for mxmlc and there should be plenty information.
Maybe you are looking for
-
Number of RF Profiles on a 5508
I've searched the release notes for 7.2+, but I haven't found a documented number of how many active RF Profiles a 5508 can support. Has anyone run into a limitation of how many RF Profiles they can have?
-
Purchase order 6200018790 has no items
Dear SAP Professionals, I encounter the following problem when I do the Goods receipt from TAC MIGO. The purchase order is fine and have no issues. Kindly let me know what to check in the PO when we receive this error. Purchase order 6200018790 has n
-
Run procedure:=Top level procedure/function specified; cannot have subparts
I get this error when trying to run any procedure I've used ODT11 to make.. I literally right click the icon of the procedure in the server explorer tree and choose Run, and get the error. If I choose Run Debug, VS2008 hangs
-
Use a japanese iphone with a european sim card?
Hello, My question is: Is it possible to use an iphone purchased in Japan (with a japanese sim card) in Europe with a european Sim card. I know it has to be unlocked but that's not a problem. My concern is the Sim card. Thank you for your help.
-
iPhoto6 on iMac running SL - after a full reistall of Snow Leopard, iphoto does not display thumbnails. I've restored the library from time machine, rebuilt the library from iPhoto and run through the rebuild thumbnails function with no success. The