dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loader / unloader - youtube

  1. #1
    Senior Member
    Join Date
    Apr 2004
    Posts
    132

    Loader / unloader - youtube

    Hi all

    I'm having serious problems with AS3 (It is so hard compare to AS2)....... basically I have 2 issues.

    1) If I click into the introduction video (biggest thumnbail on main page) - and then click home it works. However, if I go into the same section again and then click home once more......it doesn't work, it throws up this....

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at SheenaCD_fla::MainTimeline/frame223()
    at flash.display::MovieClip/gotoAndPlay()
    at SheenaCD_fla::MainTimeline/HomeHandler()


    Now I assumed that it was because the event listeners were still active, so you'll see that I've tried to remove them prior to adding them again........


    2) Sometimes, even though I make sure that I unload the relevant loader for the movie clip the unloaded clip will still play in the background. I've even added soundmixer.stopAllSounds and that doesn't fix it.



    How can I ensure that when someone navigates back to the main page or back to the sub section from a video page (note that I've only put 3 in so far) that it works !!

    This is so frustrating and I've spent literally hours on this.....

    Could some kind soul please help me.

    I've uploaded my fla file (CS6) all rar'd up to :-
    http://www.ccforums.co.uk/temp/Sheena.rar

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    The problem with your movie are the frames. It is very difficult to control things with AS, because when objects are missing in frames, you get a null error. When you pass by a frame, the AS is taken up. The problem is solved, when your home button script contains this:
    gotoAndPlay("INTRO");
    instead of going back to "MAIN". I don't understand your movie really, but in the frame 1 in the script there is something, which prevents Sub1, for example, to become null.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

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