Lis flash component, iconField property

Hi, me again. Concerning the list component again ...
So, I have another tricky question, how do we correctly use the iconField property?
Here is my example:
function initList()
  var s = channel("list").sprite;
  var a = new Array();
  a.push(propList("id", "1", "displayName", "1. Scan for new songs", "markerOnSelect", "SCREEN_SCAN_NEW_SONGS", "icon", "icoLibrary"));
  a.push(propList("id", "2", "displayName", "2. Settings", "markerOnSelect", "SCREEN_SETTINGS", "icon", "icoLibrary"));
  a.push(propList("id", "3", "displayName", "3. Debug", "markerOnSelect", "SCREEN_DEBUG", "icon", "icoLibrary"));
  s.iconField = "icon";
  var i;
  for (i in a)
    s.addItem(a[i].displayName, a[i]);
  _movie.updateStage();
In this case I expect each row to have an icon (somewhere) which here would always be the cast member "icoLibrary". But it doesn't work.
Can someone please help me or give me a working example?
Thanks.
David.

how do we correctly use the iconField property?
AFAIK you can't, since the SWF expects the icon to be in its own library (and can't access Director's cast library).
You could embed the List component in a Flash file with the icons you need and publish this to a SWF that you can then manipulate from within Director. At least, I expect this is possible since the Flash stuff is more self-contained, but I haven't tested it to verify my claim - nor am I going to!

