Embed a Flash Application into a Flex Application
Hello everybody,
I'd like to know if there is a way to embed a Flash
Application into a Flex Application. My goal is to wrap Flash apps
in Flex Modules, and I don't know how to do it.
I know it is possible to embed swf by using @Embed and an
mx:Image tag, or to use flash content by creating a flash swc
component. However these two solutions don't allow to call the
methods of the Flash app.
On the other hand, it is possible to load a swf file via the
Loader Class, and then call the methods via loader.content. But
with this solution I can't embed the swf in my flex application and
I have to load it at runtime.
Any ideas ?
Look into SWFLoader.
Be aware though, you can not directly access AS2/FP8/Flash8
swf's from within an AS2/FP9 app. Local connection is used in this
case.
There are dataType and timing issues with SWFLoader. Here is
a complete example:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=690
Tracy
Similar Messages
-
How to embed a Youtube video into a Flex application
Youtube provides an url and a section of html div code for embedded in html. But they do not work within Flex.
I may be able to use ExternalInterface to call a HTML iFrame that embed the URL. But any better ways?
Youtube uses Flash Player. Can we access the FLV file directly? Any suggestions?hi,
create loader(s) or use SWFLoader and use runtime loading to load different YouTube players into your Flash (flex based) movie:
http://code.google.com/apis/youtube/flash_api_reference.html
There are samples in TourDeFlex - but they are currently all but broken 404 (including standalone air applicaton version):
http://www.adobe.com/devnet/flex/tourdeflex.html
(see section "Could Api > YouTube" - maybe it will work soon),
regards,
Peter -
Can I convert a Lookout application into a labview application?
We here are seriously thinkig to migrate to Labview. There is a complex application done with Lookout 6.0 that we want to convert to a labview application. Having the proper Labview, is there a way of compiling it, open and save, or convert the Lookout application into a Laview application?
Excuse my ignorance in this matter.
Best regrads.
Rudy
Solved!
Go to Solution.Rudy,
First of all I hope you first question regarding lookout is solved. If so then mark my answer as solution.
For the next time, if you have other questions, which are not related to the one you started the thread of, then open a new thread!
And no, National Instruments don't has drivers for Non-NI Products, so LabVIEW has no driver for your motion card. Anyhow National Instruments has it's own Motion Hardware and Software (ni.com/motion).
And for LabVIEW and Linux just go to ni.com/linux, and you will find supported hardware/software and the linux derivates it works on.
Christian
Message Edited by Christian_M on 11-20-2009 01:28 AM -
How do you embed a Flash video into a Flash form
I am trying to embed a Flash video into a Flash form but the
form displays just fine however the video does not. I have tested
the Flash video with out the Flash form and works fine.Take a look at CF_PIM
loading
swf files in flash cfforms -
How to convert an existing db application into a clustered application
Hi,
I want to know how can i convert my application into a clustered application.
my current application there are 5 modules and thses modules have 5-10 tables in common.Since these modules work simultaeously the processing time gets increased drastically.Is it possible that to have seperate instances of these tables and every module works independently and oracle take care of the consistency.
I want to know if RAC could be the solution?user8731258 wrote:
Hi,
I want to know how can i convert my application into a clustered application.
my current application there are 5 modules and thses modules have 5-10 tables in common.Since these modules work simultaeously the processing time gets increased drastically.Is it possible that to have seperate instances of these tables and every module works independently and oracle take care of the consistency.
I want to know if RAC could be the solution?Sounds like an application design issue. I think you'd be best served tracing the applications and see where the overhead is being introduced when they do their process concurrently.
Throwing RAC at a poorly developed application would do nothing except amplify the poor design (it'll make things worse).
Cheers, -
Error while loading a swf created in flash cs4, inside a flex application
Hi there,
I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
<mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
When I execute the flex application, I get this runtime error message:
VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
at global$init()
at fl.motion::AnimatorFactory3D/getNewAnimator()
at fl.motion::AnimatorFactoryBase/addTargetInfo()
at logoRotar_fla::MainTimeline()
I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
Flash player 10,0,22,87 is running in my browser.
Please help me out....
Cheers!
DeepakGet Flex 3.3 and use -target-player=10
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
How can I display Flash Videos without any Flex application decoration
I develop a flv video player with Flex3 and have problems to
get rid of the application decoration (frame, border and the like)
that is part of a standard Flex application. My video player is
200px x 200px and I only wanna see what the video shows, so that
the Flex application allocates 200px x 200px.
It is not clear to me if this can be reached through special
tags resp. attributes or if I have to do something in the CSS
area.copy and compile this one taken from www.theflexteam.com with
a couple of extra things, is that it?:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" backgroundColor="#000000"
backgroundGradientColors="[#000000, #000000]">
<mx:Script>
<![CDATA[
private function playVideo():void
videoPod.play();
private function pauseVideo():void
videoPod.pause();
private function stopVideo():void
videoPod.stop();
]]>
</mx:Script>
<mx:VideoDisplay id="videoPod" source="
http://www.theflexteam.com/gfx/flvs/gorillaz_high.flv"
backgroundColor="#000000" backgroundAlpha="0"
shadowDistance="0" shadowDirection="center"
/>
<mx:ControlBar>
<mx:Button id="stopBtn" label="Stop"
click="stopVideo();"/>
<mx:Button id="playBtn" label="Play"
click="playVideo();"/>
<mx:Button id="pauseBtn" label="Pause"
click="pauseVideo();"/>
</mx:ControlBar>
</mx:Application>
/cujino -
Using an other web dynpro application into an actual application
Hello,
I have a web dynpro application into a developer component previously developed. I want to import it an another web dynpro application.
The goal is to click a button, display the window of the other application and then once it is finished, go back to the first application (with some context parameters)
Is it possible ?
Thanks
QuentinHi,
Solved same issue in this thread Re: Data transfer between two different Web Dynpro components
PradeeP -
Incorporate a C application into a Java application
Hi,there:
Now I have a C application.What i want to do is write a Java 3D application
and using the the output of the C program as the input of the Java program.
Can I use JNI to incorporate the C application into my Java program?
And how to do it?
Thanks
JianHave you looked at the JNI examples?
If so, what don't you understand? -
Merging Two JSF, ADF BC Web Applications into One web application
What would be the best way to take two JSF, ADF BC web applications written by two developers and merge them into one web application. Any place to start would be greatly appreciated. I'm using Oracle JDeveloper - 11.1.1.4.0
Edited by: Sunanda on Jul 26, 2011 4:13 AMTake a look at this thread:
Merging Two JSF, ADF BC Web Applications into One...
Although the thread is old, but it provides about the types of contents you would need to take into consideration while merging.
With the knowledge from the above thread, you could use refactor option in the JDeveloper menu to move the contents from one project to another.
Thanks,
Navaneeth -
Passing correct image-file path in flashVar from jsp into embedded Flex application
I have an application that embeds an image viewer, written in
Adobe Flex within a jsp page running in a J2EE application on
Tomcat 5.5. The Flex code is a one-line modification of the
application displayed at (
http://www.adobe.com/devnet/flex/samples/fig_panzoom/).
The image viewer is founded and loaded in the output to the
screen, but I cannot get the Image Viewer to display the image
correctly, even though I succeed when either I run the .swf from
the command-line or from an HTML page.
My webapp is called FRSApp. The directory structure is, under
FRSApp:
myTest.html
jsp/catalog.jsp
pan_zoom_files/images/map.jpg
The JSP code is thus,
code:
<%@ taglib prefix="mm" uri="FlexTagLib" %>
<mm:mxml
source="../pan_zoom_files/FIG_PanZoom_for_jsp.mxml" >
<mm:flashvar name="myVar"
value="/FRSApp/pan_zoom_files/images/map.jpg"/>
</mm:mxml>
the code within PanZoom.mxml is,
private var _imageURL:String =
Application.application.parameters.myVar;
<ns1:ImageViewer
id="imageViewer"
imageURL="{ _imageURL }"
bitmapScaleFactorMax="5"
bitmapScaleFactorMin=".05"
width="100%" height="100%"
x="0" y="0"/>
I have tried other paths to the image file, including
images/map.jpg [required by command-line execution of .swf]
pan_zoom_files/images/map.jpg [required by HTML page
(myTest.html) that embeds the .swf file]
I have succeeded in loading image viewer embedded in the jsp
page when the image path is hard-coded in the mxml file, by means
of the following code:
<div id="swf-id" class="swfcontent"><embed
type="application/x-shockwave-flash"
src="../pan_zoom_files/FIG_PanZoom_for_jsp.swf" id="swf-id"
name="swf-id" bgcolor="#ffffff" quality="high" wmode="opaque"
height="480" width="772"></div>
<script type="text/javascript">
// <![CDATA[
var props = new Object();
props.swf = "../pan_zoom_files/FIG_PanZoom_for_jsp.swf";
props.id = "swf-id";
props.w = "772";
props.h = "480";
props.ver = "9";
props.wmode= "opaque";
var swfo = new SWFObject( props );
registerSWFObject( swfo, "swf-id" );
// ]]>
</script>
The error is either a "failed to load image" generated by the
Image Viewer code, or a Flex system error message, resembling a
null-pointer exception:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at FIG_PanZoom_for_jsp()
at _FIG_PanZoom_for_jsp_mx_managers_SystemManager/create()
at mx.managers::SystemManager/initializeTopLevelWindow()
at mx.managers::SystemManager/docFrameHandler()
Any ideas are greatly appreciated!!Solved the problem. I had made several mistakes. One of them
was to pass in the J2EE context path when what was needed was the
fully qualified image url:
http://localhost/FRSApp/pan_zoom_files/images/earth-map_small.jpg.
The second mistake was to assume the flashvar variable could be
picked up by initializing Action Script in the the mxml file,
designated by <mx:script> tags. No, the flash variable will
only be visible within the <mx:Application>
</mx:Application> tags. -
Using flash debugger player with Flex application
I am building my first Flex app and have run into a problem that I can't figure out. When publishing a .swf in Flash I sometimes run the debugger to generate the swf. When I do so, I can view the swf through my browser (using the debugger version of flash player) and the exceptions that are thrown include a stack trace (complete with line numbers) of any error that occurred. I have tried running the debug compiled version of my swf from Flex and it does not show the line numbers.
Is there some way to do this? I have several thousand lines and the location of the error is tough to figure out becuase it is an instance where I am casting an event to the wrong type through my typed params for a function. So, for example, I am dispatching a MouseEvent but the listener function has a typed parameter of Event instead.
Can someone please point me in the right direction?
Thanks.Thanks for the feedback. Our debugger documentation definitely needs to be refreshed. The PPAPI debugger on Chrome is even more complex. I blocked some time out on my calendar for Friday to try and get these revised.
-
Issues in running a flash app inside a flex application
I am trying to load and run an AS3 SWF inside my Flex app. I am using SWFLoader component. This SWF file is an animation which has several clickable buttons, drag and drop of items inside the swf and some text boxes. Can some one please help me in identifying how to do this in Flex? I am able to load the swf, but when I try to drag one of the items and put it in another spot within the swf stage, it does not work an dthe buttons do not appear to be working. Do I have to know the functions within the AS3 SWF? Any help is appreciated. Thanks, Ramesh
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
-
Please help me to embed the Flash control in a Windows application (using Visual Studio)
How to create and control Datagrid Using XML in Flash 8.0?
Is it possible to create the dynamic row/columns in flash
using XML?
How can I insert the picutes and text fileds in flash
datagrid usig XML?
Please provide me articles or examples (.fla) related to my
queries.Hi,
Here is step-by-step guidance on installing and running an Oracle 9i database on Windows:
http://download-east.oracle.com/docs/html/A95493_01/toc.htm
HTH,
Jim -
How to embed a flash video into a logo?
Hello,
I'm new to flash and dreamweaver and I'm slowly trying to learn it. I have created a a flash logo for my website (http://www.emorgenstern.com) and I'm trying to extend the background color to cover the rest of top.
In dreamweaver I have put the embedded flash video in a div class and modified the class to extend the entire length with the proper background color. In dreamweaver everything looks right but when I upload the actual .html and .css file it does not appear right. The actual testing link is http://emorgenstern.com/emorgen/emorgen/index.html
Below is the code for those sections.
Here is the .html file
<div class= "banner">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60" title="banner">
<param name="movie" value="../banner.swf" />
<param name="quality" value="high" /><param name="LOOP" value="false" />
<embed src="../banner.swf" width="468" height="60" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object>
</div>
Here is the .css file
div.banner {
margin:50px 0px 10px 0px;
padding:17px 0px 0px 20px;
border-style:solid;
border-color:black;
border-width:1px 0px;
line-height:11px;
background-color:#eee;
width:100%;
Any help is greatly appreciated! Thank you in advance.
-EricYour code is kind of messy. Use the validation tools below and fix reported errors.
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
HTML & CSS Tutorials - http://w3schools.com/
Where did you get the CSS style sheet you're using? It looks like an experiment, and not a real world CSS. You might be better off using one of the the pre-built CSS layouts that ships with DW CS4.
Anyway, to answer you question. In your HTML, move your flash code between this:
<div id="Header">
and this
</div>
In your CSS, change all this:
/*#Header {
margin:50px 0px 10px 0px;
padding:17px 0px 0px 20px;
height:33px;
border-style:solid;
border-color:black;
border-width:1px 0px;
line-height:11px;
background-color:#eee;
voice-family: "\"}\"";
voice-family:inherit;
height:14px;
body>#Header {height:14px;}
to this:
#Header {
width: 100%;
background-color:#eee;
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com
Maybe you are looking for
-
Any news on Firewire/DV output with MPE on?
I understand this issue - not being able to preview over a firewire stream while MPE is on - has been reported, perhaps going back over a year. Is there any fix, other than turning off the MPE?
-
I updated my iPad mini to the ios7, now there's a music iTunes pic with a charger under it, it's already plugged in but nothing is happening. What do I do? Please help!
-
My Adobe photo shop will not open
All files,without prompting, come up missing. Now adobe will not open because of missing files directs me to re install but I cannot do that it appears without buying back in. We just erased the version once and downloaded again prompted by your te
-
COPA - SD - Rebates accrual & Credit memo
We have rebates accrual posting from SD- Dr. Rebate A/c (PL) 1000 - this would also been in COPA Cr. Rebate accrual (BS) 1000 Now you settle the rebate(credit memo) - say you decide to settle for 1200 At this point the system will do the following en
-
Pending line item data in sales order
Dear all, I get the pending sales order from VBUK but how i get the pending item details for that particular sales order. In VBAP all line items are displayed but i want only pending line items. Please help me if u know the answer. Thnks Puneet