Re: [Flashcoders] attachMovie fails on embedded clip in a movie, why?

2007-06-25 Thread Fumio Nonaka

One sidenote:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15638&sliceId=2
"Instances of imported symbols must be manually placed on the Timeline 
during authoring."

_
Ian Thomas wrote:

The only exception is when using shared libraries.


Good luck,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books
Flash community
___
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] attachMovie fails on embedded clip in a movie, why?

2007-06-25 Thread Ian Thomas

Hi Chris,


Is there some limitation to attachMovie that I'm missing? Any guesses,
suggestions, ideas?



Yes. In AS2, you can't attach a symbol from one .SWF's library into
another movie's timeline.

So if a parent loads a child, none of the clips in the child's library
can be attached to the parent's timeline and vice-versa.

It's very, very annoying -- but the way it is, unfortunately.

The only exception is when using shared libraries.

Ian
___
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] attachMovie fails on embedded clip in a movie, why?

2007-06-25 Thread Chris Bell
2nd try: Forgive if this is a repeat post. I didn't see my first request
make it to the list:

 

Hi Flash Friends,

 

attachMovie works on a clip that is inside a clip that has been loaded
by attachMovie but fails on a clip that is inside a clip loaded with
loadMovie. 

 

This should be so easy, but it is simply not working. I'd appreciate any
tips pointing me to the part that I don't understand ...

 

The setup:

- Main movie (mainMovie)

- A symbol (person1)

- A symbol (template1) that contains a movieClip (chair1)

- A swf (template2) in the same folder as the Main movie that contains a
similar movieClip (chair2)

 

THIS WORKS:

Load the symbol (template1) using attachMovie

attachMovie(template1, "mainMovie", 250); //hardcoded depth here for
clearness

 

On release of a button, attach a symbol to a the chair1 movieClip inside
template1

template1.chair1.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness

 

 

THIS DOESN'T WORK:
(keeping everything the same except loading the movie from an external
source...)

Load the swf (template2.swf) using loadMovie 

   mainMovie.loadMovie(chosenTemplate);

 

On release of a button, attach a symbol to a the chair2 movieClip inside
template1

Template2.chair2.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness

 

 

Is there some limitation to attachMovie that I'm missing? Any guesses,
suggestions, ideas?

 

Thanks,

 

Chris

 

Chris Bell
IT Manager
University of Colorado Law School
My home phone which forwards to me while I'm out of town: 303-443-9621
[EMAIL PROTECTED]

 

___
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] attachMovie fails on embedded clip in a movie, why?

2007-06-22 Thread Matthias Dittgen

Hi Chris,

I can't follow your code snippets too well, but I try to guess your mistake:
You can only attach MovieClips/Symbols with attachMovie, that are
available (exported for AS) within the container SWF.

Example:
MovieClip A.swf contains a MovieClip Symbol "S" in the library (exported for AS)
then you can attach S to any Movieclip inside of A.swf, that was
created using attachMovie or createEmptyMovieClip.
MovieClip B.swf conatain a MovieClip Symbol "R" in the library (exported for AS)
When you load B into A via loadMovie, you can then inside of B only
attach R, not S.

(I guess, this example is near to your description when you see
"person101" as "S".)

Tipp: To be able to attach S as well, you should read about "shared at runtime".

hth,
Matthias

2007/6/21, Chris Bell <[EMAIL PROTECTED]>:

Hi Flash Friends,



attachMovie works on a clip that is inside a clip that has been loaded
by attachMovie but fails on a clip that is inside a clip loaded with
loadMovie.



This should be so easy, but it is simply not working. I'd appreciate any
tips pointing me to the part that I don't understand ...



The setup:

- Main movie (mainMovie)

- A symbol (person1)

- A symbol (template1) that contains a movieClip (chair1)

- A swf (template2) in the same folder as the Main movie that contains a
similar movieClip (chair2)



THIS WORKS:

Load the symbol (template1) using attachMovie

attachMovie(template1, "mainMovie", 250); //hardcoded depth here for
clearness



On release of a button, attach a symbol to a the chair1 movieClip inside
template1

template1.chair1.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness





THIS DOESN'T WORK:
(keeping everything the same except loading the movie from an external
source...)

Load the swf (template2.swf) using loadMovie

   mainMovie.loadMovie(chosenTemplate);



On release of a button, attach a symbol to a the chair2 movieClip inside
template1

Template2.chair2.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness





Is there some limitation to attachMovie that I'm missing? Any guesses,
suggestions, ideas?



Thanks,



Chris



Chris Bell
IT Manager
University of Colorado Law School
My home phone which forwards to me while I'm out of town: 303-443-9621
[EMAIL PROTECTED]



___
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] attachMovie fails on embedded clip in a movie, why?

2007-06-21 Thread Chris Bell
Hi Flash Friends,

 

attachMovie works on a clip that is inside a clip that has been loaded
by attachMovie but fails on a clip that is inside a clip loaded with
loadMovie. 

 

This should be so easy, but it is simply not working. I'd appreciate any
tips pointing me to the part that I don't understand ...

 

The setup:

- Main movie (mainMovie)

- A symbol (person1)

- A symbol (template1) that contains a movieClip (chair1)

- A swf (template2) in the same folder as the Main movie that contains a
similar movieClip (chair2)

 

THIS WORKS:

Load the symbol (template1) using attachMovie

attachMovie(template1, "mainMovie", 250); //hardcoded depth here for
clearness

 

On release of a button, attach a symbol to a the chair1 movieClip inside
template1

template1.chair1.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness

 

 

THIS DOESN'T WORK:
(keeping everything the same except loading the movie from an external
source...)

Load the swf (template2.swf) using loadMovie 

   mainMovie.loadMovie(chosenTemplate);

 

On release of a button, attach a symbol to a the chair2 movieClip inside
template1

Template2.chair2.attachMovie("person1", "person1", 101); //hardcoded
depth here for clearness

 

 

Is there some limitation to attachMovie that I'm missing? Any guesses,
suggestions, ideas?

 

Thanks,

 

Chris

 

Chris Bell
IT Manager
University of Colorado Law School
My home phone which forwards to me while I'm out of town: 303-443-9621
[EMAIL PROTECTED]

 

___
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