all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

[F8} swf to swf communication prob


Re: [F8} swf to swf communication prob tralfaz
8/12/2006 11:32:13 AM
flash actionscript: [quoted text, click to view]

If the path works then the parameter changes will work. Verify the paths..

// look at all the objects in _level0
for(objects in _level0)
{
trace(objects);
}

// look at all the objects in _root (probably the same ones)
for(objects in _root)
{
trace(objects);
}

tralfaz

Re: [F8} swf to swf communication prob tralfaz
8/12/2006 1:56:24 PM
[quoted text, click to view]

It would save a whole lot of time if you would post a link to the website.

Do you have a movieclip with an instance name of "clips" ?
(not clips.swf)

_level1.clips._alpha=25;

tralfaz


[F8} swf to swf communication prob takennickname
8/12/2006 4:25:42 PM
Thanks all.
Ok, here's my prob... I have a main flash file, the level0 controlling
timeline. I'm loading (loadMovie) my navigation swf into level1. This
particular navigation loads 3d animation swf files into a mc symbol located at
level0, and i also set the alpha of everything at level0 and level1 to 25%
while the animation plays (a watermark effect). When the close movie button is
clicked from the level1 swf it successfully unloads the animation swf from the
mc symbol at level0, it resets the alpha of the navigation at level1 back to
100%, but REFUSES to reset the alpha of the symbol at level0 back to 100%. I've
tried _root, _parent._parent, _level0, _alpha=100, _visible=1, and nothing
works.

Why does it initially set the level0 mc to 25%, but doesn't seem to find it a
second time to reset it back to 100% alpha?

Thanks in advance for any help!

-Kalen
Re: [F8} swf to swf communication prob tralfaz
8/12/2006 6:56:55 PM

[quoted text, click to view]

If you have a special folder for your test files, nobody should be able to see it or know that it is there. (if you have an
index.html file for your main folder)
Your movieclip structure is not clear to me. Too much guess work to do it this way.
tralfaz

Re: [F8} swf to swf communication prob takennickname
8/12/2006 7:18:41 PM
Thanks for the replies...

Not changing _alpha to any other mc on level0,

Ran trace suggestion, and it shows expected mc instance names.

The prob is that it changes the _alpha of the mc at level0 from the level1 mc
(so the path is right), but the same command from level1 won't change the alpha
of the mc at level0 back to 100%, but it does change the alpha of itself
(level1).

K.
Re: [F8} swf to swf communication prob kglad
8/12/2006 7:46:03 PM
Re: [F8} swf to swf communication prob takennickname
8/12/2006 7:54:55 PM
First, i've just discovered that if i use _visibie in each swf it works, but
_alpha doesn't... but below is my simple code....

Code at frame 1 of level0 swf:
stop();
loadMovie ("clips.swf", 1);

Code in animation load button in level1 swf:
on (press) {
loadMovie("cantu.swf", _level1.mcholder);
_level0.fullPanelMC._visible=0;
_level1.clips._alpha=25;
_level1.closerMC._visible=1;
}

Code in close button in level1 swf:
on (press) {
unloadMovie("_level1.mcholder");
_level0.fullPanelMC._visible=1;
_level1.clips._alpha=100;
_root.closerMC._visible=0;
}

The above code works... but when I use _alpha instead of _visible it only
works the first time.

-K.
Re: [F8} swf to swf communication prob kglad
8/12/2006 8:06:33 PM
first, you should be using loadMovieNum() to load clips.swf into _level1.
second, i see no statement adjusting the _alpha of _level0. third, what part
of that code works, what part doesn't work and "the first time" is the first
time what happens? fourth, does the movieclip clips have anything to do with
clips.swf?
Re: [F8} swf to swf communication prob takennickname
8/12/2006 8:28:50 PM
Thanks on loadMovieNum()... I'll use that from here out..

When the code worked (which I've changed to the _visible), the level1 nav clip
would go to the set 25% _alpha and the _level0 mc would also go to 25%. But
the close button on the main timeline of the level1 mc would only reset the
level1 nav mc to 100% _alpha, and would not touch the level0 mc that had been
reduced to 25% alpha also.

And the clips.swf is the level1 navigation, and it loads separate swfs into a
mc inside of itself.

Thanks,

K.
Re: [F8} swf to swf communication prob takennickname
8/13/2006 12:38:30 AM
Sorry, I'd have this online, but the only web server I can deploy on is the
actual public server everyone will see (thank you public school sys in TX).

Yes, I have a clips mc name at level1 that is the animation navigation, and is
from where I'm trying to control the main (controlling) timeline, which at
first click reduces the level0 mc to 25% _alpha, but when the close button is
clicked, only the level1 is affected, not the level0.

Here's my code at each respective point and swf level:

Code at frame 1 of level0 swf:
stop();
loadMovie ("clips.swf", 1);

Code in animation load button in level1 swf:
on (press) {
loadMovie("cantu.swf", _level1.mcholder);
_level0.fullPanelMC._visible=0;
_level1.clips._alpha=25;
_level1.closerMC._visible=1;
}

Code in close button in level1 swf:
on (press) {
unloadMovie("_level1.mcholder");
_level0.fullPanelMC._visible=1;
_level1.clips._alpha=100;
_root.closerMC._visible=0;
}

The above code works... but when I use _alpha instead of _visible it only
works the first time.

Thanks everyone.

K.

AddThis Social Bookmark Button