Flash MX & ASP .Net

  • BK
  • Novice
  • Novice
  • BK
  • Posts: 26

Post 3+ Months Ago

Guys

I'm researching into using Flash MX and ASP .NET together for a server/client app. (I know nothing) So Just wondering if anyone knows of any good tutorials that focus on using the two together.

Also the more important issue of know of security issuses that arise from this implementation. Currently we see that flash sends query strings to ASP .NET server which is not really secure so is there another way or do we just need to encrypt it first.

Any help is appreciated on this.
  • Tidus
  • Newbie
  • Newbie
  • Tidus
  • Posts: 5

Post 3+ Months Ago

hi, Im working on a database driven site that currently uses flash to display records and a few other things. since the site is ecommerce, im thinking of replacing the flash with javascript (tho i hate to do it).

anyways, i dont know if this will help you but heres are what i consider the 2 most importand things i learned while on this project [ http://www.littlekidscloset.com ]
Code: [ Select ]
// src = asp
// use this to send data from asp to flash
// read records from database and display record data in flash object....
///////////////////////////////////////////
while (reading records)
{
    <tr><td><embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
    </embed></td></tr>
}

// src = actionscript
// use this to send data from flash to asp
// post to a page using forms instead of querystring
/////////////////////////////////////////////
on (press)
{
    frmSendData = new LoadVars();

    frmSendData.szLoadPage = "1"; // Home Page
    frmSendData.szUserLogin = "Th3Boxtorz"; // User Name
    frmSendData.szTotalCost = "4.28"; // Total Cost to User
    
    frmSendData.send("index.asp", "_parent", "POST");
}
  1. // src = asp
  2. // use this to send data from asp to flash
  3. // read records from database and display record data in flash object....
  4. ///////////////////////////////////////////
  5. while (reading records)
  6. {
  7.     <tr><td><embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
  8.     </embed></td></tr>
  9. }
  10. // src = actionscript
  11. // use this to send data from flash to asp
  12. // post to a page using forms instead of querystring
  13. /////////////////////////////////////////////
  14. on (press)
  15. {
  16.     frmSendData = new LoadVars();
  17.     frmSendData.szLoadPage = "1"; // Home Page
  18.     frmSendData.szUserLogin = "Th3Boxtorz"; // User Name
  19.     frmSendData.szTotalCost = "4.28"; // Total Cost to User
  20.     
  21.     frmSendData.send("index.asp", "_parent", "POST");
  22. }
  • BK
  • Novice
  • Novice
  • BK
  • Posts: 26

Post 3+ Months Ago

Thxs for that ...it will be very helpful.

Got another question...
I want flash to load external images, How would I go about doing this?? More importantly can it be done??

the example would be Picture url are stored in DB and ASP .NET sends the url to flash.

### EDIT ###
found some good topics that explain this topic. If anyone else is interested I've added link below.
http://www.ozzu.com/ftopic29542.html
http://www.ozzu.com/ftopic24779.html
http://www.ozzu.com/ftopic25692.html
  • BK
  • Novice
  • Novice
  • BK
  • Posts: 26

Post 3+ Months Ago

OK I've had a look on the web and through here but didn't find much help. Got another question about loading pictures.

Can I load a picture in flash if I give it the bytes instead of a url??
example: ASP .NET get Blob (picture stored in bytes) and passes it to flash MX
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Never tried it, give it a jpg content header & try it out :D
  • BK
  • Novice
  • Novice
  • BK
  • Posts: 26

Post 3+ Months Ago

sorry to keep asking away but looking at the code above for asp to flash

Code: [ Select ]
<embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
</embed>
  1. <embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
  2. </embed>


I have a few questions
1. [params] do I replace that with <param name="Id" value="12345"> ???
2. Once I've passed the values into flash how do I access them?? I've looked on the web but haven't found anything that explains this.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 7 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.