You are not logged in.
Help · Frequently Asked Questions
Slideroll Message Board / Gallery AV Q&A / Can the gallery SWF be loaded into my flash site's SWF?    
Author
Message Pages: 1
mikespaz
New member

Registered: 2010-11-10
Posts: 3
I have a flash site and would like to use this gallery within it using the loadMovie function.

This sample loadmovie actionscript is not yielding results...

gallery_mc.loadMovie("gallery.swf");
gallery_mc.play();

What I have had to do in the past is use lock root code in original gallery before it is loaded in...

this._lockroot = true;

It doesn't seem like I have the ability to do that in this case being we cannot add code before the gallery's SWF is compiled. 

Is there a successful way to load my gallery SWF into my flash site?

Thanks!


1 year ago
   
geoff
Slideroll Creator

From: San Mateo, CA
Registered: 2004-10-24
Posts: 2676
Hi!

If you're using the latest version of Gallery AV, you can, but only if your container is an ActionScript 3.0 movie.  If so, you can load it live so:

var loader:Loader = new Loader();
addChild(loader);
loader.load(new URLRequest("gallery.swf"));

Thanks!
Geoff


_______________________________________
Slideroll Gallery AV - Gallery Publishing Help - Slideroll Video Creator - FAQ

1 year ago
Website  
mikespaz
New member

Registered: 2010-11-10
Posts: 3
I thought that may be the solution.  I know AS3 handles "root" much better and doesn't adopt that of the main time line.

Thanks for your help!


1 year ago
   
mikespaz
New member

Registered: 2010-11-10
Posts: 3
Geoff, new question.

I would like to position this on my stage once it is loaded in.  I tried putting...

loader.x=200;
loader.y=200;

...afterwards, but it still loaded to the main timeline at x=0 y=0.  Looking online at other people's code, what I have above apparently works for them, what am I missing?


On a less important note, when the SWF loads in while testing in Flash my output panel shows all the images get loaded in accordingly.  After "end" it displays the following...

end
Error opening URL 'http://core.mochibot.com/my/core.swf'
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

Is this anything I should worry/care about?

Last unrelated question...

When I play the gallery SWF alone in player your logo shows up in the top right corner respectively within the sized area.  When the gallery is loaded into another SWF the logo shows up about 200 pixels to the right of the loaded SWF floating outside of the gallery instead of within the original gallery SWF area.  Any thoughts?

Sorry for jumping around in 1 post.  Thanks in advance for your help!


1 year ago
   
geoff
Slideroll Creator

From: San Mateo, CA
Registered: 2004-10-24
Posts: 2676
For the location, it may not work with the loader.  Try creating a Sprite, adding to the stage, and move that.  Then add the loader as a child of the Sprite.

For the Mochibot thing... no worries.  It's just a traffic counter, and won't be able to load locally.

With regards to the logo, it may be reading the size of the stage and using the whole size to place it, which makes sense because I want it to be placed correctly in full-screen and show-all or 100% x 100% sized galleries.

Of course, you can always go Pro to get rid of that logo! ;)


_______________________________________
Slideroll Gallery AV - Gallery Publishing Help - Slideroll Video Creator - FAQ

1 year ago
Website  
Pages: 1    
Jump to
Powered by PunBB
© Copyright 2002-2006 Rickard Andersson