Mar 07 2010

100% HTML table

Category: tutorialali @ 12:38 am

Hi,

Maybe you have tried so hard to create a HTML table with 100% width and height in Dreamweaver but anytime you tried you have seen that width of the table is 100% but not the height!!

If you try to write this simple HTML file with notepad yourself you see that it’s easy and you did it! and every thing works just fine… but when you create a new HTML file in Dreamweaver and try to make your table 100% you have a problem!
Continue reading “100% HTML table”

Tags: , , , ,


Feb 21 2010

Getting started with AS3 as soon as possible

Category: tutorialali @ 9:20 am

Hi everybody,

I know how felt for the first time that you wanted to start learning AS3! specially when you were not familiar with any other languages before.

Alright, now it’s time for you to be relax that you have found a quick post finally to get you started with AS3 as soon as possible.

I myself when I was starting to learn about AS3, I found it so hard to get started… I had to spend so much time on finding different books, video tutorials, etc… and hehe, it was just the beginning, then I had to start studying the books and watching the videos… you know? it takes so much time for you to get started like that, but in the other hand it’s good for those who are not also familiar with using Adobe flash interface, etc… in the following I let you know whose this tutorial is for.

WHOSE THIS TUTORIAL IS FOR?

This tutorial is good for those who know a little about Adobe flash interface and don’t know anything about AS3 but know a little about computer languages and are a little familiar with variables, functions, etc… and love to get familiar with the AS3 world and don’t know where to start! so they don’t want to waste their times on seeing the tutorials that explain functions and variables from the beginning and explain every littile tiny thing from scratch… they need to have a resource for them to get them as soon as possible on their ways, so that’s why this post is written by me.

Alright, so for those who doesn’t know anything about Adobe flash interface or something and like to study some books and watch video tutorials, there are a dozens of books and videos out there to put you on your way but here I just want to mention the main facts. Continue reading “Getting started with AS3 as soon as possible”

Tags: , , , , , , , , , , , , , , , , ,


Feb 21 2010

FileSaver Data Transfer

Category: AS3admin @ 7:22 am

In my recent project, http://www.myflashlab.com/2010/01/27/contactform-class/ I was trying to do a lot of data transfer to and from flash to PHP (or any serverside script), I had to send attachments to php, I even had to encrypt the data before the transfer and that stuff. having to do all these things, I decided to write a class to take care of all these things for me.

so I wrote this fine class that I have named it FileSaver! :) This class is good for the following purposes:

  • you want to save a file from your flash app to your desktop.
  • you want to save a file from your flash app to your server.
  • you want to save a file to your server and send some variables along with it.
  • you want to send some variables to a server side script.
  • you can encrypt the data before sending them out to server script.

Continue reading “FileSaver Data Transfer”

Tags: , , , , , , , , , ,


Feb 21 2010

Custom Event Listener

Category: AS3admin @ 2:22 am

When writting your AS3 projects, you will need events. The main thing that events do is to help you make a bridge between your instances of classes. take the adobe’s MouseEvent as an example. you add a MouseEvent.CLICK listener to a movieclip so that when you click on a movieclip instance it will dispatch the “CLICK” event. it works like below as you know.

import flash.events.MouseEvent;
mc.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void
{
    trace("mc is clicked")
}

this is all good, you have used an event being built by adobe (there are many other premade events by flash if you just check the package flash.events) Continue reading “Custom Event Listener”

Tags: , , , , , , ,


Feb 21 2010

generate asDoc for flash player 10

Category: AS3admin @ 12:07 am

in my other post about asDoc generating I talked about my expiriences in generating asDoc but that string in the .bat file works only for flash player 9 projects! in this artical I will talk about how you ca also generate asDoc successfully for flash player 10 codes also.

first read the last post here to get ready with the whole idea. http://www.myflashlab.com/2010/02/20/how-to-generate-asdoc-from-your-class-files/

the only modification you need to make to the .bat file is:
-external-library-path “C:\Program Files\Adobe\flex_sdk_4.0.0.6898\frameworks\libs\player\10″ Continue reading “generate asDoc for flash player 10″

