Friday, June 20, 2008

getBytesLoaded,getBytesTotal

Hi guys,
In this i like to tell a function called
getBytesLoaded
This is a function used to find out how much of bytes loaded in the system.
getBytesTotal
This is a function used to find what is the total size of the flash file which is getting loaded.

this are the two function used to create a preloader.... In my next tutorial i will explain the preloader with example...
catch you soon...

Wednesday, June 18, 2008

setting different style in a single text box

Hi Guys,
I like to explain you some of my tips in editing the text with different font in a single text box.


This is not much difficult even though in some case it will be useful. This will work fine in the normal static box if you go for the dynamic text box like in the case of more content with scroll bar this will be more useful


  • Place a text box (you can refer my old topic to place the text bix and set the scroll bar).
  • You can find a button with the symbol <> just click it and you can edit a particular text and modify
You can get the effect like in the top textbox
meet you in the next soon

Tuesday, June 3, 2008

cookies in flash

Hi
in this section i like say few tips like how to store cookies with flash...

SharedObject:
This command used to retrieve data from the local system.

SharedObject.getLocal("user_profile");
will get the value from the file called user_profile where each swf will be stored in different location related to the name of the file.

let me specify a example on it

user = SharedObject.getLocal("user_profile");
if (user.data.name == undefined)
{
user.data.name="cookie";
trace("cookie is stored");
}
else
{
trace(user.data.name);
}

let me explain the code above
user = SharedObject.getLocal("user_profile");
this line will read the data from the local system.
if it find any value it will read the value of the variable or it will specify undefined if it is empty.
by checking the value of the variable we can ad the stored cookie value.
The line user.data.name="cookie"; will store the value cookie to the variable user.data.name.

Useful in.
This will be used to store some client detail in to his system like his user name and other detail in his system.
It is also used to find out weather the person has come to our site or not.