Professional Web Applications Themes

Java error when calling actionscript with cfdoentoutput - Coldfusion - Advanced Techniques

I am using a Flash format cfform tocollect info. when the form is submitted to the action script i recieve the following error access denied (java.io.FilePermission c:\windows\fonts\timesbd.ttf read) The action script contains the <cfdoent type="pdf"> tag and outputs the form in a r of the orig paper version with the form variables entered in the right place. I have added <fontembed="yes">. If i remove this then i get http error. If anyone would like to see both scripts, please com me as they are to long to list here. Many thanks in advance Hassan:(...

  1. #1

    Default Java error when calling actionscript with cfdoentoutput

    I am using a Flash format cfform tocollect info. when the form is submitted to
    the action script i recieve the following error

    access denied (java.io.FilePermission c:\windows\fonts\timesbd.ttf read)

    The action script contains the <cfdoent type="pdf"> tag and outputs the
    form in a r of the orig paper version with the form variables
    entered in the right place. I have added <fontembed="yes">. If i remove this
    then i get http error.

    If anyone would like to see both scripts, please com me
    as they are to long to list here.

    Many thanks in advance

    Hassan:(

    XMXMXMX Guest

  2. #2

    Default Re: Java error when calling actionscript with cfdoentoutput

    You don't have to show everything, but could you show the part where you are submitting a form to actionscript? If this means what I think it means, you are complicating a simple task.
    Dan Guest

  3. #3

    Default Re: Java error when calling actionscript with cfdoentoutput

    Here is the first few lines of the form,

    <cfform action="tenantsactionscriptsend.cfm" method="post" name="form"
    format="flash" skin="halosilver">
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="Your Details">
    <cfformgroup type="horizontal">
    <cfinput type="hidden" name="reference" value="#ref#">
    <cfinput type="text" name="title" label="Title" value="" width="60">


    Here is the first few lines of the action script / resulst page

    <cfoutput>
    <cfdoent format="pdf" ownerpassword="woodside1056"
    permissions="AllowPrinting" encryption="128-bit" pagetype="a4" fontembed="yes"
    scale="90" name="Home Link Tenants Application form.pdf" overwrite="yes">
    <cfdoentsection><h1 ><center>Title and logo</center></h1><br><font
    size="-2">Ref: #form.reference#</font>
    <table width="100%" border="1" align="center">
    <caption align="left" >Previous address's. (3 Years required)</caption>
    <tr><td >Address 1</td><td >#form.address1#</td><td >Years
    #form.years1#</td><td >Months #form.months1#</td></tr>
    <tr><td >Address 2</td><td >#form.address2#</td><td >Years
    #form.years2#</td><td >Months #form.months2#</td></tr>
    <tr><td >Address 3</td><td >#form.address3#</td><td >Years
    #form.years3#</td><td >Months #form.months3#</td></tr></table><br>
    <table width="100%" border="1" align="center">


    I hope this is enough.
    Hassan


    XMXMXMX Guest

  4. #4

    Default Re: Java error when calling actionscript with cfdoentoutput

    I was thinking of the actionscript that is used with flash programming. At
    least you are keeping your application simple.

    I'd tell you the answer to your permissions problem, but I don't know what it
    is.

    Originally posted by: XMXMXMX


    Here is the first few lines of the action script / resulst page

    <cfoutput>
    <cfdoent format="pdf" ownerpassword="woodside1056"
    permissions="AllowPrinting" encryption="128-bit" pagetype="a4" fontembed="yes"
    scale="90" name="Home Link Tenants Application form.pdf" overwrite="yes">
    <cfdoentsection><h1 ><center>Title and logo</center></h1><br><font
    size="-2">Ref: #form.reference#</font>
    <table width="100%" border="1" align="center">
    <caption align="left" >Previous address's. (3 Years required)</caption>
    <tr><td >Address 1</td><td >#form.address1#</td><td >Years
    #form.years1#</td><td >Months #form.months1#</td></tr>
    <tr><td >Address 2</td><td >#form.address2#</td><td >Years
    #form.years2#</td><td >Months #form.months2#</td></tr>
    <tr><td >Address 3</td><td >#form.address3#</td><td >Years
    #form.years3#</td><td >Months #form.months3#</td></tr></table><br>
    <table width="100%" border="1" align="center">


    I hope this is enough.
    Hassan




    Dan Guest

Similar Threads

  1. Replies: 2
    Last Post: February 8th, 03:22 PM
  2. Calling actionscript method
    By Jared A. in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: October 2nd, 06:18 PM
  3. Calling ActionScript methods from javascript?
    By dforer in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: February 19th, 12:23 AM
  4. Java vs. ActionScript 2.0
    By Robert Kent in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: January 18th, 02:49 PM
  5. Actionscript: Calling JS function from Flash
    By Jan Petter Skarbovik in forum Macromedia Flash
    Replies: 3
    Last Post: September 12th, 01:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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