Use Outlook with Google Gmail

•October 25, 2008 • Leave a Comment

To use your Gmail e-mail account in Outlook, you must first make sure POP3 support is enabled in Gmail, and then you can add it to Outlook.

  1. Log in to your Gmail account.
  2. At the top of any Gmail page, click Settings.
  3. In the Mail Settings window, click Forwarding and POP.
  4. In the POP Download section, select Enable POP or all mail or Enable POP only for mail that arrives from now on.
  5. Click Save Settings.
  6. In Outlook, on the Tools menu, click E-mail Accounts.
  7. Click Add a new e-mail account, and then click Next.
  8. Click POP3, and then click Next.
  9. Under User Information, do the following:
    1. In the Your Name box, type your full name the way you want it to appear to other people.
    2. In the E-mail Address box, type your e-mail user name followed by @gmail.com.
  10. Under Server Information, do the following:
    1. In the Incoming mail server (POP3) box, type pop.gmail.com.
    2. In the Outgoing mail server (SMTP) box, type smtp.Gmail.com.
  11. Under Logon Information, do the following:
    1. In the User Name box, type your full e-mail address, including @gmail.com.
    2. In the Password box, type your password.
    3. Select the Remember password check box.Note  You have the option to have Outlook remember your password by typing it in the Password box and selecting theRemember password check box. Having Outlook remember your password means that you won’t have to type your password each time you access the account; however, it also means that the account is vulnerable to anyone who has access to your computer. Use strong passwords that combine upper- and lowercase letters, numbers, and symbols. Weak passwords don’t mix these elements. Strong password: Y6dh!et5. Weak password: House27. Use a strong password that you can remember so that you don’t have to write it down.
  12. Click More Settings.
  13. On the General tab, under Mail Account, type Gmail.
  14. Click the Outgoing Server tab, and then select the My outgoing server (SMTP) requires authentication check box.
  15. Select Use same settings as my incoming mail server.
  16. Click the Advanced tab, and then under Server Port Numbers for bothIncoming server (POP3) and Outgoing server (SMTP), select the This server requires an encrypted connection (SSL) check boxes.
  17. Change the Outgoing server (SMTP) port number to 465.The Incoming server (POP3) port number should change automatically to995 when you select the This server requires an encrypted connection (SSL) check box.
  18. Click OK.
  19. To verify that your account is working, click Test Account Settings. If there is missing or incorrect information, such as your password, you will be prompted to supply or correct it. Make sure your computer is connected to the Internet.
  20. Click Next, and then click Finish.

How to Use Flash with PHP and mySQL

•September 28, 2008 • Leave a Comment

So you want dynamic content on your Flash movie. Sounds simple, right? Well let me tell you that it is, and well, it isn’t. This tutorial assumes a basic knowledge of Actionscript, PHP and MySQL. If you have that, it’s time to move on. Otherwise, I recommend you do some reading on the subjects…

Setting Up your SWF 
Loading external data into an SWF is a fairly simple task. Although the external text file method is probably the most widely known, it is by far the clumsiest way to get data into your SWF. Of course, this may be your only option if your server doesn’t support MySQL/PHP! But for those of us who are fortunate to have these privileges, let me show you how Flash can get external data without having to create additional text files. 
 

Dynamic text fields 
In order for Flash to get data from an external source, you need to make use of dynamic text fields. Simply place a blank dynamic text field on the stage and make sure you give it a variable name (NB: dynamic text fields have both an instance AND a variable names. In this case we want to focus on the variable name). Note the name you give to the field’s variable name, as we’ll need it when we write our PHP script. 

Once you have a text field setup, convert it to a movie clip symbol. Attach the following code to the resulting movie clip:

////////////ActionScript

onClipEvent (load) {

//assuming you have a personal web server and PHP installed locally loadVariables(“http://localhost/test.php”, this, “GET”);

                                   }

//////////////end ActionScript

Ok, that’s probably the easiest part of all. Now on to the PHP. 
 

Writing the PHP script that will pass variables to your SWF
To pass a variable between PHP and you SWF, it is imperative that you know the name of the variable you want to populate within your SWF. Again, when I say variable name, I’m talking about a dynamic text field’s variable, not instance, name. As long as you keep that in mind, you should be alright. 

