ASP.Net and Flash Communication

12/02/2009

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 data exchange between flash memory - the server. The LoadVars object is the data sent to the server for processing load from the server, data or send data to the server and waits for the response from the server to return an operational capability. LoadVars object uses name-value pairs exchanged between the client and server data. The LoadVars object is the best situation, the two-way between the need for the Flash movie and server-side communications logic, but does not require large amounts of data to pass

Step 4

Type or copy the following code to flash pests, QueryString read - Action Script 2. 2 ASP.Net action script is not because it provides such a method, and I coded the following URL to retrieve from the query string._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.

Link1 Link2

Posted in: asp.net| Tags: Communication NET Website Introduction flash article world development asp overview

An Overview on Microsoft ASP.NET Technology

12/02/2009

The Microsoft. Create an ASP.NET Web pages and Web technology, Microsoft's. NET is an integral part of Furemuwakubijon used. ASP.NET Web development and design fields, the latest Web-based technology. The simple and easy to use code for users and programmers. . NET is running a different Web applications running on platforms that support it offers one of the two types. The ASP is, HTML and dynamic means Active Server Pages to generate Web pages.

ASP.NET is not limited to script languages, it allows you to make use of .NET languages like C#, J#, VB, etc. It allows developers to build very compelling applications by making use of Visual Studio, the development tool provided by Microsoft. ASP.NET is purely server-side technology. It is built on a common language runtime that can be used on any Windows server to host powerful ASP.NET web sites and technologies.

If you are after, Web development, are beginning to. Can be a great resource and net income. The average site is very fancy tricks and tools. NET must be almost perfect integration. In addition, advanced features, using the language, can easily possible to create almost anything you are endless.

The drawback to this, is that if you want different looking pages, this is almost useless, and makes developing a site more difficult. Additionally, .net has a drawback in that it requires either C# or VB to write any code for the site. These languages are relatively simple to master, but pose a learning curve for people that have developed in traditional asp (VBScript) or php. The silver lining, is that .net is a compiled language which protects your code. Also, the language by default utilizes preset libraries that provide a wide range of functionality you can easily integrate into your website.

ASP.NET website development as a technology allows developers to create shopping carts that are flexible, search engine friendly and can be set up quite easily. The flexibility provided by ASP .NET framework adds more value to your online storefront. You can add unlimited products, categories and even customize the layout and design according to your convenience, many sub categories can be created within the existing categories and these applications are easy that user themselves can alter the applications according to their need. Shopping carts developed using the ASP.NET framework support database friendly languages like MS-ACCESS and MS-SQL.

Posted in: asp.net| Tags: NET Technology Microsoft web asp overview

A Brief Look And Overview Of SEO Techniques

12/02/2009

In recent years, search engine optimization (SEO), were needed and more and more, though thinking much more about themselves than most people. Used with the new development tools to be sites that are on Java, Flash and images difficult to obtain, it is important, something that can read the search engines. If the content is not by the search engines then they can not index to be read, and if your site does not get indexed then it will not be found, if people do not search on Google, Yahoo, MSN, or somewhere else. This short tutorial will outline what SEO is, how it works, and some unethical SEO methods that you should avoid.

What is SEO?

SEO is a way of analyzing your site and modifying it to allow search engines to read and index it more easily. SEO is all about maintaining and building websites that get ranked highly on the major search engines.

You see, when people use a search engine, they generally don't look beyond the top 20 or so results. If you want to make any money from your website, you need to get ranked in the top 20 out of potentially hundreds of websites.

How Does SEO Work?

Search engines get a huge database with information from each site. Most search engines to gather information that is not listed on their results pages, but it is borne in mind when it comes to the decision of these results, rankings

It is very important that you encourage the search engines to rank your website in a high position, and you can do this through the keywords that you use on your website, as well as when you submit it. If the keywords you use in your submission tool don't match the ones on your site then you could harm your rankings - be sure to have all the keywords you want to use on the website itself before you submit it.

Most websites don't focus on their topic well, and so keyword lists containing 50 or more phrases per page are recommended. By focusing some of the pages of your site on keywords, you will score higher with the search engines.

Free Search Engines.

The major search engines on the Internet are still free, and it's not hard to take advantage of this free advertising - you can do it in as little as an hour.

There are several companies that provide free SEO tools, or you can pay a professional to take care of it for you. Looking around on the web will turn up all sorts of useful resources.

What is Unethical SEO?

Unethical search engine optimization techniques can be unlawful, unscrupulous, or just in bad taste. You'd be surprised how many people use these methods. A lot of what is now called unethical SEO used to be accepted, until people went overboard and it started to have a negative affect on the web as a whole.

Keyword stuffing is when your site consists of long lists of keywords and nothing else. Don't do it. There are ways to put keywords and phrases on your site without running the risk of getting banned.

You may have seen 'invisible text' if you've been selecting the text on a page and found words that are the same color as the background. This text is often lists of keywords put there in the hope of fooling search engine spiders while hiding the words from visitors. This is considered unethical, and you shouldn't do it.

