A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: loadMovie in MC

  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    6

    loadMovie in MC

    Hi,

    I've got 2 swf files.

    let's call em: page1.swf & page2.swf

    on page1.swf frame 1 there is a button that has a gotoAndPlay(5)
    on that frame 5 I've made an empty MC in which I want to load page2.swf, but I can't seem to make it work.

    Any ideas on how to make it work?

  2. #2
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    MAke sure you have given the empty movieclip an instancename, I think most people use the instancename container_mc.

    On frame 5 add the following Actionscript:
    Code:
    container_mc.loadMovie("page2.swf");
    /Mirandir

  3. #3
    Senior Member Mo1010427's Avatar
    Join Date
    May 2005
    Posts
    343
    I did mine like this
    Code:
    loadMovie("page2.swf", "myMC");
    Either one will work

  4. #4
    Junior Member
    Join Date
    Jul 2005
    Posts
    6
    Ok, it works! THNX!

    next problem..:S

    on page2.swf there is a dynamic text part with a loadVariables("info.txt","txtbox") command.

    When I test the file (page2.swf) I see the text loaded, but when I test Page1.swf (where page2.swf is now inserted) I don't see the text...

    Why?

  5. #5
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Sounds like it would be some kind of problem with paths. Either to where the variables end up, which seems unlikely, or where the textfield gets the variables from. It could also be so that if page2.swf is in another folder/domain so it looks for the textfile in the wrong place.

    /Mirandir

  6. #6
    Junior Member
    Join Date
    Jul 2005
    Posts
    6
    Nope, that doesn't seem to be the problem...

    Something else is wrong...

    dunno what, but if I reconstruct the entire concept, it does work.

    But the one I want it to work on doesn't work.
    I'll figure it out somehow...

    Thanx for the help

  7. #7
    Junior Member
    Join Date
    Jul 2005
    Posts
    6

    Can't get it to work...

    I simply can't get it to work...

    I've attached the files, maybe someone could find out what the problem is...
    I can't...
    Attached Files Attached Files

  8. #8
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Oh now I see... The movie is loaded into a movieclip that is under a mask so you must embed the font in the textfield in the about movie.

    /Mirandir

  9. #9
    Junior Member
    Join Date
    Jul 2005
    Posts
    6
    How do I embed it?
    (srry, but I'm still a newby... just learned flash 2 days ago)

  10. #10
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Don't worry about it. Here's the procedure to embed the font:

    1. Select the dynamic textfield.

    2. Open properties panel. Click the [character] button to the far right inside the panel.

    3. Select the characters you need to use. For english I think it's enough with a-z(both upper- and lower case), numerics and "punctuation".

    /Mirandir

  11. #11
    Junior Member
    Join Date
    Jul 2005
    Posts
    6
    Thanx! It works!!!

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