Using Flash with ASP.NET
description
Transcript of Using Flash with ASP.NET
![Page 1: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/1.jpg)
Using Flash with ASP.NET
Wayne Smith, Principal ConsultantThe Multimedia Mix
![Page 2: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/2.jpg)
Macromedia Flash & ASP.NET
Why?
Basic Data Binding in Flash Pro MX2004
Getting data from ASP.NET into FlashLoadvarsData componentsFlash Remoting
Utilising .SWF within Visual Studio
Utilising .SWF within .EXE
![Page 3: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/3.jpg)
Why?
If you’re a Flash user?See previous presentations!
If you’re a [potential] Visual Studio user?
Cross platformCross deviceEveryone has itSmall playerSmart clientEtc. etc. etc
![Page 4: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/4.jpg)
Databinding in Flash
Either visual or in code
Visual is easy, but inflexible
Code needs learning
A simple example
![Page 5: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/5.jpg)
Getting data into Flash
GetVars
Flash Data Components
Flash Remoting
![Page 6: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/6.jpg)
Getting data into Flash
GetVars - Bad
Flash Data Components - Good
Flash Remoting - Better
![Page 7: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/7.jpg)
GetVars
Old, old, old
Showing just for completeness
Legacy Flash will use this
Can still be used with .NET
Don’t start with this!
(Hint – it can still be useful )
![Page 8: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/8.jpg)
Data Components
1st step for visual designers
![Page 9: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/9.jpg)
Data Wizards
Data Connection Wizard
DataGrid Column Editor
The easiest possible solution
Very rigid rules for use
![Page 10: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/10.jpg)
Flash Remoting
Requires .NET SDK (even with VS installed!)
3rd party solutions available (FlashOrb)
Visual data components are available (but…)
You need to code
Plenty of source is available
Example(s)
Gotcha
![Page 11: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/11.jpg)
Flash Remoting Summary
Fast due to AMF (Flash’s native language)
More access to ASP.NETASP.NET adapter ADO.NET data binding adapter Web services adapter
Auto proxy generation (don’t forget the gotcha)
Assembly (*.dll)
More flexibility with incoming dataRecordsets especially
The learning curve is well worth it
![Page 12: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/12.jpg)
Getting Flash into Visual Studio
How to integrate with rest of project
Right-click on the Toolbox, choose "Add/Remove items..."
Select the "COM Components" tab
Scroll down to "Shockwave Flash Object" and make sure it's ticked
Click OK
![Page 13: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/13.jpg)
Flash within executables
Flash is a very flexible graphical tool
3rd party components add more goodies
Communication is easy
(Psst… loadvars helps a lot!)
Stock History example
![Page 14: Using Flash with ASP.NET](https://reader035.fdocuments.net/reader035/viewer/2022062305/56814937550346895db67942/html5/thumbnails/14.jpg)
Thanks! Plus a Few Final Links
.NET XML Web Services Repertory
http://www.flash-db.com/
http://www.flashkit.com/
http://www.moock.org/
http://www.markme.com/mxna/index.cfm