Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default list

    What I want to do is put a number of a sprite in a list. And I want to extract the information in that list to put it in an url. Is that possible? I havn't worked on the putting in url part yet cause the list has to be made first.

    What I have so far is:

    on mouseDown
    the spriteNum of me into wishlist
    end mouseDown

    on wishlist
    wishlist()
    wishlist.add(on mouseDown
    put spriteNum of me into wishlist
    end mouseDown)
    end

    The error message I get is sometimes operator expected, and sometimes handler defenition expected.

    It's probably a stupid mistake I'm making, but I can't really figure it out actually.


    Aglaranna webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Multi-line TextBox - Paste text with numbered list, bullet list, tab character
      Hi All, I need a server control that's exactly like a multi-line TextBox, but also allow users to paste text with numbered list, bullet list, and...
    2. Searching a column containing a list against a form list
      I have a form that allows users to select multiple items from a list. form.hobbies = 1,5,3,6,8,2 (from a table pullup) I want to be able to...
    3. Need a button to rollover, show list and link from list
      Hi, very new to Flash and need some help with a button. I'm creating a title bar for a site and I'm doing something similar to the button on...
    4. #25625 [NEW]: [chm] bug on ref.ftp.html | ftp_*list cant retrive ftp list on some ftpd
      From: sentomas at hotmail dot com Operating system: freebad PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ...
    5. Why the list always tell me that my address has too much bounced mails and removed me from the list:(
      My email address can work well with all other email lists, but no lucky to Debian, it seems that it has a very high level of security. ( We are...
  3. #2

    Default Re: list

    You have to declare the variable as a list before you can use it as a
    list. Here's an example that uses a global variable to hold the list
    contents:

    ----------
    global wishList

    property thisSprite

    on beginSprite me
    thisSprite = me.spriteNum
    if wishList = VOID then wishList = []
    if wishList.getOne(thisSprite) = 0 then
    wishList.add(thisSprite)
    end if
    end

    -----------
    You can add that to any number of sprites and it will put the sprite
    number of each into the list.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #3

    Default list

    Hi All,

    I have a list like :

    <cfset MyList = "70,70,70,70,70,70,70,70,70,70,70,70,19,19,19, 59">

    Now I would like to display how many of each numbers I have in the list.
    So I want to display :

    70 = 12
    19 = 3
    59 = 1

    How would I do this??

    Thanks for any help!


    Steven Guest

  5. #4

    Default List

    Hi All,

    I have a list like :

    <cfset MyList = "70,70,70,70,70,70,70,70,70,70,70,70,19,19,19, 59">

    Now I would like to display how many of each numbers I have in the list.
    So I want to display :

    70 = 12
    19 = 3
    59 = 1

    How would I do this??

    Thanks for any help!


    Steven Guest

  6. #5

    Default List

    Hi All,

    (Excuse me if this is posted twice, my own newsserver isn't showing my post,
    so trying a different one.)

    I have a list like :

    <cfset MyList = "70,70,70,70,70,70,70,70,70,70,70,70,19,19,19, 59">

    Now I would like to display how many of each numbers I have in the list.
    So I want to display :

    70 = 12
    19 = 3
    59 = 1

    How would I do this??

    Thanks for any help!


    --
    Posted by [url]news://news.nb.nu[/url]
    Steven Guest

  7. #6

    Default List

    Hi All,

    (Excuse me if this is posted twice, my own newsserver isn't showing my post,
    so trying a different one.)

    I have a list like :

    <cfset MyList = "70,70,70,70,70,70,70,70,70,70,70,70,19,19,19, 59">

    Now I would like to display how many of each numbers I have in the list.
    So I want to display :

    70 = 12
    19 = 3
    59 = 1

    How would I do this??

    Thanks for any help!


    --
    Posted by [url]news://news.nb.nu[/url]
    Steven Guest

  8. #7

    Default List

    Here's what I have:
    <cfset MismatchedBranchList = "">
    <cfif NOT ListFindNOCase(ReplaceList(Form.BranchCodeList,''' ',''),j)>
    <cfset MismatchedBranchList = ??>
    </cfif>

    If there is a value in the ListFind that doesn't match I want to add it to my
    mismatched List. But I don't know how to do that.
    Any help is appreciated!!

    Thanks

    Shuvi Powers Guest

  9. #8

    Default Re: List

    It looks like this statement is nested within a loop, so I'm not sure exactly
    what you're doing, but maybe this example might help you understand the logic.
    (Note; It does not contain the replace function you're using).







    <cfset MasterBranchList = "a,b,c">
    <cfset BranchListToValidate = "a,e,f">

    <cfset MismatchedBranchList = "">
    <cfloop list="#BranchListToValidate#" index="item">
    <cfif ListFindNoCase(MasterBranchList, item) EQ 0>
    <cfset MismatchedBranchList = ListAppend(MismatchedBranchList, item)>
    </cfif>
    </cfloop>

    <!--- will return "e,f" because the values are NOT in the masterBranchList --->
    <cfoutput>
    MismatchedBranchList: #MismatchedBranchList#
    </cfoutput>

    mxstu Guest

  10. #9

    Default Re: List

    Just what I was looking for! Thank you so so much!!!!
    Shuvi Powers Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139