| Welcome to Webforumz.com. |
|
Apr 9th, 2008, 17:46
|
#1 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: US
Posts: 6
|
Problem with xml-flash and loading movie property
Hi, everybody. I need some help with this. I have 3 files, two .fla, one .xml
so I'will name the fla files A and B.
So the file B, I create it a gallery conected to a xml file all right. If I tested the file, everything works fine, the problem starts when this B files is loaded to the A file using loadMovie, the gallery created is not working anymore, the images are not loaded for some error finding URL. I have the images and the icon images in just one folder. The path is correct but simply i doesn't want to work when tested.
Can anybody help me with this, I am going crazy!!
|
|
|
Apr 9th, 2008, 19:40
|
#2 (permalink)
|
|
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
|
Re: Problem with xml-flash and loading movie property
If its possible please attach your files, maybe i can help you...
|
|
|
Apr 10th, 2008, 15:40
|
#3 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: US
Posts: 6
|
Re: Problem with xml-flash and loading movie property
It's really weird, when I test "B" directly by clicking the swf file won't work either. I hope you can help
|
|
|
Apr 10th, 2008, 18:37
|
#4 (permalink)
|
|
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
|
Re: Problem with xml-flash and loading movie property
First correct this line in B.fla file, on load layer folder, actions layer, frame 22 :
- Code: Select all
loadMovie(_root.toadd+"images/1.jpg", pic.pic2.pic3);
make it :
- Code: Select all
loadMovie(toadd+"images/1.jpg", pic.pic2.pic3);
the problem you are facing is because you are testing your movies locally, if you upload it to server they will work fine, but you can test it locally by going to publish settings, and then on local playback security option choose access local files only...
|
|
|
Apr 10th, 2008, 19:17
|
#5 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: US
Posts: 6
|
Re: Problem with xml-flash and loading movie property
Thank you very much marsoul, it finally found the folder but when I click on the gallery icon from the file A, it still does not load any other image.
|
|
|
Apr 10th, 2008, 19:20
|
#6 (permalink)
|
|
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
|
Re: Problem with xml-flash and loading movie property
i think you should publish the A file same as settings that i told you
|
|
|
Apr 11th, 2008, 06:48
|
#7 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: US
Posts: 6
|
Re: Problem with xml-flash and loading movie property
I follow those steps , publish them as access local files only and access network only. It is not working either way. I shows the first image "pic1" but wont respond when I click the icon for the next image. Is seems that I am close, I keep playing and trying but is frustrating when I can't find the solution.
|
|
|
Apr 11th, 2008, 10:43
|
#8 (permalink)
|
|
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 367
|
Re: Problem with xml-flash and loading movie property
But i have tested this way and that worked correctly !!
Check again, maybe you missed something !
|
|
|
Apr 11th, 2008, 17:41
|
#9 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: US
Posts: 6
|
Re: Problem with xml-flash and loading movie property
I finally found the problem. It didn't work because of the lockroot method. It allows loaded movies to lock actionscript to the _root timeline of the loaded movie. So I just needed to add :
this._lockroot = true;
to the bottom of the code of the B file to make it work. Now it will allow me to use the script of the B file into the A file. More info about this check help and look for _lockroot.
Thank you marsoul for you time. I appreciate your help.
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|