Old 12-24-2008, 11:00 AM   #1 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default Loading external SWFs

Heya Guys!

Great work you did there but still there are two questions remaining here...

1. Is it possible to load external swfs via the Thumbs?
2. Is it possible to make the "scr" always to adjust itself to the Stage.width?
I tried just by "scr.width = Stage.width" but unfortunatelly it does also resize the Thumbs...

What I actually want to do is a gallery that loads the picture you click on right in the background as the backgroundpicture...
I hope someone can help.

And btw... its really urgent! It should have been finished yesterday


Great regards
Igor
freshflash is offline   Reply With Quote
Old 12-25-2008, 10:55 AM   #2 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default

Not one idea?
Guys please!
freshflash is offline   Reply With Quote
Old 01-01-2009, 02:12 AM   #3 (permalink)
Junior Member
 
Join Date: Jan 2009
Location: Seriously under a bridge. Throw chocolate and I'll let you pass.
Posts: 2
Default Stretching things like my brain

"2. Is it possible to make the "scr" always to adjust itself to the Stage.width?
I tried just by "scr.width = Stage.width" but unfortunatelly it does also resize the Thumbs..."

Don't change the width of scr. Change the width of a.

//stretch the mask to the width of the stage
scr.a._x = 0;
scr.a._y = 0;

//listening for event
myListenerload = new Object ();
myListenerload.onResize = function () {

scr.a._width = Stage.width;
scr.a._y = 0;
}
Stage.addListener (myListenerload);
myListenerload.onResize ();

I know question number one is answered on the forum cuz I found it once.
Now I'm looking again cuz my long term memory sucks.

Hope this helps.

the troll
prepresstroll is offline   Reply With Quote
Old 01-01-2009, 04:37 AM   #4 (permalink)
Junior Member
 
Join Date: Jan 2009
Location: Seriously under a bridge. Throw chocolate and I'll let you pass.
Posts: 2
Default Brain just snapped back to two cells

// set click handler function
function clickHandler(dat, lbl) {
// handler function receives "data" as string and "label" as string
mcHolder.loadMovie(dat);

mcHolder is an empty movie clip on my stage that I want all my pretty swf files to appear in.

In my data.xml file I put in the path to my pretty swfs.

Note how I'm so sure they are pretty. Hope this helps. Oh and Happy New Year. Mine will be spent in front of this blasted computer. I wonder if it's okay to drink and code?????

Troll
suspect all things that a troll might find pretty.
prepresstroll is offline   Reply With Quote
Old 02-14-2009, 04:00 AM   #5 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 9
Default

Quote:
Originally Posted by prepresstroll View Post
// set click handler function
function clickHandler(dat, lbl) {
// handler function receives "data" as string and "label" as string
mcHolder.loadMovie(dat);

mcHolder is an empty movie clip on my stage that I want all my pretty swf files to appear in.

In my data.xml file I put in the path to my pretty swfs.

Note how I'm so sure they are pretty. Hope this helps. Oh and Happy New Year. Mine will be spent in front of this blasted computer. I wonder if it's okay to drink and code?????

Troll
suspect all things that a troll might find pretty.
Thanks for this, that was exactly what I was after. It took me a while to understand where to update this:

function clickHandler(dat, lbl) {
// handler function receives "data" as string and "label" as string
mcHolder.loadMovie(dat);

For those that don't know it's in the fla file line 56 of the AS code.

Now I don't know if this is right, please correct me if I wrong...but I then updated the data.xml file to read <item image="thumbs/11.jpg" label="Old tree from my aunt's backyard" data="11.swf" />

It works for me, but might not be the correct way to do it.
confused is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:28 AM.