Control Value not Seen in getURL

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Control Value not Seen in getURL

    I am using the following command to send parameters to a cfc with flash
    remoting;

    myService.deleteDelivery('#APPLICATION.dsn#',id.te xt,'#deleter#'
    ,'#APPLICATION.dsn2#',reason.text,extDelNo.text,un it_no.text,product_code.text,s
    hipped_date.text);

    id, reason,extDelNo, unit_no, product_code and shipped_date are flash
    textboxes. When I call the remoting I get the error "IntID, a required
    parameter was not passed in"; This corresponds to the id.text value. If I
    hardcode a number then it is passed. The same with the other text controls. I
    thought that I could use the text property of the control and pass that.

    I have declared the control names to place then in _root.

    var reasons = reasons;
    var id = id;
    etc...

    I know that they have a value as I can see them .

    How can i grab the values of these controls and pass them in the getURL
    function call? Thanks.



    Mark Forsberg Guest

  2. Similar Questions and Discussions

    1. getURL
      I made a button and add an action "getURL(test.html); When I export it, it made an error saying " Statement must appear within on handle...
    2. getURL()
      Hi, I wrote a while ago a problem regarding the getURL(); function with Flash MX 2004, the problem was that i couldn't open pdf files with the...
    3. getURL how to ????
      Hello, Happy New Year to everyone. Can you help me ? I try to call an html page on a separate window . I use...
    4. GETURL ????
      Hi everyone! Could somebody please tell me why this does not work : on (press) { getURL(http://www.site.dk); } And what this means :
    5. Using Table control in a custom composite control. Control does not render properly in design time.
      All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control...
  3. #2

    Default Re: Control Value not Seen in getURL

    you can make an absolute reference with _root :
    ie. :
    _root.id.text or _root.id

    or relative :
    this.id.text of _parent...id.text (depende el depth of the control in the movie)

    Regards
    Sojovi Guest

  4. #3

    Default Re: Control Value not Seen in getURL

    Sojovi,

    Thanks for the help. When I run the following code just before the
    remoting call "alert(_root.id.text);" I still get nothing in the alert box. I
    can see the value in id on my flash form.
    Any other ideas?
    Again, thanks for the assist.


    Mark Forsberg Guest

  5. #4

    Default Re: Control Value not Seen in getURL

    Are you using instance name o variable names for the textbox in Flash ?
    Is in the root level or inside another movieclip ?
    _root.id should work... try with the test de movie and view the objects to see
    the path to the object.

    Regards

    Sojovi Guest

  6. #5

    Default Re: Control Value not Seen in getURL

    Sojovi,

    I found the problem. The controls that I was attempting to use for their
    text value were of the type "hidden". Apparently the "hidden" control has no
    such property. I couldn't find how to get a hidden control's value. I ended up
    putting the values into a textbox and hiding them. The .text property was then
    passed just fine.
    Again, thanks for the help. It got me thinking.

    Mark

    Mark Forsberg Guest

  7. #6

    Default Re: Control Value not Seen in getURL

    I can't find the actual documentation, but to access the value of a hidden
    field just drop the dot text part.
    IE

    A cfinput type="text" - controlName.text
    A cfinput type="hidden" - controlName

    Ken

    The ScareCrow 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