function doStuff():String { return "You called function doStuff()"; } #include "SomeFile.as" [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => -==cfSearching==- [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Can a .as be executed in CF8 - Coldfusion Flash Integration

Can a .as be executed in CF8 - Coldfusion Flash Integration

IIRC you can use the import and #include directives using cfformitem type="script" and/or cfsavecontent. Though I do not know if either is "officially" supported with cfforms....

  1. #1

    Default Re: Can a .as be executed in CF8

    IIRC you can use the import and #include directives using cfformitem type="script" and/or cfsavecontent. Though I do not know if either is "officially" supported with cfforms.
    -==cfSearching==- Guest

  2. #2

    Default Re: Can a .as be executed in CF8

    I've tried a few ways of calling

    <cfformitem type="script">##include "globalstyle.as";</cfformitem>
    <cfformitem type="script">include "globalstyle.as";</cfformitem>

    I hate to ask, but I can't seem to find this out anywhere. Could you point me
    in the direction of a "how to" for this? Thanks for your time!

    IamTrip Guest

  3. #3

    Default Re: Can a .as be executed in CF8

    Sure. (I am not, by any means, an expert on this ;-) But here is an extremely
    simple example using #include.

    <!---
    SomeFile.as (located in same directory as cfm script)
    --->
    function doStuff():String
    {
    return "You called function doStuff()";
    }


    <!---
    CFFORM code
    --->
    <cfform name="testForm" format="flash">
    <cfformitem type="script">
    #include "SomeFile.as"
    </cfformitem>
    <cfinput type="button" name="testButton" value="Test"
    onClick="alert(doStuff());">
    </cfform>


    -==cfSearching==- Guest

  4. #4

    Default Re: Can a .as be executed in CF8

    BTW, I would also recommend you check out asfusion.com. Though many of the
    newer articles are on Flex, they still have some amazing entries and examples
    for cfform

    [url]http://www.asfusion.com/examples/[/url]


    -==cfSearching==- Guest

  5. #5

    Default Re: Can a .as be executed in CF8

    Thank you so much for responding!!
    IamTrip Guest

  6. #6

    Default Re: Can a .as be executed in CF8

    You are welcome!
    -==cfSearching==- Guest

Similar Threads

  1. a different web.config gets executed
    By Sammy in forum ASP.NET Web Services
    Replies: 2
    Last Post: January 28th, 09:10 PM
  2. ASPX not executed
    By taja in forum ASP
    Replies: 1
    Last Post: October 22nd, 02:45 AM
  3. script executed every frame
    By Frank Caerter in forum Macromedia Director Lingo
    Replies: 0
    Last Post: August 17th, 09:03 PM
  4. aspnet_wp won't get executed
    By Jaehong in forum ASP.NET Security
    Replies: 1
    Last Post: July 17th, 06:21 PM
  5. How to config a job to be executed?
    By Helge Hauan in forum Oracle Server
    Replies: 1
    Last Post: January 8th, 11:19 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
  •