0 Replies Latest reply on Nov 7, 2011 11:12 AM by NepoL

    How can I manage a button in a SWF?

    NepoL

      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,