help i cannot get this preloader to work
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: help i cannot get this preloader to work

  1. #1
    Junior Member
    Join Date
    Jul 2013

    help i cannot get this preloader to work

    i am trying to use an external preloader for a F4V file which is kept at a HTTP address however it does not work. The preloader i am using is the standard flash template external preloader.the code is below. i think the content loader does not work with F4V files so can anyone provide an alternative script to make this work?

    thank you

    var contentLoader:Loader;
    loadContent(" URL address");

    function loadContent(url:String):void {
    contentLoader = new Loader();
    contentLoader.contentLoaderInfo.addEventListener(P rogressEvent.PROGRESS, loading);
    contentLoader.contentLoaderInfo.addEventListener(E vent.COMPLETE, contentLoaded);
    contentLoader.load(new URLRequest(url));

    function contentLoaded(evt:Event):void {
    //Optionally change to a clip holder and set progressbar visibility.

    function loading(evt:ProgressEvent):void {
    var loaded:Number = evt.bytesLoaded / evt.bytesTotal;

    function setBarProgress(value:Number) { = value;

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    yes, you cannot addChild f4v. you need to addChild video, and attach netstream to that video. the code to do it is quite hairy. for some example check this out.
    who is this? a word of friendly advice: FFS stop using AS2

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