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 25, 2009
no, i don't know why it didn't work.

i think someone will need to download your files and correct them for you.
sa22Author
Known Participant
January 27, 2009
kk thx for ur help kglad!!

any one willing to take a look at them??

let me know and i'll upload em asap!

thx!
sa22Author
Known Participant
January 25, 2009
tried changing the code in the xml file like u said and it didn't work

also tried loading another swf file and it loaded up!

any idea y the gallery don't?
kglad
Community Expert
Community Expert
January 22, 2009
you have to check gallery.swf to know how gallery.swf works.
sa22Author
Known Participant
January 22, 2009
right i'll try that thx!

any idea y the scroller and background don't show up?
is it because the pics don't load so it just doesn't try and load the scroller and background
kglad
Community Expert
Community Expert
January 22, 2009
assuming main.html will be in portfolio the paths listed in the xml file should be, for example:

<image source= "content/3dgallery/AS3_Dynamic_Elastic_Gallery/pictures/pic1.jpg" thumb="content/3dgallery/AS3_Dynamic_Elastic_Gallery/thumbs/thumb1.jpg" text="Description of image 1"></image>




sa22Author
Known Participant
January 22, 2009
on a website yea but i havn't published it yet so i don't have html file

this is how the files r layed out

portfolio/
-has main swf and fla file + content and design folders

design/
- is just background and a couple other pictures, but nothing to do with this

content/
splits up into 3dgallery, illustrationgallery, etc

3dgallery/AS3_Dynamic_Elastic Gallery/
- thumbs, pictures and data ( were xml file is) folders
- 3d gallery swf and fla

so the location of 3dgallery.swf is
portfolio/content/3dgallery/AS3_Dynamic_Elastic_Gallery/3dgallery.swf


s*** s*** s***......... AS3.. i'm using AS2 for the main file... does this effect it??
kglad
Community Expert
Community Expert
January 21, 2009
how do you plan to use main.swf? on a website? or are you loading main.swf into some other swf?
sa22Author
Known Participant
January 21, 2009
i don't hava an embedding html file for the main.swf?

by directory u mean the file locations right?

sry about this but i honestly don't know wot i'am doin!!
kglad
Community Expert
Community Expert
January 21, 2009
first, moving gallery.swf to the same directory as the loading swf is no help. you either move everything or you may as well move gallery.swf back to its original directory.

2nd, the embedding html file is the file that embeds your _level0 swf. for you that's the swf that loads gallery.swf.

and finally, i need to know the path from that embedding html's directory to the orignal gallery.swf's directory.
sa22Author
Known Participant
January 21, 2009
i honestly don't get wot u on about!!!!!

wot embedding html?

i've shown u the old and new code that loaded the gallery.swf!?!?

confused!!! :S