Ide Flash
![]() |
![]() New 32GB DOM Disk 40PIN IDE Vertical MLC Nand Flash US $86.39
|
ASP.Net and Flash Communication
Hello readers, I've covered in this article is just a small and simple overview of the world of Flash development with ASP.NET. I have recently designed a website, which thoroughly covers all of the Flash to ASP.NET communication methods mentioned in this article, as well as a step-by-step introduction to ASP.NET development with C# using Visual Studio.NET coolest IDE and Adobe Flash CS.
Step 1
Open Adobe Flash CS. Create a new document selecting Flash File (Action Script 2.0). You may be interested in Action Script 3 (AS3) but I choose Action Script 2 (AS2) for easier understand. Just step with me and I assure you, you will become a good Flash developer after reading this article. Now you will see a single tab namely ‘Untitled 1’ in the Adobe Flash. After saving the file ‘Untitled 1’ text will replace with your preferred filename. I named it ‘AspFlash.fla’. Remember FLA is a flash source file and your output movie will be SWF, which will need to be embedded in ASP.Net ASPX file later. Adobe Flash split-down with several window, do not confused. You do not need to know the all window features. Start with left called ‘Tools’, in the center top window called ‘Timeline’, next down window called ‘Scene’, next bottom window called ‘Properties’ and the right most window split-down with many window ‘Color’, ‘Align’, ‘Components’ and ‘Library’. Those entire windows can be switched on/off by ‘Window’ menu. Look at the ‘Scene’ window which will be your design area. From the ‘’Properties’ window you can change colors and size as per your requirements.
Step 2
Now add some component from the ‘Components’ window expand ‘User Interface’. Oh! lots of stuff. Drag only one ‘TextInput’ and one ‘Button’ on your ‘Scene’ window and align them correctly. Select ‘TextInput’ and put an instance name (e.g. TextInput1) from ‘Properties’ window. Without instance name, Action Script will not recognize any components. Do same for the ‘Button’ instance name (e.g. SendData) and from the ‘Parameters’ tab change ‘Button’ label (e.g. Send Data).
Step 3
Here we start out main coding part. Select ‘Layer 1’ from ‘Timeline’ window and press F9 (keyboard function key). You will see ‘Actions’ window, where you writes you’re AS code. Type or copy pest the following codes.
//************************************************//
SendData.onPress = function() {
//Declare and Initialize variable
var send_lv:LoadVars = new LoadVars();
//Assigning value to parameter, like Asp.Net QueryString
send_lv.mydata = TextInput1.text;
//Sending data
send_lv.send('default.aspx', '_self', 'GET');
};
//************************************************//
The LoadVars object is used for exchanging data between flash – server. The LoadVars object is capable of either sending data to the server for processing, loading data from the server, or sending data to the server and waiting for a response back from the server in one operation. The LoadVars object uses name-value pairs to exchange data between the client and the server. The LoadVars object is best used in a scenario that requires two-way communication between the Flash Movie and server-side logic, but doesn't require large amounts of data to be passed
Step 4
Type or copy pest the following codes to read the QueryString in Flash – Action Script 2. In Action Script 2 there are no methods like ASP.Net provides, so I wrote the following codes to get QueryString from URL. The _url method returns the URL of the ‘AspFlash.swf’ file that was loaded with ASPX page.
//************************************************//
//Reading QuaryString
myURL = this._url;
myPos = myURL.lastIndexOf("?");
if (myPos > 0) {
var myRawParam = myURL.substring(myPos + length('mydata=') + 1, myURL.length);
myParam = myRawParam.toString().split("'").join("");
if (myParam != undefined){
TextInput1.text = myParam;
}
}
//************************************************//
Step 5
Save your file from File menu. Now we need to make the final SWF move and embed it to ASPX page. From File menu click ‘Publish Settings’ and you will see a new window containing three tabs (Formats, Flash and HTML). In the Formats tab check Flash and HTML types, so that you can get the SWF embedded code in HTML page. Now press button ‘Publish’ to build the final move. If there are no error occurred, flash will provide you to two files (e.g. ‘AspFlash.swf’ and ‘AspFlash.html’) in root folder where source file ‘AspFlash.fla’ located.
Step 6
Now start Visual Studio .Net (VS) and create a new website and name it ‘AspFlash’. VS creates a default page namely ‘Default.aspx’. From solution explorer double click on ‘Default.aspx’ file to view Markup code (also called Inline code) like following.
//************************************************//
//************************************************//
Now copy ‘AspFlash.swf’ and ‘AspFlash.html’ files in to your web root directory. I mean ASPX, SWF files should be located in same directory. Open ‘AspFlash.html’ file and copy the following lines and paste it inside tag of ‘Default.aspx’ file.
//************************************************//
//************************************************//
After pasting the above code little change needed on ‘AspFlash.swf’ parameter like the following. Look at the line ‘AspFlash.swf?mydata='<% =Request["mydata"] %>'’ what we added. Flash read _url data with mydata which will be supplied by ASP.Net later.
//************************************************//
width="550" height="400" id="AspFlash" align="middle">
'" />
'" quality="high" bgcolor="#ffffff"
width="550" height="400" name="AspFlash" align="middle" allowscriptaccess="sameDomain"
allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
//************************************************//
Finally, add two ASP.net standard controls on ‘Default.aspx’ page (e.g. TextBox and Button). Change Button text property to ‘Send Data’. The full ‘Default.aspx’ will looks like the following.
//************************************************//
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
width="550" height="400" id="AspFlash" align="middle">
'" />
'" quality="high" bgcolor="#ffffff"
width="550" height="400" name="AspFlash" align="middle" allowscriptaccess="sameDomain"
allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
//************************************************//
Step 7
In this step you need to open ‘Default.cs’ file by clicking ‘View Code’ pointing on ‘Default.aspx’ from Solution Explorer of VS. By default VS added Page_Load event procedure. You need to add some text on Page_Load event procedure along with button1_click event procedure like the following.
//************************************************//
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
if (Request["mydata"] != null)
textbox1.Text = Request["mydata"].ToString();
}
protected void button1_Click(object sender, EventArgs e)
{
Response.Redirect("~/default.aspx?mydata=" + textbox1.Text);
}
//************************************************//
Step 8
Now build the website using F5 (keyboard function key) and type some text in Flash movie and click ‘Send Data’ to send Flash data to ASPX page. You will see ASPX ‘TextBox’ text changed with your Flash ‘TextInput’ text.
Same way type some text in ASPX ‘TextBox’ and click ‘Send Data’ Button to send ASPX data to Flash movie.
Enjoy the communication technique between ASP.Net and Flash. If need further assistance, feel free to contact me via email.
About the Author
MBip
|
|
Transcend 256MB IDE Flash Module - 256 MB - IDE - Internal TS256MDOM40VS $23.29 Transcend 256MB IDE Flash Module - 256 MB - IDE - Internal TS256MDOM40VS |
|
|
Startech.com / IDE TO COMPACT FLASH SSD / PLATEIDE2CF $33.55 Startech.com - IDE TO COMPACT FLASH SSD - PLATEIDE2CF |
|
|
Transcend 2GB IDE Flash Module TS2GDOM44VS $39.07 Transcend 2GB IDE Flash Module TS2GDOM44VS |
|
|
IDE Flash Module Vertical - solid state drive - 1 GB - IDE $19 Transcend IDE Flash Module Vertical - Solid state drive - 1 GB - internal - IDE |
|
|
Transcend 1GB IDE Flash Module $32.99 0.27" 0.40 oz 1 GB 1.16" 1GB IDE Flash Module 2 Year 2.05" Transcend's 1GB IDE Flash Module are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. 1GB IDE Flash Module are a convenient and easy to use solution for expanding an industrial computer's memory capacity. Flash Drive IDE Internal RoHS TS1GDOM44V-S Transcend Transcend Information, Inc Yes www.transcendusa.com |
|
|
Transcend 256MB IDE Flash Module $26.99 0.28" 0.39 oz 1.06" 2 Year 2.40" 256 MB 256MB IDE Flash Module 256MB IDE Flash Module Power Cord 50Pin Vertical Transcend's IDE Flash Module is specially designed for use in the demanding industrial environments where industrial PCs, Set Top Boxes and other computer systems must operate. IDE Flash Module is a convenient and easy to use solution for expanding an industrial computer's memory capacity. Flash Drive IDE Internal RoHS TS256MDOM40V-S Transcend Transcend Information, Inc Yes www.transcendusa.com |
|
|
Startech 35BAYCF2IDE Compact Flash Card/IDE Adapter $40.91 Compact Flash Card to IDE Adapter with 3.5 Bay Enclosure |
|
|
Transcend 256mb Flash Module (Diskonmodule) 44pin Ide Interface, Smi (Horizontal $25.99 256MB IDE FLASH MODULE (44-PIN HORIZONTAL) |
|
|
cf to ide adapter male 44 pin IDE to CF Compact Flash cf to ide for notebook computer $1.64 cf to ide adapter male 44 pin IDE to CF Compact Flash cf to ide for notebook computer match cf 1gb 2gb 4gb 8gb 16gb 32gb 64gb |
|
|
1.8in 50 Pin IDE to Compact Flash Solid State Drive Enclosure Adapter - CompactFlash Card adapter - IDE $22.99 StarTech.com 1.8in 50 Pin IDE to Compact Flash Solid State Drive Enclosure Adapter - CompactFlash Card adapter - IDE |
|
|
IDE 40/44 Pin to Compact Flash SSD Adapter - CompactFlash Card adapter - IDE $7.99 StarTech.com IDE 40/44 Pin to Compact Flash SSD Adapter - CompactFlash Card adapter - IDE - black |
|
|
DUAL CF to IDE Compact Flash Adapter PC #153 $4.94 DUAL CF to IDE Compact Flash Adapter PC #153 |
|
|
DUAL CF to 40Pin IDE Compact Flash Adapter 0153 $5.88 DUAL CF to 40Pin IDE Compact Flash Adapter 0153 |
|
|
CF Compact Flash to 40 Pin IDE Adapter Bootable #9696 $1.01 CF Compact Flash to 40 Pin IDE Adapter Bootable |
|
|
Transcend / 1GB 40PIN IDE FLASH MODULE SMI / TS1GDOM40V-S $32.78 Transcend - 1GB 40PIN IDE FLASH MODULE SMI - TS1GDOM40V-S |
|
|
TRANSCEND 128MB 40PIN IDE FLASH MODULE, SMI CONTROLLER (VERTICAL) TS128MDOM40VS $22.08 TRANSCEND 128MB 40PIN IDE FLASH MODULE, SMI CONTROLLER (VERTICAL) TS128MDOM40VS |
|
|
Transcend FLSH,2GB 40P IDE FLASH MODULE SMI TS2GDOM40VS $38.08 Transcend FLSH,2GB 40P IDE FLASH MODULE SMI TS2GDOM40VS |
|
|
Transcend 512MB Flash Module - 512 MB - IDE - Internal TS512MDOM40VS $24.47 Transcend 512MB Flash Module - 512 MB - IDE - Internal TS512MDOM40VS |
|
|
TRANSCEND 128MB 44PIN IDE FLASH MODULE, SMI CONTROLLER (HORIZONTAL) TS128MDOM44HS $21.69 TRANSCEND 128MB 44PIN IDE FLASH MODULE, SMI CONTROLLER (HORIZONTAL) TS128MDOM44HS |
|
|
Transcend IDE/EIDE Flash Module Solid State Drive TS1GDOM40VS $26.54 Transcend IDE/EIDE Flash Module Solid State Drive TS1GDOM40VS |
|
|
SYBA Multimedia 2.5" IDE/EIDE Flash Card Reader $45.72 IDE TO COMPACT FLASH ADAPTER CONVDUAL SLOT 44-PIN 2.5IN INTERFACE |
|
|
Startech IDE 40/44 Pin To Compact Flash SSD Adapter - CompactFlash Card Adapter - IDE. Each $13.52 Manufacturer: Startech Computer Products. Each. This IDE to Compact Flash SSD Adapter Card allows you to convert a single Compact Flash (CF type I/II) Card or MicroDrive into a bootable IDE Solid State Drive - a simple and convenient way to replace a IDE |
|
|
SYBA SY-IDE2CF-NB25 Ultra IDE to Compact Flash Adapter $9.99 Type: IDE to Compact Flash Specifications: It is for 44pin 2.5" NB HDD Enable Compact Flash (CF) to be used like ordinary IDE hard drive Compatible with CF I/II, MicroDrive IDE interface Bootable Compatible with DOS, Windows 3.1, NT4, 98SE, Me, 2000, XP, Vista, Mac and Linux Support DMA and Ultra DMA modes (only on flash media card with such features) *CF Type II or MicroDrive can only be inserted into the CF1 position of the adapter **Media must be in the device during boot up. Media is not hot swappable Parts: 3 years limited Labor: 3 years limited |
|
|
Dual Compact Flash CF to IDE 2.5 Male Adapter Converter $6.99 ..Dual Compact Flash CF to IDE 2.5" Male Adapter ..Make CF Card Be Your Hard Drive! |
|
|
Free Shipping CF Compact Flash to 40 Pin IDE Adapter Bootable #9696 $16.61 CF Compact Flash to 40 Pin IDE Adapter Bootable |
|
|
StarTech.com IDE to Compact Flash SSD Adapter $11.99 0.51" Height x 2.48" Width x 2.76" Length 0.71 oz 1 x 40-pin IDC Male 1 x 44-pin IDC Male 1 x 50-pin 3 This IDE to Compact Flash SSD Adapter Card allows you to convert a single Compact Flash (CF type I/II) Card or MicroDrive into a bootable IDE Solid State Drive - a simple and convenient way to replace a IDE hard disk drive. The adapter card makes it easy to build your own do-it-yourself SSD (requires CF card or Micro Drive), allowing you to take advantage of the benefits that Solid State storage has to offer. With no moving parts, an SSD is the ideal solution in work environments desiring the key properties of SSD's - low power consumption, no noise, shock resistance, and low operating temperatures providing cooler and quieter storage than a conventional hard disk drive. Plus, Solid State drives are less susceptible to atmospheric hazards (e.g. dust particles, atmospheric changes etc.), ensuring seamless performance regardless of environmental factors. The adapter is equipped with both a 40 pin (3.5in Desktop HDD) IDE channel or a 44 pin (2.5in Notebook HDD) IDE channel. Black Data Transfer Adapter IDC IDE to Compact Flash SSD Adapter IDE2CF RoHS StarTech.com Yes www.startech.com |
|
|
StarTech.com 2.5" IDE to Dual Compact Flash (CF) Adapter Card - Microdrive, CompactFlash Type I, CompactFlash Type II - IDE/EI $23.6 StarTech.com 2.5" IDE to Dual Compact Flash (CF) Adapter Card - Microdrive, CompactFlash Type I, CompactFlash Type II - IDE/EI |
|
|
SYBA Multimedia, Inc. SYBA Multimedia 2.5" IDE/EIDE Flash Card Reader - CompactFlash Type I - IDE/EIDE SDADA45006 $23.78 SYBA Multimedia, Inc. SYBA Multimedia 2.5" IDE/EIDE Flash Card Reader - CompactFlash Type I - IDE/EIDE SDADA45006 |
|
|
StarTech.com IDE 40 Pin to Compact Flash SSD Adapter $11.99 1 Year 1 x 40-pin Female IDE/EIDE On-board LED indicators for power-on and CompactFlash access CompactFlash Type I CompactFlash Type II Flash Reader IDE 40 Pin to Compact Flash SSD Adapter IDE/EIDE IDE2CFINT Internal Hot-pluggable Microdrive StarTech.com StarTech.com's IDE CF adapter offers a cost-effective Compact Flash storage solution, allowing you to create a simple DIY SSD (Do-it-yourself Solid State Drive). _x000D_ The IDE CF adapter lets you install a Compact Flash (type I, type II) or Micro Drive as a bootable hard drive, connected to any 3.5in (40-pin) IDE host interface. A convenient, cost-effective SSD solution, the IDE CF adapter requires no driver installation, and is compatible with any system that supports the IDE interface._x000D_ A versatile storage solution, the IDE CF adapter offers +3.3V or +5.0V voltage selection (based on CF card voltage support) and features on-board LED indicators that display CF access and power-on status._x000D_ A dependable, cost-effective solution for turning Compact Flash media into bootable IDE storage, the IDE CF adapter is backed by StarTech.com's 1-year warranty and free lifetime technical support. www.startech.com |
|
|
1.8 44 Pin IDE to CF Compact Flash Adapter $9.2 Description:This unique Compact Flash IDE Adapter is designed to enable Compact Flash (CFI/II) media to be used as direct replacement for the 1.8" IDE hard drive.As a result, any equipment, such as Notebook computer, that uses a 1.8" IDE hard drive can be easily converted to use the low power and shock resistant CF media.IDE to CF Adapter enables Compact Flash (CF) to be used like ordinary 1.8" IDE hard drive.This CF to 44 Pin IDE Adapter is support CF-type I card and CF-type II card.44-way(2.0mm) standard IDE connectorSupport DMA and Ultra DMA modes(only on flash media card with such features),maximum speed 40MB/sec.Dimension: ~6.4(L) x .4(W)cmWeight: 70gPackage content:1 x 1.8" IDE to CF Adapter |
|
|
CF to IDE Adapter $2.64 - Run operation systems with any compact flash memory card- Convert your compact flash memory card to an IDE hard drive- Non-fan and quiet operation |
|
|
Transcend IDE Flash Module Vertical - Solid State Drive - 4 GB - IDE. Each $56.3 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Vertical - Solid State Drive - 1 GB - IDE. Each $24.84 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Vertical - Solid State Drive - 128 MB - IDE. Each $13.54 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Vertical - Solid State Drive - 512 MB - IDE. Each $17.68 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Horizontal - Solid State Drive - 128 MB - IDE. Each $21.03 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Vertical - Solid State Drive - 2 GB - IDE. Each $34.19 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |
|
|
Transcend IDE Flash Module Horizontal - Solid State Drive - 8 GB - IDE. Each $101.48 Manufacturer: Transcend. Each. Transcend's IDE Flash Modules are specially designed for use in the demanding industrial environments where industrial PCs, Set-Top Boxes and other computer systems must operate. IDE Flash Modules are a convenient and easy t |



US $3.74













































































![Transcend Ts1gdom40v s 1gb 40p Ide Flash Module vertical] With Smi Controller](http://www.djnexum.com/images/e/230735370986_0.jpg)