Tags: , , , , , , , , , ,


Feb 20 2010

how to generate asDoc from your class files

Category: AS3admin @ 11:49 pm

With the launch of our new website, this site, myflashlab.com, I tried to help users use our classes with a better expirience and that was when I thought of generating adobe like AS API documentations!

to tell you the truth, at first I did not know that there’s a tool to automatically generate these nice looking documents! so the first document I generated was done totally manually with my DreamWeaver! it took a lot of time, there were so many broken links between the pages and it finally gave me a feeling that made me say, how crazy adobe is to be building these documents!

After being almost disappinted, I noticed that some open source programmes like paperVision or some other have the very same looking documentations! so I was suspisous that there must be a tool for doing this time consuming work and I was right, there is a nice tool and it’s called asDoc generator :)

In this post I will talk about my own expiriences on how I managed to generate the documentations I needed for my classes. there may be better approaches that I’m not aware of. but this is what is working for me and I am happy with. If you have a better idea or something, please share it with us. Continue reading “how to generate asDoc from your class files”

Tags: , , , , , , , , ,


Feb 10 2010

3D convertor

Category: Utilsali @ 4:31 am

This is 3D convertor class that you can use it in your projects to convert your environment 3D
Imagine you have a photo gallery in flash, you can use this class to make your own gallery 3D
Now you can convert anythink 3D as simple as ABC, really simple!! you don’t believe it!!
I have an offer: DO NOT WASTE YOUR TIME AND SPEND LOTS OF MONEY TO MAKE YOUR SITES 3D, NOW WITH THE HELP OF THIS CLASS YOU CAN MAKE 3D EVERYTHING THAT YOU WANT YOURSELF
You heard it right. Continue reading “3D convertor”

Tags: , , , , , ,


Jan 27 2010

Flip Class – CornerFlip

Category: Utilsadmin @ 6:58 pm

This flip effect class works dynamically and is created through pure coding. There is NO library assets or symbols or what soever. you can simply initialize the class and set which corner of your project you want to have the flip effect and it will just work like charm!

CHECK OUT THE DEMO HERE

You can add this paper flip effect to any display object, any MovieClip, stage or anywhere. below is a sample code showing the different settings that you can have for your CornerFlip class: Continue reading “Flip Class – CornerFlip”

Tags: , , , , , , , ,


Jan 27 2010

ContactForm Class

Category: Utilsadmin @ 6:47 pm

The ContactForm class will help you create complex web forms easily. you can create unlimited number of fields and positioning them horizontally or vertically and manually. all colors are set dynamically and the whole class has been built through pure coding.

  • Captcha code supported.
  • File attachment supported.
  • Data encryption supported.
  • CHECK OUT THE DEMO HERE

    Continue reading “ContactForm Class”

    Tags: , , , , , , , , , , , ,


    Jan 23 2010

    Unload an externally loaded swf file

    Category: FAQadmin @ 12:09 am

    How to remove or unload an externally loaded swf file from your project?

    It happenes a lot that you try to load an external SWF file into your project. maybe in your portfolio or some swf movies or sound files. The problem I am going to talk about here is about the common problem of unloading the swf files!

    you see, if you have loaded an swf file which has some music on it playing constantly, when you try to unload/remove that swf, the sound keeps playing! (not just sounds, maybe some Event.ENTER_FRAME or other listeners are still working)

    to avoid this problem, the best solution I can think of is to add a REMOVED_FROM_STAGE listener in your external swf file so it can listen to when it’s removed from the stage so it can kill the running processes inside itself.

    simply add it like this:

    1
    2
    3
    4
    5
    6
    import flash.events.Event;
    this.addEventListener(Event.REMOVED_FROM_STAGE, onStageRemoved);
    function onStageRemoved(e:Event):void
    {
    // kill all listeneres and running processes here.
    }

    Regards,
    Hadi

    Tags: , , ,


    Next Page »