Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-08 Thread Francesco

Hi,
if I don't get wrong when you call duplicateMovieClip() as a method of 
the class MovieClip
(opposite to the global function duplicateMovieClip()) - like in your 
code - you shouldn't provide

a target param:

e.g.
a.duplicateMovieClip("b",1);
/* duplicates mc a and assignes the copy mc the identifier b */

and yes, duplicates are created as siblings, that means they share the 
same parent with the origin mcs

so in my previous example:

a.a_child = b_copy_child;

b_copy_child is actually in the b timeline, but since it is a duplicate 
you can use it for your purposes

without modifying the origin b_child (library item).
if you remove b from runtime, you'll lose the reference contatined in 
a.a_child as well


to force a physycal copy of a mc, I think you have no choice but looping 
into its property/methods and assigning

same values to corresponding mc_copy p/m

HTH
francesco.p

Marcelo de Moraes Serpa wrote:

Francesco: I think that, by creating a new property on movieclip "a" and
referencing it to the b_copy_child (which in turn references "copy" in
movieclip "b") would only allow you to control the "copy" movieclip 
located

into movieclip "b".

I don´t have flash here so I can´t test anything and I´m just curious 
about

(as it has been quite some time since the last time I used
duplicateMovieClip) if this would work:

_root.duplicateMovieClip(_root.movieclip_b.mymc,"mycopiedclip",1);

Would this code create a instance of the movieclip mymc into _root?

- Marcelo.

On 5/5/06, August Gresens <[EMAIL PROTECTED]> wrote:


Francesco - I'll give that a try. It actually occurred to me, but I 
didn't

try it because I wasn't sure how the depth would be handled and what
issues
would be associated with having a single clip instance be the child 
of two
parents. (When you move "b", does it also move in "a", even if "a" is 
not

moved?)

Thanks,

August

On 5/5/06, Francesco <[EMAIL PROTECTED]> wrote:
>
> Provided you know the child-to-copy instance name, that's a 
workaround:

>
> say you have 2 mcs, one (a) created in your project and one (b) loaded
> externally.
> say you know the desired b-child instance name (b_child):
>
> //create a copy of the desired child
> var b_copy_child:MovieClip =
> b_child.duplicateMovieClip("copy",b.getNextHighestDepth());
>
> /*
> *then 2 ways:
> *a) if you simply want a reference to use in your project, work 
with

> b_copy_child;
> *b) if you really want b_child instance to be a child of a,
> reference it from within,
> *   thanks to the fact MovieClip is dynamic:
> */
>
> a.a_child = b_copy_child;
>
> This, unless I'm missing some more-DOM-like AS2 interfaces - and then
> I'd love to hear about..
> HTH
> francesco.p
>
> August Gresens wrote:
> > Thanks much for your previous responses, very helpful.
> >
> > One more question - how can I duplicate or attach a child clip of 
one

> > clip
> > into another clip?
> >
> > For example, if I have two clips on the timeline, can I somehow copy
the
> > first child of one clip into another?
> >
> > DuplicateMovieClip does not seem to provide this functionality. It
seems
> > only allow you to create a duplicate that is attached to the same
parent
> > clip. I want to be able to copy child clips from my loaded external
> clip,
> > into various clips in my project.
> >
> > Thanks,
> >
> > August
> >
> > On 5/5/06, Francesco <[EMAIL PROTECTED]> wrote:
> >>
> >> Really don't know if is there a way to load a .fla asset (such as a
> >> Library) into an swf..
> >>
> >> but sure you can use an external swf as a content library, as 
long as

> >> all library items (children mcs):
> >> - can be referenced by instance name (which is to be set on the
> external
> >> .fla)
> >> - are not referenced by instance name, but can be univocally
retrieved
> >> by any other means (e.g. property values)
> >>
> >> once acquired desiredChildMovieClip, you can duplicate it on your
> >> project.
> >> HTH
> >> francesco
> >>
> >>
> >>
> >>
> >> August Gresens wrote:
> >> > I guess what I'm looking for is an alternative to the clunky
"Shared
> >> > Library" thing they've got set up. I"m seeing now, however, that
even
> >> > if I
> >> > get this working, there would be no way to duplicate the 
externally

