Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 10 of 10

Thread: FlepCharCode

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,457
    Rep Power
    8

    FlepCharCode

    amazing Flash templates





    FLEP CHARCODE




    Text special effect


     














    Description

    Typewriter special effect to embellish titles or contents on your site

    Simple to use.


    File package

    flepstudio/FlepCharCode.as

    main.fla ( example of how to use FlepCharCode )

    Main.as ( example of how to use FlepCharCode )

    leggimi.txt (readme)

    Download source files at downloadssection of this site.


    Important

    Recommended speed of 1 to 10


    How to use the FlepCharCode class:

    Insert the flepstudio folder with the FlepCharCode class in it, following this path:

    C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes\

    I have the English version of Flash, it’s easily guessed where it should go for any other language

    - import the class like so: import flepstudio.FlepCharCode;

    - create a MovieClip

    - make sure that the SWF includes the used fonts ( see this article )

    - initiate the classes passing the needed parameters

    - add the MovieClip to the DisplayObject with addChild()



    See following examples:













    Code:
    import flepstudio.FlepCharCode;
    var clip:MovieClip=new MovieClip();
    var frase:String='Luna Rossa è la barca più bella';
    var font:String='Arial';
    var colore_font:Number=0x000000;
    var misura_font:Number=24;
    var spazio_lettere:Number=0;
    var velocita:Number=5;
    var colore_sfondo:Number=0;
    var colore_bordo:Number=0;
    var sfondo:Boolean=false;
    var bordo:Boolean=false;
    var bold:Boolean=true;
    var allineamento:String='sinistra';
    
    var flep:FlepCharCode=new FlepCharCode(clip,frase,font,colore_font,misura_font,
    spazio_lettere,velocita,colore_sfondo,colore_bordo,sfondo,bordo,
    bold,allineamento);
    
    clip.x=100;
    addChild(clip);










    Code:
    import flepstudio.FlepCharCode;
    var clip:MovieClip=new MovieClip();
    flep=new FlepCharCode(clip,'FlepStudio.org','arial',0xFFFFFF,30,0,5,
    						 0xFF0033,0,true,false,true,'centro');
    clip.x=100;
    clip.y=20;
    addChild(clip);
    
    var clip2:MovieClip=new MovieClip();
    flep=new FlepCharCode(clip2,'risorse gratuite per Flash CS3','arial',0x666666,20,0,5,
    						 0,0,false,false,false,'sinistra');
    clip2.x=100;
    clip2.y=clip.y+50;
    addChild(clip2);
    
    var clip3:MovieClip=new MovieClip();
    flep=new FlepCharCode(clip3,'prova la classe FlepCharCode','arial',0x333333,16,0,5,
    						 0,0x333333,false,true,false,'sinistra');
    clip3.x=100;
    clip3.y=clip2.y+50;
    addChild(clip3);
    
    var clip4:MovieClip=new MovieClip();
    flep=new FlepCharCode(clip4,'utile e semplice da utilizzare','arial',0x333333,16,0,5,
    						 0xCCFF00,0x333333,true,true,false,'sinistra');
    clip4.x=100;
    clip4.y=clip3.y+50;
    addChild(clip4);


    Source files:
    Attached Files

  2. #2
    Junior Member Settled In kub is on a distinguished road
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    Hi Flep,

    I get trouble when I use flepcharcode class.
    I get error : 1137: Incorrect number of arguments. Expected no more than 0.
    Can you send me a example of use? Main.fla and main.as aren't in the attach files flepstudio.zip (2.3kb)
    Thanks

  3. #3
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,457
    Rep Power
    8

    Re: FlepCharCode

    Hi kub,
    let me see how you are using it please.

  4. #4
    Junior Member Settled In kub is on a distinguished road
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    Hi Flep,

    Thanks!
    Files I use is attached to this post.
    Attached Files

  5. #5
    Junior Member Settled In kub is on a distinguished road
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    HI again,
    I worked a little bit since I send the last 'post'!
    I change my files as you can discover in the attached file typewriter.zip

    But another error :
    Code:
    5001: The name of package 'flepstudio' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\Cyrille\Mes documents\flash\flepcharcode\FlepCharCode.as
    I put flepcharcode.as into C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes\ so as you tell us !

    What's wrong?

    Thanks
    Attached Files

  6. #6
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,457
    Rep Power
    8

    Re: FlepCharCode

    Hi,
    delete the flepstudio folder into C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes\

    New Main.as imports:
    Code:
    package
    {
    	import flash.display.MovieClip;
    	import flash.text.TextField;
    	import FlepCharCode;
    New FlepCharCode imports:
    Code:
    package
    {
    	import flash.display.MovieClip;
    	import flash.text.TextField;
    	import flash.text.TextFormat;
    	import flash.text.TextFieldAutoSize;
    	import flash.events.Event;

  7. #7
    Junior Member Settled In kub is on a distinguished road
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    all right !
    It runs well
    Thank you !

  8. #8
    Junior Member Settled In joga1408 is on a distinguished road
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    FlepCharCode

    Hello!! Flep... I think this class is very nice I use it and it work very good.. I use it with the main.as, without this.. Using the functions and importing the FlepCharCode into my file, and it's nice.. I could make the 4 text animation to.. So if you want it, let me know.. So i can send you this.. and help others..

    I want to ask you if it is any way to use this class whit calling the text from an XML file.. If it is.. let me know how to do it.. Thanks..

  9. #9
    Junior Member Settled In savargas is on a distinguished road
    Join Date
    Jun 2009
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    Excellente, but, I don´t know how change the font, it only run with Arial

  10. #10
    Junior Member Settled In savargas is on a distinguished road
    Join Date
    Jun 2009
    Posts
    4
    Rep Power
    0

    Re: FlepCharCode

    I've solved, thanks

+ Reply to Thread

Similar Threads

  1. FlepCharCode
    By Flep in forum Utilità di FlepStudio
    Replies: 5
    Last Post: 29-01-10, 14:49
  2. FlepCharCode
    By Mushroom in forum AIUTO utilità free
    Replies: 7
    Last Post: 25-08-07, 09:36
  3. FlepCharCode
    By Mushroom in forum Actionscript 3.0 base
    Replies: 1
    Last Post: 25-08-07, 08:38

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO