Problems With List Component Flash Cs3

Hello Friends,
I am working in Flash Cs3.
I am having a List component in my application.
I added 10 items into my list component. Now out of those 10 items, i want to disable particular list items like Item 4, Item 8, Item 9. How to do this using flash cs3 or flash 8.0.
Item1   --  Enabled state
Item2   --  Enabled state
Item3   --  Enabled state
Item4   --  Disabled state
Item5   --  Enabled state
Item6   --  Enabled state
Item7   --  Enabled state
Item8   --  Disabled state
Item9   --  Disabled state
Item10 --  Enabled state
Any suggestions/ideas would be really appreciated.
Regards,
Rajesh

Hello Friends,
I got a partial solution for this. Now i can able to disable a particular list item using flash cs3. I achived this. But it was happening only after clicking the item values....
But i need in a diff way like, as soon as you run the flash file it has to disable. how is this possible in flash cs3.
this is the code :
    import fl.controls.List;
    import fl.controls.listClasses.CellRenderer;
    import fl.controls.listClasses.ListData;
    import fl.events.ListEvent;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.text.TextField;
        var sampleItem1:Object = { label:"John Alpha" };
        var sampleItem2:Object = { label:"Mary Bravo" };
        var sampleItem3:Object = { label:"Trevor Gamma" };
        var sampleItem4:Object = { label:"Susan Delta" };       
        var myList:List;
        var tf:TextField;
  ListDataExample()
         function ListDataExample() {
            createList();
            tf = new TextField();
            tf.x = 10;
            tf.y = 125;
            addChild(tf);
         function createList():void {
            myList = new List();
            myList.move(10,10);
            myList.addItem(sampleItem1);
            myList.addItem(sampleItem2);
            myList.addItem(sampleItem3);
            myList.addItem(sampleItem4);
            myList.rowCount = 4;
            myList.addEventListener(ListEvent.ITEM_CLICK,listItemSelected);
            addChild(myList);
         function listItemSelected(e:ListEvent):void {
            var cr:CellRenderer = myList.itemToCellRenderer(e.item) as CellRenderer;
            var listData:ListData = cr.listData;
   if(cr.listData.row == 2) {
    cr.enabled  = false
            tf.text = "Row selected: " + listData.row;
waiting for your replies.
Regards,
Rajesh

Similar Messages

  • Problem with FLVPlayer in Flash CS3 (need to save out as Actionscript 3.0 SWf file)

    I am using Flash CS3 and am trying to publish a SWf file that
    makes use of the "FLVPlayback" component. I need for this SWF file
    to be published as an Actionscript 3.0 file, so I have set my
    publish settings to Flash Player 9.0 and Actionscript 3.0, but keep
    getting an error as follows:
    "WARNING: The component 'FLVPlayback' requires ActionScript
    2.0."
    Has anyone encountered this?? I am doing something wrong? I'm
    pretty comfortable within Actionscript/Flash 2.0, but am only
    beginning my first steps into the relam of CS3 and AS3.
    I have also attached a screenshot of the files that represent
    my FLVPlayback component (or so I assume). (see this link for
    attachments
    http://www.actionscript.org/forums/showthread.php3?t=140886)
    Thanks all,
    Mark
    http://www.actionscript.org/forums/showthread.php3?t=140886

    Mark,
    > I have set my publish settings to Flash Player 9.0 and
    Actionscript
    > 3.0, but keep getting an error as follows:
    >
    > "WARNING: The component 'FLVPlayback' requires
    ActionScript 2.0."
    Gotcha. You must have started the document in AS2, then
    changed the
    publish settings. Each version of the language has its own
    version of the
    FLVPlayback Component (written in the relevant language).
    Start over and
    compare two compleley new FLA documents: make one for AS3 and
    one for AS2.
    Open the Components panel and note the differences between
    the two. There
    are a different set of Components depending on the language
    chosen for the
    document. Drag the FLVPlayback Component from the Components
    panel in an
    AS3 document, and you'll have the AS3 version.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Problems With NumericStepper in Flash CS3

    Hello Friends,
    I need a small help. I just strucked up with NumericStepper issue.
    I have a NumericStepper and i am setting the Minimum value to 0 &  Maximum value to 10. Now my requirement is, suppose if the user  entered/typed the value which is greater than Maximum value (ie 10)  inside NumericStepper inputbox I want to display that particular value  in "RED" color. how to do this.
    Your help would be appreciated,  i need a solution asap.
    I am attaching the code what i am doing.......
    package
    import fl.controls.Label;
    import fl.controls.NumericStepper;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;
    import flash.text.*;
    public class NumericStepperExample extends Sprite
    private var ns1:NumericStepper;
    private var ns2:NumericStepper;
    private var lbl1:Label;
    private var lbl2:Label;
    private var rowHeight1:Number = 100;
    private var rowHeight2:Number = 50;
    public function NumericStepperExample() {      
    setupSteppers();
    setupLabels();
    private function setupLabels():void {
    lbl1 = new Label();
    lbl1.text = "Min Value -- 0 and Max Value -- 10";
    lbl1.autoSize = TextFieldAutoSize.LEFT;
    lbl1.move(200, rowHeight1);
    addChild(lbl1);          
    private function setupSteppers():void {  
    ns1 = new NumericStepper();
    ns1.stepSize = 1;
    ns1.minimum = 0;
    ns1.maximum = 10;
    ns1.width = 60;
    ns1.move(100, rowHeight1);
    ns1.addEventListener(Event.CHANGE, changeOccurred);
    addChild(ns1);
    private function changeOccurred(e:Event):void {
    var nsTarget:NumericStepper = e.target as NumericStepper;
    var redColor:TextFormat = new TextFormat();
    redColor.color = 0xff0000;
    var blackColor:TextFormat = new TextFormat();
    blackColor.color = 0x000000;
    if (nsTarget.value > nsTarget.maximum) {
    nsTarget.setStyle("textFormat", redColor);
    } else {
    nsTarget.setStyle("textFormat", blackColor)
    Rajesh

    First of all, you would have to create your own version of the NumericStepper class, because the NumericStepper would never show you if someone tries to enter an invalid value.
    Before the value gets to you, it will get corrected to be inside the range between minimum and maximum, inclusive, by the NumericStepper class, silently.
    You would actually have to add an event-handler inside the NumericStepper that listens to every single keystroke and then changes it's color to red, if the current value exceeds the limits. This will only happen while typing, never after entering a value or using the arrow-buttons.
    So after all I would ask myself, if this very rare condition of displaying the NS in red color just for the moment when you're typing in a value by keyboard which will get corrected by the NS class automatically either way is worth the whole effort.

  • Sync and frame rate problems importing video to Flash CS3

    Just like the subject states, I am indeed having frame rate problems importing video to Flash CS3.
    When I export a video from Premiere with the settings:
    1280x720
    frame rate of 23.976
    using H264 or Animation (basically every codec produces the same results),
    "embed video on SWF and play in timeline"
    When I do this the file exports fine. Playing it in Quicktime works fine and the audio syncs up no problem. But when I import it into Flash using the same settings, for some reason the movie clip is now too fast in that the video does not match the audio and seems to be at more like 12 fps now (just a guestimate). The action of the video is over long before the audio even comes in.I have verified that the frame rate is correct in Flash so it's not that.
    I've done this literally hundreds of times in the past and suddenly it does not work and I can not figure out why. I'm not even really using video, but actually artwork that I am putting together as an animatic for an animated piece so the video could not have been imported incorrectly or digitized wrong either. Can someone out there please tell me how to make this work? Any help would be GREATLY appreciated!
    -Mike

    Thanks for you quick response however it really doesn't apply to what I am doing in any way. I will not be uploading the video to a server. I am using the imbed function so I can use it as a layer and then animate over it. It is just reference and will ultimately be deleted. The Fla file does indeed carry the same specs as I stated in my first post. I have done it this way dozens of times and I am trying to figure out why it suddenly will not work.
    ~Mike

  • Problem with dreamweaver and Flash

    Hi, maybe someone can help me, i have any problem with
    dreamweaver and flash, i have a page and i have a menu and
    sub-menu, and the same page i have a category en flash 550 x 700 (
    photography and more... ) but when the menu to unfold
    the menu to see under flash and it cant see ( sorry my
    english is bad.... i hope you can understand me, and help me.. )
    i dont now why always flash ever stay up, or first, and
    another information under flash... this a problem... if you have
    menus...
    thanks.... have nice day.....

    This is a drawback of using flash or any other active
    content. By default, all active content including flash will
    display over every other content and thats why your menu stays
    under the flash movie. Some people make the flash background
    transparent to show content under the flash movie, but that will
    not work for menu items.
    I would suggest that you make the menu such that it does not
    overlap with the flash movie.

  • Anyone else having a Problem with Leopard and Photoshop CS3?

    I'm using CS3 with Leopard 10.5.4 at work and there are some very aggravating anomalies, that I'd like to nail down to a cause. Most frequently, when switching from apps to P'Shop, the menu bar stays for the previous app, i.e. when going from Finder to P'shop, the menu bar still says Finder and has Finder options. Changing from Lightwave to P'Shop, the menu bar remains Lightwave.
    Occasionally, an Adobe app - P'Shop or InDesign - will simply disappear and not come back. The icon in the dock shows it as active, but no amount of clicking, Command-Tabbing will reveal the app and I have to Force Quit, losing unsaved changes.
    I have a feeling it's Leopard, since, I've used CS3 on Tiger and CS4 on Tiger and never had a problem.
    I'm wondering if upgrading to the latest Leopard would make much of a difference.
    Has anyone come across this and found any kind of answers?
    Thanks for any suggestions.
    -Vincent

    > Just because it doesn't happen to Phil (who may not use all of the same features of the Suite that others do anyway) does NOT mean that these problems are not real and are not mere PEBCAK.
    Right. If someone is having a problem associated with Tiger, it's PEBAK. If Leopard is involved, it's automatically because of Leopard. Apparently, with Apple's latest OS, trouble shooting problems are no longer necessary - just blame it on Leopard and call it a day.
    b FUD
    I find the dynamics here really interesting. This thread would have been very different if Vincent had posted with problems involving Tiger. Would have gone something like this:
    After admonishing him for not providing more information about his setup by posting the obnoxious big blue link on how to ask questions (ahem - we know NOTHING about his machine or configuration, such as which machine, how much RAM, scratch disk or attached peripherals), there'd be all kinds of trouble shooting advice given - "try a new user", "repair permissions", "run DiskWarrior, and on and on ...
    But no, since he mentions Leopard, none of that is apparently necessary and the completely, utterly
    b irresponsible
    advice is given ... "that's just the way Leopard is".
    Those are some serious problems he's reporting that have nothing to do with Leopard. Something is obviously hosed!
    As for discounting my experience because I don't use every app in the suite as extensively as I do Photoshop, I'm FAR more qualified to discuss Leopard and CS issues than Ann or Neil who do not use Leopard at all (and have never used it as far as I know.)
    "Others have problems with it", is their battle cry but it's extremely weak. Do I really need to remind you all that these forum are ALWAYS filled with people who have problems, regardless of version or OS? You act as if this forum was a ghost town when Tiger and CS3 were current!
    Gee, Ann ... people are STILL reporting problems with 10.5 and CS3? How shocking! Guess what - people are STILL reporting problems with 10.4 and CS3 too! Let me make a prediction - people will have problems with 10.8 and CS9!
    Vincent-
    > I don't really deal with fonts anyway ...
    Yes. You do. Even if you never type a single line of text, every application uses fonts to create menus and other GUI items. If one of those fonts are bad, it can create all kinds of problems, including the very problems you mention.
    The fact that you don't seem aware of this and you're still using 10.5.4 leads me to believe you're not familiar with the basic practices of maintaining a healthy system. Again, how did you install Leopard on that machine?
    Look, if you're simply trying to justify using CS4, go right ahead. It's a worthwhile upgrade in it's own right. However, if you install it on that machine in it's current state, CS4 will NOT fix your problems because you do NOT have a healthy system.
    You asked for experiences with Leopard - I can launch every application in both CS3 and CS4 suites
    i simultaneously,
    and STILL not have your issues. I haven't experienced anything like your CS3 problems in Leopard - on both a 2006 Mac Pro and a 2008 Macbook.
    If you'd like help to try and figure out the real problem, I'm more than happy to help. If not, Adobe will gladly take your money ...
    -phil

  • Compatibility problem with macro media flash active control

    I am getting a message on my screen "compatibility problem with macro media flash active control, it isnt compatible with my version of windows (vista).  How can this be fixed?  why am I suddenly getting it now?  I have the latest Adobe flash player installed.
    Trisha

    the latest flash is probably the problem... it's seems that the latest flash has been causing a boat load of issues. i did a system restore to undo the flash and mozilla upgrades and it's still crashing but not as bad as it was with the upgrades.

  • Someone have problems with iphone 5 flash dark photos

    Someone have problems with iphone 5 flash dark photos

    http://support.apple.com/kb/HT2101?viewlocale=en_US
    It is normal for it to get warm when it's being used, especially if it is hot outside. It can even get uncomfortably warm. As long as it is not causing you physical harm (as in giving you burns) or displaying a temperature warning, then it's normal behavior. It's like taking your laptop outside and using it. Except the laptop will probably burn you.

  • How to make email link with a button with AC2 in flash cs3?

    How to make email link with a button with AC2 in flash cs3?
    I wrote this, but it does not work:
    btn_emailinfo.on (release) {
    getURL("mailto:"[email protected]");
    }

    I am guessing you put that on a frame?
    If so, the syntax is as follows:
    btn_emailinfo.onRelease = function(){
    getURL("mailto:[email protected]");
    Though, if you are placing it directly on the button itself,
    the syntax is:
    on(release){
    getURL("mailto:[email protected]");
    }

  • Problems with sound in Flash

    I recently updated a sound file in a flash movie. I had some aif files that I updated with a mp3 sound file.  Within my movie there is a script for a replay button. It plays back fine when I play it, but when I press the replay button, it doesn't replay the sound, only the movie.  Hope I'm making sense, any ideas why I get no sound when I replay the movie?

    Sorry about that, I'm a bit of a newborn at this so I may say something stupid from time to time.
    As I said, "nav" is the image for the replay button
    The code for level0 is this
    _level0.doTimer();
    The rest of the code is
    _level0.controlsDisabled = true;
    //as : Frame 1299
    stop();
    // what's nav.  is that the movieclip the "replays"?
    nav.play();
    // what's _level0.doTimer() (copy and paste that code)
    _level0.doTimer();
    _level0.controlsDisabled = true;
    From: kglad <[email protected]>
    To: Ashton Matthews <[email protected]>
    Sent: Tuesday, July 5, 2011 10:16:34 AM
    Subject: Problems with sound in Flash
    i didn't suggest any code.  i only posted questions and you answered only one and that answer didn't help.

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • Apex 4.1 - problem with navigation component LIST after upgrade

    There seems to be problem with Tags in LIST component, after upgrade from 4.0 to 4.1 release

    Right, we verified a problem for migrated lists.
    We have lists of links, that are not based on a specific template. After upgrade to 4.1, they stopped from rendering in their region. Found out that the tag <TABLE> was not included in the HTML Source, hence the list body was not built to render.
    The only way we found to include it was to create a template for Lists (there is not one by default in Apex in certain themes), edit it and include the tag (in the section "Before List Entry" > "List Template Before Rows" - the tag itself is not present in the newly created template, too). Then, you need to assign the template to the existing Lists to make the list body re-appear: it doesn't seem to be a good practice to create a list without a template, but Apex should at least provide 1 by default.
    Edited by: Kleber M on Oct 28, 2011 9:03 AM

  • I have some problems with work in Flash cs6

    I have some problem with my game when I created it using adobe flash cs6
    When the duck hits the screen, like from right to left it shows
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at Duck/ducksmove()
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()
    This is the code so please help check which is wrong
    package  {
      import flash.display.MovieClip;
      import flash.utils.Timer;
      import flash.events.TimerEvent;
      import flash.events.MouseEvent;
      public class Duck extends MovieClip {
      var moveDuck:Timer = new Timer(10);
      var speedX:Number;
      public function Duck() {
      this.addEventListener(MouseEvent.CLICK,KillDuck);
      moveDuck.addEventListener(TimerEvent.TIMER,ducksmove);
      moveDuck.start();
      speedX = 10;
            function ducksmove(evt:TimerEvent):void
      this.x -= speedX;
      if (this.x <=0)
      moveDuck.stop();
      moveDuck.removeEventListener(TimerEvent.TIMER,ducksmove);
      this.parent.removeChild(this);
      function KillDuck(evt:MouseEvent):void
      var p:MovieClip = this.parent as MovieClip;
      p.setScore();
      p.updatecount();
      this.removeEventListener(MouseEvent.CLICK,KillDuck);
      this.parent.removeChild(this);
      moveDuck.addEventListener(TimerEvent.TIMER,ducksmove);

    You appear to be trying to remove the same object twice, first in the KillDuck function and then in the ducksmove function.  If it is removed already you can't try to remove it again because it is no longer in the display list.

  • Problem with Safari and Flash Player

    Hi, I've done a quick search and can't find an answer, however since updating from Lion to Mountain Lion I've had problems with my (2011) Macbook Pro whilst in Safari, following a Genuis bar visit last week we managed to narrow it down to a flash player problem and uninstalled and reinstalled flash was told that should the problems persist (we couldn't get the computer to repeat it's beahviour in store) then to re-install OSX, now I've done this but still getting the same problem, screen not refreashing so parts of previous page or pop still showing over top of new page and Computer getting VERY hot (to the point of almost burning. Now I've had a look on Adobe website and they recommend running 10.3 rather than 11.4 and I managed to download it from them however Safari blocks it as it's out of date, also on my iMac running Mountain Lion Flash appears to be blocking internet access, internet fails when attempting to use a website that needs flash, but works fine when not using it.  Anyone got any ideas on a work around?

    Try this...
    Quit Safari.
    Open System Preferences > Flash Player then select the Advanced tab. Click: Delete All
    Relaunch Safari.
    From the Safari menu bar click Safari > Reset Safari
    Select:  Clear History  (also empties the cache)
    Deselect the remaining boxes then click Reset.
    Quit and relaunch Safari. Try a Flash based video.

  • Problem with list and map in GWT

    I have a problem with map and list in GWT. I need to put a map in to a list but GWT does not support ArrayList and HashMap since they are not serialized types.
    Exactly I want to create following list with out using ArrayList and HashMap
    ArrayList<HashMap<String, Object>> map = new ArrayList<HashMap<String,Object>>(); Thank you for new ideas,
    Regards

    If try to use ArrayList then I receive following exception when I make a rpc call.
    Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'java.util.ArrayList' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.:

Maybe you are looking for

  • Can't get Edge Inspect CC to work

    I am using OSX Mavericks, Chrome 34, and Edge Inspect CC and I can't get the Chrome extension to talk to the (running) Edge Inspect. Don't know if it helps in the diagnosis, but I do have Chrome Canary also installed on my system. Suggestions?

  • I cant  receive photo texts

    I have not been receiving my texts when a photo is attached or sent.  Has anyone else had this problem?

  • Can you export photos from aperture with adjustments?

    Doing a photobook and using multiple librarys. And wants to keep my adjustments without exporting it as something else than RAW. How do you do? Anyone?

  • Free Items with other costs !!

    Hi Can any one give me an idea to deal with the scenario of free PO if we have to pay octroi / freight / insurance etc Thank You

  • How to deploy jsp in R12 environment?

    Hi, I want to write a jsp and deploy in R12 environment. I try to put a simple jsp in the $OA_HTML and restart Apache, but it doesn't work. Thanks. Devon