html to actionscript

  • makhan
  • Novice
  • Novice
  • makhan
  • Posts: 31

Post 3+ Months Ago

I have this part of html tags which passes some inputs to application in the cgi-bin . Is it possible to transform that into flash actionscript code. I would appreciate if someone could help me with the trasformation code.

Thanks





Code: [ Select ]
<form action="/cgi-bin/matweb.exe" method="POST">
<input type="hidden" name="mlmfile" value="webmagic">
<p>Magic square size (minimum is 3, maximum is 20):
<input type="text" size="2" maxlength="2" name="msize"></p>
<p><input type="submit" name="Submit" value="Submit"></p>
</form>
  1. <form action="/cgi-bin/matweb.exe" method="POST">
  2. <input type="hidden" name="mlmfile" value="webmagic">
  3. <p>Magic square size (minimum is 3, maximum is 20):
  4. <input type="text" size="2" maxlength="2" name="msize"></p>
  5. <p><input type="submit" name="Submit" value="Submit"></p>
  6. </form>
  • Rafe
  • Newbie
  • Newbie
  • Rafe
  • Posts: 8

Post 3+ Months Ago

See if this helps. It's a couple years old but it should all apply the same.
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

Code: [ Select ]
//Create variable to hold item to be sent
SentItem : LoadVars = new LoadVars();
//Create variable to hold received items
ReceivedItem : LoadVars = new LoadVars();

send_btn.OnRelease = process

function process {
//Load variables into SentItem
SentItem.msize = msize.text;
SentItem.mlmfile = "webmagic";

//Send Variables to script, ReceivedItem hold Response.
SentItem.sendAndLoad ("/cgi-bin/matweb.exe", ReceivedItem);
}
  1. //Create variable to hold item to be sent
  2. SentItem : LoadVars = new LoadVars();
  3. //Create variable to hold received items
  4. ReceivedItem : LoadVars = new LoadVars();
  5. send_btn.OnRelease = process
  6. function process {
  7. //Load variables into SentItem
  8. SentItem.msize = msize.text;
  9. SentItem.mlmfile = "webmagic";
  10. //Send Variables to script, ReceivedItem hold Response.
  11. SentItem.sendAndLoad ("/cgi-bin/matweb.exe", ReceivedItem);
  12. }


NOT TESTED...
just wrote this straight into the forum, dont have flash at work. But that is how I would do it. You just need to have a textbox on stage to hold msize. This is how I would do it if I was sending to a script This is sending to a .exe file. No idea what will happen.
Hope it helps

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.