Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
does the object that causes the error exist when the code that references it executes?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now