#1
  1. Plays with fire
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2003
    Location
    Barsoom
    Posts
    1,146
    Rep Power
    144

    Pathing problems


    I've got an HTML page pulling in a SWF from a different directory. That SWF is pulling in images and videos from yet another directory:

    /ROOT
    index.html
    /flash
    .swf
    /flash/images
    *.jpg
    /flash/videos
    *.flv


    Everything is working fine, but it's not displaying the video. I have a variable in my code that points to the right paths:

    Code:
    var imageDirectory:String = "flash/images/";// this is the path to the images
    var videoDirectory:String = "flash/videos/";//this is the path to the videos
    I know this works because the images are displaying fine. Why not the video? I've confirmed the video is in the folder and the path is correct in Flash.

    What's going on?

    :grimey
    “Be ashamed to die until you have won some victory for humanity.” -- Horace Mann

    "...all men are created equal." -- US Declaration of Independence
  2. #2
  3. Plays with fire
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2003
    Location
    Barsoom
    Posts
    1,146
    Rep Power
    144
    ah, as usual as soon as I post the question, the answer reveals itself.

    I wasn't including the full path in the code. I was using:

    Code:
    video.source=pathToMovie;
    when I needed:

    Code:
    video.source="http://pathToMovie"

    Comments on this post

    • Tann San agrees : Sorry outta points but thanks for posting back with the solution.
    “Be ashamed to die until you have won some victory for humanity.” -- Horace Mann

    "...all men are created equal." -- US Declaration of Independence

IMN logo majestic logo threadwatch logo seochat tools logo