Bringing a .swf file onto my stage

  • Unna
  • Newbie
  • Newbie
  • Unna
  • Posts: 5
  • Loc: Denmark

Post 3+ Months Ago

Hi!

I´ve searched your forum a bit, and it seems to have some really skilled webdevelopers, so i think i will give my question a go here at Ozzu :)

I have made a flash gallery in 420x415 pixels as a .swf file, and i want to put it onto my main flashsite (onto another .swf) which is considerably larger in size. If i just load the .swf file as a normal movie it will loose its original size, and will not work.

Is there a way to implement my 420x415pixels on the scene, so it will not loose its original size, and is there a way to control where it will be positioned (fx. in centre of my main page).

It is hard to explain, but I hope you can understand :D

Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

http://www.peachpit.com/guides/content. ... um=92&rl=1

Basically make the placeholder 420x415 instead of 50x50 like in the example and set the x and y of the placeholder to position it.
  • Unna
  • Newbie
  • Newbie
  • Unna
  • Posts: 5
  • Loc: Denmark

Post 3+ Months Ago

Hmm... That somewhat works. But it still wont stay inside the placeholder_mc that i create. It just fills out the full width, and there are some other minor problems.

I uploaded it so you can see if you have time:
http://www.lakor.dk/test/index.html -> galleri -> mongoliet (the button farthest to the right on the map)

I made the placeholder white to illustrate better...

I can email the actionscript for my slideshow if it helps.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I won't personally have the time, but honestly I don't really see the problem. It looks fine to me in both IE and FF.
  • Unna
  • Newbie
  • Newbie
  • Unna
  • Posts: 5
  • Loc: Denmark

Post 3+ Months Ago

Oka... Its just that it is supposed to be a gallery only at the size of the white box that appears when you first enter the "galleri"-page, and then when you click a thumbnail it shows a larger image.

I can't get that to work here. But is that what you see? -Last question you have to answer=)

And thanks for the help
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

OK I do see what you are talking about now. No it's not working for me. No need to email the action script. You can post it here. Just use the bbCode "code" buttons. Several here are quite good with flash. I'm sure someone will be able to see what's wrong.
  • Unna
  • Newbie
  • Newbie
  • Unna
  • Posts: 5
  • Loc: Denmark

Post 3+ Months Ago

Okay i will try to give it a go with better illustrations and codes.

First my gallery.
I have made a gallery called galleri_mongoliet.swf at 420 x 415 pixels containing some clickable thumbnails. It works fine on it own.

Click here to see how it looks

Code: [ Select ]
import mx.transitions.Tween;
import mx.transitions.easing.*;

this.createEmptyMovieClip("container",1);

var imagesNumber:Number = 16;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._x = (i-1)*myThumb_mc._width;
myThumb_mc._alpha=50;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function(){
this._alpha=100;
}
myThumb_mc.onRollOut = function(){
this._alpha=50;
}
myThumb_mc.onRelease = function(){
_root.attachMovie("image"+this.largerImage,"large_mc",2);
large_mc._y = 100;
new Tween(large_mc,"_alpha",Strong.easeOut,0,100,0.5,true);
large_mc.onRelease = function() {
var myFadeOut = new Tween (large_mc,"_alpha",Strong.easeOut, 100,0,0.5,true);
myFadeOut.onMotionFinished=function(){
large_mc.removeMovieClip();
}
};
};
  1. import mx.transitions.Tween;
  2. import mx.transitions.easing.*;
  3. this.createEmptyMovieClip("container",1);
  4. var imagesNumber:Number = 16;
  5. for (i=1; i<=imagesNumber; i++) {
  6. container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
  7. myThumb_mc = container["thumb"+i+"_mc"];
  8. myThumb_mc._x = (i-1)*myThumb_mc._width;
  9. myThumb_mc._alpha=50;
  10. myThumb_mc.largerImage = i;
  11. myThumb_mc.onRollOver = function(){
  12. this._alpha=100;
  13. }
  14. myThumb_mc.onRollOut = function(){
  15. this._alpha=50;
  16. }
  17. myThumb_mc.onRelease = function(){
  18. _root.attachMovie("image"+this.largerImage,"large_mc",2);
  19. large_mc._y = 100;
  20. new Tween(large_mc,"_alpha",Strong.easeOut,0,100,0.5,true);
  21. large_mc.onRelease = function() {
  22. var myFadeOut = new Tween (large_mc,"_alpha",Strong.easeOut, 100,0,0.5,true);
  23. myFadeOut.onMotionFinished=function(){
  24. large_mc.removeMovieClip();
  25. }
  26. };
  27. };


Placeholder part
I want to use that as an element on my homepage wich is made in Flash as well and is 800x1347.
Therefore i have made a placeholder named placeholder_mc on my main page which has the same size as my galleri_mongoliet.swf.
When i click the button that should load my gallery into the placeholder, the gallery is loaded but looses its dimensions and does not work properly.

Heres a link where you can see the problem
(click "galleri" -> mongoliet (the button most to the right on the world map) )

Here is the code code on the button
Code: [ Select ]
on(release){
    loadMovie("galleri_mongoliet.swf", "placeholder_mc");
}
  1. on(release){
  2.     loadMovie("galleri_mongoliet.swf", "placeholder_mc");
  3. }


It all seems pretty straight forward to me, but it seems my gallery looses its size properties when its loaded into a bigger .swf file.

Is there anyone who recognizes the problem?

Thanks a bunch!
  • Abelius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 260
  • Loc: Miami Beach, FL, USA

Post 3+ Months Ago

Hmmm... seems like if ATNO/TW can't fix it, there is no fix, huh? Love going through your posts.
  • Unna
  • Newbie
  • Newbie
  • Unna
  • Posts: 5
  • Loc: Denmark

Post 3+ Months Ago

Thanks!
I spend a lot of time trying to make it work, but i ended out using pop-up gallery windows. The guy im making the homepage for still think its awesome, so ill just leave it at that for now. The old links probably dont work anymore so check out http://www.lakor.dk under galleries to see what i came up with.
Cheers

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.