Flex and Flash

Topic double submitted!

This code does the trick...
But, is it the easiest way?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:local="*" width="100%" height="100%"
creationComplete="init();" resize="keepProportions();" >
<mx:Script>
<![CDATA[
public static const FLASH_PROPORTIONS:Number = 475/750;
public var done:Boolean = false;
public function init() : void
done = true;
keepProportions();
public function keepProportions(): void
var height:int;
var width:int;
if ( done )
height = Application.application.height;
width = Application.application.width;
resizeFlash.width = width;
resizeFlash.height = FLASH_PROPORTIONS * width;
trace("Resize");
trace("width: " + resizeFlash.width );
trace("height: " + resizeFlash.height );
]]>
</mx:Script>
<local:ResizeFlash verticalCenter="0"
horizontalCenter="0" id="resizeFlash" />
<mx:Button label="bt1"/>
</mx:Application>

Similar Messages

  • Scenario of such a Application where  Flex and Flash combination is used

    Hi ,
    I am seeing this a lot in Job portals where the companys are asking for the combination of Flash and Flex . 
    Can anybody please let me know where exactly a combination of such would be required generally .(Means i need a scenario of such a Application where in Flex is used with Flash ) 
    Please help , thanks in advance .

    Hi Kiran,
              Basically flex is invented for developing rich internet applications and adobe introduced flash concepts in flex and flex will run on flashplayer.. so indirectly u are working on flash environment... any u are asking for the perticular scenario...
                           Take one example i.e u have an application that is displaying several photos slide by slide in ur website. (  with some animations and other effects that are not available in flex).. at that time u can go for flash developing.. u need to develop that in flash and import that into ur flex application
                      visit ur Tour the flex web and there in flex4 we have some realtime scenarios where adobe already developed a dashbord to display the world map and the density of adobe site users.. they are using ibm ilogix for dashbord..they developed this components in flash and they have used that component in flex ...we dont have some animations that are available in flash and also u can develop some components in flash and import them into ur flex application as swc format.and u can use them in ur application
                      i think u got my point... for this u want have glance please go through the link below
                   http://www.adobe.com/devnet/flex/tourdeflex/web/
                there u have some dash board applications developed in flex and flash.. check it out ..

  • Flex and Flash LocalConnection

    Im currently working on an interface that is flex based and
    has a flash menu. Im not sure if LocalConnection is the best way to
    communicate through the two... but thats what I used.
    Currently the user clicks a menu button and LocalConnection
    sends a string to the flex.. the flex loads a .swf based on that
    string. My problem is I want the user to be able to have multiple
    windows open, when the user opens more then one window theres a
    error stating the connection is already open. It also displays any
    menu clicks done in the second window into the first window.
    Example: You press the contact us button in the second window... it
    goes to the contact us page... in the first window.
    Does anyone know is there any way around this?
    Thanks in advance

    Adobe released Flex 4.0 (code named Gumbo) and  Flex 4 development environment is called Adobe Flash Builder, formerly known as Adobe Flex Builder.
    so don't confuse in flex builder and flash builder..they are just different versions of the same thing.
    You can read more about it in http://en.wikipedia.org/wiki/Adobe_Flex .
    and of course you can create a flex application on flash builder.
    Hope it helps...

  • Q about Flex and Flash video

    Hi -
    Looking for advice from more experienced Flex users here.
    I am completely new to Flex, and am curious if its the right
    tool for something I'd like to accomplish. Any feedback is welcome.
    The goal is to create a video template page and we want the
    ability to pass sources to this template. Basically, we do a lot of
    online training, and want to have one page where any video can
    play, regardless of how many videos could be linked to it. We were
    wondering if Flex might provide a sleek way of accomplishing that.
    I have downloaded the source for a Flex video player (
    http://www.fxcomponents.com/flex-video-player/)
    and was hoping to use this or something similar to implement. Is
    Flex a good tool for what we are trying to achieve?

    Sure. You could have any number of links to videos that when
    clicked open the video in the video viewer.

  • Help with regard to flex and flash

    Hi
    I am a newbie to GUI developement... I would like to create a GUI for my application which is in C for an android platform. I did get a few suggestions which says Adobe Flex is suitable for doing the same. But I am still not clear as to what would be the best tool I can pick on for doing the same. Will flash serve the purpose as well ? I need  a GUI with good animation and look and feel.
    Thank you !
    Reshma

    You can have an inner class. If you have problems using more than one class you are severly limiting yourself.
    Are you using JDK 1.4.2 or 1.5
    Try this code, you only need one java file.
    import java.util.ArrayList;
    import java.util.List;
    public class SimpleExample {
        public static void main(String[] args) {
            List list = new ArrayList(100);
            for (int n = 0; n < 100; n++) {
                list.add(new Data(n, n * n, n * n * n));
            // add 1 to j and k.
            for (int n = 0; n < 100; n++) {
                Data data = (Data) list.get(n);
                data.j++;
                data.k++;
            // print out all values.
            for (int n = 0; n < 100; n++) {
                System.out.println(n + ": " + list.get(n));
        public static class Data {
            int i, j, k;
            public Data(int i, int j, int k) {
                this.i = i;
                this.j = j;
                this.k = k;
            public Data(String text) {
                String[] nums = text.split(",");
                i = Integer.parseInt(nums[0]);
                j = Integer.parseInt(nums[1]);
                k = Integer.parseInt(nums[2]);
            public String toString() {
                return i + "," + j + "," + k;
    }

  • Im confused about Flex and Flash?

    flex uses Actionscript to develop internet application.
    Flash also uses Actionscript to do that. now why i should use
    Flex if both using the same language.
    is it because Flex has more class libraries ?
    when a company or someone asks me why we need to use Flex
    instead of Flash , what is the answer for that ?
    thanks

    IMHO I would say:
    Flex is programmers approach to develop apps while
    Flash is designers approach .
    I cant stand programing and dealing with timeline at the
    same time so for me Flex is the way to go.

  • Adobe Flex and Flash Builder

    Hi,
    i program a keyboard with flash builder , i need to make it as On-Screen Keyboard of operating system ,, i can't found function that allaw me to write on another window (as Run Command or text document)  if there is a function do that for active Window
    Thanx

    That's so cool.
    Thanks Randy.

  • Flex and Flash Builder Beta Feedback Survey

    Hey guys,
    Please take 15 minutes to give feedback on the beta releases here. Your input is greatly appreciated. Please also pass this along to other individuals who might be using the betas.
    Kind regards,
    Vera

    Hi Glenn,
    I updated the link yesterday afternoon, but for some folks it seems to still be going to the old survey. I'll put a redirect on the old survey, but please try going to the survey here.
    Vera

  • Flash, Flex, and the iPad

    While there is no shortage of iPad/Flash discussions on the Adobe and Apple forums, after searching for a couple hours now I have been unable to find the answers to my specific question.  So please forgive me if I missed it somewhere.
    As I understand it, Apple does not support Flash for the mobile and iPad devices.  This is reiterated in a number of Apple forum postings that I just read, as well as Steve Jobs' rant here:
    http://www.apple.com/hotnews/thoughts-on-flash/
    However, I came across this Adobe press release from less than a year ago:
    http://blogs.adobe.com/ukchannelnews/2011/06/20/announcement-mobile-applications-for-andro id-blackberry-iphone-and-ipad/
    Apparently this Flex thing allows me to develop cross-platform mobile applications.  So I do some research on Flex, trying to figure out the difference between Flex and Flash.  I come across Adobe's FAQ here:
    http://www.adobe.com/products/flex/faq.html#flex-flash
    It's not real clear to me, but it sounds like what they are saying is that Flex is simply a programmatic framework around which I can build Flash applications, especially helpful for those more familiar with traditional programming.  If this is the case, based on Adobe's press release above, it sounds like I should be able to use Flash on the iPad via Flex?  What am I missing?  Is there other differences between Flex and Flash?  Or perhaps is it the difference between an application and browser support (like Apple's Safari)?
    Thanks in advance for your patience, and your help.
    3P

    It's easy Pea...
    Flash is a plugin. It runs from withing the browser IE, Firefox, Safari, Opera, etc... It also can be run standalone, via special exe program on Windows platform.
    Although this is less common. Here are all the Flash versions: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
    AIR is a cross platform runtime, kind of like Java (build once run everywhere). But with AIR it's a bit more tricky. You have to compile your program to each target platform (Desktop, Andriod, BlackBerry, iOS) separately. It's not like with Java where you can indeed run your jar file on lot of platforms. AIR is essentially Flash "on steroids" as it mostly has the same API as Flash and builds on top of it. But AIR not in the pluging form, i.e. you don't need a web browser to run it from.
    Here are the latest AIR runtime: http://get.adobe.com/air/
    and SDK: http://www.adobe.com/devnet/air/air-sdk-download.html
    You will need AIR SDK to build AIR applications and it has to be overlayed on top of Flex SDK which you can find here:
    Flex SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.6
    Now Flex SDK is essentially a component framework. You will need a button in your application, or a Video component, right? So that is what Flex provides for you free of charge.
    Obviously this sound simple but Flex is much more then that and here is your
    Flex documentation: http://www.adobe.com/devnet/flex/documentation.html
    So, Flex is a component framework which lets you build applications which target either Flash or AIR as executable runtime. For Flash it is called Web application and it runs from withing browser or standalone Flash player. For AIR it is called Desktop or Mobile project and it runs from withing AIR runtime which has to be installed on your device or bundled with your application.
    Now, speaking of Steve rants, yes, they wanted to kill Flash on their platform, there was even a guy there who was responsible for that result (I forgot his name but you can google), although Adobe never admited that and played it nice with Apple. Why they wanted to kill most expressive and complete vector and video engine on the web (Flash)? It's simple! This is beacase they wanted to play on their nice and cozy iOS/iPad/iPod playground alone! Because they want to control the delivery of the content from publisher to consumer. they want to stick their proprietory products and specifications in between and skim the money! That is why they don't need Flash in the browser. Flash allows people to publish and consume an impressive content without charging a dime! That includes H264 video among other things. And that is what Apple doesn't want to see.
    Good luck with Flex and everything else,
    SdS

  • Multi-module Maven and Flash Builder 4

    Sorry for cross-posting this, but I responded to:
    http://forums.adobe.com/message/3235768#3235768
    which was posted in the Flex forum, and this is more about Flash Builder. The issue is that content assist doesn't work with a multi-module maven project containing a Flex Project module. So here is my response to the above. Hopefully someone will see it here:
    <quote>
    I'm having the EXACT same problem reported by you as well as here:
    http://forums.adobe.com/message/2580402#2580402
    Steps to reproduce:
    1) Install Adobe Flash Builder 4 Standalone (I initially tried with Spring Toolsuite 2.5.0, but thought I should try with the standalone version from Adobe).
    2) Open FB4 and create a brand new workspace
    2) Add Eclipse Galileo and M2Eclipse as update sites
    3) Install m2eclipse
    4) From the command line, create a basic maven project via 'mvn archetype:create'.
    5) Remove the src folder and change packaging type to pom
    6) In FB4, import the new maven project
    7) Create a new Flex Project via File -> New -> Flex Project. Change the location so that it's in a folder under your newly created maven project
    8) Open Main.mxml -- notice that the generated file has syntax errors in it (another issue). Fix those errors and attempt the Content Assist -- no dice
    Notice that this is a vanilla FB4 standalone install. The only thing I added was the M2Eclipse plugin. Also, I am NOT using flexmojos, nor have I added a <modules/> section to the parent pom yet. As far as FB is concerned, the new flex project is just in a folder underneath another in it's workspace. Also note that this is a brand new workspace -- so a corrupted workspace shouldn't be an issue (as was apparent in the beta).
    This has been driving me nuts. We need this functionality. We have a multimodule maven project and really want to use Flex and Flash Builder. We're still in the eval period for FB, but may have to forgo buying FB and instead go with FlashDevelop, even though it's not as powerful.
    Justin
    </quote>

    Hi guy,
    its actually quite simple.
    The  "Root Folder"  "Root URL" "Context Root" define your server directory and its url.
    as the root folder you put in
    <your blazeds install dir>/tomcat/webapps/<your project dir> // you take the blazeds.war file and copy it , rename it and voila your app dir is ready
    so it should read something like : c:\blazeds\tomcat\webapps\my_project --> this then has a WEB-INF/flex directory in it. Thats why you have that error of yours  --> Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    the root url is something like
    http://localhost:8400/<your context root> --> is usually your project name in lower case
    the context root is your project name, the same name as your copied blazeds.war file
    <my_project_name> --> thats what you insert to access your app in a webbrowser
    Hope that helped a bit
    I am just getting started myself, so i hope i didnt make any mistake, if so I would also be happy if anybody you knows better corrects me    
    Have fun and good luck
    einrocker

  • Flex or Flash for Live aud/vid webcam?

    Hello,
    I am new to Flex and Flash.
    I want an application where clients should be able to do a
    peer to peer web cam.
    I would like to ask that Flex 3 is good to make P2P Live
    audio/Video Webcam or should it will be easy in Flash.
    Also will i need to use Any Server (FMS) or not as it will be
    a peer to peer application.
    What is required to be installed on Server.
    Also on Client side only Flash Player is sufficient to Play
    or there is something else also needed to be installed.
    Please tell me if you know a good tutorial and help material.
    Regards,
    Saad

    Hi,
    If you must make application more flexible for you,
    you must get Flex. it's an ide.
    If you want to custom componant or animation you must take
    flash.
    Olivier
    Stu@Seashores a écrit :
    > Hi, could someone please help me make a decision with
    which architecture to use
    > to build a flash application?
    > I want a flash front end, i dont care about users who
    dont have a flash
    > player; this is for a commercial enterprise for a
    specific user base. My
    > application is for property, the management and
    maintenance of, so the property
    > is the main object and all data relating to its
    financial budgets, leaseholders
    > who live in the block, maintenance records, health and
    safety and cleaning
    > records; etc. The users all need to be directed by and
    communicate through this
    > central organisation and management tool.
    >
    > I can use Flash pretty well but have never used flash
    remoting or ever learned
    > to connect flash to database query results.
    >
    > So do i build using the Flex 2, Adobe Air, or Flash
    Remoting MX
    > I have been learning Coldfusion and have a back end
    being developed as we
    > speak in fusebox methodology and microsoft sql database.
    >
    >
    >
    >

  • How do I import SWC files created with Flex info Flash CS4?

    I've created very nice UI component using Flex 3 and I have exported it into a SWC file.
    How can I import it into Flash CS4 to use it there?

    Hmm... if you happen to be familiar with C#, then you may probably know about the problem of P/Invoke (this is a command that lets you access Windows API through C# code, which will apparently prevent it from functioning on other OSs).
    What happens with Flex framework is somewhat similar to this. I.e. it relies to much on the features of Flex compiler and the components of the framework create a lot of cross-dependencies, which makes them barely usable outside the framework.
    So, if you have time and doing this just as a matter of learning, I'd suggest you start an AS project in Flex builder and advance with it compiling it both with Flex and Flash to see if there are any differences (basically, once you see it doesn't compile / doesn't behave as you'd expect in Flash, you'll know you used something that is specific to Flex). These would be mostly meta tags, like [Bindable] for example.
    And, if you need any tutorials on how to code in pure AS, then, well, there are really to many So that you can even choose what's appropriate / goes better with your learning habits.
    If you like video lessons, there're tons of them at gotoandlearn.com, if you prefer reading documentation, here you go: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/class-summary.html
    if you prefer forums / written tuts, then, kirupa.com, actionscript.org, flashkit.com as well as Adobe forums will provide you with a lot of information.

  • Open source debugger for Flash, Flex and AIR

    As developers at De Monsters we weren’t totally happy
    with the current Flash, Flex or AIR debuggers out there. So we
    decided to create our own debugger called De MonsterDebugger. Today
    we’ve got a great new version that we want to share with the
    community for free.
    Interface
    screenshot
    De MonsterDebugger started out as an internal tool that
    helped us with the development of different ActionScript 3
    projects. The past several months we’ve been working on a new
    version of this internal tool. With this new version you can
    explore your live application, adjust properties and run methods
    all at runtime. You can trace objects of any type (String, Array,
    XML or even custom classes) to De MonsterDebugger and it will show
    the complete structure of that object in an easy-to-read tree
    structure. De MonsterDebugger is made with Adobe Flex and brought
    to the desktop with Adobe AIR.
    Because De MonsterDebugger isn’t our core business
    we’re giving it away for free! All the sourcecode is open
    source available under the GNU General Public license.
    Enough talking!
    Here’s all the information you need:
    http://www.demonsterdebugger.com
    Ferdi Koomen,
    Lead Developer @ De Monsters

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Flash Builder 4.0 Standalone VS Plugin for Flex and Java Development

    Hello,
    I have recently installed Flash Builder 4.0 for a personal project. The server side of the project was going to be developed in ASP.NET but at the last minute I decided to change it to Java. However now I am wondering if it would be better to uninstall and install Eclipse with the Flash Builder 4.0 plugin.
    I am not really asking which one is better, I guess both are pretty much the same (though I wonder what features are not included in the Eclipse plugin), however I want to know which one would let me create an easier workflow model for the development now that I am going to use Java as well.
    I am open to other suggestions as well.
    Thanks,
    Jorge

    Hey guys, I'm brand new to this as well and you probably don't need an answer now but I found this anyway:
    Flex Builder and Flash Builder both function as Plug-ins to Eclipse, though each also comes in a "stand-alone" flavor - which is still eclipse, but with a lot of the Eclipse functionality torn out for a smaller footprint.
    http://stackoverflow.com/questions/1761919/flex-php-flash-builder-4-vs-eclipse
    All the best!

  • [svn:fx-trunk] 5811: Adding a Flex Builder Flash-Integration and Utilities project to make these files easier for people to work on .

    Revision: 5811
    Author: [email protected]
    Date: 2009-03-31 11:20:19 -0700 (Tue, 31 Mar 2009)
    Log Message:
    Adding a Flex Builder Flash-Integration and Utilities project to make these files easier for people to work on. Flash-Integration is really an intermediate swc that Utilities uses. I've also modified the existing Flex Builder project for flex4tests to build against this new utilities project directly.
    Also change the way FlashIntegration is built--we no longer have a manifest file and just include-classes FlashIntegrationClasses.as.
    QE Notes: -
    Doc Notes: -
    Bugs: -
    Reviewer: Evtim
    tests: -
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    Added Paths:
    flex/sdk/trunk/development/eclipse/flex/flash-integration/
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.project
    flex/sdk/trunk/development/eclipse/flex/utilities/
    flex/sdk/trunk/development/eclipse/flex/utilities/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/utilities/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/utilities/.project
    flex/sdk/trunk/frameworks/projects/flash-integration/src/FlashIntegrationClasses.as
    Removed Paths:
    flex/sdk/trunk/frameworks/projects/flash-integration/manifest.xml

    Thats good news.

Maybe you are looking for

  • Cannot play videos received from emails or dvds

    I downloaded the most recent version of Quick Time player, but I still can't seem to watch many videos. If someone sends me something by email, I usually cannot open it on my iMac. I have to go to my wife's PC to open and watch it. The same thing app

  • Creating iFS User

    Hi, I have dropped user in iFS from WEBUI. When I try to recreate the user it says "There is alread an account for user..... Click yes to reset the password". When I click Yes ..it gives me error message IFS-10154:Unable to create User, IFS-10172: Di

  • I want to add a SSD to a 13" MacBook.

    Hi there! I want to add a SSD to a 13" MacBook Pro I'm going to be purchasing soon. Although I don't no whether its worth getting an Apple SSD or installing my own and using the HDD as an external hard drive. Costs and labor included, whats the best

  • Customizing F-keys in photoshop 7

    I have been able in previous versions of photoshop to customize F-keys so that I could make crops, change dimensions, etc. much faster. I cannot find a way to do it in photoshop 7 nor was I able to find anything about it either in photoshop help, or

  • Ibooks and itunes store won't open on my ipod after ios7

    So after I downloaded io7, itunes store won't open, nor will the ibooks.  Any suggestions?