Doorway pages are pages that are not designed to see the real person - it is purely a search engine and spider, and you try to, I have to trick them into indexing the website in a higher position you. This is a taboo and should be avoided.

Even though unethical SEO is tempting, and does work, you shouldn't do it - not only is it annoying to users, but it's likely to get you banned from the search engines sooner or later. You sites' search engine rankings just aren't worth the risk. Use efficient SEO techniques to get your site ranked higher, and stay away from anything that even looks like unethical SEO.

SEO is a set of techniques used in order to attract visitors or prospective customers to your website, and the goal of a search engine is to provide high quality content to the users of the Internet. These two objectives are not in opposition, if you do SEO the way it should be done.

Posted in: java tutorial| Tags: SEO Website Information search look site engine overview index brief

An Overview of Online Computer Training Courses

11/24/2009

Computer training courses have become the last refuge of the unemployed. Unemployment has been rising at an unprecedented pace. If you look at the newspapers, you will feel a lack of vacancies in the near future before: economic recession, layoffs, outsourcing and offshoring are all newspapers filled. Because of this, many people were forced to consider the switch.

Previously, people thought a career change, when I felt tired only when an existing job than nothing, he felt it left existing work to achieve. However, the extra luxury of voluntary career change many employees there currently. The last that many employees were laid off one year or two. The only option for them will be starting my new career and learn new techniques.

At present, computer training are the most attractive option. The best thing about these courses is that they are affordable. What's more, it is relatively easy to learn the work of software packages.

A series of computer training is being conducted by universities and educational institutions. These courses cover a wide spectrum of topics ranging from basic office applications and accounting packages to complex programming languages. If you have a personal computer with an Internet connection at home, you can learn many software packages and languages are sitting at home.

Web Designing And Application Developing

Ever wondered who creates all these wonderful websites and animations? These are created by people just like you and me. One has to learn software tools and languages such as html, xml, javascript, PHP, and Photoshop for creating professional looking websites. One can find many free tutorials of these software tools on the internet and can download study material. Web designing is ideal for those who have the artistic talent for painting or drawing.

However, for the learning development of Web applications, you must have more than just artistic talent. There is not much difference between the scripting code for Web applications and writing code for the creation of new software tools. The good thing about the Internet is that if you develop a new cutting edge software, you can use the rest of the world, announcing almost immediately with social networking sites and mobile phones.

Office Automation Packages

These are perhaps the most popular computer training courses. They include a typesetting software tool like MS Word or Open Office Writer. A spreadsheet package like MS Excel or Open Office Calc is also essential. In addition, one can learn how to work with database management software tools like MS Access or presentation and slide-designing tools MS Power Point or Open Office Impress. The basic training tasks of these tools are typing, formatting, and printing letters; carry out some simple accounting jobs; and creating slides to amuse co-workers.

Accounting Packages

These were the favorites of early birds of computer training. Every big company has an accounting and finance department. Therefore, almost all companies will periodically have vacancies for accountants who are well-versed in accounting procedures and accounting software tools. You need to have either some kind of qualification in accounting or some kind of work experience in an accounting-related department or organization. Otherwise, you may not be able to optimize your learning with computer training courses.

Posted in: javascript tutorial| Tags: Career Online Training computer change option overview courses unemployment refuge

Website Design Company

11/13/2009

Website Design and Development Company is a must have for your online business. The company not only designs the website, but also develops it in accordance with the latest online trends. Whether it is static or dynamic website, a professionally managed Website Design and Development Company first takes the overview of your business strategies, and after discussing the strategies on an extended platform, the stage of designing is set into action.

Once the web designer has completed the design process, web design and development company to the next higher stage, which is the network's development. However, there is a significant difference between the design and development of professional business websites. Professional development Web site should keep in mind that you want to help your business to increase in all aspects! These include a clear and good flow of content, search engine optimization (SEO) and so on.

A professional website design and development company in the network, such as CSS, the ASP, HTML format, Java scripts and other advanced Web development tools used in this before any further strategic design, the most important aspect of the enterprise itself.

Website Design and Development Company: Things to Do

? Be smart about the Web site and too boring! Keep the site smart enough so that visitors like to come to him again and again!
? content of the website, please Flores fresh and updated. This is your website is going to be a high page rank of your website and invite search engine crawlers!
? Develop your website in CSS / HTML / DHTML instead of developing in Photoshop / Flash. CSS / HTML web development is recognized and therefore detected by the robots of popular search engines. This helps add visibility.
? Do not add too many pictures. Adding more and more of pictures makes it difficult to open the Web page. And beyond this is not an acceptable SEO strategy.

Keep your conscience these questions, you go to any Web site design and development company. Of course, to affordable web site design and development company, who can make you a custom package deal solution for your business an ideal choice. The best thing is to comparison shopping.

Posted in: dhtml| Tags: Business Online Website company web design development stage accordance overview

Hot Posts

Latest posts

Tags

Others

Sponsors

asp.net interview questions