Function in component in tilelist in flex

i am taking 4 hardcoded images from an xml file in flex
tilelist component and i just want to drag and drop one image from
tilelist to another but i am unable to call mousemove function in
component of tilelist

Hi djh88ukwb,
From your post if I understand you correctly you want to listen for a event in record component when a button in main mxml is clicked...based on this
assumption I am suggesting you a solution...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()">
<mx:Script>
  <![CDATA[
   private function onButtonClicked(event:MouseEvent):void
   rec.swapstate(event);
  ]]>
</mx:Script>
<ns1:record id="rec" x="9" y="6" camera="{camera}" microphone="{microphone}" creationComplete="makeEvent()"></ns1:record>
<mx:Button id="myBtn" label="Call Function in Record Comp" click="onButtonClicked()" />
</mx:Application>
<!-- In your record component Add a public function  swapstate as shown below-->
public function swapstate(event:MouseEvent):void {
                viewstack1.selectedChild=config;
Please try this and let me know....
Thanks,
Bhasker

Similar Messages

  • Enterprise Services, Service Operations and Functional Business Component

    Hi,
    in the Enterprise Service desing guide (see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40c05360-0501-0010-63bd-aedd415b6e05 ) the relations between Enterprise Services and Service Operations are covered.
    I understand that one Enterprise Service consists of one or  more Service Operations. For Example General Ledger Processing ES offers seven Service Operations. (See Solution Composer)
    Functional Business Components offer one or more Enterprise Services and several Service Operations. As mentioned in the Design Guide, an Enterprise Services is dedicated to a certain Functional Business Component. An Enterprise Service could use several Service Operations of  one ore more Functional Business Components.
    When browsing the Solution Composer I couldn't discover any Enterprise Service that uses Service Operations of more than one Functional Component.
    Here's my question: Does anyone know an Enterprise Service  described in the Solution Composer which uses Service Operations of several Functional Business Components? If there aren't any, why?
    Regards,
    Sebastian

    Sebastian,
    I haven't looked through the entire set of preview services, but most of what I have seen is consistent with what you are describing. I think the short answer is the ESA preview system is really a pre-release of the intial ESR which itself is essentially an extension of XI's integration repository. These are basically the finer grained object and interface level services.
    SAP should be releasing some significant content updates to this ESR after NW2004S goes GA later this year. More importantly the next edition of the ESR tied to the BPP release will greatly expand on the scope including containing the more complex service defintions and process models which cut across components that you are looking for.

  • Assigning different line items to different function(order component spec)

    Hi,
    I am facing a problem. Could you please help me out?
    Say order line is following
    <osm7dd:OrderLine>
    <osm7dd:line1>line1</osm7dd:line1>
    <osm7dd:line2>Motorola 200</osm7dd:line2>
    <osm7dd:line3>MOT200</osm7dd:line3>
    <osm7dd:line4>Mobile</osm7dd:line4>
    <osm7dd:line5>07760613421</osm7dd:line5>
    <osm7dd:line6>O3</osm7dd:line6>
    <osm7dd:line7>00</osm7dd:line7>
    </osm7dd:OrderLine>
    And say I have 2 functions(order component secifications)
    Is there any way so that
    only line1, line2 and line3 are assigned to function1
    and line3,line4, line5, line6 and line7 are assigned to function2?
    Regards,

    Hi Tarini,
    Thanks for reply.
    Could you please tell me what is the difference between OrderLine and OrderItem?
    However say the request is following:
    In this case say I have two functions: function1 and function2
    And I want 'MobileNum' to be assigned with function1 only; and not with function2.
    I have different roles for function1 and function2 users
    And I don't want to show the 'MobileNum' to function2 users.
    Could you please tell me how can I do that?
    <ord:CreateOrder xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement" >
    <osm7dd:ServicesOrder xmlns:osm7dd="http://www.example.org/osm7Order1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <osm7dd:orderId>orderId-1000</osm7dd:orderId>
    <osm7dd:OrderLine>
    <osm7dd:productName>MOTO-200</osm7dd:productName>
    <osm7dd:productDesc>Motorola 200</osm7dd:productDesc>
    <osm7dd:productCode>MOT200</osm7dd:productCode>
    <osm7dd:class>Mobile</osm7dd:class>
    <osm7dd:MobileNum>07760613421</osm7dd:MobileNum>
    <osm7dd:lineID>O3</osm7dd:lineID>
    <osm7dd:BundleID>00</osm7dd:BundleID>
    </osm7dd:OrderLine>
    <osm7dd:OrderLine>
    <osm7dd:productName>SAMS-TOCO</osm7dd:productName>
    <osm7dd:productDesc>Samsung Toco</osm7dd:productDesc>
    <osm7dd:productCode>SAMTOC</osm7dd:productCode>
    <osm7dd:class>Mobile</osm7dd:class>
    <osm7dd:MobileNum>07760613422</osm7dd:MobileNum>
    <osm7dd:lineID>O4</osm7dd:lineID>
    <osm7dd:BundleID>00</osm7dd:BundleID>
    </osm7dd:OrderLine>
    </osm7dd:ServicesOrder>
    </ord:CreateOrder>
    Regards,

  • Unable to change component children properties in flex

    Hi,
    I have a component named PatientCanvas derived from Canvas
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="Alert.show(getChildren().length.toString())">
    <mx:Script>
    <![CDATA[
         public function showChildren():void{
              Alert.show(getChildren().length.toString());
    ]]>
    </mx:Script>
         <mx:Image source="Patient.jpg" />
         <mx:Label id="patientName"/>
    </mx:Canvas>
    Inside Application script I have a function in which I create new instance of PatientCanvas
    var pCan:PatientCanvas  = new PatientCanvas ;
    at this location I get the alert showing "2" due to the creationComplete event handler
    after this I call pCan.showChildren() which gives out alert showing "0"
    not understanding why? In previous line it had 2 children.
    I need to change the text of the label 'patientName' in pCan. But pCan has zero children hence pCan.patientName is null.

    Hi Ranjith_SQL,
    According to your description that you have add the Data label on your stacked column chart  which by default display in the middle of the chart, you want them to appear on the top of the stacked column chart, right?
    For a Stacked Column Chart, the data labels are always placed in the center of the Series bars. This is by design. I also  test it on my new version of SSRS 2014  and find have the same result.
    If you really need the data label to display on the top, I recommend you to change the chart type to column chart which by default have the Data labels display at the top of the column: 
    You can also submit an wish at
    https://connect.microsoft.com/SQLServer/
    If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Thanks for your understanding.                        
    Regards
    Vicky Liu

  • Run function on component load / focus

    hi
    I want to run a function every time a component is opened /
    focused upon.
    at the moment I am running the function with the
    "creationComplete" property which works fine, although it only runs
    when the component is first created, whereas I want to run the
    function every time the component is opened and re-opened etc......
    is there some sort of event call or something that can make
    this possible.......
    any suggestions?
    Jon.

    Something like this might work.
    Create the function you want to call:
    <![CDATA[
    import mx.controls.Alert;
    private function doFocusStuff() : void
    Alert.show('hi');
    ]]>
    On the component for which you want to run the function on
    focus set the property focusIn like:
    <mx:TextInput focusIn="doFocusStuff()" .../>

  • Call function from C++ (dll file) in Flex

    Hi,
    i using Adobe Flash Builder with Flex 4 , i write a C++ Code in dll File , i need to access to my Function in dll file in Flex ?? what should i do ??

    Lets make sure you are performing the correct actions:
    1.  Place a Call Library Function node on your block diagram.
    2.  Double click the node to open up the Call Library Function dialog box.
    3.  Click the Browse button and navigate to the DLL function.  Select the proper DLL and click Open, or just double click on DLL.
    4.  On the Function Name box, click on down arrow.  A list of functions found in the DLL should be displayed.  Choose the function.
    5.  On the Calling Conventions box, click on down arrow and select C or WINAPI.  In your case, it should probably be C.
    6.  The Parameter box should show return type.  In the Type box, select the data type of the return value.  Since you won't see HRESULT here, you need to find out what data type HRESULT is in the C code.  I would guess it is a numeric so select numeric from the drop down list.
    7.  Click the Add a Parameter After button.
    8.  In the Parameter box, change the name arg1 to the actual name of your first parameter, which is byPortNumber.
    9.  In the Type box, choose Numeric, since a BYTE is a numeric in Labview.
    10. In the Data Type box, choose Unsigned 8-bit Integer, since a BYTE is a U8 in Labview.
    11. In the Pass box, choose Value.  If the C parameter was a pointer (*BYTE), you would choose Pointer to Value.
    12. Verify that the contents of the Function Prototype box contains the correct syntax according to the C declaration.
             C:  HRESULT RSPInitComm (BYTE byPortNumber)   should be in Labview: long RSPInitComm(Unsigned char byPortNumber)
    13. Click OK button.
    Try it out.
    If you get a crash, change the Calling Convention to WINAPI.
    - tbob
    Inventor of the WORM Global

  • Adobe Widgets -Function module not displaying data in flex

    Hello All,
    I am using a function module to obtain the data of the tables parameter. When i run in the adobe flex its not displaying the table data. I have written even the code also in the adobe flex.
    I have set all the configurations and even set the RFC also.
    Can anybody help me out in this issue.
    I will reward you with points.
    Thanks,

    hi karan,
    I hope that you are using the REST service from the sap widget foundation.
    what type of error it displays?
    code :
    <mx:HTTPService id="sapService"
    url="http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct" method="POST"/>
    reference :
    Adobe widget :(which is created using adobe flex,also the relevant article attached)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e00ca8a3-51aa-2a10-fdaf-97858e6acd12
    thanks
    jaideep
    Edited by: Abesh Bhattacharjee on Feb 28, 2008 12:31 PM
    Please do not ask for points. You will get them if you deserve them !

  • How to call Portal KM "Edit Online" function from component?

    I need to call standard portal "Edit Online" operation from my portal component for some file inside KM "/documents" directory. How can i do it?

    Figured it out.  I need to add a reference to the button that will be calling this function outside of the movieClip from INSIDE of it.
    var manualButton:DisplayObject = MovieClip(parent.parent.parent).manualButton;
    manualButton.addEventListener(MouseEvent.CLICK, onpauseButton);
    was added to movieClip that has the function and the "manualButton" is the name of the button on the outside of the movieClip that will be calling it.
    Thanks anyways!

  • Run function in component from Main Application

    Hello all.
    I have my main.mxml application, that has a component inside of it.  The component is called <ns1:record/> with an id of "rec".
    This component has a function inside of it named doConnect(event:MouseEvent).
    Now i want to be able to add an event listener to a button on the Main.mxml that will run a function inside the component when clicked.
    I have managed to add an event listener to the Main.mxml that triggers a function held within the Main.mxml when a button clicked inside the component is clicked.
    I did this by using this code.
                <ns1:record id="rec" x="9" y="6" camera="{camera}" microphone="{microphone}" creationComplete="makeEvent()">
                </ns1:record>             //Event listener
                public function makeEvent():void {
                    rec.backbtn.addEventListener(MouseEvent.CLICK,swapstate);
                protected function swapstate(event:MouseEvent):void {
                    viewstack1.selectedChild=config;
    No matter what i try thou i cant get this to work the other way around.
    What i need help with is - clicking a button within the Main.mxml to run a function inside the component Record.
    If anyone can help that would be great !
    Thanks in advance.

    Hi djh88ukwb,
    From your post if I understand you correctly you want to listen for a event in record component when a button in main mxml is clicked...based on this
    assumption I am suggesting you a solution...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()">
    <mx:Script>
      <![CDATA[
       private function onButtonClicked(event:MouseEvent):void
       rec.swapstate(event);
      ]]>
    </mx:Script>
    <ns1:record id="rec" x="9" y="6" camera="{camera}" microphone="{microphone}" creationComplete="makeEvent()"></ns1:record>
    <mx:Button id="myBtn" label="Call Function in Record Comp" click="onButtonClicked()" />
    </mx:Application>
    <!-- In your record component Add a public function  swapstate as shown below-->
    public function swapstate(event:MouseEvent):void {
                    viewstack1.selectedChild=config;
    Please try this and let me know....
    Thanks,
    Bhasker

  • Transfer Function Block Component not working properly

    When using a Transfer Function Block, and you enter in the polynomial coefficients for a simple RC Passive Low-Pass Circuit, and perform an AC analysis side-by-side to its circuit equivalent, it works great.  The 2 frequency response waveforms are identical.  However, when you add another RC Low-Pass section in cascade with the 1st one, making it a 2-pole RC Passive Low-Pass Circuit, and you put its polynomial coefficients into the transfer function block the results of the AC Frequency Response is not identical to its 2-pole circuit equivalent.  I double checked my math to make sure my transfer function math was correct.  Since 2 transfer functions are in cascade, the transfer function from the 1st RC stage is multiplied times the transfer function of the 2nd RC stage, and the result is the overall transfer function.  I even went as far as creating 2 transfer function blocks, each of them, with a single RC transfer function and connecting them in a cascade fashion.  The results were the same....the trasnfer function block(s) do not resemble their circuit equivalent models for a >=2pole Passive RC Low-Pass filter.

    The transfer function of a RC ist not retroactively-free, this is the reason why the transfer function of 2 RC Circuits is not 1 / (1 + RC*s)^2 ! You can not multiply the one function of one RC with the other!
    You have to solve the differential equation of the RC circuits, to get the real transfer function.

  • Drag and drop images using tilelist in flex

    i just want the working code for drag and drop images using
    tilelist in flex

    Try JDK 1.4 and call setDragEnabled(true)
    I will also post updated version of MediaChest soon using custom TransferHandler for DnD different types of Objects.

  • Use component in TileList

    I have a custom ItemRenderer for my TileList. The problem is
    my custom itemRenderer is in a different namespace, and i get this
    error:
    Definition LibraryThumb could not be found. LibraryThumb is
    my custom itemRenderer.
    How can i solve this? Here is my TileList definition:

    Hey do you really mean different namespace or different
    package.
    if you mean a different package just put the whole
    package-name in front of LibraryThumb
    if you mean different namespace then I think you have to put
    the namespace followed by a double colon (::) infront of
    LibraryThumb
    hope i could help you
    cheers
    dietmar

  • How to call the built in functions from flex?

    I want to use some of the Built in functions like the twelvesprints.getActivityOwnerId() in flex. From the java example i could make out that we needed to import some classes to do this but was unable to find them for flex.

    You can download the SWC file for Flex Method app here:
    https://sandbox.12sprints.com/FlashMethodLib.swc
    Java samples are located at
    https://streamwork.com/api/Java.zip
    Method exaples are available at:
    https://streamwork.com/api/methods/com.streamwork.hello_world.zip
    https://streamwork.com/api/methods/com.streamwork.constants.zip
    https://streamwork.com/api/methods/com.streamwork.using_arrays.zip
    com.streamwork.testFlash

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the 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: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Layer id to component id in Flex

    For designers is imperative to give individual names to layers, the thing is that these "names" in Flex continue as layer ids instead of being used as component ids (which would cut ALOT of work!!!). Please! Change this!!!!!

    Well it would help save time in the development stage just by allready exporting components ids that can be used by Flex, instead of having to create from scratch the ids. I found this helpfull because i'm working with a developer and he noticed that, as every good designer, my layers have a logical naming that he could use as components ids IF Flex could use the layer's id as a component id (since the component in FC ocuppies a layer that I name specificly. If Flex could use the "search and change key words" to search for the layer's ids and automatacly change them to component's ids it wouldn't matter, but since Flex doesn't do that, and since every great FC project has to pass through Flex....
    The point is that instead of having the both of us entering ids it would only be necessary for me to do it.
    Or at least have a Flex transition window where i could, in FC, atribute the id i want to the component.
    If i've not made myself clear i'm not talking about a generic component as you can se in the library. What i'm talking about is, for example, if I had 3 main buttons, all from the same component, in different layers (of corse), and if i named those 3 layers as "home_bt", "contacts_bt" and "faq_bt", when the project got imported to Flex, Flex would recognize the layer's ids as being each duplicate component's id in Flex....
    I hope you understood me. My guess is that you guys are trying to make FC as a softer flash for non-flash users/ designers, and Flex as the developers tool, separating the too worlds that today are a bit mixed, demanding programing skills for designers and designing skills for programmers....my guess is that this is a pertinent issue in the separation of these two worlds....and me, as a designer, can help in the developing stage better and faster

Maybe you are looking for

  • How can i get my Powerpc to boot from a PCIe drive

    Hi, I just upgraded my PowerMac G5 Quad 2.5 with 16GB of ram & two 1.8 tyrabite drives. My problem is, I also installed a Velocity solo x2 PCIe card for a solid state drive. the system recogizes the drive but I'm having a problem with getting my syst

  • How to reset the auto-complete email adresses?

    How can I delete old email addresses from auto complete? I have been having trouble trying to find out how to delete the old typed email history. For an example, if I go to send a picture to Bob, I start typing Bob and it comes up with 3 old emails o

  • Would this new hard drive work on my MacBook?

    http://www.bestbuy.com/site/olspage.jsp?skuId=5566988&st=seagate&lp=2&type=produ ct&cp=1&id=1055388011277 Just thinking about upgrading my MacBook a bit, and wondering if this hard drive (which seems like a great deal) would work out in my MacBook or

  • Change Infotype - History

    Hi Experts, I'm facing issue with SAP HR : I'm using PA30 to change IT0002, IT0105 and IT0315. I'm using the "change" icon and I'm adding a new start date : I'm expecting SAP to create a new recording so I can track the history. Nevertheless, it over

  • How do i go back to a previous version of firefox after downloading vers. 5? it won't let me use McAfee site advisor.

    can i restore an older version of firefox? i want to be able to use McAfee site advisor, and it isn't supported in the newest version.