The PHP script we’ll write is actually quite simple. All you need to do is use the print()function, whose output will be automatically passed to your SWF. As simple as this may seem, be warned that Flash needs to know which variable to populate with the data output from our script. In other words, we need to print the name of the variable attached to the dynamic text field we created earlier. This is a crucial step but is very simple to achieve. I’ve included an example below on how we would code this in PHP:

//////////////////PHP

<?php //The value of $x would be printed to the screen

but the SWF would not read the

data $x = “abc”; print $x; //The value of $x would be printed to the screen and because of the prefix ‘myVar=’, the SWF will //interpret this as being the intended value for the variable myVar in the SWF print “myVar=$x”;

?>

////////////////////end PHP

Like I said, simple concept but easy to forget. 

If you’ve ever tried getting external data into your SWF from a text file, you’ll notice that the two methods are very similar. PHP has a great advantage though in that you can use things like arrays, loops and even functions with which you can access information from within a database. The last of which will be the focus for the rest of the tutorial 

How to create Flash Preloader

•September 23, 2008 • Leave a Comment

Select Frame 1 of your Actions layer then opening the actions panel place in the following code:

//////////////////////start script//

stop();

this.onEnterFrame=function(){

totalBytes = Math.round(getBytesTotal() / 1024);

loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded>= _root._totalframes) { 

delete this.onEnterFrame;
gotoAndPlay(2);
}}

////////////////end script

 

Wen The ‘if’ conditional statement, in this case if the main timeline’s frames loaded is higher than or equal to the total frames, tell the play head to go to and play the Frame 2;

How to transfer variables from url string to Flash movie

•September 14, 2008 • Leave a Comment

http://somethere.com/somename.html?firstvar=something&anothervar=12

And if you want to have variables firstvar and anothervar inside flash movie on that page, the only thing that you have to add in html code is (red color)

<HTML>
<HEAD>
<TITLE>url</TITLE>
</HEAD>
<BODY bgcolor=”#669966″ marginwidth=”0″ marginheight=”0″ border=”0″ topmargin=”0″ leftmargin=”0″>

<script language=”JavaScript”>
document.write (’
<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ ’
+’codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0″ 
+’WIDTH=100% HEIGHT=100%> <PARAM NAME=movie VALUE=”url.swf‘+document.location.search+“>
+’<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#669966>
+’
<EMBED src=”url.swf‘ +document.location.search+ ’ 
+’quality=high bgcolor=#669966 WIDTH=100% HEIGHT=100% 
+’TYPE=”application/x-shockwave-flash”></EMBED></OBJECT>
‘)
</script>
</BODY>
</HTML>

And one last thing ) It will not work locally from disk or as file:///… To test it you must call it from local web server or upload it in the net. 

Besides 

You may use server scripts to do same things. 

ASP:
http://somethere.com/somename.asp?firstvar=something&anothervar=12

<HTML>
<HEAD>
<TITLE>url</TITLE>
</HEAD>
<BODY bgcolor=”#669966″ marginwidth=”0″ marginheight=”0″ border=”0″ topmargin=”0″ leftmargin=”0″>

<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
 codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0″ 
WIDTH=100% HEIGHT=100%> <PARAM NAME=movie VALUE=”url.swf
?<%=Request.QueryString()%>“>
<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#669966>

<EMBED src=”url.swf?<%=Request.QueryString()%> 
quality=high bgcolor=#669966 WIDTH=100% HEIGHT=100% 
TYPE=”application/x-shockwave-flash”></EMBED></OBJECT>

</BODY>
</HTML>
 

PHP:
http://somethere.com/somename.php?firstvar=something&anothervar=12

<HTML>
<HEAD>
<TITLE>url</TITLE>
</HEAD>
<BODY bgcolor=”#669966″ marginwidth=”0″ marginheight=”0″ border=”0″ topmargin=”0″ leftmargin=”0″>

<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
 codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0″ 
WIDTH=100% HEIGHT=100%> <PARAM NAME=movie VALUE=”url.swf
?<? echo $QUERY_STRING;?>“>
<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#669966>

<EMBED src=”url.swf?<? echo $QUERY_STRING;?> 
quality=high bgcolor=#669966 WIDTH=100% HEIGHT=100% 
TYPE=”application/x-shockwave-flash”></EMBED></OBJECT>

</BODY>
</HTML>

Hello world!

•September 14, 2008 • Leave a Comment

xooo, dges aris 14 seqtemberi da gavxseni chemi blogi am saitze.rad minda ar vici mara mainc gavxseni:)

ra ici raxdeba mainc.