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

sa22Author
Known Participant
January 21, 2009
no the scroller and background r in the gallery.swf only the thumb nails and main images r linked through the xml
kglad
Community Expert
Community Expert
January 21, 2009
there are probably images that show on gallery.swf's stage, correct?

those images are not "in" gallery.swf. the images are loaded. in addition, the path to those images is in an xml file and gallery.swf must load that xml file.

when gallery.swf fails to load the images, you fail to see them.
sa22Author
Known Participant
January 21, 2009
right i've tried putting the xml file that gallery.swf uses in the same location as gallery.swf and it didn't do any thing

i'll try putting them all in the same location see if that works

but i don't get how the stuff that is on the stage of gallery.swf doesn't even show up
kglad
Community Expert
Community Expert
January 21, 2009
yes, and we've already established that's not the problem. the problems are in gallery.swf.

you seem to be making no progress. the last few messages i posted contained information previously given.
sa22Author
Known Participant
January 21, 2009
exactly wot i have!!??!!??
kglad
Community Expert
Community Expert
January 21, 2009
i think it's the following, but i don't really know your setup:

threedloader_mc.loadMovie("content/3d gallery/AS3_Dynamic_Elastic_Gallery/3d gallery.swf");
sa22Author
Known Participant
January 21, 2009
yea tried it kglad but it does the exact same

wot is the full code i should b using in the main file?
kglad
Community Expert
Community Expert
January 20, 2009
ok.
sa22Author
Known Participant
January 20, 2009
ah i get ya now!!
kglad
Community Expert
Community Expert
January 20, 2009
the gallery works fine if it's not loaded into another swf. once you load it into another swf whose html page is not in the same directory as gallery.swf, gallery.swf will fail to load its needed external files.