dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: dynamic swfloader

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    8

    dynamic swfloader

    Hi, i want to create a dynamic swfloader that they change swf clips with my selection on a drop down menu.Did you have any idea?
    Thanks

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    You can place a SWFLoader and either push it's source value to it with scripting

    <mx:SWFLoader id="myloader">

    //placed in some other function or event handler

    myloader.source="some_swf_or_image_path";


    or you can bind it's source value to something (like a combobox selectedItem for instance) and it will populate itself based on the value of what it is bound to:


    <mx:SWFLoader id="myloader" source="{mycombo.selectedItem.data}"/>

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    8
    I have a combobox that they used to filter data, I want the same combobox if it have a concrete value change the swf clip on swfloader,if it haves other value loads different clip.

    Thanks

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    OK...so don't bind it. Push a source value to it. Doesn't matter what sends the value to it....button...combobox....datagrid...plain old scripting in a function.....etc etc etc.

  5. #5
    Junior Member
    Join Date
    May 2007
    Posts
    8
    Where i found an example on this? I don't have a lot of experience to do it.Can you help me?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center