Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamic Video Playlist with login page - Help!

Guest
Jul 10, 2009 Jul 10, 2009

Hi

I have got a dynamic video playlist using xml that was built using http://www.adobe.com/devnet/flash/ar..._playlist.html and it works great.

I want to add a simple login page to frame 1 using simple text variables and have used http://tranquilx7-flashmade-ez.blogs...your-site.html as guide.

The login page works ok and takes you to frame 2 instead of a url but the videos and playlist dont load correctly and I get the following errors

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at VideoPlaylist()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at VideoPlaylist/initMediaPlayer()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

I think its because I have moved the video content to frame 2 but cant work out what to update in the actionscript to load this on frame 2 insted of frame 1, any ideas??

I have attached the AS files as txt for reference, for some reason it wont allow me to upload .fla and. as files. You can get the orginal source .fla from http://download.macromedia.com/pub/developer/video_playlist_as3.zip

Any help greatly appreciated.

Thanks

TOPICS
ActionScript
684
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 10, 2009 Jul 10, 2009

does the object that causes the error exist when the code that references it executes?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 10, 2009 Jul 10, 2009

thanks for your reply but I have managed to fix it by move=ing the content of the constructor of the class 'VideoPlaylist' into a new  function called activate and then calling that on frame 2

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 10, 2009 Jul 10, 2009
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines