How can I manage a button in a SWF?

Hi,
I have a SWF in a Flash container, in that SWF I have several buttons and I want to control them so when you click one it pushes a view in my mobile App.
How do I do this? From FB or from Flash?
Thanks, my code is this (only view till now):
<?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:ns1="*"
                    actionBarVisible="true" overlayControls="false" tabBarVisible="true" title="HomeView">
          <fx:Declarations>
                    <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Scroller left="0" right="0" top="0" bottom="0" id="scrollerid">
                    <s:VGroup width="100%" height="100%">
                              <ns1:MyClass1>
                              </ns1:MyClass1>
                    </s:VGroup>
          </s:Scroller>
</s:View>
And in the SWF i have buttons named "but1", "but2", etc,

Yes, by using JavaScript to create a new page by spawning a template page. The downside is that is will only work with Reader 11 (and Acrobat) and not previous versions of Reader. It also won't work if you need to Reader-enable the document so that pre-11 versions of Reader can save the filled-in form. If these limitations are not a problem and you need more help, post again.

Similar Messages

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • How can I manage controls in an RTP Streaming

    Hello,
    I'm currently using an RTP Streaming in order to play some music. I started with AVReceive2 and AVTransmit2 from sun and by adding a plugin, I managed to play MP3. So far so good.
    Because I didn't want to use view components given by sun, I created my own GUI for my player and I use it instead of using the one in sun's examples.
    I use listeners for my "buttons" (I prefer using mouselistener and Panel like in the sun's example Jamp) but I can't find a way to execute those buttons.
    If I press pause, it has to pause the streaming in AVTransmit2.
    If I press next, or previous, it has to change the process AVTransmit2.
    Each control has to be done in AVTransmit2 but my player is part of AVReceive2.
    My first guess was to check if I could use an event to tell my AVTransmit2 object to execute my controls but I havn't found a way to tell my AVTransmit2 object that it was this button I pressed.
    I finally stopped trying transmitting my orders thanks to the events.
    I tried then to find a way to get my AVTransmit2 object in my AVReceive2 object so that I could call methods but i failed :(
    How can i manage my controls so that it will call methods on my server and not my client ?
    Thanks :)
    Shad.
    Edited by: Shadwolf on Feb 9, 2010 2:15 AM

    Hi, again,
    For the next & previous button, I was thinking in something.
    Do you think it could be good to create a new class RTPClientManager which extends from RTPManager and get 2 booleans previous & next that are set to true when I press on buttons ?
    From here, couldn't I modify my function in AVTransmit2 like this (I implements ReseiveStreamEvent on AVTransmit2) :
    @Override
         public void update(ReceiveStreamEvent evt)
              RTPClientManager mgr = (RTPClientManager )evt.getSource();
              Participant participant = evt.getParticipant();     // could be null.
              ReceiveStream stream = evt.getReceiveStream();  // could be null.
               * Détection de la fermeture de connexion du client afin de fermer la transmission streaming
              if (evt instanceof ByeEvent)
                   System.err.println("  - Got \"bye\" from: " + participant.getCNAME());
                         if(mgr.isNext())
                     this.stop();
                             /* SOME STUFF FOR NEXT */
                        else if(mgr.isPrevious())
                     this.stop();
                             /* SOME STUFF FOR PREVIOUS*/
                    else //means it's the stop button called
                              this.stop() ;
         }Would it work ?
    If you have better ideas I am ready to hear theam :P
    But if this works, I will manage stop, next and previous, but how could I manage play & pause button ?
    I can't find a proper solution to manage my controls :(

  • How can I manage six email accounts WITHOUT them all appearing (twice) in the Folders column?

    How can I manage six email accounts WITHOUT them all appearing (twice) in the Folders column?
    All I need is ONE INBOX (like Windows Mail used to do) ...
    I can see in the 'Account' column of each message which email account it's using.
    Then, I either junk or read the message, followed by delete or file to one of my created folders.
    As it is, half my page is depth is taken up by 12 lines of Account names !!!

    That still leaves SIX lines of Account names down the side. All I want is ONE INBOX ... (I can see which account each message belongs to in the 'Account' column...)

  • I have several phones on my itunes accousnt how can i manage to see only my information

    I have both my daughter and my sons iphone onmy itunes account.  How can I manage my storage to seeonly my apps and my music?

    I don't believe that there is a way to do that.  I would sugest using automatic downloads to keep your apps synced across both phones.  You might also want to note that just about any app you have ever download will be available for free download via icloud.
    Wish I could be more help.

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can i create a button with a dynamic picture?

    How can i create a button with a dynamic picture using
    mcLoader.loadClip
    I did create one with it doesnt seem to be working. It loses
    all its
    functions (eg onPress onRelease)
    Thanks

    I solved thep roblem anyway creating a mc.. then creating
    another MC withing
    the first MC and i change the picture on the second MC. And i
    apply the
    propierities to the first MC , and works
    If i have troubles with mu sistem on the future I will use
    yours!
    Thanks!
    "the fleece" <[email protected]>
    escribi� en el mensaje
    news:e67i88$jlf$[email protected]..
    > the image loading will remove any properties or
    functions the mc had.
    >
    > you need to apply them in the onLoadInit function
    >
    > mclListener.onLoadInit = function(target_mc:MovieClip) {
    > target_mc.onRollOver=blah blah
    > };
    > var image_mcl:MovieClipLoader = new MovieClipLoader();
    > image_mcl.addListener(mclListener);
    > image_mcl.loadClip(blah, blahblah);
    >
    >

  • How can I manage more RAM on my iPod Touch 4G ?

    How can I manage more RAM on my iPod Touch 4G ?
    My iPod Touch 4G used to have 120MB of free RAM, but it suppost to have 256MB of RAM...120MB is totally not enough for the applications and the iOS to run smoothly...my applications always close in a sudden and the iOS is extremely lag...
    I'm thinking is there anyway to manage of free more RAM on my iPod Touch 4G, I wanna free at least to 150MB...
    I've tried iMemoryEnhancer, Mem Tool, Daemon Tools and Memory Free; but none of them work...I've also tried simply click on Free Memory on SBSettings...but all applications came out with the exact same result...120MB...
    My iPod Touch 4G is running on iOS 4.3.1(8G4) and got 277 applications installed with around 10 Cydia tweaks..so please can anybody help me out ?
    TYVM

    try these
    1. quit apps on MT bar
    2. restart your ipod
    also, how many G(or M) have you used in the ipod, and how many G do you have in orginal?
    Calvin

  • I want to link from Acrobat to a certain place in an .mp3-file. How can I manage this?

    Hello, recently I interviewed one of my kin. The result is a huge audio transkription in Word 2010 (which I converted to .pdf / Acrobat 10). Now I want people who read my audio transcription with biographical details about my father, whom I interviewed, to be able to jump to the spot in the interview record, where he says "in the year 1234 there happened blablabla", if there stands "in the year 1234 there happened, etc." in the PDF. The link shall be placed underneath the rownumbers at the left border of the document.
    The problem: Until now I can only link to files like NiceAudioFile.mp3 or GreatInterview.wav or TheBestBiography.flac, but not to a certain time mark inside of it without the need to do a fast forward.
    How can I manage it, that the mp3 opens up in the middle / at the end / anywhere I want it to?
    Thank you for good advices in advance ...
    Yours Holger

    Insert the audio clip as a rich media annotation using the Multimedia>Add Sound tool in Acrobat
    Create your link and on the Link Action area use "custom link".
    In the popup which appears, open the Actions tab and choose "Multimedia operation (Acrobat 9 and later)"
    Click add, and make sure your audio file is targeted.
    On the bottom of the dialog choose "Seek to time..." and enter the time in seconds you wish to play from in the blank input field at the bottom
    Click OK twice to close the dialogs.

  • In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email?

    In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email? like when you tap a recipe in Marth Stewart Every Day Food for example....

    http://forums.adobe.com/message/4190932

  • How can i create a button? t

    i'm new in using flash, how can i create a button and link it in other scene? thanks in advance

    Please re-post the question to the Flash forum at http://forums.adobe.com/community/flash/flash_general.
    Steve

  • I am getting many days Called US holidays that are not US holidays and ones I do not celebrate.  How can I manage this list of days

    I am getting many days showing up in the US holiday Ca;endar that are not US holidays and days that I do not celebrate.  How can I manage this list

    You could also go through your messages app and see if you have videos or photos in there. Delete unwanted emails and empty the trash in each account. If you are trying to update over wifi try doing it by plugging into iTunes.
    If you need more space for an iOS update - Apple Support

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can i get Radio buttons  and parameters  in a Single Straight Line

    Hi Experts,
    How can i get Radio buttons  and parameters  in a Single Straight Line...
    Example:
       r1 r2 p1 p2.....
    Cheers,
    Priya
    Points granted.

    Write the following code for the selection screen:
    DECLARATION OF PARAMETERS.
    SELECTION-SCREEN: BEGIN OF BLOCK select WITH FRAME TITLE text-001,
                      BEGIN OF LINE.
                      SELECTION-SCREEN COMMENT 1(10) FOR FIELD p_detail.
                      PARAMETERS p_detail RADIOBUTTON GROUP r1 DEFAULT 'X'.
                      SELECTION-SCREEN COMMENT 25(10)  FOR FIELD p_summry.
                      PARAMETERS p_summry RADIOBUTTON GROUP r1.
    SELECTION-SCREEN: END OF LINE,
                      END OF BLOCK select.
    this will solve your poblem surly. reward the points if you find helpful
    Regards,
    Siddarth

