A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loadMovie?

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    4

    loadMovie?

    Well, I try and keep everything simple. In fact, I haven't really used loadMovie that much before this. However, due to the huge file size that is created by a photo gallery that I have created in a flash website for the Georgia Coalition of Physical Therapy Educators, I need to use it. I have gone through this process too many times to not be able to figure this out, so I don't know what the problem is. Here is the script:

    Code:
    onClipEvent (enterFrame) {
    	this.loadMovie("Photos.swf");
    }
    Is there anything wrong with that? It's attached to an empty movie clip on the _root timeline. The movie that it's referring to is located in the same directory. I haven't actually tried this while it's on the internet, if that should make any difference, which I don't think it should. Any suggestions?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    use onClipEvent (load) rather than onClipEvent (enterFrame)

    even better, give the empty clip an instance name - picLoader
    add code to the root timeline, in the same frame as the clip

    picLoader.loadMovie("Photos.swf");

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    4

    Talking Thanks

    Thank you so much. This actually reveals to me a number or reasons why previous endeavors turned out badly.

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    you're welcome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center