Flex control inside flash Sprite control

Hi,
   in my project,i have a requirement to add flex control e.g. TextArea to flash Sprite control. is this possible?
regards,
Rakesh

yes you can add TextArea to Sprite
set the x,y, width and height of the TextArea object and added to Sprite using
spriteObj.addChild(textareaObj);
If this post answers your question or helps. Please mark it as such

Similar Messages

  • Flex mobile 4.6 app works inside flash builder but not in android emulator

    Originally posted on stackoverflow: http://stackoverflow.com/questions/8663892/flex-mobile-4-6-app-works-inside-flash-builder- but-not-in-android-emulator
    I have a basic flex mobile 4.6 app and it works fully fine in the flash builder built-in emulator using an android device profile like aria...
    It also launches fine in the android emulator but one particular view shows blank (and this view works fine in flash builder).
    Before I get in to many details of the view are there any categorical gotchas that can be causing this?
    I can't seem to get the trace statements from the app to show in 'adb logcat'. It seems I need to compile a debug version of the apk but I don't know how to do this. I use the 'Export Release Build' from the Project menu in flash builder and it doesn't seem to have an option for debug=true.
    The problematic/blank view basically uses the stagewebview and iotashan's oauth library to call linkedin rest apis... A different (and working) view can make restful web service calls in the emulator fine, so it doesn't seem to be an internet permission.
    The source code contained in the problematic/blank view is almost identical to the tutorial found at:http://www.riagora.com/2011/01/air-and-linkedin/
    The differences are: a) The root tag is a View b) I use StageWebView instead of HtmlContainer c) I use my own linkedin key and tokens.
    I would appreciate it if someone can provide me with some pointers on how to troubleshoot this situation. Perhaps someone can tell me how to debug the app while running in the emulator (I think I need the correct adt command arguments for this which matches the 'Export Release Build' menu but adds the debug param?)
    Thanks for your help in advance.
    Comment Added:
    I suspect that this has to do with connections to https:// api.linkedin.com and https:// www.linkedin.com. The only reason I can think of that the same code is not having issues inside of Flex Builder but indeed having issues in the Android emulator is something to do with certificates. Any ideas?

    Thanks er453r,
    I have created a project that clearly reproduces the bug.  Here are the steps:
    1) Create a UrlLoader and point it to https://www.google.com (HTTPS is important because http works but HTTPS does not)
    2) Load it
    3) Run in Flash Builder 4.6/Air 3.1 and then run in Android emulator.  The former works with an http status 200.  The latter gives you an ioerror 2032.  I am assuming what works in Flash Builder is supposed to work in the Android Emulator and what what works in the emulator is supposed to work in a physical device (plus or minus boundary conditions).
    I see a certificate exception in adb logcat but not sure if it's related...
    Here is the self contained View code which works with a TabbedViewNavigatorApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:ns1="*"
                        xmlns:local="*"
                        creationComplete="windowedapplication1_creationCompleteHandler(event) "
                        actionBarVisible="true" tabBarVisible="true">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected var requestTokenUrl:String = "https://www.google.com";
                                  protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader = new URLLoader();
                                            loader.addEventListener(ErrorEvent.ERROR, onError);
                                            loader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                                            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                                            loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
                                            loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                                            var urlRequest:URLRequest = new URLRequest(requestTokenUrl);
                                            loader.load(urlRequest);
                                  protected function requestTokenHandler(event:Event):void
                                  protected function httpResponse(event:HTTPStatusEvent):void
                                            label.text += event.status;
                                            // TODO Auto-generated method stub
                                  private function completeHandler(event:Event):void {
                                            label.text += event.toString();
                                            trace("completeHandler data: " + event.currentTarget.data);
                                  private function openHandler(event:Event):void {
                                            label.text +=  event.toString();
                                            trace("openHandler: " + event);
                                  private function onError(event:ErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("onError: " + event.type);
                                  private function onAsyncError(event:AsyncErrorEvent):void {
                                            label.text += event.toString();
                                            trace("onAsyncError: " + event);
                                  private function onNetStatus(event:NetStatusEvent):void {
                                            label.text += event.toString();
                                            trace("onNetStatus: " + event);
                                  private function progressHandler(event:ProgressEvent):void {
                                            label.text += event.toString();
                                            trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
                                  private function securityErrorHandler(event:SecurityErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("securityErrorHandler: " + event);
                                  private function httpStatusHandler(event:HTTPStatusEvent):void {
                                            label.text += event.toString();
                                            //label.text += event.responseHeaders.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function httpResponseStatusHandler(event:HTTPStatusEvent):void {
                                            label.text +=  event.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function ioErrorHandler(event:IOErrorEvent):void {
                                            label.text +=  event.toString();
                                            label.text += event.text;
                                            trace("ioErrorHandler: " + event);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Label id="label" y="185" width="100%" color="#0A0909" horizontalCenter="0" text=""/>
    </s:View>

  • Reg: VC Flex Controls Styling using Portal theme.

    Hi,
    We have branded the VC flex controls in Portal themes. I have enabled style option in VC.
    Some Flex UI elements are not getting rendered in VC application because of style option being enabled in VC. The default option loads the VC application properly. Only when style option is enabled in Toos->options->compiler there is a problem
    Below are the versions:
    SAP Enteprise Portal 7 SP15
    SAP Visual Composer 7.1 SP17
    is it becuase of mismatch in the versions ? has anybody faced similar kind of problem ?
    Thanks in advance.
    Regards,
    Aditya Metukul

    This refers to a style in frameworks/projects/framework/defaults.css or, the framework itself. So, it seems as if the Flex framework default style assumes we are using the Spark theme. I'd like to use the Spark theme, but I still have many Halo components to convert.
    It seems like the only way to avoid this situation is to re-compile the framework SWC. Is that the case?

  • Call Flex swf inside extension object

    Hi,
    I am building a user application using Flex 3.  The application allows user to input information using input components such as text areas, etc.  The application will create an xml file from user info.  The application needs to save xml file in user's local hard drive.  For user convenience, we want to be able to call the application from inside a DW menu.  This requires an extension which implies installing an mxp.  To avoid multiple installs, we want to deliver the application inside the extension.  This involves creating an extension object that has my Flex app embedded in it.  I have been able to create the extension object, have it show up in my insert bar, and deliver my Flex swf inside the extension.  However, when I type inside a text area in my swf, I am not able to.  It acts as if disabled.  I explicitly set my text area as editable=true and enabled=true.  Why?  Here is my extension:
    <html>
    <head>
    <title>WBT Ouline Tool</title>
    <style>
    body { margin: 0px; overflow:hidden }
    </style>
    <script language="javascript" type="text/javascript">
    function createTextFile(textItem) {
      //future code to create xml file will go here.
      //it will use DW FILE I/O APIs
    </script>
    </head>
    <body>
    <form>
       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
       id="wbtOutline" width="406" height="276"
       codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
       <param name="flashvars" value="bridgeName=wbtOutlinePanel"/>
                <param name="movie" value="wbtOutline.swf" />
       <param name="quality" value="high" />
       <param name="bgcolor" value="#869ca7" />
       <param name="allowScriptAccess" value="always" />
       <embed src="wbtOutline.swf" quality="high" bgcolor="#869ca7"
        width="406" height="276" name="wbtOutline" align="middle"
        flashvars="bridgeName=wbtOutlinePanel"
                    play="true"
        loop="false"
        quality="high"
        allowScriptAccess="always"
        type="application/x-shockwave-flash"
        pluginspage="http://www.adobe.com/go/getflashplayer">
       </embed>
    </object>
    </form>
    </body>
    </html>

    Do you know where I can find examples on how to use dreamweaver.flash.newControl()?
    I am still having no luck.  My control shows up but can not interact with it and external interface not available.

  • Flash sprite has to be visible (from YOU !) in authoring mode to   work !

    If this can help (and if you can confirm !).
    I already went through the trouble that you can't put a Flash
    sprite off
    stage otherwise you loose control over it (you have to keep
    one pixel on
    stage), but this is more tricky :
    I suddenly had my Flash sprites working only in projector
    mode and I
    discovered that lower right corner of the stage was not
    visible (stage
    window was resized), which is where I hide my Flash sprites.
    As soon as
    I could see the corner, problem was gone in authoring mode !
    PJ

    Why not make your FlashSprite invisible?
    Or change it's z-index and put it behind everything
    else?

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Using a swf generated by Flex from a Flash component

    I know you can include and control a swf generated by Flash
    within a Flex component. But can you do the inverse? Can you use a
    swf generated by Flex within a Flash project/component?
    We plan to develop a "core" module that would be used in a
    lot of other Flash and Flex components we'll develop in the future.
    This core would be a package of classes that could be easily
    re-used by the components. There would be nothing visual in it,
    only standard classes.
    Even if this core would not contain any visual components, we
    would like to develop it using Flex since we prefere Flex Builder
    to the Flash editor to code and debug.
    But I'm not sure if:
    1) A core module like this, developped in Flex, could be used
    by our Flash components or only by other Flex components?
    2) If we use Flex to generated this core, will the resulting
    .swf be bigger than if we would have used Flash to develop it?
    Since there will be no Flex visual components in it, maybe it will
    be as small? Is there a compiler parameter to tell Flex to only
    include the minimum things possible in the generated .swf?
    Any help or link about this would be really appreciated!
    Thanks you in advance!
    P.S. I apologize to those aware that this message was also
    posted on another Flex related forum, but I received no reply on
    it!

    try this. for me it has worked.
    import flash.net.URLRequest;
    import flash.utils.Timer;
    var loader:Loader = new Loader();
    var timer:Timer;
    var myclip:MovieClip;
    //load the Flex Component
    loader.load(new URLRequest("IS.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaderDone);
    addChild(loader);
    function loaderDone(e:Event) {
    timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, handleTimer)
    timer.start();
    function handleTimer(event:TimerEvent):void {
    //cast the loader.content into MovieClip to access
    currentFrame.
    myclip = loader.content as MovieClip;
    if (myclip.currentFrame == 2)
    however, i need to access properties of IS.mxml..
    any data member would work..
    or if i could dispatch an event in IS.mxml and catch it in
    flash through IS.swf, it would work.
    Pls somebody suggest.

  • Flash sprites user response

    When integrating Flash with Director - I have always in the
    past done the
    following:
    on (rollOver) {
    getURL ("lingo:cursor 280");
    on (rollOut) {
    getURL ("lingo:cursor 0");
    on (release) {
    getURL("event: gotoQ3PDF");
    I have always done the above as flash objects do not respond
    to mouse
    events - on rollOver and rollOut the basic, single lingo
    command to change
    the cursor, then on release I am executing an event (to
    perform multiple
    lingo commands) restoring cursor, goto frame/marker, etc...
    Has anything changed recently where you can do anytype of
    "global"
    command/script the does this across the board or does it
    still have to be
    hand-coded for each button in flash?? Our London office is
    doing some
    elements for us (in the US) for a CD project where there is a
    number of
    buttons in multiple flash movies....
    Thanks in advance!!!

    Thanks Rob --
    Dir MX2004 (w/flash 8 asset/xtra update) - Flash 8
    Excellent! Yes -multiple buttons (menu's) within individuals
    swf's
    Much better approach - as I am currently manually scripting
    individual
    events for each button - on(release)...
    Appreciate it!
    Michael
    "Rob Dillon - Adobe Community Expert"
    <[email protected]> wrote in
    message
    news:[email protected]...
    > What version of Director and what version of Flash are
    you working with?
    >
    > There is a Flash cursor behavior in the Director Library
    that will
    > handle the cursor change in Director, so you don't have
    to use getURL
    > for that part.
    >
    > What sort of action do you want to perform with these
    Flash buttons?
    > From you example it looks like you want some simple
    navigation control
    > in Director. Is each button a unique Flash .swf? Or do
    you have a number
    > of buttons in one Flash .swf? If each button is
    separate, then you could
    > just write a behavior as if the Flash sprite was any
    other button.
    >
    > If you have multiple buttons in any given .swf then
    you'll have to send
    > out a message from the .swf to initiate an action. There
    is a
    > mouseOverButton property for Flash members, but it can
    only tell if the
    > cursor is over a button, not a particular button.
    >
    > To give you flexibility and maybe simplify things, you
    could use a
    > getURL function in a behavior and set up a naming
    convention for your
    > Flash buttons. For instance, if you have four buttons in
    a Flash .swf,
    > name their instances sequentially, "one", "two", etc.
    then you can write
    > a simple actionscript function for the .swf:
    >
    > var buttonArray:Array = new Array(one,two,three,four);
    >
    > for (i in buttonArray) {
    > buttonArray
    .onRelease = function() {
    > getURL(this);
    > }
    > }
    >
    > this will send the name of the button instance that was
    clicked on to
    > the Director movie.
    >
    > Then you can just place a behavior like this on the
    Flash sprite:
    >
    > on getURL me,data
    > if data contains "one" then ....
    > end
    >
    > or use a case statement to parse out the string that was
    sent from the
    > Flash .swf.
    >
    > This might at least simplify the Flash development
    process.
    >
    > --
    > Rob
    > _______
    > Rob Dillon
    > Adobe Community Expert
    >
    http://www.ddg-designs.com
    > 412-243-9119
    >
    >
    http://www.macromedia.com/software/trial/

  • Flash sprite in Director: slow, slow!

    It's not a new problem but maybe there's a new solution?...
    I have a Flash game in a Director projector. The Flash games
    works fine by itself (not embedded in Director), but inside
    Director, everything runs much slower. Is there any ways to speed
    things up?
    Thanks
    Serge

    Yea Flash tends to run a bit slower in director, be sure the
    default
    direct to stage flash member property is set.
    Mx 2004 has an updated flash xtra that runs a little more
    effeciently,
    with an option to run multiple flash sprites in the same
    memory space.
    There's a downloadable director update for flash 8.0

  • Detect a flash sprite

    Hello:
    I need to detect when I click over a flash sprite what sprite is.
    With bitmap no problem: put the clickon
    But with swf I can't detect when clicked.
    Can you help me please?

    Perhaps a combination of clickLoc and the point.inside(rect) function would do what you ask.

  • Opening a PDF inside Flash compile errors

    I'm trying to open a pdf inside flash.  I followed a tutorial online but I'm have issues with the compiler.  Here's my code:
    import flash.html.HTMLLoader;
    import flash.html.HTMLPDFCapability;
    import flash.html.HTMLWindowCreateOptions;
    if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK )
        var htmlLoader:HTMLLoader = new HTMLLoader();
        var url:URLRequest = new URLRequest( "01_Advanta2_Master.pdf" );
        htmlLoader.width = 800;
        htmlLoader.height = 600;
        htmlLoader.load( url );
    var pdfHolder:UIComponent = new UIComponent();
    pdfHolder.addChild (htmlLoader);
        addChild (pdfHolder);
    It results in these errors:
    1046: Type was not found or was not a compile-time constant: UIComponent.
    1180: Call to a possibly undefined method UIComponent.
    I've tried to import fl.core.UIComponents in the beginning but that resulted in this error:
    1172: Definition fl.core:UIComponent could not be found.
    Any help would be greatly appreciated.

    You need to have components in the library in order for them to be accessible.

  • Can i use flex components in flash?

    hi all,
    i recently downloaded flex and saw that the components have a
    much better feel than the components which ship with flash 8 pro.
    is there a way to use flex components in flash?
    any help would be appreciated.
    thanks,
    gaurav

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

  • How to load a pdf inside flash

    I need open a pdf inside flash how I do this?

    armandix,
    > I need open a pdf inside flash how I do this?
    You can't, really. Flash Player doesn't support Acrobat.
    Specifically,
    you can't open a PDF in Flash and have it act like a PDF
    (scrollable,
    searchable, etc.). But you can certainly convert your PDF (or
    a page from
    your PDF) to an image format and import that.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Using Flex components within Flash CS3

    I'm new to Flex and I enjoy all of the components that it has
    to offer, but I am wondering about their availability within Flash.
    My plan is to make a highly animated and interactive menu and
    I have reached a point where I have to ask two questions:
    1. Is is possible to use any of the Flex components within
    Flash CS3?
    2. If the first is not possible, then if I make my menu and
    specify "containers" within the Flash file then is it possible to
    populate these "containers" with Flex components by making the
    Flash (.swf) file of my menu into a Flex component itself?

    No, Flex components cannot be used in Flash 8.

  • How do I get a program to run inside flash

    How do I get a program on my harddrive to run inside flash on my computer? I would like to build a Flash front end for my boat pc, but I would need to be able able to open up a program inside a flash.exe?
    would a external .ini  File work? if so what code would I use internally to execute the .ini
    any help would be greatly appreciated Sincerely newwaveboats

    Thanks for the tip about Zink, but it is not what I'm after.
    On (Release)
    FS Command ("exec", "install.exe")
    End On
    google search just revealed this button code but it was for back in the day "Flash 8" as1 or 2.  as3 your not allowed code to be plaaced on buttons.
    So I know it is possible, I just need the know how.
    EDIT: I looked further into to this, and it is perfect for my needs. my first look was quick and I saw a close to 300 price tag and that it was a compiler, 2nd longer look showed it was free for personal use and has lots of great system features.
    Thanks again combustion007 for your help was greatly appreciated, Sorry I did not realize how perfect it was when you first told me about it.

Maybe you are looking for

  • Need Help with Portal security

    Hi All, I'm using the Oracle Portal builder to post some links (Dsicoverer reports links) on a portal. Is there any way where only a certain group of people have access to those reports on the portal? Please need help. Thanks

  • How to specify ");" as a regular expression in split method of String class

    How to specify ");" as a regular expression in split method of String class using delimeters?

  • Sending Image attachment Using Mail 7.3 and OS X 10.9.3.

    For some reason sending an email with an image attached and when I select the large image size drop down menu it does not change the actual size of the image attachment. Instead it stays the same as the medium image size. In fact the message size rem

  • Xml parser certificate

    QA1: In our project, we used the third-party xml tool such as Jdom to process the xml document. Is this kind of action break the rule of certification? QA2: if the answer to QA1 is true, is it possible to integrate third-party xml tool in project and

  • Why must I use Safari with Adobe Reader X?

    I operate a Mac (OS X 10.6.8) and I prefer Firefox over Safari. For years I have used Adobe Reader 9 with Firefox (6.0.2) and have had no trouble. Now I download Reader X and it demands Safari. So what must I do? Return to Safari (do not like it!) or