Peter Elst

Flash Platform Consultant
  • Home
  • About me
  • Articles
  • Downloads
  • Contact me

Flash 8 - setTimeout and XML.idMap

19 12 2005

These are two great new features in Flash 8, but they might cause you to pull your hair out if you try to use them in a class and get nothing but compiler errors. There are a couple of ways around these compiler errors:

One way is to use array notation to access them, i.e. this["setTimeout"] and myXML["idMap"] (the setTimeout method could also be accessed via the global scope: _global.setTimeout).

Another approach is adding definitions for them in the intrinsic classes of Flash 8. You can do so as follows:

toplevel.as (C:\Documents and Settings\UserName\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\)

intrinsic function setTimeout():Number

XML.as (C:\Documents and Settings\UserName\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\)

var idMap:Object;

I’d personally recommend simply using array notation to avoid any compiler issues when you share your code with others who might not have made the necessary changes to the intrinsic classes.

Not sure why this is the case, whether it is simply an oversight of adding these to the intrinsic classes for Flash 8 or there is a larger issue at play - but this workaround is good to know nonetheless.

« Belgium zipcode components available Improved doLater method »



Actions

Informations

  • Date : 19 December 2005
  • Categories : Flash

6 responses to “Flash 8 - setTimeout and XML.idMap”

19 12 2005
John (01:20:22) :

Hopefully these are fixed in the first dot release of Flash 8.

19 12 2005
Peter (01:23:54) :

yes shouldn’t be too difficult to get fixed for a next release, what makes you think there will be a dot release though?

19 12 2005
ericd (01:31:49) :

I’ve been using global space - and agree, why think there will be a dot release?

19 12 2005
erixtekila (13:49:52) :

Next dot release ?
You know more than us ;)
Please share…

19 12 2005
Guy Watson (18:22:17) :

Are people forgetting that the next dot release is already in public alpha ? 8.5

19 12 2005
Peter (18:29:10) :

Flash Player 8.5 is in alpha right now but that doesn’t have anything to do with the compile-time errors, has it Guy?





Conferences

Flash on the Beach Speaker

Training Partners

multimediacollege

SkillsMatter

Badges

Alltop, confirmation that I kick ass

  • Categories

    • AIR RSS category feed
    • Ajax RSS category feed
    • CSS RSS category feed
    • Eclipse RSS category feed
    • Events RSS category feed
    • Flash RSS category feed
    • Flash Lite RSS category feed
    • Flex RSS category feed
    • Gadgets RSS category feed
    • General RSS category feed
    • JSFL RSS category feed
    • Mac RSS category feed
    • Open Source RSS category feed
    • PHP RSS category feed
    • Podcasts RSS category feed
    • Publications RSS category feed
    • Rants RSS category feed
    • Reviews RSS category feed
    • Thought of the Day RSS category feed
    • Training RSS category feed
    • Twitter RSS category feed
    • Video RSS category feed
  • Resources

    • Owen van Dijk
    • André Michelle
    • Matt Voerman
    • Darron Schall
    • Ralf Bokelberg
    • Mario Klingemann
    • Scott Barnes
    • Rich Tretola
    • LordAlex Leon
    • Serge Jespers
    • Patrick Mineault
    • Jonathan Kaye
    • Stefan Richter
    • Branden Hall
    • Aral Balkan
    • Keith Peters
    • Robert M. Hall
    • Brajeshwar Oinam
    • Stephen Downs
    • Edwin van Rijkom

     
     

    Adobe Community Expert

    See my profile on LinkedIn



    Harz Ferienwohnung Suchmaschinenoptimierung Geschenkideen Harz Ferienwohnung Pagerank Webkatalog Webhosting