Actionscript 3 - Youtube API questions......


hi guys...

i trying build as3 search api project..

 

i checking guys's code here...

 

http://blog.martinlegris.com/2010/05/28/sample-code-using-the-youtube-as3-api-with-the-you tube-player-api/

 

he has following code...

 

     protected function dosearchresults(evt:videofeedevent):void

            {

                if(_requestid == evt.requestid)

                {

                    var feed:videofeed = evt.feed;

                    _video = feed.getat(2);

                }

                else

                {

                    trace("this call:"+evt.requestid+" isn't ours. we'll wait next one...");

                }

 

                if (_player != null)

                {

                    startplaying();

                }

            }

 

and has addeventlistener

 

    _ws = youtubefeedclient.getinstance();

 

                _ws.addeventlistener(videofeedevent.video_data_received, dosearchresults);

                _requestid = _ws.getvideos("american idol", "", null, null, ["music"], ["male"], searchorder.order_by_viewcount, searchracy.racy_include);

 

                _ws.getvideos("music video");

 

 

 

i create similar code in project , question "dosearchresults" has never been called...._ws has addeventlistenr has never received event....i not sure if miss here...please me it...thanks lot!!!



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support