Hi Alain,

It's not working in Flash 7 b'cos u r using upper case 'L' in Load method.
Try using this "varGetDates.load( "http://"; + host +
"feed_issuedates.php");" a lower case 'l' for Load and this should work in
both the versions of Flash.

Regards,
Rahul

----- Original Message -----
From: "Alain Rousseau" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, October 19, 2005 10:24 AM
Subject: Re: [Flashcoders] .onLoad works in AS1, breaks in Flash 7


> Have you verified that you compiled in Flash 7 using AS1 and not AS2 ?
> if not you might need to adapt your code a little to work with AS2
compiler.
>
> Miles Thompson wrote:
>
> > This code works in AS1 (Flash 6) but "success" never occurs in Flash 7.
> > What could I be doing wrong?
> >
> > function getIssueDates()
> > {
> >     varGetDates = new LoadVars();
> >     //varGetDates.cacheKiller = new Date().getTime();
> >     varGetDates.Load( "http://"; + host + "feed_issuedates.php");
> >     varGetDates.onLoad = function( success )
> >     {
> >         if (success)
> >         {
> >             _root.issuedates = varGetDates.issuedates;
> >         } else
> >         {
> >             // provide today's date
> >             today = new Date();
> >             issuedates = string( today.getFullYear() ) +"-";
> >             issuedates = issuedates + string( today.getMonth() + 1) +
> > "-";
> >             issuedates = issuedates + string( today.getDate() );
> >         } // if(success)
> >       etc., etc.
> >      }
> > }
> >
> > Note: Host is set in the first frame through an inclusion: #include
> > "settings.as". Host shows up in the degugger variables window as
> > "www.allnovascotia.com/test/"  What is passed to varGetDates.Load is
> > "http://www.allnovascotia.com/test/feed_issuedates.php";
> >
> > A trace( varGetDates.issuedates) inserted immediately before
> > "if(success)" returns an empty string. Same statement, following the
> > if(success) is never evaluated.
> >
> > No conversion was followed, the previous Flash MX version was opened
> > using Flash MX 2004, and then simply Save As'd to a new location; when
> > warned that the file would no longer be openable in Flash MX I clicked
> > on OK.
> >
> > Have I missed something really basic?
> >
> > I'm compiling as ActionScript 1 in the Publish settings.
> >
> > A steer in the right direction will be greatly appreciated - Miles
> > Thompson
> >
> >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to