MVC pattern in flash builder

I am trying to figure out the MVC patter in flash builder. I understand we can seperate view and controller by building custom components as view and populate them in the controller file. However, I don't know how to apply the Model login in flash builder. Do i create a Model folder and file and using that file to receive data?
For example:
Main controller:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                 xmlns:mx="library://ns.adobe.com/flex/mx"
                                 minWidth="955" minHeight="600"
                                 xmlns:components="components.*">
          <fx:Declarations>
                    <!-- Place non-visual elements (e.g., services, value objects) here -->
                    <s:HTTPService url="test.come" id="testData" result="testData_resultHandler(event)"/>  //Data here
          </fx:Declarations>
          <fx:Script>
                    <![CDATA[
                              import mx.collections.ArrayCollection;
                              import mx.rpc.events.ResultEvent;
                              public var testData:ArrayCollection;
                              protected function testData_resultHandler(event:ResultEvent):void
                                        testData=event.result.something...   //How to seperate the Data with the main controller?????
                    ]]>
          </fx:Script>
//view
          <components:videoList />
     <components:videoList2 />
     <components:videoList3 />
</s:Application>
I appreciate any replies. Thanks a lot.

The usual pattern in flex is to have an mxml component 'the view', an actionscript class (the controller), and some additional actionscript classes that represent the data objects (the model). Your 'main' application class is responsible for creating a new instance of the controller, usually as response to the creationComplete event. The controller then initiallizes/retrieves the 'Model' objects and passes them back to the view which binds them to the appropriate fields. So at the bare minimum for an MVC project your are going to have Main.mxml, MainController.as, and Model.as.
This is not the most elegant solution since it tends to create tight coupling between the controller and the view. If you want to use the MVC pattern on any project that involves more than 3 or 4 simple views you will probably want to look into a custom MVC framework like Cairingorm or the Tide framework from GraniteDS. Make sure you have a solid understanding of the basics first though. 

