3. เขียน script ไว้ใน level ของ MovieClip ที่ทำเป็น preLoader
การทำในลักษณะนี้จะทำให้นำกลับไปใช้ใหม่ได้ง่าย และสามารถนำไปใช้ได้กับ การโหลด MovieClip ย่อย
จาก reply ที่แล้วได้สร้าง movieClip ที่ชื่อ loader
แทนที่เราจะเขียน script ไว้ที่ instance ให้เขียน script ไว้ใน timeline ของ loader ดังนี้
**Hidden Content: To see this hidden content your post count must be 1 or greater.**
ในเฟรมที่ 1 ของ timeline หลัก เขียน script ดังนี้
**Hidden Content: To see this hidden content your post count must be 1 or greater.**
ที่ instance Loader เขียน script ดังนี้
**Hidden Content: To see this hidden content your post count must be 1 or greater.**