Similar Messages

  • Flash Component Problem in D11

    I have a project where I am using flash component CheckBoxes.  I loaded them onto the screen and when I try to make the sprite width of each checkbox wider, the sprite seems to disappear on the stage. If I dont mess with the width, they display just fine and work correctly.
    Is this a common error for flash components in director 11?  Is it even possible to use lingo to adjust a flash component's sprite width?
    BTW - the setting of the Flash Component's sprite width occurs on an exitframe, not on a beginsprite
    Any help or info to point me in the right direction woiuld be appreciated.
    Thanks guys

    I specifically asked you for a file with a single component and a script attached that demonstrated what you were reporting. I asked for this so that I didn't have to waste time wading through extraneous code trying to figure out what was at issue.
    Your problem is that when you set the width, the height drops to zero. I don't know why. In a simple test case with a single component and a behavior attached that sets the sprite.width in the #beginSprite handler this doesn't happen - the width changes and the (original) height is maintained. Perhaps it's a consequence of makeScriptedSprite() - possibly because there is no sprite in place to start with, and therefore no original height to maintain.
    Here is your script "SetStaticProp" with my amendments:
    property pMyLinkInfo
    property pSetMyFlashProps
    property mySprite
    on new me, iNum, bSetProps, lInfo
      mySprite = sprite(iNum)
      pSetMyFlashProps = bSetProps
      pMyLinkInfo = lInfo
      return me
    end
    on endSprite me
      mySprite = VOID
    end
    on exitFrame me
      if pSetMyFlashProps = 1 then
        mySprite.static = not (pMyLinkInfo.enabled)
        mySprite.label = pMyLinkInfo.name
        tHeight = mySprite.height
        mySprite.width = 160
        mySprite.height = tHeight
        pSetMyFlashProps = 0
      end if
    end
    and here is the amended fragment from your "Generate Link Instance" parent script:
      --****Next Line causes CheckBox to go missing********
      --  sprite(CheckBoxSnum).width = 160
      myScript = script("SetStaticProp").new( CheckBoxSnum, 1, duplicate(myInfo) )
      sprite(CheckBoxSnum).scriptInstanceList.add(myScript)
      gItemSelectionList.add(myInfo)

  • Coding the "List" Flash Component

    Hello,
    I’m designing a simple list creation\editing
    application I was wondering where I can get information on coding
    the “List” Flash Component in Director MX 2004.
    I’ve got as far as finding out how change what is on the list
    using “.data” and “.labels”, but I want to
    be able to tell what the user selects from the list.
    Thanks for your time

    You can use an on change function in a behavior attached to
    the flash
    sprite.
    property thisSprite
    on beginSprite me
    thisSprite = me.spriteNum
    sprite(thisSprite).labels = ["one","two","three"]
    on change me
    put sprite(thisSprite).selectedItem.label
    end
    -- "one"
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Flash Component Button click not working

    I've gone back to an old project to change some logos around,
    and my flash component buttons no longer work. They appear on
    stage, but the click event is not happening. I authored on XP, now
    on Vista. Director 10.1. Any idea what is happening?

    If you are adding those buttons now, check for each button
    the Flash
    component tab in the property inspector and make sure the
    eventPassMode
    (lowest option) is set to #passAllways.
    HTH
    Manno
    khomel wrote:
    > I've gone back to an old project to change some logos
    around, and my flash
    > component buttons no longer work. They appear on stage,
    but the click event is
    > not happening. I authored on XP, now on Vista. Director
    10.1. Any idea what is
    > happening?
    >
    Manno Bult
    http://www.aloft.nl

  • Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?

    The documentation for Flash Builder 4 beta says that after opening flash from flash builder, I should click a "done" button in flash and flash should close and what I created in flash should be included as a component or container in Flash Builder.  Using the Flash Builder 4 beta on Windows, when I click on the "create in flash" button on the properties panel for either the new flash component or container, Flash CS4 opens, I create something in Flash and no "done" button is present.  Nor is anything present in the menus resembling a "done" option.  Where is it?

    Hi Jeffrey:
    Still no done button.  Now under commands in Flash I can convert symbols to flex components and containers and these show up in the Flash library.
    Thanks:
    Jim
    Date: Wed, 30 Sep 2009 09:58:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    Hi,
    You may need to install FlexComponentKit.mxp to your Flash CS4 beforehand.
    Jeffrey
    Date: Tue, 29 Sep 2009 17:04:36 -0600
    From: mailto:[email protected]
    To: mailto:[email protected]
    Subject: Flex Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    I apparently didn't get one.  I've looked under various workspace configurations.  Another thing that seems odd is that when Flash opens I get the opening panel that allows me to select the type of file and version of AS I want to use.  I select new file with AS3.  Any ideas on why the "done" button wouldn't be present and if the opening panel is what I should expect on opening Flash after clicking the "create in Flash" button?
    >
    >

  • Sizing a Scene7 flash component

    Does anyone know how to size a flash component? I am using the BasicZoom and Flash Flyout Zoom. Both seem to have a ton of unnecessary whitespace around them. I've seen smaller examples, but I haven't been able to figure out how to size them as cq:includes
    thanks

    The solution I came up with was to override the component and add properties to adjust the size of the Flash canvas and the viewport.

  • [svn:fx-trunk] 7765: Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.

    Revision: 7765
    Author:   [email protected]
    Date:     2009-06-11 15:58:18 -0700 (Thu, 11 Jun 2009)
    Log Message:
    Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.
    Also, updating the MXP to get latest changes to base classes.
    QE Notes: -
    Doc Notes: -
    Bugs: SDK-21670
    Reviewer: No one (just header updates)
    tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21670
    Modified Paths:
        flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp
        flex/sdk/trunk/frameworks/flash-integration/readme.txt
        flex/sdk/trunk/frameworks/projects/flash-integration/FlexComponentKit.mxi
        flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Component.jsfl
        flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Container.jsfl
        flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/MakeFlexComponent.jsfl
        flex/sdk/trunk/frameworks/projects/flash-integration/readme.txt
        flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
        flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

  • Using Flash Component

    Will Apple reject a Flash iPhone app that uses a Flash component? I want to create the app with a Flash plug-in component.
    Thanks.

    I don't understand your explanation.
    Is the SWFLoader loading a full SWF or an embedded symbol?  What is an invisible mode and how do you know it is in that mode?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Retrieve changing values from TextInput Flash Component

    Hi,
    I've been banging my head against the wall with this one....
    I've placed aTextInput Flash Component on the stage which
    reads/displays a value from an external text file. So far so good.
    If I enter new text during run-time - editable is set to true
    - the TextInput component updates to reflect what I've typed. BUT,
    how do I retrieve that text to a variable? (I need to save the new
    value back to the external text file).
    Current code:
    myfieldtext = sprite(51).text
    And eventPassMode is set to passAlways
    this retrieves the initial value regardless of what I type.
    Any help appreciated!

    I'm not sure if this all helps, but I had to make a flash
    name input box
    recently. I was getting all sorts of weird results trying to
    get the text
    out of flash. It was giving me all the font info etc, and I
    just needed the
    name. So what I ended up doing is when they were done
    entering the text, I
    put the text into a variable within flash, then pulled the
    data from that
    variable rather than striaght out of the text.
    in director, in the behaviour attached to the flash sprite:
    myText = sprite("nameInput").getVariable( "myNameString",
    True)
    where the sprite is named "nameInput". It seems better to
    name the sprite
    and refer to it that way than using the sprite number, such
    as sprite(51).
    In flash I have the text input field named "textInput", and
    the following
    code attached to the save button. You may have to use a
    different event,
    like when they text input loses focus.
    on (release) {
    var myNameString = "";
    myNameString = textInput.text
    trace(myNameString)
    getURL('event:doEvent,1')
    Timm
    "tayl" <[email protected]> wrote in message
    news:edjutm$ptl$[email protected]..
    > Hi,
    >
    > I've been banging my head against the wall with this
    one....
    >
    > I've placed aTextInput Flash Component on the stage
    which reads/displays a
    > value from an external text file. So far so good.
    >
    > If I enter new text during run-time - editable is set to
    true - the
    > TextInput
    > component updates to reflect what I've typed. BUT, how
    do I retrieve that
    > text
    > to a variable? (I need to save the new value back to the
    external text
    > file).
    >
    > Current code:
    > myfieldtext = sprite(51).text
    > And eventPassMode is set to passAlways
    >
    > this retrieves the initial value regardless of what I
    type.
    >
    > Any help appreciated!
    >
    >
    >

  • Flash Component Loading Problem

    Some times Flash inbuilt Component will not load perfectly. I
    checked in Firfox and for Flash Player 9.0.45.0.
    And i checked in IE8 and flash player 10 then its working
    fine.
    And i worked in Flash CS3. So can any body tell me how to
    resolve this problem for previous version? atleast it should work
    for player 9 and firefox

    Sergius Lashutka wrote:
    > I have an embedded Flash component on my home page.
    Unless www. is added to my
    > address, this component will not load properly. All the
    variables show up as
    > "undefined". But if www. is added to my address
    "www.sergeglass.com", all is
    > well. I really want to fix this to move to the next
    thing. Thanks!
    >
    > Serge
    >
    Serge,
    You need to talk to your host and get them to fix this for
    you. All you
    need is
    http://sergeglass.com redirected
    to
    http://www.sergeglass.com
    Steve

  • Animated Flash Component Scaling when used as Button Skin

    I am trying to skin the overSkin of a Flex Button component with an animated Flash .swc component. (Actually, an Accordion Header, but for all practical purposes the same.)
    All works completely fine, in most cases.  The problem I run into is when I have any objects in the Flash animation moving on and off stage.  When this happens, although the objects cannot be seen when moved off-stage, the viewable area of the Flash animation scales down in either direction, or both, to make room in the button for the objects off stage.
    If I play the animation directly in the application, or a Canvas, everything works fine and no scaling occurs.  But for a Button, where I really need it, I get the constant scaling back and forth as the Flash movie runs.  This can be REALLY annoying when trying to click on a button! (Or you find that you are no longer "over" the button (because it scaled down) so you get flicker back and forth between the Up and Over states.)
    Any ideas on how I can keep this from happening, either on the Flash or Flex side would be much appreciated.
    Pertinent Code:
    [Bindable]
    [Embed(source="assets//btn_StaticHollywood.jpg")]
    private var Film:Class;
    [Bindable]
    [Embed(skinClass="fc.HollywoodWithSearchlights")]
    private var FilmOver:Class;
    animatedButton.setStyle("upSkin", Film);
    animatedButton.setStyle("overSkin", FilmOver);
    <mx:Button id="animatedButton" cornerRadius="0" />
    Note: I tried all assortments of setting dimensions I believe.
    Remember, the Flash component has objects that move in and off the stage from both directions, and this is the cause of the automatic resizing of the Button when it runs.

    I am assuming that you are using Flex 4 and this does not work. In Flex 4, the default theme used is the "Spark" theme. In Flex 3, we used the "Halo" theme. The Halo theme supports styles like borderStyle, but, the Spark theme does not.
    If you want to use these styles, you will need to compile with the Halo theme. You can do this by adding an additional compiler argument -theme=<SDK_DIR>/frameworks/themes/Halo/halo.swc (point to the halo.swc in your SDK installation)
    Joan

  • Integrate flash component into JSP page

    Hi,
    I need to integrate a flash component into my JSP page. flash component is used to put signature via mouse drag. the signature that is put should be captured and stored in DB. can anyone help me how to do it. Thanks in advance...

    I thought about including it in an outputText tag but i never tried it because the output text shouldn't be rendered as html code (by definition).
    Thank you for your brilliant solution, it works fine now.

  • Flash component kit

    I succesfully installed the flash component kit.
    unfortunately the "make flex component" menu is not added. The only
    thing I found was (right click on movie in Library) "export swc".
    Could it be, that it won't work with the German Flash Version?
    regards - m

    I succesfully installed the flash component kit.
    unfortunately the "make flex component" menu is not added. The only
    thing I found was (right click on movie in Library) "export swc".
    Could it be, that it won't work with the German Flash Version?
    regards - m

  • Safari freeze on screen with flash component

    Our website have a few screens that have embedded flash components. For some reason, on Mac OSX 10.5.x, after accessing a certain screen that has flash component, safari screen freezes (javascript is still functional, but you are unable to navigate away from the screen, reload doesn't help either) on another screen that has embedded flash component. It's reproducible on safari 3.2 and 4.0.1. How to troubleshoot this problem?
    Thanks
    Message was edited by: Dev B.
    Message was edited by: Dev B.

    Hi
    Welcome to Apple Discussions
    I suggest posting on the Adobe Flash forums. There, you'll be reaching those employing Flash on their or client web sites.

  • Accessing public properties/methods of flash component

    I've been searching all day trying to figure out how I can go about accessing properties decalared with in a flash component or containers base actionscript class.
    I need to create a fairly complex interface within a part of a flex web app and I think it would be better to create it in flash profressional. I just cannot find any good information on how to get xmxl/flex to play nicely with swf/swc. Maybe it's justs not possible.
    Any help or even a point in the right direction would be greatly appreciated.

    So I ended up answering my own question, but thought I would share how I did it since I can't seem to find any instructions or examples anywhere.
    So what I wanted in the end was a swc file running within my flex app but I need to be able to pull data out of my swc for use with in flex. These are the steps I took to get there. If you read through this and feel there is a better way of achieving the end result please share.
    Start out by adding a Flash Professional Container to your FLEX project (I dont know the difference between Component and Container, all I figured out is Component would blow up when I started adding classes with the Flash Professional project)
    Give the Container and ID. mine is myTest
    Double click and open the Container with in Flash Professional
    Once in Flash Professional go to the Library tab and right click to add a new Symbol.Make it a MovieClip and name it what ever you would like and export it for Actionscript. **I have yet to add more to this but I plan on treating this as my "Stage" or base view.
    Once created drag a new instance into the view. Make sure it is at 0,0 and give it a instance name. You will use this name as your accessor in FLEX
    Right click on your new movie clip in the Library tab and selecet edit class. since all I wanted was a string I created a private string and its public getter method
    private var _dataString:string = "Some string of data";
    public function get dataString():String {
         return _dataString;
    Save your class and close it
    Click the Done button in the .fla window to save your Flash project and return to Flash Builder.
    Now with in the actionscript section of my MXML I can access the string above by myTest.appMain.dataString;    appMain is the instance name of the movieclip I created in Flash Professional.
    Now that I figured this out it seems so trival and shouldnt have taken me so long to figure out. I'm just surprised I couldn't find more info on the web about getting Flash components/containers to work well with in Flex/Flash Builder.
    I hope this helps someone out.

Maybe you are looking for

  • HT2534 Created an Apple id but it is asking for credit card info, and i dont want to give that, neither do i want to create a new account.

    Dont trust apple for my credit card info on my iphone5s. So is there any work around? dont want to change the appleID. Cant get the option of None in payment options. Even tried it by selecting my region as US. Tried to sign in from Icloud as well bu

  • Changing the clip board size?

    So I have this multipage document I am working on and I needed more pages so I added the artboards I need however then now go beyond the clip board size (see picture below), how do I change that?

  • Mountain Lion will not install on 2011 MBP 10.7.4

    Macbook Pro 13" downloaded, installed, but now will not reboot. Says computer must be restarted...and cycles over and over. Interval Since Last Panic Report:  119 sec Panics Since Last Report:          2 Anonymous UUID:                    4C77E81F-7C

  • How to download InDesign CS3 Debug (non-Server version)

    I have downloaded and installed the InDesign CS3 SDK and can generate a Release build of a plug-in and get it to load and work in InDesign CS3, but as indicated in the doc, building the Debug configuration of a plug-in and trying to get it to work in

  • Nat and vlans on 1841 router

    i have an old 1605 router that is doing nat for me. e0/0 is my external interface. e0/1 is my internal interface 172.16.0.1 255.255.255.252 i have nat enabled on the router on the 1605r. It works fine when i directly connect a pc to the internal inte