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 19, 2009
chg the path of wot in gallery.swf?

god i wish i understood action script more!!


kglad
Community Expert
Community Expert
January 19, 2009
no, but the path that gallery.swf is different from the one currently used. so you need to change the path in gallery.swf.
sa22Author
Known Participant
January 19, 2009
sry i don't understand wot u mean?

do i need to load the assets (xml files) in the main file aswell?
kglad
Community Expert
Community Expert
January 19, 2009
if gallery.swf is loading assets, those paths need to change. the path from gallery.swf to the assets is one thing when gallery.swf is not loaded and the path is relative to the html file that embeds the loading swf when gallery.swf is loaded.
sa22Author
Known Participant
January 19, 2009
yes the scroller and a couple blank movie clips or on the stage on the gallery swf

but nothing is visible on the stage of the main file on the frame with the code. only the blank move clip i made

the gallery swf loads every thing apart from the scroll bar and background from a xml file.
kglad
Community Expert
Community Expert
January 19, 2009
what you see depends on what appears on-stage in the external swf and the properties of the target movieclip.

so, does anything appear on-stage in your external swf? if yes, then is the target movieclip visible on-stage (before you load into it)? if yes, then is the external swf dependent on loading anything?
sa22Author
Known Participant
January 19, 2009
but it's not showing up??
kglad
Community Expert
Community Expert
January 19, 2009
then your swf is loading.
sa22Author
Known Participant
January 19, 2009
hold on u had it as threedload_mc in the code u pasted never checked it

did it with the right instance name and i get '36657'
sa22Author
Known Participant
January 19, 2009
?? it's in the libary on the stage. movie clip and instance name r both threedloader_mc ??

is there another easier way to load it into a movie clip?