Multiple Yahoo! maps in a Flex 2 Application

February 19, 2007 at 8:53 am | Posted in flex2, yahoo maps | 2 Comments

(I have post this question in Flexcoders)

Hi.
I am using this technique to embed a yahoo map in my flex 2 application: Inserting Yahoo! maps in a Flex 2 application

I have made some changes intended to support multiple instances of yahoo map control in my app (MDI application).

As you can see in this image:

Multiple Yahoo Maps in Flex 2

– first map window (background): OK

– second map window (front): Problems…it only shows yahoo logos…
map tools and images are not shown…

any help?

is there some kind of restriction related to number of yahoo map
objects that can be instantiated at the same time by the same
flash/flex 2 application ?

Thanks for your help.

DateFormatter parseDateString Replacement(

February 18, 2007 at 4:36 pm | Posted in as3, flex2 | 8 Comments

Searching in flex documentation I have found that parseDateString is a protected method… (why protected? it really sucks…)

If you need a “quick and dirty” method to parse a date from a string, maybe this could help you:

public class DateUtil {

public static function parseString(stringDate:String) : Date{
var milis:Number = Date.parse(stringDate);
return new Date(milis);
}
}

stringDate Format restrictions (From Date Documentation):

The Time Zone Designation (TZD) is always in the form GMT-HHMM or UTC-HHMM indicating the hour and minute offset relative to Greenwich Mean Time (GMT), which is now also called universal time (UTC). The year month and day terms can be separated by a forward slash (/) or by spaces, but never by a dash (-). Other supported formats include the following (you can include partial representations of these formats; that is, just the month, day, and year):

     MM/DD/YYYY HH:MM:SS TZD

     HH:MM:SS TZD Day Mon/DD/YYYY

     Mon DD YYYY HH:MM:SS TZD

     Day Mon DD HH:MM:SS TZD YYYY

     Day DD Mon HH:MM:SS TZD YYYY

     Mon/DD/YYYY HH:MM:SS TZD

     YYYY/MM/DD HH:MM:SS TZD

The future of Java: Flex

February 5, 2007 at 4:43 pm | Posted in flex2, java | Leave a comment

Hybridizing Java: This is an interesting article published by Bruce Eckel, author of “Thinking in Java”

Blog at WordPress.com.
Entries and comments feeds.