Problems | experience
In the process of making my homepage, I have encountered some problems and now share with you:
Originally wanted to do a pure Flash website, using Loadmovie to load my previous flash into the main film for visitors to browse selectively. But in the process of production encountered a lot of problems.
1 in the Loading Small flash (SF) to main Flash (MF) in the MC, the MC coordinates are relatively good grasp. Since the control of SF-loaded coordinates is equal to the control of the SF-MC registration point coordinates. And SF-MC's registration point coordinates are the original SF film's x=0,y=0 position. So it's easier to control the SF coordinates than to say.
The width and height of the 2 loaded SF are not particularly well controlled. Because the first frame after loading SF-MC width and height are equal to 0, because the film has not really loaded in. In subsequent frames, the width and height are varied, because the film's breadth and height are calculated as a movie clip, that is, the maximum width and maximum height, not the width and height of the movie set when the SF was originally made. So the film width and height of the SF in which the control is loaded are best set in the first frame, which is the Loadmovie frame. The set value is generally not possible to use the formula calculated, you must manually adjust to the appropriate width and height. If SF is loaded into an empty MC generated by Createmptymovieclip, the size of the loaded movie cannot be adjusted by adjusting width and height, only XScale and Yscale can be adjusted instead.
The 3-loaded SF should be masked to ensure that nothing other than the width (height) of the original SF film design is displayed. Instead of using a masked layer, you should use the Setmark () function. To display text in dynamic text and components that are not embedded fonts correctly
4 If the SF has a function-controlled sound (Mysound.start ()), it is also selected to export in the first frame. Then the sound will not be issued. , but if you copy the same sound element to MF's library, set the name of the link. Sound will be normal again. Just imagine that if I had 10 works that used a function-controlled sound, MF would be very large because all the sound components would be exported in MF.
5 after using Mc.loadmovie (xxx.swf), the mc.lockroot=true should be used immediately thereafter, otherwise all _root in the SF as will point to MF's _root and cause unnecessary trouble. It is only after using mc.lockroot=true that all the _root in the as of SF will be directed to the SF itself _root
It is because of my work in the game must be more, often use Mysound.start (). So I now give up the original idea instead of using Geturl () to connect to another Web page to show the work. But if your work is MV or short, you can still use Loadmovie () to make personal pages.