Maybe you are looking for

  • Nota Fiscal Manual i9(n4) com referencia a i8(e1) - rejetada  - 269

    Bom dia, Estou com um problema, quando emito um nota fiscal manual modelo eletrônico antigo ( n4 ) com referencia a uma eletrônica antiga ( e1 ), o sejaz rejeita a NFe com código de status 269 - Rejeição: CNPJ Emitente da NF Complementar difere do CN

  • Exporting report as PDF

    Hi, Is there any provision in BAM to export a report in PDF ,Excel,PPT or word format. I would really appreciate if someone could give me a solution regarding this. Regards, Lathika

  • Journal Entry DocEntry

    Hi Experts how to know the DocEntry of Journal Entry because when im uploading IP in DTW and the DocType is JE i was failed to upload because it say's "Base document card and target document card do not match. [RCT2DocLine][Line8] hope you can help m

  • Write console output to file

    Hi! I am trying to get powershell to write the results of a query to a txt file. It creates the text file, but its blank everytime heres my code: Clear-Host $a = Get-Content "d:\server_names2.txt" foreach ($server in $a) foreach ($Service in (Get-Ser

  • Dynamic routing through VPN on ASA

    I have an environment with multiple remote offices connecting to the an ASA at the core. Currently we create seperate IPSec tunnels to each subnet that the remote office needs to connect to. We would like to enable dynamic routing to allow access to