Flex code management

Well I have a generic question with the following scenario:
I have build a custom component (as based) and placed all the
related files under components directory under root directory of my
project.
There is another directory called includes (again under root
) which is having the main project code. I have decalred a globally
accessible xml type variable in the main.mxml file (my main file of
the app). I can very well access this xml variable with in the
includes folder.
I want to access this xml variable in the components folder's
files too.
What should be the way? I have embedded the custom component
in the main.mxml so i was assuming that this xml variable will be
accessible in the custom component code.. but it is not..

"vikceo" <[email protected]> wrote in
message
news:ga3osc$d8h$[email protected]..
> Thankx VipersG and Greg ..
>
> any difference between the two approaches? looks like
both will work...
> but any pros cons of using Application. Vs this. ?
http://www.adobe.com/devnet/flex/articles/graduating_pt1.html

Similar Messages

  • Server Side Flex Code?

    My company currently has a back end image rendering engine
    built in Java. The rendering engine serves up images on request to
    a Flex User Interface through web services. What we have discovered
    through benchmarking is that Flex (or the Flash Runtime) is able to
    complete simple renders even faster than Java.
    So I wondered... can we tap into some of these Flex image
    manipulation libraries on the server side?
    We would love to develop the entire rendering engine in Flex.
    Unfortunately there are some downsides to this such as increased
    bandwidth usage since the large raw images used to create the final
    rendered image would all need to be transfered over the internet to
    the client.
    The ideal solution would be to develop the rendering engine
    in Flex but have the Flex code run on the server.
    Is this possible? Can anyone comment?
    Thanks,
    Leo Lee

    Well, you can create a Flex component/module/app/etc. and put
    it on the server. Client can so something that results in request
    to server, and part of server response is to do processing on
    server using that rendering engine. Just a matter of calling it on
    the server from the initial point of client request contact.

  • Flex session management

    Hi. I've got an app that will require users to log in. How
    can the Flex part manage the JSP session? Any tutorials on this
    will be appreciated. Thanks.

    If you read this article and have your SWF file within your
    app, you shouldn't have to worry about the SessionID directly; your
    Java app will take care of that:
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_07.html
    From what I understand, if you use Basic or Forms
    authentication, if the user submits something to your JSP pages
    when s/he isn't logged on or the session has expired, the user will
    be redirected to the login page or see the popup login box in the
    browser (Basic auth.).
    Of course, if you track the SessionID in your Flex app, you
    could display a message to the user that his/her session is about
    to expire. This isn't something I'm going to worry about at this
    point; as long as unauthenticated users are kept out of the app,
    that's all I want.

  • Compiling Generated Flex code in Background

    Hi, All
    i am developing an AIR application, which allow users to Drag and Drop of Flex components, for that in background i am generating the flex code.
    now i want to compile the generated code, so that i can export that as swf. is there any way to do that ? or for compiling that i need to bundle flex sdk with my application. if so, do i need to have any kind of Licesence ?
    please let me know your views.
    is their any feature or command which can export the code to the swf ?
    Thank you all in advance for having your views.
    Thanks
    Regards
    Amar Deep Singh

    Hi,
    Try to use t-code MCM0 to delete the old versions.
    Good luck
    Tao

  • Source Code Management

    Hi
    I am busy designing a new Java environment for our company. We are migrating from Forms to JEE. I would like to know what would be the best practice (if one exists) wrt source code management. Currently I am going with the following,
    1. All original source code saved on development application server (Linux).
    2. Use SVN to manage source from development application server.
    I am not totally convinced that this is the correct method of managing source code.
    What are my options?
    Should the source be placed on a seperate file server independant of my application server?
    Kind regards.
    Leon.

    Development servers is used to be quite unstable sometimes so I would prefer to store the SVN repository on some kind of file server, where a file backup procedure is already implemented. If you're using some kind of cruise control or automatic testing you could checkout the source code to the development server to run it from here or to build distributions.
    I'm familiar with both CVS and SVN and think that SVN is serving us best. We're just using a file based repository, on a network drive, protected by the normal file system permissions mechanism. I'm almost always using Tortoise SVN as client but the SVN client in JDeveloper is just fine, but I think the Tortoise SVN plugin in the explorer is just better.

  • NAC and BBSM access code management

    Hello,
    An organization has a network infrastructure in which a BBSM generates access codes for limited authorized time periods to allow Internet web access to wireless guests. If a guest exhausts the period he must request a new access code.
    Now, if a Clean Access Server is deployed for admission control, a possible option could be to bypass posture assessment for those guest users and leave the the BBSM operation unchanged: with access code management for control and accountability purposes.
    My doubt is if i could deploy some access code management capabilities in the NAC appliance, in order to move to it the access code mgmt functionality from the BBSM.
    I would really appreciate any comment about that.
    Thanks in advance.

    Hi,
    Check table 3 of the link below,
    http://www.cisco.com/en/US/products/sw/netmgtsw/ps533/prod_eol_notice0900aecd805aeb23.html
    Scrap that BBSM. You should be able to provide guest access w/ NAC. checkout this link
    http://www.cisco.com/application/pdf/en/us/guest/products/ps6128/c1031/cdccont_0900aecd805b8b5c.pdf
    Regards,
    arburt

  • Souce Code Management

    Hello -
    We user Oracle Tools and technologies for development. Oracle Forms, Reports, SQL Files (DB Objects), Discoverer, Portal, JDeveloper etc.
    We use very old version (10 years ago) of MKS source Code management tool and have not upgraded to latest versions.
    Wondering what is out there in Oracle world for reasonable cost. I do have a huge list from the next
    http://en.wikipedia.org/wiki/List_of_revision_control_software but wondering what should we go with.
    Any suggestions?

    We use cvs (concurrent version system) easy to handle and works well. Integration to Eclipse available...

  • Source code managements problems

    Hi all.
    I work for a coperation that mandates the use of a particular source code management software, MKS. They are moving to another solution soon, so it doesn't make sense to write an extension for it.
    My objective is to use MKS to manage source changes as a standalone tool, while using JDeveloper to modify and debug application code.
    I also have a requirement to put all runtime code into MKS as well, so that a complete runtime build can be performed from within any project sandbox and deployed (No 3rd party installations required). This would include jdeveloper jar files and compiled objects from other MKS / Jdeveloper projects.
    So far, I've discovered that the JDeveloper project libraries are referenced by full pathname, including drive letter. This means that each develeper sandbox directory must have the same root path and drive letter or each projects libraries must be maintained seperately. Neither I think is very pretty. Is there a way to use relative pathnames?
    I'm also wondering how many other problems I may encounter as I proceed. What is the intended model for supporting concurrent development using standalone source code management?
    Any ideas or suggestions would be greatly appreciated.
    Thanks in advance
    Keith.

    Yes.
    The issue comes into play when developer A may be developing on c:\jdev and developer B may be developing on d:\dev\3m\jdev. I would rather not have to mandate directory structure standards for the parent directories.

  • Using Flex Code in Flash

    Hi everyone,
    I really hope you can help me with this. Here's my
    situation...
    I've developed a flex application that connects to another
    java application using "BlazeDS". It works great!! The reason why I
    did this is because I'm developing (along with a Flash designer) a
    website of a music band, and I use java to connect to a database
    that has all the "gigs", news and subscribers to the website.
    Everything works great in Flex, my problem is I'm not a
    designer, I'm a developer. So I wanted to know if there's a way I
    can just give my designer friend a code so he can use it in Flash
    CS3?? (Like to send him objects containing the info. For example,
    give him a concerts object that contains the date and the location
    so he can build the datagrids for the concerts page in Flash)
    I think there must be a way to use Flex libraries in CS3, or
    maybe create some kind of Flex class that will work as a
    "communication interface" between the database and the flash code,
    I'm really not sure...
    In other words, I need to know how can my designer friend use
    (in Flash) what I've developed in Flex.
    Please let me know if there's a way...
    Just in case you need to know, I use Flex's Eclipse plug in
    (it's easier for me this way cause I have java and flex in the same
    place!)
    Thanks!!!!!!

    No need then to use the LocalConnection. In a listener
    function (add a listener function for the complete event of the
    SWFLoader) you can retrieve a reference to the loaded swf and get
    the two values from the swf if they are public and on frame 1 of
    the main timeline.
    private function onSWFLoaded():void
    //retrieve a reference to the loaded swf
    var loadedSWF:MovieClip = logn.content as MovieClip;
    <mx:SWFLoader autoLoad="true" id="logn" source="main.swf"
    horizontalCenter="8" verticalCenter="185" height="364" width="588"
    complete="onSWFLoaded()"></mx:SWFLoader>

  • Flex Project Management

    Hi,
    I am planning to build a flex project with a small group of people. So, I am thinking to have one main project to load all the component (SWF) in swf loader, so that I can have the component to be distributed to everyone. Here I want to ask:
    1. Besides local connection, what is the other best, fastest, and most stable way to have the main application to communicate with child application loaded via swf loader?
    2. As each person may working on their own part, how to set up the project so that they can easily debug their part with the main application during the development?
    3. The project will be deploy in both Air and web format. How to share the code base for both development so that we are easier to grow and maintain the app?
    Thanks. Please advise if you have better way for group development.

    take a look at the first part of this video where he talks about different architectures
    http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/
    you also might find this useful. Some example case studies for web/mobile apps, the same principle could be applied to web/desktop apps
    http://www.adobe.com/devnet/flex/samples.html

  • Software for code management

    I wanted to know if there is any software for management of code from sun ??
    .. something like Visual Source Safe ...
    If you know any others used popularly please let me know.. I am looking for something easy to use for windows users...

    Actually everyone will be using it... so i waslooking
    for something easy for windows users to use.
    CVS is more command based.. and I dont see Visual
    Source Safe going anywhere... They dont have Visual
    Source Safe.NET also..In my opinion Subversion and using the tortoiseSVN
    client for win32 (http://tortoisesvn.tigris.org/) is
    so infinitely better than source safe, it's laughable.
    And its free!Unfortunately I'm stuck with VSS at my company, but thanks for the heads up on Subversion, dmbdmb. I didn't know about it.

  • Possible to have Function to return Flex Code (ie: mx:Text text="hello world"/ )???

    I'm new to Flex and need to special case some functionality
    using XML...not all feed items come with images so I thought the
    best way to handle this was to pass each feed item to a function
    that can use if statements and then return the appropriate code
    back to the user interface:
    For example printFeed() would would return something like the
    following if there were an image:
    <mx:Text text="{XML.channel.currentItem.title}"/>
    <mx:Image source="{XML.channel.currentItem.img.url}"/>
    OR the following if there were NOT an image:
    <mx:Text text="{XML.channel.currentItem.title}"/>
    Is this the correct approach? Also, what is the correct way
    to invoke printFeed? {printFeed("..."))} throws parsing errors.
    THANK YOU!
    -Cole

    "Cole_62" <[email protected]> wrote in
    message
    news:gd2q5r$f08$[email protected]..
    > no i dont think this will work because i need to iterate
    through each
    > <item> in
    > the XML...below is an exmaple of possible tree structure
    of the XML:
    > channel
    > -->item1
    > ----->title
    > ----->imgs
    > --------->imgUrl
    > --------->imgUrl
    > -->item2
    > ----->title
    > ----->imgs
    > ---------->imgUrl
    > -->item3
    > ------>title
    > ------>imgs
    > ----------->(no imgs)
    >
    > i thought to handle this using something like the
    ATTACHED CODE below:
    >
    > ...i need to be able to go through each <item> and
    <imgUrl> (because i
    > dont
    > know how many (if any) there are!) sorry if my PHP
    background shines
    > through!
    >
    > THANKS!
    >
    > <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    > <mx:HBox>
    > <mx:Text text="{feed.currentItem.title}"/>
    > <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    > <!-- PSEUDO CODE I NEED HELP RESOLVING:
    > if ("{item.currentItem.imgURL}")
    > -->
    > <mx:Image source="{item.currentItem.imgUrl}"/>
    > </mx:Repeater>
    > </mx:HBox>
    > </mx:Repeater>
    How bout
    <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    <mx:HBox>
    <mx:Text text="{feed.currentItem.title}"/>
    <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    <mx:Image
    source="{item.currentItem.imgURL.length()>0?item.currentItem.imgURL:null}"
    includeInLayout="{item.currentItem.imgURL.length()>0}"/>
    </mx:Repeater>
    </mx:HBox>
    </mx:Repeater>

  • Flex Code Behind Issue

    Hey guys,
    so I have created a simple flex proj
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" themeColor="#0EFF02">
    <mx:Script>
    <![CDATA[
    private function onOver(evt:Event):void{
    trace("onOver : " +evt.currentTarget );
    test.setStyle("backgroundColor",0xff00ff);
    private function onOut(evt:Event):void{
    trace("onOut : " +evt.currentTarget );
    test.setStyle("backgroundColor",0xffff00);
    ]]>
    </mx:Script>
    <mx:Canvas id="test" x="118" y="136" width="443"
    height="133" themeColor="#099FFF" backgroundColor="#D70000"
    rollOver="onOver(event);" rollOut="onOut(event);">
    <mx:Button x="39" y="35" label="Button"/>
    </mx:Canvas>
    </mx:Application>
    So basically all the code above does is changes the
    backgroundColor of the Canvas. It works fine
    Now if I make a MXML Component using the Code Behind Method
    Main.mxml
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" themeColor="#0EFF02" xmlns:ns1="item.*">
    <ns1:ListItem x="80" y="48"/>
    </mx:Application>
    ListItem.mxml
    <item:CListItem xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300" xmlns:item="item.*">
    <mx:Button x="65" y="61" label="Button"/>
    </item:CListItem>
    CListItem.as
    package item
    import flash.events.MouseEvent;
    import mx.containers.Canvas;
    import mx.events.FlexEvent;
    public class CListItem extends Canvas
    public function CListItem()
    super();
    this.addEventListener(FlexEvent.CREATION_COMPLETE,
    onComponentLoaded);
    private function onMouseOver(evt:MouseEvent):void{
    trace("CListItem.onMouseOver :");
    this.setStyle("backgroundColor",0xff00ff);
    private function onMouseOut(evt:MouseEvent):void{
    trace("CListItem.onMouseOut");
    this.setStyle("backgroundColor",0xffff00);
    private function onComponentLoaded(evt:FlexEvent):void{
    this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
    this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
    Now when I mouse over the Button component the onMouseOut
    function gets called and there is a flicker in the backgroundColor.
    If I dont use the Code Behind Method then the onMouseOut
    function does not get called when I rollOver the button.
    Can anyone explain this strange behavior?
    Thanks
    Cheers
    Firdosh

    Conrad - there's no plans to enhance specific codebehind support.  It's worth mentioning, however, that you can adopt the spark skinning model for all of your components to get a good codebehind separation of view and logic.
    Ely.

  • Opensource tool/software for code management

    Hello everyone,
    I am looking for an opensource software for managing code .. Does anyone know any ?
    I have never personally used CVS but its version control? Is it like Visual Source Safe?
    If you have used anything .. can you tell me which ones u used?

    I am looking for something that is web based... when I
    looked at CVS... I am not sure if its web based..That term is too generic.
    Can you use it via a network (and via the internet) - then yes.
    Can you normally use it from a browser - no. But then I would suppose that before you can set up CVS (or any version control system for use via a browser) you must first have a web server. Do you have a web server?

  • Basic Flash movie questions from a Flex coder

    Hi,
    I've coded several Flex applications (I'm a programmer by
    trade) for the last 6 months. Now I have a new project to do with
    Flash, and I'm mighty confused - as I don't know much about Flash
    and its timelines, etc.
    I've been given a bunch of FLV files - movies from a video
    camera like you see on Youtube. I'd like to add some logic to them.
    Do I create a new Flex or Flash project and somehow embed the
    FLV file?
    I read that the they can attach "labels" to timelines in a
    movie and that I can react to the labels being triggered using
    event handlers. Can I programmatically add labels to an existing
    FLV movie?
    So after all is said and done, I'm guessing I would compile
    it using MXMLC if it is a Flex project. But what if it were a Flash
    project, what is the compiler? In addition, can I simply code the
    whole thing as an actionscript (.as) file and compile it using a
    Flash compiler?

    I wouldn't embed the files. This is OK if they don't include
    audio that's synched to the video, but otherwise will be
    problematic. You'll get better performance overall by linking to
    the external FLV. To 'add logic' you'll need to us cue points.
    These can either be added via ActionScript or embedded into the FLV
    using something like Flash Video Encoder. You can use the cue
    points to trigger whatever actions you require.

Maybe you are looking for

  • Why is my new Macbook Pro Retina Display getting so hot?

    I've had my Macbook Pro Retina Display for nearly a week and it works like a dream and I love it. However it does get rather hot, around the F keys it's almost too hot to touch, all I use are internet applications and occasionally Spotify and iTunes

  • 2nd Gen Nano help

    I was given a 2nd gen Ipod Nano when I bought a guys other iPod. He gave it to me saying it wouldn't turn on so it's not like I got ripped off or anything. I've left it plugged in for hours, tried the reset menu and center thing several times also. A

  • Zen Micro or Zen To

    I am in the market for an MP3 player, and have been researching various tech sites, along with checking various forums like this one. I have (in the Creative line) been looking at the Micro and Touch, since I've been reading about the ongoing Micro h

  • Installing two Oracle Version in One Windows[/b]

    Hi Guys I want to know how to install two different versions of Oracle in One Windows Under Different Homes.

  • Laptop shuts down while making backup

    Hi everyone. This is probably an easy fix but I can't seem to find the answer. I have a Satellite A75-S2762 and was trying to make a back-up of my hard drive using Acronis. I would boot up with Acronis, jump through all the hoops, and start the proce