> >> > loaded
> >> > swf's child to a clip in my main project (right?). In essence, I
want
&g

Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-05 Thread Francesco

Provided you know the child-to-copy instance name, that's a workaround:

say you have 2 mcs, one (a) created in your project and one (b) loaded 
externally.

say you know the desired b-child instance name (b_child):

//create a copy of the desired child
var b_copy_child:MovieClip = 
b_child.duplicateMovieClip("copy",b.getNextHighestDepth());


/*
*then 2 ways:
*a) if you simply want a reference to use in your project, work with 
b_copy_child;
*b) if you really want b_child instance to be a child of a, 
reference it from within,

*   thanks to the fact MovieClip is dynamic:
*/

a.a_child = b_copy_child;

This, unless I'm missing some more-DOM-like AS2 interfaces - and then 
I'd love to hear about..

HTH
francesco.p

August Gresens wrote:

Thanks much for your previous responses, very helpful.

One more question - how can I duplicate or attach a child clip of one 
clip

into another clip?

For example, if I have two clips on the timeline, can I somehow copy the
first child of one clip into another?

DuplicateMovieClip does not seem to provide this functionality. It seems
only allow you to create a duplicate that is attached to the same parent
clip. I want to be able to copy child clips from my loaded external clip,
into various clips in my project.

Thanks,

August

On 5/5/06, Francesco <[EMAIL PROTECTED]> wrote:


Really don't know if is there a way to load a .fla asset (such as a
Library) into an swf..

but sure you can use an external swf as a content library, as long as
all library items (children mcs):
- can be referenced by instance name (which is to be set on the external
.fla)
- are not referenced by instance name, but can be univocally retrieved
by any other means (e.g. property values)

once acquired desiredChildMovieClip, you can duplicate it on your 
project.

HTH
francesco




August Gresens wrote:
> I guess what I'm looking for is an alternative to the clunky "Shared
> Library" thing they've got set up. I"m seeing now, however, that even
> if I
> get this working, there would be no way to duplicate the externally
> loaded
> swf's child to a clip in my main project (right?). In essence, I want
> to be
> able to use the externally loaded clip as a library - but it is
> starting to
> dawn on me that this is not possible (?).
>
> (By the way, I'm mystified that the "Shared Library" has been
implemented
> the way that it has - the url requirement would seem to make it
> difficult to
> arbitrarily load external libraries into a movie without manually
> changing
> the URL properties in the IDE. It would be great if you could just
> load an
> external library the way we do external clips).
>
> Thanks,
>
> August
>
> On 5/5/06, Francesco <[EMAIL PROTECTED]> wrote:
>>
>> if I got correctly the point, you're asking:
>> can I access children of an external swf loaded at any level into my
>> project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?
>> If not, sorry for bothering
>> If yes, I think: sure you can, as long as you know their instance 
name.

