A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help needed with a loadMovie, external jpeg problem

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Help needed with a loadMovie, external jpeg problem

    Hello all,
    I've been having problems with loadMovie using an empty movie clip to load an external jpeg located in the root directory of my files.
    I have a gallery made from a movieclip called "images".
    Within this movieclip I have several movieclips called Image_1, Image_2 and so forth.
    In the Image_1 movieclip I have yet another movieclip called "loader_mc1" and some AS2.0 code on it :

    onClipEvent (load) {
    loader_mc1.loadMovie("image1.jpg");
    }

    For some reason I keep getting "Error opening URL : "file:url to the directory I'm using(same one as the swf file)"

    The jpg is in the correct directory, I just don't get it, I've double checked all instance names, everything, just doesn't make sense...

    Any ideas?? Thx in advance

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    276
    You could try this.loadMovie("image1.jpg");

    I think it could be scope issue. From what I read it goes as follow:

    images>image_1>loader_mc1<AS code on this MC

    I think your current code is looking for loader_mc1>loader_mc1 (movieclip)
    Or, if the above works, then just put the code outside of loader_mc1, like so:

    images>image_1<put original AS code here

    Hope that makes sense and works

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    2
    Hey Steven FN,
    Thx for your quick reply.
    Your post DOES make sense...
    I've tried out your ideas but I get the same error message...
    I'll keep trying, in the meantime if you get any ideas...
    Thanx anyways,
    Cheerz

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