SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    loadmovie in CS4?

    hi there
    I've been trying to load an external SWF but keep getting this error:

    TypeError: Error #1006: loadMovie is not a function.

    This is the code I have:

    Code:
    location.loadMovie("video.swf");
    "location" is the mc that loads "video.swf"

    This used to work in other versions of flash but for some reason now it doesn't in these higher versions of flash!?

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    Leeds, U.K.
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you might have selected AS3 by accident, press ctrl+shift+f12, and click the flash tab. If it's set as AS3, more it to AS2

  3. #3
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sweeeeet... thanks

  4. #4
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh by the way... I've got some AS3 components in the SWF... any way to load the movie that way with AS3 instead of AS2?

  5. #5
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have the Loader class in AS3 for loading swf.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


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
  •