Skip to main content
Known Participant
January 18, 2009
Question

importing gallery into main flash file

  • January 18, 2009
  • 59 replies
  • 3226 views
i'm making my portfolio in flash, i have just about everything setup. all i need now is to import my gallery into it
i made the gallery in a seperate file so i could copy it for other sections of the gallery later on.

i've tried importing it onto the stage or into the libary but it doesn't seem to import anything apart from the items that r on stage in the gallery file. no action script. tried adding the script in myself but it doesn' seem to chg a thing!

the gallery file and code u can find here: http://www.developphp.com/Flash_tuts/AS3_Dynamic_Elastic_gallery.php

it's the same i have just with different colours and images that is all

2 more small things.

the file discription that is in the xml doesn't seem to show up letters.. if u look at the gallery example on the link above it just has 0-8 r 9. but in the xml it has something along the lines of "enter description here"
and ideas how to chg that?

is it possible once i have the file into my main file to resize it?

thx in advance
This topic has been closed for replies.

59 replies

kglad
Community Expert
Community Expert
January 21, 2009
the path from the main embedding html to the original gallery.swf

the old and new paths would have been sufficient "if gallery.swf loads the xml file (from its original location in 3d gallery), then i can probably tell you how to change the xml paths if you show the old code that loaded the xml file (when gallery.swf was not loaded) and the new code that loads the xml file (when gallery.swf is loaded)."
sa22Author
Known Participant
January 21, 2009
wot info u need then?

thats wot it was and wot it is not!
kglad
Community Expert
Community Expert
January 21, 2009
can't help you using that info.
kglad
Community Expert
Community Expert
January 21, 2009
the source and thumb attribute paths both need to change.

if gallery.swf loads the xml file (from its original location in 3d gallery), then i can probably tell you how to change the xml paths if you show the old code that loaded the xml file (when gallery.swf was not loaded) and the new code that loads the xml file (when gallery.swf is loaded).
sa22Author
Known Participant
January 21, 2009
the code attached is the way it is now with gallery.swf in the same location as the main file

and the only thing that i chged was:

xmlLoader.load (new URLRequest("picsXML3d.xml"));

from :

xmlLoader.load (new URLRequest("data/picsXML3d.xml"));

sa22Author
Known Participant
January 21, 2009
i've chged the lin for the xml file already... i'll check see if theres anything i need to chg in the xml

edit: nope this is all that is in the xml


kglad
Community Expert
Community Expert
January 21, 2009
correct.

moving one file, like the xml file, isn't going to work.

do you have gallery.fla? if so, you'll need to open it and change all lines of code that include "load" methods like loadMovie() and loadMovieClip() and loadClip() and just plain load().

most likely you'll be lucky and the only path you'll need to change in gallery.fla will be the xml path. but then you'll also need to change the paths in the xml file(s).
sa22Author
Known Participant
January 21, 2009
something to do with the gallery not being able to load from another file, like u said

but i've tried it out with the xml in the same location and still got the same
kglad
Community Expert
Community Expert
January 21, 2009
and do you know why the images and thumbs don't show?
sa22Author
Known Participant
January 21, 2009
yea the scroller and background show on the stage of gallery.swf but the images and thumbs don't
kglad
Community Expert
Community Expert
January 21, 2009
there are probably images that ARE SUPPOSED to show on gallery.swf's stage, correct?