>> If you don't, you'll have to work them out:
>>
>> loadedMovie.loadMovie("externalSwf.swf");
>>
>> /*
>> * now loadedMovie and externalSwf timelines overlap; if you know the
>> child's instance name the work is done.
>> * if you don't I'll do like this (but chances are ways are better 
than

>> this one):
>> * try to provide some  that lets you find in a not 
ambiguos

>> way the desired child mc among other children mcs
>> */
>>
>> var desiredChildMovieClip:MovieClip;
>> for (var i in loadedMovie) {
>> if(test_code) {
>>desiredChildMovieClip = loadedMovie[i];
>> }
>> }
>>
>> /*
>> *   so desiredChildMovieClip is the child you were looking for.
>> * if there's no such  thing, sorry I have no idea..
>> */
>>
>> HTH
>> francesco.p
>>
>> Jim Tann wrote:
>> > You need to import one movieclip from the child swf into the parent
>> > swf's library & have it placed on the stage / inside a movieclip
>> that is
>> > exported for actionscript to have access to all of the elements in
the
>> > child swf's library.
>> >
>> > Jim
>> >
>> > -Original Message-
>> > From: [EMAIL PROTECTED]
>> > [mailto:[EMAIL PROTECTED] On Behalf Of
August
>> > Gresens
>> > Sent: 05 May 2006 02:43
>> > To: Flashcoders mailing list
>> > Subject: [Flashcoders] newbie: nested clips and LoadMovie
>> >
>> > Hello
>> >
>> > Is it possible to access (duplicate and 

Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-05 Thread Francesco
Really don't know if is there a way to load a .fla asset (such as a 
Library) into an swf..


but sure you can use an external swf as a content library, as long as 
all library items (children mcs):
- can be referenced by instance name (which is to be set on the external 
.fla)
- are not referenced by instance name, but can be univocally retrieved 
by any other means (e.g. property values)


once acquired desiredChildMovieClip, you can duplicate it on your project.
HTH
francesco




August Gresens wrote:

I guess what I'm looking for is an alternative to the clunky "Shared
Library" thing they've got set up. I"m seeing now, however, that even 
if I
get this working, there would be no way to duplicate the externally 
loaded
swf's child to a clip in my main project (right?). In essence, I want 
to be
able to use the externally loaded clip as a library - but it is 
starting to

dawn on me that this is not possible (?).

(By the way, I'm mystified that the "Shared Library" has been implemented
the way that it has - the url requirement would seem to make it 
difficult to
arbitrarily load external libraries into a movie without manually 
changing
the URL properties in the IDE. It would be great if you could just 
load an

external library the way we do external clips).

Thanks,

August

On 5/5/06, Francesco <[EMAIL PROTECTED]> wrote:


if I got correctly the point, you're asking:
can I access children of an external swf loaded at any level into my
project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?
If not, sorry for bothering
If yes, I think: sure you can, as long as you know their instance name.
If you don't, you'll have to work them out:

loadedMovie.loadMovie("externalSwf.swf");

/*
* now loadedMovie and externalSwf timelines overlap; if you know the
child's instance name the work is done.
* if you don't I'll do like this (but chances are ways are better than
this one):
* try to provide some  that lets you find in a not ambiguos
way the desired child mc among other children mcs
*/

var desiredChildMovieClip:MovieClip;
for (var i in loadedMovie) {
if(test_code) {
   desiredChildMovieClip = loadedMovie[i];
}
}

/*
*   so desiredChildMovieClip is the child you were looking for.
* if there's no such  thing, sorry I have no idea..
*/

HTH
francesco.p

Jim Tann wrote:
> You need to import one movieclip from the child swf into the parent
> swf's library & have it placed on the stage / inside a movieclip 
that is

> exported for actionscript to have access to all of the elements in the
> child swf's library.
>
> Jim
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of August
> Gresens
> Sent: 05 May 2006 02:43
> To: Flashcoders mailing list
> Subject: [Flashcoders] newbie: nested clips and LoadMovie
>
> Hello
>
> Is it possible to access (duplicate and use) clips nested inside 
another

> clip you've loaded into a movie via LoadMovie (or using the
> MovieClipLoader).
>
> For example, if I want to maintain a clip external to my main flash
> project
> that has a bunch of misc graphics - after I've loaded this external
> clip,
> can I duplicate these graphics somehow and attach them to clips in the
> main
> project? The purpose of this would be to load all of these graphics 
all

> in
> one shot, as opposed to loading them individually.
>
> >From playing around with it - it seems as though the loaded clip is
> treated
> as an independent media element, with no access to it's children. Is
> this
> correct?
>
> Thanks,
>
> August
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
--

Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-05 Thread Francesco

if I got correctly the point, you're asking:
can I access children of an external swf loaded at any level into my 
project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?

If not, sorry for bothering
If yes, I think: sure you can, as long as you know their instance name. 
If you don't, you'll have to work them out:


loadedMovie.loadMovie("externalSwf.swf");

/*
* now loadedMovie and externalSwf timelines overlap; if you know the 
child's instance name the work is done.
* if you don't I'll do like this (but chances are ways are better than 
this one):
* try to provide some  that lets you find in a not ambiguos 
way the desired child mc among other children mcs

*/

var desiredChildMovieClip:MovieClip;
for (var i in loadedMovie) {
   if(test_code) {
  desiredChildMovieClip = loadedMovie[i];
   }
}

/*
*   so desiredChildMovieClip is the child you were looking for.
* if there's no such  thing, sorry I have no idea..
*/

HTH
francesco.p

Jim Tann wrote:

