Hi which email were you referring to break it up, i have an app init and app complete method, app init sets up logging, event listeners on the video player controls, timers etc. on app completion i setup the netconnection and once connected it plays a file. as i explained with my problem, it only happens if i overwrite the file on the server i setup the page to not cache to users get the updated version all the time, but in particular when its newly uploaded it takes up to 10 refreshes for the application to load properly and all the elements draw.

public function onAppInit(event:FlexEvent):void
{   
    initLogging();
    log.info(" STARTUP: " + event.target + ":" + event.type);
    initTimers();
    initControls();
}

public function onAppComplete(event:FlexEvent):void
{
    episodeID = Application.application.parameters.ep;
    bandwidth = Application.application.parameters.b;
    if (Application.application.parameters.path) path = Application.application.parameters.path + "/";
   
   
 
    episodeID = "on2";
    bandwidth = "38";

   
    videoFileName = path + episodeID + "-" + bandwidth + ".flv";
   
   

    if (episodeID && bandwidth)
    {
        initConnect();
    } else {
        showPreloadBar("Video Not Set");
    }
   

}
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to