How we implement push on a flex applications?

Hi
        Can any body tell me how we can implement push in flex.please tell me what actually this push means.even i have no idea what is push in flex?
So please provide me link of some basic tutorial or explain me.
Thanks In advance
       Vineet osho

It meansh taht the servers sends data to your client through a persistent
channel. Hence the push. You have a permanent connection between the Server and
the Client. The client does not have to ask for updates/data it just gets them.
This is different from the pull where client makes request for updates tho the
server and the server replies with data as a result of the client requests. Pull
is getting stuff ion demand.
http://en.wikipedia.org/wiki/Push%E2%80%93pull_strategy
this is a high level explanation.
You have to use LCDS/Blaze DS in the backedn they have this kind of
functionality built in. On the flex side there si not that much to do configure
communication channels and listen for the incoming data. Once is there it is the
same as in pull.
HTH,
C

Similar Messages

  • How to display pdf file in flex application

    hi,
    I am Ibran, I am using Flex4.5, in that i want to display a pdf file like images.
    How can i do it please anyone tell me.
    I have used navigateToURL(url),but this was going into navigation and i can't see my textfield and buttons.
    So without this  navigateToURL(url) how can i display a pdf file in flex without navigation so that i can see my textInputs and buttons.

    Flash does not have the ability to load/display/manipulate PDF files, so you can't open it directly in the flex application.  With clever HTML and javascript, you can make it appear that it is in the same window, but it will actually be in a separate window/div in the browser.  And yes, this has always seemed absurd to me that Adobe doesn't support PDF's......
    Mark

  • How to implement google search in portal application

    Hi,
      I am using  "http://api.google.com/GoogleSearch.wsdl" file to implement google search in portal application. but i am not able to get the search result. how to implement google search. is this "http://api.google.com/GoogleSearch.wsdl" is vaild now ?. how to achieve the soultion.
    Regards,
    Shanthakumar.

    Hi Shanthakumar,
    The "GoogleSearch.WSDL" is no longer available as google has replaced it with the new AJAX based searching and they have eventually removed it from public use as well from 7th September 2009. So, I would imagine you would not be able to use the earlier WSDL file for google search. You might have to look in using the new "AJAX Search API". For more information have a look the following links. You can notice "No Longer Available" at the top of the page.
    http://googlecode.blogspot.com/2009/08/well-earned-retirement-for-soap-search.html
    http://code.google.com/apis/soapsearch/api_faq.html#tech15
    I hope this helps you.
    Regards,
    Gopal.

  • How to use virtual keyboard in flex application

    hi..
    i am using flash builder 4,
    how to use virtual keyboard in flex?
    if any one aware of this pls reply me.......
    saran r

    hi,
    how to code for these buttons  "control,alt,delete,insert and spacebar".
    can u help me  how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?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"
                     creationComplete="application1_creationCompleteHandler(event)"  viewSourceURL="srcview/index.html">
         <fx:Script>
             <![CDATA[
                 import flash.utils.getQualifiedSuperclassName;
                 import mx.events.FlexEvent;
                 private var inpText:String = 'inp1';
                 private var shiftState:Boolean = false;
                 private var capsState:Boolean = false;
                 protected function  keyboard_clickHandler(event:MouseEvent):void
                     this[inpText].text =  this[inpText].text+(event.currentTarget as Button).label;
                     if (shiftState == true) shift_clickHandler(null);
                 protected function caps_clickHandler(event:MouseEvent):void
                     capsState = !capsState;
                     if (capsState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function tab_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"    ";
                 protected function shift_clickHandler(event:MouseEvent):void
                     shiftState = !shiftState;
                     if (shiftState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function enter_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"\n";
                 protected function  backspace_clickHandler(event:MouseEvent):void
                     var tmpStr:String = this[inpText].text;
                     this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                 protected function  application1_creationCompleteHandler(event:FlexEvent):void
                     inp1.setFocus();               
                 protected function focus_enterHandler(event:MouseEvent):void
                     inpText = event.currentTarget.id;
             ]]>
         </fx:Script>
         <s:states>
             <s:State name="PRIMARY"/>
             <s:State name="SHIFTED"/>
         </s:states>
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value  objects) here -->
         </fx:Declarations>
         <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0"  click="focus_enterHandler(event)" y.PRIMARY="239"  horizontalCenter.PRIMARY="42" width.PRIMARY="199"  height.PRIMARY="31"/>
         <s:Group id="keyboard" width="661" height="184"  horizontalCenter="0" y="300" focusEnabled="false">
             <s:Button x="5" y="5" label="~" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="`"/>
             <s:Button x="49" y="5" label="!" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="1"/>
             <s:Button x="93" y="5" label="@" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="2"/>
             <s:Button x="137" y="5" label="#" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="3"/>
             <s:Button x="181" y="5" label="$" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="4"/>
             <s:Button x="225" y="5" label="%" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="5"/>
             <s:Button x="269" y="5" label="^" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="6"/>
             <s:Button x="313" y="5" label="&amp;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
             <s:Button x="357" y="5" label="*" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="8"/>
             <s:Button x="401" y="5" label="(" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="9"/>
             <s:Button x="445" y="5" label=")" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="0"/>
             <s:Button x="489" y="5" label="_" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="-"/>
             <s:Button x="533" y="5" label="+" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="="/>
             <s:Button x="577" y="5" label="Backspace" height="43"  width="80" fontSize="11" fontWeight="bold"  click="backspace_clickHandler(event)"/>
             <s:Button x="5" y="48" label="Tab" height="43" width="67"  fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
             <s:Button x="72" y="48" label="Q" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="q"/>
             <s:Button x="116" y="48" label="W" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="w"/>
             <s:Button x="160" y="48" label="E" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="e"/>
             <s:Button x="204" y="48" label="R" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="r"/>
             <s:Button x="248" y="48" label="T" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="t"/>
             <s:Button x="292" y="48" label="Y" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="y"/>
             <s:Button x="336" y="48" label="U" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="u"/>
             <s:Button x="380" y="48" label="I" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="i"/>
             <s:Button x="424" y="48" label="O" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="o"/>
             <s:Button x="468" y="48" label="P" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="p"/>
             <s:Button x="512" y="48" label="{" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="["/>
             <s:Button x="556" y="48" label="}" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="]"/>
             <s:Button x="600" y="48" label="|" height="43" width="57"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="\"/>
             <s:Button x="5" y="91" label="CapsLock" height="43"  width="80" fontSize="12" fontWeight="bold"  click="caps_clickHandler(event)"/>
             <s:Button x="85" y="91" label="A" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="a"/>
             <s:Button x="129" y="91" label="S" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="s"/>
             <s:Button x="173" y="91" label="D" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="d"/>
             <s:Button x="217" y="91" label="F" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="f"/>
             <s:Button x="261" y="91" label="G" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="g"/>
             <s:Button x="305" y="91" label="H" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="h"/>
             <s:Button x="349" y="91" label="J" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="j"/>
             <s:Button x="393" y="91" label="K" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="k"/>
             <s:Button x="437" y="91" label="L" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="l"/>
             <s:Button x="481" y="91" label=":" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY=";"/>
             <s:Button x="525" y="91" label="&quot;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
             <s:Button x="569" y="91" label="Enter" height="43" width="88"  fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
             <s:Button x="5" y="134" label="Shift" height="43" width="106"  fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
             <s:Button x="111" y="134" label="Z" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="z"/>
             <s:Button x="155" y="134" label="X" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="x"/>
             <s:Button x="199" y="134" label="C" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="c"/>
             <s:Button x="243" y="134" label="V" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="v"/>
             <s:Button x="287" y="134" label="B" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="b"/>
             <s:Button x="331" y="134" label="N" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="n"/>
             <s:Button x="375" y="134" label="M" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="m"/>
             <s:Button x="419" y="134" label="&lt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY=","/>
             <s:Button x="463" y="134" label="&gt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="."/>
             <s:Button x="507" y="134" label="?" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="/"/>
             <s:Button x="551" y="134" label="Shift" height="43"  width="106" fontSize="24" fontWeight="bold"  click="shift_clickHandler(event)"/>
         </s:Group>
    </s:Application>
    thanks in  advance,
    saran r

  • How to open user file in Flex Application

    Hi forum,
    I develop flex2 application where user can browse and open
    XML file: the file should be loaded to text area.
    Could you, please, advice me how to browse and open user
    file?
    I found FileReference class but it looks that it can only
    upload file to a server. I need to open the file in flex
    application.
    Thanks for your help.
    Smoke007

    The issue isn't Flex, but the Flash Player. It is too much of
    a security risk to allow SWFs running in the Flash Player to open
    local files. Imagine going to a web site that has a SWF banner ad -
    but that banner ad opens local files and sends them to a remote
    system - all of your personal and financial information transfered
    without your consent.
    Flex apps running in the AIR player are different - the end
    user must launch them explicitly, just like any other local
    program.

  • How to create multiple pages using flex application.

    Hi all,
    i am doing flex application which contains 5 different
    pages,
    to do this i have used viewstack component to navigate
    between the pages.
    this is working fine if all my pages are of same size. each
    page as different background image.
    but i have to create pages with different sizes.
    my first and second page are small and remaining pages are
    big.
    when i navigate to 3rd or 4th page, it is showing scrollbar
    inside swf.
    but i want scrollbar for browser window not inside my swf
    anyone please guide me how to create pages in flex
    application.
    i have one more doubt, if my page contains some html links ,
    how to open those links,
    is it posible to open the link in new window.
    please help me , i have no idea how to create web
    applications using flex
    Thanks in advance
    regards
    avanthika

    Hi inlineblue,
    Thanks for your reply,
    you asked about sample code,
    following is my sample code.
    In my Application mxml file, i am loading all custom
    components for each page.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    horizontalAlign="center" verticalAlign="top"
    styleName="plain"
    backgroundColor="#FFFFFF"
    creationComplete="init()" width="780" height="594" >
    <mx:Script>
    <![CDATA[
    //navigating to next page
    public function showNextStep(newIndx:int):void{
    vs.selectedIndex=newIndx;
    //navigating to previous page
    public function showPreviousStep(newIndx):void{
    vs.selectedIndex=newIndx
    ]]>
    </mx:Script>
    <mx:ViewStack id="vs" paddingLeft="0" height="100%"
    width="100%" >
    <mx:Canvas id="s1" label="step1"
    backgroundImage="assets/Step1.jpg" >
    <!-- Step1.jpg image size is width=778, height=560 -->
    <mx:HBox paddingLeft="8" width="780" height="548">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="697" y="18"
    click="showNextStep(1)" width="72" height="24" />
    <mx:Button alpha="0" buttonMode="true" x="697" y="508"
    width="72" click="showNextStep(1)" height="24"/>
    </mx:Canvas>
    <step2 id="s2" label="Step2" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step3 id="s3" label="Step3" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step4 id="s4" label="Step4" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step5 id="s5" label="Step5" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    </mx:ViewStack>
    </mx:Application>
    // following is the page2 (step2) component code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step2.jpg" width="778" height="600"
    >
    <!-- Step2.jpg image size is width=778, height=600 -->
    <mx:HBox horizontalAlign="left" paddingLeft="5"
    height="511" width="768">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="648" y="6"
    click="this.parentApplication.showPreviousStep(0)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="711" y="6"
    click="this.parentApplication.showNextStep(2)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="651" y="529"
    width="58" click="this.parentApplication.showPreviousStep(0)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="712" y="528"
    width="54" click="this.parentApplication.showNextStep(2)"
    height="24"/>
    </mx:Canvas>
    // following is the code for page3 (step3) component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step3.jpg" >
    <!-- Step3.jpg image size is width=778, height=660 -->
    <mx:VBox width="763" height="668">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="10"
    click="this.parentApplication.showPreviousStep(1)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="10"
    click="this.parentApplication.showNextStep(3)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" label="Back"
    x="625" y="590" width="58"
    click="this.parentApplication.showPreviousStep(1)" height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="694" y="590"
    width="68" click="this.parentApplication.showNextStep(3)"
    height="24"/>
    </mx:Canvas>
    // following is code for page4 (step 4),
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step4.jpg" >
    <!-- Step4.jpg image size is width=778, height=773 -->
    <mx:VBox width="762" height="792">
    <!-- User interface -->
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="15"
    click="this.parentApplication.showPreviousStep(2)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="16"
    click="this.parentApplication.showNextStep(4)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="644" y="710"
    width="58" click="this.parentApplication.showPreviousStep(2)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="703" y="710"
    width="54" click="this.parentApplication.showNextStep(4)"
    height="24"/>
    </mx:Canvas>
    // Following is code for Page 5 (step 5 ) component.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step5.jpg" width="778"
    height="600">
    <!-- Step5.jpg image size is width=778, height=539-->
    <mx:VBox paddingLeft="170" paddingTop="170" width="778"
    height="522">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="654" y="41"
    click="this.parentApplication.showPreviousStep(3)" width="72"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="654" y="486"
    width="72" click="this.parentApplication.showPreviousStep(3)"
    height="24"/>
    </mx:Canvas>
    I am getting vertical scrollbar for page3 and page4,
    please tell me how to avoid this, Is their any other method
    to do this.
    Following is the link for my above code
    http://www.emantras.com/flexdemo/sample.html
    in this application one more problem is also their,
    background image loads very slow, before it loads all the flex
    components will load. So when you open this please wait till
    background image loaded, to move to next and back pages.
    Thanks for your time and consideration.
    Regards
    Avanthika

  • How to embed Passcode mechanism in flex application

    Hi,
    I'm developing a flex based application. Almost everything is done. Now I would like to let the users to install this product only for 3 times on their machine.
    For this, Passcode mechanism is a good idea. The user has to enter this passcode which went alongwith the CD / DVD product after installing the product.
    They shall use this code for only 3 times. After that the product should not accept this passcode. Could anyone suggest me how to accomplish this task in flex ?
    Any tutorials for this ?
    Thanks in advance.

    The AIR desktop application is already made. The user will have to purchase the CD to install it. He/She should have to input the Code which went along with the CD while installing the product.
    He / She should be able to use this CD only for 3 times in the same computer OR use this CD in 3 different computers for 1 time in each.
    Simply it should be used only for 3 times.
    Could anyone suggest me how to accomplish this task ?

  • How to implement GP for an approval application in  webdynpro

    Hi
    I want to develop a webdynpro application which should create a callable object to be used in GP.
    In the application, one view is there ,which one EP user will submit to a higher authority to get approval.
    the higher authority person will get that view with some additional fields(like remark field, approval button etc.).
    How can I use GP for this type of application??
    Can I use the same view for both the levels of users with some changes??
    How can I create such a webdynpro application using GP?
    I have gone through some of the forum documents in all those, only one view is there.
    How can I link different webdynpro views(based on business scenario) using Gp??
    Can anybody help me.
    Thanks in advance
    Smitha

    Hi
    You need to use KM API to write a code
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=creatKMfilters&adv=false&sortby=cm_rnd_rankvalue

  • How to dinamically add label to flex application...?

    Hi,
    I'm new to flex and I have to make component similar to this:
    http://imageupload.org/?d=F41EBEC01
    I have 3 questions:
    1. As you can see, component is divided on regions (here is 4 regions with different colors, but there can be more regions - this should be programatically). Now, above this box should be scale with number of region
    (you can see this scale to). Scale should also be programatically, based on number of regions - 4 in this example.
    Which is the best control for doing this? Is there any
    flash builder control that support customization with scales and something like this component, or I have to use drawing for this, as I have already have?
    2. How can I make opacity css effect? For example, in component on previous link I want to make some areas of box black but with opacity, so area under black is seen. Something like on this picture:
    http://imageupload.org/?d=A3B76A421
    3. How can I add label dinamically in action script code? I tried:
    var myLabel:spark.components.Label=new spark.components.Label();
    myLabel.move(0,0);
    myLabel.text="AAA"
    addChild(myLabel);
    but nothing happened.
    I'm using spark layout. I also tried to add label on button click but it also doesn't work. I tried to set wigth and height of label but it also doesn't work.
    Any kind of help would be appreciate.
    Thanks in advance

    you may have to use Hbox then insert label inside
    this may be helpful!!
    http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_6.html

  • How can I have my adobe flex application scale to fit the users screen ?

    I have been looking on google and couldn't find a answer. I have a application I created in adobe flex and I need it to scale to the users screen and fill the entire browser window no matter what.

    If you want your application to fill the user's whole screen you could set it to be in FullScreen
    Application.application.stage.displayState = StageDisplayState.FULL_SCREEN
    Write the above code into the callback of "applicationComplete"
    Hope this helps

  • How can I tell if a sound is playing in Flex application?

    Hi All,
    Simple question but I can't seem to find an answer to. How can I tell if my Flex application is currently playing sounds from a SWF file?
    What I'm trying to do is load a SWF file dynamically into my Flex app. However, these SWF files have sounds in them and they don't seem to stop even after I unload the SWF files.
    I'm trying to get around this by stopping all sounds using the flash.media.SoundMixer.stopAll() but it's getting called too early, before the SWF files are fully loaded and rendered in the application.
    I searched around and it seems like many people are having issues with this. Maybe someone can help me find a solution.
    Thanks,
    Colin

    In player 10 you can use unloadAndStop()
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Implementing KM scheduler in WD application

    HI All,
    Can anybody guide me on KM schedulers and how to implement the same in WD applications.
    We have a WD application where we are creating PDF forms. Now we need to schedule the process and want to run the job at a regular interval of time. Is KM scheduler the right way to do it?
    Please suggest on how to implement the same.
    Regards,
    Becky.

    Hi Ashok,
    Yes, u were correct. I didnt configured my Index at portal correctly and so was the issue.
    Now I am able to get search-results.
    Thank you.
    Now can you tell me about what all parameters I could get from these search results?
    I mean I tried Standard Search URL of portal :-
    http://serverHost:serverPort/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/com.sap.km.cm.basicsearch?SearchType=seealso&SeeAlsoUri=
    It shows various other details along with what we get using KM API.
    for example: search relevance percentage, seached text etc
    How do I get these parameters from API?
    Thanks and regards,
    Amey Mogare

  • How to implement a single sign on  feature using java.

    Hi,
    I have a question like , How to implement **single sign on** feature in java without using any third party framework or tool like LDAP or any other which is available in the market.
    Actually the situation is i have all security information into the table and those information is used for single sign on . If a user logged in from a jsp loging page all the security role should be assigned to that particular user.
    We can do this using LDAP but i am not supposed to use the LDAP or any third party tool . I have to write a java class for that .
    please suggest me the method , how to implement this in a web application.
    Edited by: Rakesh_Singh on Mar 19, 2008 11:55 AM

    you could setup a token that specifies a user is authenticated. other applications that u want SSO can check for existance of this token
    if it is HTTP - you can save the token as a cookie and downstream apps look for this token
    yr code needs to validate that the token/cookie was indeed a valid one and not subject to man-in-the middle attack.

  • How To  use fckeditor HTML with  flex

    I am using coldfusion server technlogy.
    I am trying make demo site Flex with coldfusion.
    I want to know how to use html code with my mxml application.
    Privious i am using FCK TEXT editor with my HTML File
    Currently flex have small text editor But i need full text
    editor with all feture which include FCK Editor
    Please let me know how to integrate Fck Editor with flex
    application . Or any html file with Flex Application

    Flex has a very limited support for HTML, thus you cannot
    create a full featured editor within flex. The only work arounds I
    have seen are done using IFRAME's over your app.
    Not sure if it an option, however Apollo does a good job of
    addressing this issue by allowing full feature Javascript and HTML.
    Allen

  • Calling a FLEX application from html, using parameters

    Hi guys,
    I have this html:
    <form name="getTracing" method="POST" action="http://syyzas400/ShipmentInquiry/ShipmentDetails.html">
              QuickTrace 
    <input type="text" name="TrackNbr" size="14" tabindex="1" maxlength="11">
    <br>
    Carrier        
    <select name="Carrier" tabindex="2" style="background-color: #D8E4FF; color: black;
                             font-family: Arial; font-weight: bold; font-size: 9pt; width=114">
              <option>Option1
              <option>Option2
              <option>Option3
    </select>
    As you can notice, there is an Input field ("TrackNbr") and a selection field ("Carrier") with three options... The user enters a Tracking Nbr.
    in first field  and chooses one of the three options from the second field and hits <enter>. In this moment, as you can see from "action" area, an html (part of a FLEX application) is called. The problem is that the parameters ("TrackNbr" and "Carrier") are not transmitted and I don't know how to do that.
    This FLEX application accepts parameters using URL fragments technique (because could be called from another FLEX application, too)
    but obviously this cannot work with the above described form.
    I read about External Interface class, but everybody is talking about calling ActionScript functions, not FLEX applications. Being a newbie in this area,
    I am sure I am missing something, but what?
    Any help would be very appreciated, as usual...
    Florin

    Problem solved.
    I got rid of the form tag (and "action", obviously); instead, I created a JavaScript function used for onClick event of the submit button. Inside this function, I captured the values (using getElementById method) of the input and select field and, using these values, I created the URL for my FLEX application (used with location.href property), and BAM! Everything works like a charm... I am even able to use the Back button to exit the FLEX app and return to the selection screen.
    Now my question is, why does it work??? No complaints at all, just curiosity... I didn't use External Interface class, no exposed ActionScript functions prior calling frm JavaScript, no fancy stuff all sites I saw talking about...
    Grizz..., I have a feeling that what you described above is a simpler and more advanced way to do about the same thing I did; am I right?
    Thanks,
    Florin

Maybe you are looking for