+ Reply to Thread
Page 2 of 6 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 54

GuestBook Flash CS4

This is a discussion on GuestBook Flash CS4 within the FlepStudio utilities forums, part of the Flash English category; Many thanks! That is really nice from you OrientExpress. In my xml, i replaced the getFormattedDate function by : Code: ...

  1. #11
    Junior Member Settled In armavista is on a distinguished road
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Re: GuestBook Flash CS4

    Many thanks!

    That is really nice from you OrientExpress.

    In my xml, i replaced the getFormattedDate function by :

    Code:
    private function getFormattedDate(seconds:Number):String
    {
        var days:Array=new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato");
        var months:Array=new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
        var milliseconds_server:Number=seconds*1000;
        var d:Date=new Date();
        d.setTime(milliseconds_server);
        var day:String=(days[d.getDay()]);
        var month:String=(months[d.getMonth()]);
        var year:int=d.getFullYear();
        return (day+" "+d.getDate()+" "+month+" "+year+" - "+d.toLocaleTimeString());
    }
    ... and it works!

  2. #12
    Junior Member Settled In armavista is on a distinguished road
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Re: GuestBook Flash CS4

    By the way, what about the hour format?
    Can i add a few lines in the code to get rid of AM an PM and get a 24h format?
    OrientExpress, are you there?
    THANKS


  3. #13
    Junior Member Settled In armavista is on a distinguished road
    Join Date
    Nov 2009
    Posts
    6
    Rep Power
    0

    Re: GuestBook Flash CS4

    Here is my solution to get the 24h format :

    Code:
    private function getFormattedDate(seconds:Number):String
    {
                var days:Array=new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato");
                var months:Array=new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
                var milliseconds_server:Number=seconds*1000;
                var d:Date=new Date();
                d.setTime(milliseconds_server);
                var day:String=(days[d.getDay()]);
                var month:String=(months[d.getMonth()]);
                var year:int=d.getFullYear();
                var hour=d.getHours();
                var minute=d.getMinutes();
                if (minute<10)  { return (day+" "+d.getDate()+" "+month+" "+year+" - "+hour+"h0"+minute);}
                else { return (day+" "+d.getDate()+" "+month+" "+year+" - "+hour+"h"+minute);}
    }
    Now i'm wondering how to allow the user to start a new paragraph in the message box. Enter key is ineffective.

    Anyone could help?

    Thanks

  4. #14
    Junior Member Settled In mabo is on a distinguished road
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Re: GuestBook Flash CS4

    Hello Flep,

    first let me thank you for the great application. I want to use it for our non-profit community. I have a Flash site, written in AS3 (no OOP), the whole code is written in the timeline.

    Now i have try to load the Guestbook (swf) with a loader function. But i get an error (TypeError: Error #1009: Cannot access a property or method of a null object reference).
    Please can you help me, what i have to do?

    This is the loader:

    PHP Code:
    function loadGuestbook()
    {
    var 
    mLoader:Loader = new Loader();
    var 
    mRequest:URLRequest = new URLRequest("guestbook/main.swf");
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETEguestbookComplete);
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESSguestbookProgress);
    mLoader.load(mRequest);
    }

    function 
    guestbookComplete(loadEvent:Event)
    {
            
    kontaktHeader.addChild(loadEvent.currentTarget.content);
    }
    function 
    guestbookProgress(mProgress:ProgressEvent)
    {
    var 
    percent:Number mProgress.bytesLoaded/mProgress.bytesTotal;
    trace(percent);
    }
    loadGuestbook(); 
    Thank you very much!!

    Regards, mabo

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

    Re: GuestBook Flash CS4

    Graciassssss!!!!!! Great!!!

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

    Re: GuestBook Flash CS4

    Quote Originally Posted by mabo View Post
    Hello Flep,

    first let me thank you for the great application. I want to use it for our non-profit community. I have a Flash site, written in AS3 (no OOP), the whole code is written in the timeline.

    Now i have try to load the Guestbook (swf) with a loader function. But i get an error (TypeError: Error #1009: Cannot access a property or method of a null object reference).
    Please can you help me, what i have to do?

    This is the loader:

    PHP Code:
    function loadGuestbook()
    {
    var 
    mLoader:Loader = new Loader();
    var 
    mRequest:URLRequest = new URLRequest("guestbook/main.swf");
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETEguestbookComplete);
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESSguestbookProgress);
    mLoader.load(mRequest);
    }

    function 
    guestbookComplete(loadEvent:Event)
    {
            
    kontaktHeader.addChild(loadEvent.currentTarget.content);
    }
    function 
    guestbookProgress(mProgress:ProgressEvent)
    {
    var 
    percent:Number mProgress.bytesLoaded/mProgress.bytesTotal;
    trace(percent);
    }
    loadGuestbook(); 
    Thank you very much!!

    Regards, mabo
    Post the entire error please

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

    Re: GuestBook Flash CS4

    Hello!!
    How do I delete an entry????

    Thanks!!

  8. #18
    Junior Member Settled In chiflatin is on a distinguished road
    Join Date
    Sep 2009
    Posts
    6
    Rep Power
    0

    Re: GuestBook Flash CS4

    How would I change the sort order of the guestbook entries.... mine shows the oldest ones on top.

  9. #19
    Junior Member Settled In chiflatin is on a distinguished road
    Join Date
    Sep 2009
    Posts
    6
    Rep Power
    0

    Re: GuestBook Flash CS4

    I found the answer on the Italian side of the forum:


    "....I messaggi sono ordinati al contrario. Per ordinarli devi cancellare la riga 88 del file LoadingXML.as//_fla.messages_array.reverse(); ...."


    (comment out line 88 "_fla.messages_array.reverse();" in the LoadingXML.as)

  10. #20
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,762
    Rep Power
    11

    Re: GuestBook Flash CS4

    Quote Originally Posted by antaraflo View Post
    Hello!!
    How do I delete an entry????

    Thanks!!
    From DataBase.

+ Reply to Thread
Page 2 of 6 FirstFirst 1 2 3 4 ... LastLast

Similar Threads

  1. Flash CS3 GuestBook
    By Flep in forum FlepStudio utilities
    Replies: 75
    Last Post: 08-05-12, 19:41
  2. GuestBook Flash CS4
    By Flep in forum Utilità di FlepStudio
    Replies: 48
    Last Post: 23-06-11, 20:55
  3. Flash CS3 GuestBook
    By Flep in forum Utilità di FlepStudio
    Replies: 165
    Last Post: 02-03-11, 17:41
  4. Flash Guestbook - knowledge requirements
    By hard_overclocker in forum Flash English
    Replies: 1
    Last Post: 14-11-07, 12:03
  5. GuestBook in Flash CS3 - PHP - mySQL e XML
    By Vlizzard in forum AIUTO utilità free
    Replies: 1
    Last Post: 25-09-07, 17:48

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