Similar Messages

  • Flash builder 4 + blazeDS 4.0.0.14931 remoteObject over SSL, spring-blazeds 1.5.0

    I am trying to use remoteObject over amfsecure channel running on https  with no authentications.  On flash client side, I am using Flash Builder  4 with Flex SDK 4.1. After imported the self-signed certificates into  cacerts in Flash Builder install, I could configure  Window/Preferences/Adobe/RDS Configuration to point to the web app  running on SSL and test connection was successful. When hit on https://mymachine/myApp/messagebroker/amfsecure in browser, my app log file indicated that a request was received.
    But  when trying to connect my flash project data/services through BlazeDS, I  got RDS 404 error with reason as Not Found. Flex server is set to https://mymachine/myApp and context root is /myApp.
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app> 
      <!-- Spring security -->
      <filter>
          <filter-name>springSecurityFilterChain</filter-name>
          <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      </filter>
      <filter-mapping>
          <filter-name>springSecurityFilterChain</filter-name>
          <url-pattern>/*</url-pattern>
      </filter-mapping>
      <!-- Spring configuration -->
      <context-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>
              /WEB-INF/spring/*-config.xml
          </param-value>
      </context-param>
      <listener>
           <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener> 
      <servlet>
             <servlet-name>myApp</servlet-name>
             <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
             <servlet-name>myApp</servlet-name>
             <url-pattern>/messagebroker/*</url-pattern>
      </servlet-mapping>
      <servlet>
             <servlet-name>spring-mvc</servlet-name>
             <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
      </servlet>     
      <servlet-mapping>
             <servlet-name>spring-mvc</servlet-name>
             <url-pattern>/spring/*</url-pattern>
      </servlet-mapping>
      <servlet>
          <servlet-name>RDSDispatchServlet</servlet-name>
          <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
           <init-param>
               <param-name>useAppserverSecurity</param-name>
               <param-value>false</param-value>
           </init-param>
           <init-param>
               <param-name>messageBrokerId</param-name>
               <param-value>_messageBroker</param-value>
           </init-param>
           <load-on-startup>10</load-on-startup>
      </servlet>
      <servlet-mapping id="RDS_DISPATCH_MAPPING">
          <servlet-name>RDSDispatchServlet</servlet-name>
          <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    flex/services-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <default-channels>
               <channel ref="my-secure-amf"/>
            </default-channels>
            <service-include file-path="remoting-config.xml" />
        </services>
        <channels>
            <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
            </channel-definition>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://{server.name}:443/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                     <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>4</polling-interval-seconds>
                </properties>
            </channel-definition>
            <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
            </channel-definition>
            <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
                <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
                <properties>
                     <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Debug">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <security>
             <security-constraint id="trusted">
                <roles>
                    <role>ROLE_ANONYMOUS</role>
                    <role>ROLE_USER</role>
                    <role>ROLE_ADMIN</role>
                </roles>
            </security-constraint>
        </security>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    flex/remoting-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
        class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
        </adapters>
        <default-channels>
            <channel ref="my-secure-amf"/>
        </default-channels>
    </service>
    Please help! I don't seem to find any working samples for RDS SSL configuration. If there is one, would you please point me to the link?
    Thanks in advance!

    Hi Experts,
    Can you confirm if RDS supports SSL at all in FB 4? If not, any plan to do so?
    Thanks

  • What is your strategy for form validation when using MVC pattern?

    This is more of a general discussion topic and will not necessarily have a correct answer. I'm using some of the Flex validator components in order to do form validation, but it seems I'm always coming back to the same issue, which is that in the world of Flex, validation needs to be put in the view components since in order to show error messages you need to set the source property of the validator to an instance of a view component. This again in my case seems to lead to me duplicating the code for setting up my Validators into several views. But, in terms of the MVC pattern, I always thought that data validation should happen in the model, since whether or not a piece of data is valid might be depending on business rules, which again should be stored in the model. Also, this way you'd only need to write the validation rules once for all fields that contain the same type of information in your application.
    So my question is, what strategies do you use when validating data and using an MVC framework? Do you create all the validators in the views and just duplicate the validator if the exact same rules are needed in some other view, or do you store the validators in the model and somehow reference them from the views, changing the source properties as needed? Or do you use some completely different strategy for validating forms and showing error messages to the user?

    Thanks for your answer, JoshBeall. Just to clarify, you would basically create a subclass of e.g. TextInput and add the validation rules to that? Then you'd use your subclass when you need a textinput with validation?
    Anyway, I ended up building sort of my own validation framework. Because the other issue I had with the standard validation was that it relies on inheritance instead of composition. Say I needed a TextInput to both check that it doesn't contain an empty string or just space characters, is between 4 and 100 characters long, and follows a certain pattern (e.g. allows only alphanumerical characters). With the Flex built in validators I would have to create a subclass or my own validator in order to meet all the requirements and if at some point I need another configuration (say just a length and pattern restriction) I would have to create another subclass which duplicates most of the rules, or I would have to build a lot of flags and conditional statements into that one subclass. With the framework I created I can just string together different rules using composition, and the filter classes themselves can be kept very simple since they only need to handle a single condition (check the string length for instance). E.g. below is the rule for my username:
    library["user_name"] = new EmptyStringFilter( new StringLengthFilter(4,255, new RegExpFilter(/^[a-z0-9\-@\._]+$/i) ) );
    <code>library</code> is a Dictionary that contains all my validation rules, and which resides in the model in a ValidationManager class. The framework calls a method <code>validate</code> on the stored filter references which goes through all the filters, the first filter to fail returns an error message and the validation fails:
    (library["user_name"] as IValidationFilter).validate("testuser");
    I only need to setup the rule once for each property I want to validate, regardless where in the app the validation needs to happen. The biggest plus of course that I can be sure the same rules are applied every time I need to validate e.g. a username.
    The second part of the framework basically relies on Chris Callendar's great ErrorTipManager class and a custom subclass of spark.components.Panel (in my case it seemed like the reasonable place to put the code needed, although perhaps extending Form would be even better). ErrorTipManager allows you to force open a error tooltip on a target component easily. The subclass I've created basically allows me to just extend the class whenever I need a form and pass in an array of inputs that I want to validate in the creationComplete handler:
    validatableInputs = [{source:productName, validateAs:"product_name"},
                         {source:unitWeight, validateAs:"unit_weight", dataField:"value"},
                   {source:unitsPerBox, validateAs:"units_per_box", dataField:"value"},
                        {source:producer, validateAs:"producer"}];
    The final step is to add a focusOut handler on the inputs that I want to validate if I want the validation to happen right away. The handler just calls a validateForm method, which in turn iterates through each of the inputs in the validatableInputs array, passing a reference of the input to a suitable validation rule in the model (a reference to the model has been injected into the view for this).
    Having written this down I could probably improve the View side of things a bit, remove the dependency on the Panel component and make the API easier (have the framework wire up more of the boilerplate like adding listeners etc). But for now the code does what it needs to.

  • Are Flash Builder 4 data services production grade, or demo grade?

    I've experimented a bit with the data services feature that Flash builder 4 beta 2 offers. Frankly they seem to be just about what I was waiting for. We build a lot of data centric applications and anything that reduces the amount of code required to wire things up is great. I do have some questions re the data services as implmented in beta 2, and forward. Note I've almost no hands on with Flex, any version, at this point.
    With Flex Builder 3, there was a crud wizard. From what I read the code it generated was not considered production grade. I hope that the data services feature shown with beta 2 would be considered robust enough to use in production? I am sure that there are many different ways of handling data services in general with Flex, so I am not asking if it's the best approach or makes any other approach redundant. I just mean, could the tooling around the data services feature of flash builder 4 remain a viable approach for getting at data, once a flex developer was past the training wheels stage?
    Another aspect I'm curious about is whether the data services features of Flash Builder 4 would remain relevant if one was using some other data access system? I can't really phrase this question properly because I don't really understand Flex or the various data access technologies that everyone is using. Hopefully the quesiton makes sense...if one was NOT using the data services wizard or whatever it's called, would whatever data services one was using show in the data services area of builder? It would be cool of course if they did.

    Hi,
       When it comes to runtime performance of the applications created using Data Centric Development ( DCD ) wizards, they perform same as the ones created without using DCD.
       Even the code generated by these wizards are easy to read & maintain with proper inheritance, packages & overriding. But, if you are planning to use any of the MVC style frameworks, the generated code may not fit so well right now. We are already working on improving the experience for people who are using these frameworks.
       Overall, using DCD gives a lot of productivity gain with its unified wizards & advanced UI Authoring workflows including Automatic Form Generation, Charts, Master-Detail views, Paging, Client Side Data Management etc.
      Please let us know if you have any specific concerns in the generated code.
    Regards
    Srinivas Annam
    http://srinivasannam.wordpress.com

  • Problem with inline FXG in Flash Builder

    Hello,
    True newbie to Flex and Flash Builder.
    I am trying to use FXG code out of Illustrator CS4 and PASTE in in a skin.mxml file.
    I thought that Flash Builder would automatically convert the <Graphic> tag to a Spark <s:Graphic> tag after I pasted in the SHOW CODE segment from Illustrator Save function.
    The same for all the other tags.
    It does not. Flash Builder just gives me an error when I save the Skin.mxml file.
    I don't want to just import the .FXG file as a component because it contains text in the layout I want to dynamically change in an <s:List.>
    Sample code:
    <s:Skin
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:ai="http://ns.adobe.com/ai/2008"
        xmlns:d="http://ns.adobe.com/fxg/2008/dt"
        xmlns:graphics="assets.graphics.*">
        <fx:Metadata>[HostComponent("spark.components.List")]</fx:Metadata>
        <s:states>
            <s:State name="normal"/>
            <s:State name="disabled"/>
        </s:states>
        <s:Rect
            height="457"
            ai:objID="4ee65600"
            d:userLabel="pageContentArea"
            width="921"
            x="0.5"
            y="1.5">
            <s:stroke>
                <s:SolidColorStroke caps="none" color="0x002581" joints="miter" miterLimit="4" scaleMode="normal" weight="1" color.normal="#3993d2"/>
            </s:stroke>
        </s:Rect>
        <Graphic version="1.0" viewHeight="2000" viewWidth="2000" ai:appVersion="14.0.0.367" d:id="1" >
                <Library>
                    <Definition name="sym3d_Pyramid_Rainbow" d:userLabel="3d Pyramid Rainbow">
                        <Group>
                            <Group x="-7.52246" y="-24.9131">
                                <Group ai:knockout="0">
                                    <Path winding="nonZero" ai:knockout="0" data="M0.358887 9.48828L7.5249 12.5605 7.521 0.279297 0.358887 9.48828Z" >
                                        <fill>
                                            <LinearGradient x="2.04785" y="11.2568" scaleX="11.5761" rotation="-45">
                                                <GradientEntry color="#ed2324" ratio="0"/>
                                                <GradientEntry color="#ed2224" ratio="0.617977"/>
                                                <GradientEntry color="#ed2324" ratio="0.629213"/>
                                                <GradientEntry color="#ed2024" ratio="0.983146"/>
                                            </LinearGradient>
    How do get this to work? What am I doing wrong?
    Thanks,
    bernie393

    Hey Peter, Again I REALLY appreciate your help....
    So, Are you saying if follow the below process steps it will work?
    1. Copy of code from AI Save as FXG dialog box using the Show Code button.
    2. Open the Skin or ItemRenderer in Flash Builder Beta 2. (which one should I use to be able to BIND data, skin or itemrenderer)
    3. Paste the code in AT THE BOTTOM (after the Skin or ItemRenderer) (tags will still be in <Graphic> format NOT <s:Graphic> format)
    4. Move the Library tags to the top of pasted code.
    5. Save the file in Flash Builder that it will convert the tags to (s:xxxxxxx) type tags>
    IF this is wrong, please explain..I apologize, trying to pick this up as fast as I can...Solving this problem would allow me to move very quickly in creating the pages I have to.
    Not knowing Flex 4 well enough, it would take considerably more time if I had to save each individual OBJECT from AI and export as png or jpg or gif.
    I also would have to recreate the layout from scratch which would also be difficult at my current knowledge level.....
    Also, a learning point for me: In Flex 4 when I do this in Flash Catalyst (I have over 30 pages to build and probably 45 states and when work in Flash Catalyst it will crash if I move to many times in and out of editting components so I have to save often so I cannot do the whole in Catalyst and I need a repeatable process to get all  the different page graphics out of AI and into Flash Builder), Catalyst creates a List component in the main MXML file, a skin.mxml file, and a item renderer.mxml file. I am use to coding in Smalltalk, Javascript, and Java. What parts are considered the Model, View, and Controller in a MVC architecture?
    Thank you again Peter......
    Bernie393

  • I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?

    I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?
    Any and all advice is welcome.

    Do you have different versions of the graphic novel pages, or is there just one version of the page? If there is one version, can you crop into the page without losing anything important?
    I would guess that there is one version, and that cropping into the page will lose something important. If that's the case, here's how I would handle it:
    Make a stage that is 14:9. The size doesn't matter, but 1400x900 could be a good starting point.
    Put down a background texture that fits well with the look of the other images. Make that fill the 1400x900 stage.
    Place your page graphics so that they are within the center 1200x788 area of the stage.
    Set the stage scalemode to "noBorder".
    You now have a layout that will work on all devices, as narrow as iPad, and as wide as iPhone 5. All without any code. On the widest devices you'll see a bit of your background pattern to the left and right of the page graphic. On the narrowest devices you'll see a bit of background pattern above and below the page graphic. But you won't lose sight of anything important.

  • What is new in Flash Builder 4.7 Game Development beta 2

    I just installed it, I thought it would include some version of monocle.
    Are there any changes other than a support for a product not available yet through labs?
    If Not, when will we get monocle to test with it?

    In this build you can create SWFs that support profiling with Monocle, but you will need to download Monocle separately as it is not a part of Flash Builder.
    The telemetry API usage via monocle is possible only with the AIR SDK 3.4, so out of the box AS3 projects would support creating SWFs that can be used with monocle. To make it work with MXML (or rather Flex) would will need to overlay the Flex 4.6 SDK with the AIR 3.4 runtime.
    Thanks
    Arijit

  • Adobe creative cloud cc install has messed up my Flash Builder 4.6 serialization

    Hello,
    I have been a flash builder user for several years now. I have had FB 4.6 installed on my computer as a free upgrade from FB 4.5, which came with my copy of creative suite 5.5, which I purchased in 2011.
    FB 4.6 has been working fine - even when I moved to adobe creative cloud last May (2012).
    However, now that I have installed the new creative cloud (CC) applications (and uninstalled the creative cloud cs6 apps) - I am having problems with Flash Builder 4.6. I open it and get a message that my 'trial period' is up. Again, I own FB from my purchase of CS 5.5 - not to metion that it was included in creative cloud. I know that I can download FB 4.7 from creative cloud, but it doesn;t have the design view. So I want FB 4.6. I have seen some solutions to similar problems on the web that recommend reinstalling as a trial and then inputting the serial number once it launches. But I have FB 4.5 on my CS 5.5 installation disc - not FB 4.6 - and I'm not even sure how I could get FB 4.6 anymore. Not to mention that uninstalling - reinstalling 4.5 - and then upgrading from 4.5 to 4.6 - even if possible - would be a huge hassle.
    Can someone please help me to get my FB 4.6 working again? To reiterate - everything was fine until I installed Creative Cloud CC apps and uninstalled Creative Cloud CS6 apps
    Thanks

    Hi bobba1,
    I am experiencing the same problem. DId you ever get this solved?
    Regards

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • How do I update my Flash Debug Player for Flash Builder 4.6?

    Hey how do I update my copy of Flash Builder 4.6 to the latest flash debug Player?

    Go to flash player downloads and get the latest one for your browser.
    http://www.adobe.com/support/flashplayer/downloads.html

  • Having a problem with Flash Builder and Extension Builder - images not apearing on Mac system

    Have a panel created in Flash Builder 4.5 with Extension Builder 2.1. Everything is fine when installed on a PC but when installed on a Mac the images in the panel do not show.
    Mac and PC both using Adobe Photoshop CC . Both installed from same .ZXP file using Adobe Extension Manager CC.
    Any ideas?

    No I used relative path - the path is  images/image name
    example images/cRight.png
    tried downloading Extension Builder 2.1 and compiling on Mac but still have same results - images show up fine in design window , but not when running panel in Photoshop
    Created a new project: testImage
    added an image component to form
    answered yes to add asset to project
    ran project
    image did not show up in Photoshop
    went back to project
    checked item Embed under Common image properties
    ran project and image shows up
    Looks like it works if I add @Embed("assets/image name") on Mac to display images
    tried in my real project:
    Looks like it works if I add @Embed("images/image name") on Mac to display images
    When I change this on PC to @Embed("images/image name") images do not show Up
    Don't know if I need to create two versions one for Mac one for PC
    Don't know how this would affect product on Adobe Exchange

  • Problem with working in Flash Builder 4

    Hi there,
    I am working on the develepment of a new kind of website in 3D.
    For this I am using Flash Builder 4 AS3 Project and the 3D program Away3D.
    The problem is that I created a SWF in one AS3 project called PoloSWF.
    In another project I created a plane with the SWF as material.
    For this I copied PoloSWF from the original bin release directory and pasted it in the assets folder of the plane project.
    When running the plane project, the SWF is not visible.
    Any idea where the bug is?

    I tried it in Internet Explorer, Firefox, and Chrome. I was able to get the Akamai download manager but that was all I could download. Currently with firefox the download is stuck at waiting and will not continue any further.

  • Is there a limit to the amount of SWCS I can use in my Flash Builder app?

    I have 3 swc folders in my flash builder project that includes about 40 swcs total. Each swc is a simple flash animation with a size of about 500 kb each. When I include and complile about 20 of them in my project, things work fine.
    When I try to include all my swcs, the app compiles, but when i make changes in my code and save those changes, each time the compile becomes slower and eventually my flash builder freezes at about 52%, gives me a "java heap error" message, and then crashes. After restarting FB, when I take out most of the swcs from the build, FB acts normal again. Attached is a screen shot of my error.
    Is there a limit in size or amount of swcs that I can use in my FB application?

    There are no limits. But there is a known memory leak (which is being fixed for a later release).
    Would it be possible to attach a sample SWC so that we can confirm whether this is a known leak or not? I'll take care of filing this in bugs.adobe.com.
    Meanwhile, in your Flash Builder installation directory, you can edit FlashBuilder.ini to bump up max heap size by editing:
    -Xmx512m
    to
    -Xmx800m

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • Unable to install Flash Builder Premium: a beta version exists on this computer

    Hi,
    I'm a user of Flex since version 2 and i'm still currently using it everyday. Some days ago I uninstall Flash Builder Premium 4.7 because i did a mess installing some external packages so I dedided to uninstall it and install everything from scratch.
    The problem is that installing using Creating Cloud on my iMac, I always receive the same error: "a beta version exists on this computer".
    I have already used the "Adobe Creative Suite Cleaner Tool" and I removed the "Adobe Flash Builder" having the same icon as the other applications installed by Creative Cloud and now I have another "Adobe Flash Builder" with a slightly different icon but I'm scared to use it because waiting to repair Flash Builder 4.7 I'm using Flash Builder 4.6 and I cannot think I cannot work because Flash Builder is not working (I use it every day !).
    I removed Flash Builder 4.7 using the uninstaller, so the uninstalled didn't completed its job.
    On the machine I have currently installed Flex Builder 3, Adobe Flash Builder 4.6, Adobe Gaming SDK 1.0 (no uninstaller for it !), Adobe Flash C++ Compiler (no uninstaller for it too!).
    So, the question is, where I can find the log file containing the reason of the error message ? I have already checked the followimg folders:
         \Library\Logs\Adobe\Installer: I cleaned the folder and the error happens before a file is created in this folder
         \Users\<my account>\Library\Logs: it seems that the error isn't logged here
    Please help me, I need to use Flash Builder 4.7 for a presentation I have to do next Wednsday (almost 2 years of working !!!)
    Thank you
    Diego Novati

    Hi novatiitm,
    Please search for Flash Builder in Spotlight and if find simply uninstall it or delete the folders containing the software.
    Regards,
    Abhijit

Maybe you are looking for

  • Photosmart 6180 all-in-one printer with error meesage "Ink System has failed"

    The printer is 3 years old and has been working fine until this week.  I now receive a 0xc1820206 error code after the "Ink System has failed" message appeared.  I tried unplugging the power cord and removing all the cartridges.  Unfortunately, after

  • Mac OS 10.4 reset itself

    Hi, I was using my PowerBook G4 today like I always do. I was downloading some new icons from the apple website and I was writing a paper for school. I was pasting some of these new icons onto folders, when my customize buttons on the Finder dissappe

  • Problem with chinese fileNames inside a zipfile

    Hi all I have a really strange problem . I needed to create a zip file(English name) and add a chinese file to that Zip . I had done this using java.uti.zip and in the output zip file i am seeing a totally different chiense name than what i had expec

  • Custom dates for change request

    Hi all, we wanted to have a possibility where we can maintain several (to be defined and must be easily changeable) time estimates on change requests, for example: u2022     Time estimated for development u2022     Time spend for development u2022   

  • Verizon Cloud Installer does not Load

    Cloud downloads from the Verizon site. Then when I go to Downloads to open in the program it starts a new Installer download. This took hours to get only halfway and crashed.  I have Windows Home 7 Premium, service pack 1, 32 bit.  Is there someway t