A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: loadMovie problem

  1. #1
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679

    loadMovie problem

    When i try to use my loadMovie function, to load a separate game, my hitTest functions and my inventory/stats buttons arent working at all :S any ideas what i should do?
    im using...
    Code:
    on(release){
    if(_root.password == "go"){
    loadMovie("game", showGame);
    }
    }

  2. #2
    Innovation = Cool Tyg's Avatar
    Join Date
    Feb 2003
    Posts
    339
    if showgame is a movieclip that you are trying to load it into
    you forgot the "" "showgame" which will have to be the name
    of the target movie instance
    otherwise it is probably just loading it into level0
    HDengine
    SwirlJong

  3. #3
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679
    hmmm... it doesnt change anything...

    when i run my game.swf externally, all the buttons and item pick ups work, but then when they get run within the movie clip, they just stop working... you cant open the inventories or anything

  4. #4
    Innovation = Cool Tyg's Avatar
    Join Date
    Feb 2003
    Posts
    339
    ok another problem
    loading externally
    if you use loadmovieNum and the external movie works
    then the problem is with loadmovie
    if you are loading an external movie which is larger in
    filesize than the target movieclip it will choke or load up
    to the target clips size
    but this problem doesn't occur with load movie num
    a way around this is to add fake library items to the first clip so
    that it is larger than the second or use loadmovienum...but that is no good if you want the second clip to be in a certain area of the screen
    does that make sense
    HDengine
    SwirlJong

  5. #5
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679
    kind of...

    how do i use loadMovieNum? because my game file is pretty big, i dont want to fill up my webspace

  6. #6
    Innovation = Cool Tyg's Avatar
    Join Date
    Feb 2003
    Posts
    339
    ok the first moveie loads on layer 0
    so loadmovienum("my.swf",1) say would load on the
    top of the first layer if its screensize is smaller
    the first layer will show behind it
    you would use unloadmovie(1) to remove the second movie
    leaving the first intact
    if you load "my.swf",0 it would load on the same layer
    as the first movie thus replacing it
    HDengine
    SwirlJong

  7. #7
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679

    Thanx!!! that helped alot

  8. #8
    Innovation = Cool Tyg's Avatar
    Join Date
    Feb 2003
    Posts
    339
    np...glad i could help
    HDengine
    SwirlJong

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