Skip navigation
ESmuga
Currently Being Moderated

FLV playback, source not loading

Sep 11, 2012 11:13 PM

I am not sure why the videos are not play in my web app. 

 

I added f4v mime type to the server

I triple checked the paths and viewed the videos online.

url: http://appesl.englishfreeonline.com/   videos are is assets/    ... check source below

When I clear the cache and load the userL.f4v first, it plays.

If I try to load any other video first it doesn't work.

Also if I load any video after first loading userL.f4v...well they still don't play.

 

Any ideas? Here is the source code:

 

import flash.display.MovieClip;

          import flash.events.MouseEvent;

          import fl.video.VideoEvent;

          import fl.video.FLVPlayback;

 

 

          public class mcInfo extends MovieClip {

 

                    public function mcInfo() {

                              flashCards.addEventListener(MouseEvent.CLICK, cards)

                              training.addEventListener(MouseEvent.CLICK, trainingL)

                              user.addEventListener(MouseEvent.CLICK, userL)

 

                    }

 

                    private function cards(e:MouseEvent):void

                    {

  player.stop();

                              player.source = "assets/flashCards.f4v";

                              player.play()

                    }

 

                    private function trainingL(e:MouseEvent):void

                    {

  player.stop();

                              player.source = "assets/trainingL.f4v";

                              player.play()

                    }

 

                    private function userL(e:MouseEvent):void

                    {

  player.stop();

                              player.source = "assets/userL.f4v";

                              player.play()

                    }

 

 

 

 

          }

 
Replies
  • kglad
    62,194 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 12, 2012 7:41 AM   in reply to ESmuga

    update LE.swf on your server.  you're not using those paths in your uploaded swf:

     

    http://appesl.englishfreeonline.com/LE.swf cannot access local resource file:///C:/Users/Smuga/Business/HDD/Business/AFiA%20Design/Language%2 0Brain%20Train/Windows%20Desktop/LE%20Desktop/assets/trainingL.f4v.

     
    |
    Mark as:
  • kglad
    62,194 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 12, 2012 11:23 AM   in reply to ESmuga

    all your compiled code is in your swf.  anyway, you are trying to load trainingL.f4v from your c drive.  you probably navigated to that using the properties panel when the flvplayback component is selected.

     
    |
    Mark as:
  • kglad
    62,194 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 13, 2012 7:04 AM   in reply to ESmuga

    swf's don't read any code. .as files are not loaded and they are not read when a swf executes.  they are compiled and added to a swf when the swf is published.

     

    your class files and other .as files do not need to be (and should not be) uploaded to your server.

     

    when you publish your swf, Flash compiles your code and adds the compiled code to your swf.  if you then change an .as file and (without publishing - ie, outside the test environment) run your swf, the old code will execute.  the swf is using the code existing when it was last published.

     

    p.s.  please mark helpful/correct responses.

     
    |
    Mark as:
  • kglad
    62,194 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 14, 2012 3:44 AM   in reply to ESmuga

    no, there's no reason to add .as files to your included files when publishing for air and there's no reason to upload .as files to a server when deploying a swf on a file server.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points