A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS3] Run user-entered actionscript from input text box

  1. #1
    Working On An Online RPG grimm 88's Avatar
    Join Date
    Sep 2007
    Location
    Nowhere
    Posts
    280

    [CS3] Run user-entered actionscript from input text box

    i am using actionscript 2, so any code examples need to be in that... unless it is only something which can be achieved in AS 3, in which case it would be impossible to incorporate into my current project, and i also have almost no knowledge of AS 3, but it would still be useful to know

    Hi... i have been trying to research this but so far i haven't been able to find anything on the subject

    basically... i want to have an input text box, for example with a variable name of 'enterscript' and when the user clicks a button i want whatever actionscript has been entered into the 'enterscript' text box to be run as if it were the on (release) action of the button

    this would then mean that the user can write actionscript and see what it does to the movie as they do it, which would be extremely useful for me, and it would also mean that you can dynamically change what the button does... any suggestions???
    Last edited by grimm 88; 07-24-2008 at 05:31 AM.

  2. #2
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    I don't think you can. If anyone knows I'd love to be proven wrong!
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  3. #3
    Working On An Online RPG grimm 88's Avatar
    Join Date
    Sep 2007
    Location
    Nowhere
    Posts
    280
    well... in that interactive buddy came you can write your own script and it runs... but that is some other programming language made up specifically for the game i think... but it shows that this kind of thing could be possible... and if not with actionscript then instead with some other language

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center