You need to import one movieclip from the child swf into the parent
swf's library & have it placed on the stage / inside a movieclip that is
exported for actionscript to have access to all of the elements in the
child swf's library.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of August
Gresens
Sent: 05 May 2006 02:43
To: Flashcoders mailing list
Subject: [Flashcoders] newbie: nested clips and LoadMovie

Hello

Is it possible to access (duplicate and use) clips nested inside another
clip you've loaded into a movie via LoadMovie (or using the
MovieClipLoader).

For example, if I want to maintain a clip external to my main flash
project
that has a bunch of misc graphics - after I've loaded this external
clip,
can I duplicate these graphics somehow and attach them to clips in the
main
project? The purpose of this would be to load all of these graphics all
in
one shot, as opposed to loading them individually.

>From playing around with it - it seems as though the loaded clip is
treated
as an independent media element, with no access to it's children. Is
this
correct?

Thanks,

August
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help needed for Novice

2006-05-04 Thread Francesco

Hi Loren,

   Jim is right. Remove comment from the stop() command on f5 to have 
your movie paly entirely start.swf before advancing.
The onEnterFrame function in frame 1provides automatic advancing when 
the current "screen" mc is completely played.


As for buttons, 1 of them already work (playme), 1 has a misspelled 
instance name ("exit" for "exitme", correct according to the onRelease 
function) and the last (pauseme) isn't defined in the onRollOver 
position (you might want to swap it with the gel Pause symbol in the 
library)


HTH
Good luck,
francesco


Jim Robson wrote:

Loren,

The stop() command is commented out on frame 5 ("Start"). That would explain
why the movie blows by that frame. If I am reading it correctly, this is
what is happening: When the movie gets to frame 5, it loads start.swf and
keeps playing until it gets to frame 15, where it loads objectives.swf into
the same movie clip ("screen"), thereby replacing start.swf.

By the same token, it looks as though the stop() command on frame 15
("Objectives") will prevent the movie from progressing to the "Introduction"
frame, and therefore the code to load intro.swf is never reached - unless
you have some code inside objectives.swf that instructs the main timeline to
resume playing when objectives.swf is finished, which of course I can't see.

Regarding your play control buttons, they are not addressing the movie clip
that you are trying to control. You are trying to control start.swf,
objectives.swf, and intro.swf. However, your control buttons are all
addressing _root.screen, which is the container into which you load the
others. To fix this, you could assign an instance name for the loaded movie
clips, and use the same name for each clip, and change the code in the
control buttons to address it. For example, if you assigned them all the
instance name "foo" you could change the code in the playme.onRelease
function to _root.screen.foo.play();

HTH

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Loren R.
Elks
Sent: Wednesday, May 03, 2006 3:36 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Help needed for Novice

Hi:
I need to load external swfs into a mc.  They will play in sequence, as soon
as one ends, the next one will start.  When running it blows by the first
external swf (start.swf) and the rest of the external swfs will not continue
to load and play after the objectives.swf.  Could someone take a look at my
code and tell me what I'm doing wrong?

I've created controls that will allow me to play, pause and stop the
external swfs while they're playing (however, these buttons do not seem to
have any effect on the external swf when it is playing).  I think it is a
scope issue, but I am not sure.  


Also, there's a combo box at the bottom, which allows the user to jump to
any external swf (it actually jumps to certain labels on the main timeline)
at any time.  The combo box appears to work OK.

The FLA is located at:  www.digitalhorizonstudios.com/exstream/newplayer.fla


By the way, this presentation is a fullscreen .exe file when in use, not a
swf played in an html file.

Thanks SO MUCH for any help on this one.

Please reply to the list AND email me directly if you have a solution.


Loren Elks
 "The only real mistake is the one from which we learn nothing." - John
Powell
 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FMS Service STOPS??

2006-05-04 Thread Francesco

Hi all.
I am recently experiencing a strange behavior on our Breeze installation 
with the FMS service stopping (the only one out of 4).
I visited FMS support forum on MM's just to find out that others are 
dealing with this but still we haven't worked this out.


http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=578&threadid=1148846&enterthread=y

my Master log reports:
FMS has detected system time is going backwards; shutting down server.

Has anyone ever heard it before?
thanks
francesco
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com