lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Alan Skinner

Hi everybody.

I have a .swf clip that I want to be able to dynamically add to my
director scene.

I want to add as many as my .xml config specifies.

Is this possible?

If so how would this be done?

Cheers 

alan

-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Alan Skinner
 
Bit of background which I should have mentioned.
My XML file contains a list of buttons which I want to create on the
stage.
Each button (where button=flash object!) will call a specific callback
and perform some function.

Each button is actually some text and 2 inner buttons, the button name
and back/forward

Ie  colour 
width 
Etc...

I was hoping I could just create my flash buttons using newObject or
something then I could position them on the stage somewhere. But I don't
think this is possible.

Do I have to draw them manually using lingo image stuff?


-Original Message-
From: Alan Skinner 
Sent: 18 January 2006 14:10
To: Lingo programming discussion list
Subject: lingo-l Dynamically duplicating SWF in Director


Hi everybody.

I have a .swf clip that I want to be able to dynamically add to my
director scene.

I want to add as many as my .xml config specifies.

Is this possible?

If so how would this be done?

Cheers 

alan


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Alan Skinner

I think I found it


tMember = new(#flash, castLib LibName) 

-Original Message-
From: Alan Skinner 
Sent: 18 January 2006 14:18
To: Lingo programming discussion list
Subject: RE: lingo-l Dynamically duplicating SWF in Director

 
Bit of background which I should have mentioned.
My XML file contains a list of buttons which I want to create on the
stage.
Each button (where button=flash object!) will call a specific callback
and perform some function.

Each button is actually some text and 2 inner buttons, the button name
and back/forward

Ie  colour 
width 
Etc...

I was hoping I could just create my flash buttons using newObject or
something then I could position them on the stage somewhere. But I don't
think this is possible.

Do I have to draw them manually using lingo image stuff?


-Original Message-
From: Alan Skinner
Sent: 18 January 2006 14:10
To: Lingo programming discussion list
Subject: lingo-l Dynamically duplicating SWF in Director


Hi everybody.

I have a .swf clip that I want to be able to dynamically add to my
director scene.

I want to add as many as my .xml config specifies.

Is this possible?

If so how would this be done?

Cheers 

alan


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Valentin Schmidt

hi alan,

you can duplicate an existing flash member either with

oldFlashMem.duplicate(newMemPosition)

or with

new(#flash, member(newMemPosition, newMemCastlibNameOrNum) ).media = 
oldFlashMem.media


cheers,
valentin

Alan Skinner wrote:

I think I found it


tMember = new(#flash, castLib LibName)

-Original Message-
From: Alan Skinner
Sent: 18 January 2006 14:18
To: Lingo programming discussion list
Subject: RE: lingo-l Dynamically duplicating SWF in Director


Bit of background which I should have mentioned.
My XML file contains a list of buttons which I want to create on the
stage.
Each button (where button=flash object!) will call a specific callback
and perform some function.

Each button is actually some text and 2 inner buttons, the button name
and back/forward

Ie  colour 
   width 
Etc...

I was hoping I could just create my flash buttons using newObject or
something then I could position them on the stage somewhere. But I
don't think this is possible.

Do I have to draw them manually using lingo image stuff?


-Original Message-
From: Alan Skinner
Sent: 18 January 2006 14:10
To: Lingo programming discussion list
Subject: lingo-l Dynamically duplicating SWF in Director


Hi everybody.

I have a .swf clip that I want to be able to dynamically add to my
director scene.

I want to add as many as my .xml config specifies.

Is this possible?

If so how would this be done?

Cheers

alan


--
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email lingo-l@penworks.com  (Problems, email
[EMAIL PROTECTED]). Lingo-L is for learning and helping with
programming Lingo.  Thanks!] 


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Alan Skinner
 
It seems I have to have some sprites on the stage already

I then download the swf, create a dynamic member and then I can switch
these sprites members to the new dynamic one, bit sucky I think!

Ive previously used flash and attachMovie to fully dynamically attach
the new sprite to the stage.

I take it that's not possible in director and I must use these *PUPPET*
sprites?

Cheers alan

-Original Message-
From: Valentin Schmidt [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 14:54
To: Lingo programming discussion list
Subject: Re: lingo-l Dynamically duplicating SWF in Director

hi alan,

you can duplicate an existing flash member either with

oldFlashMem.duplicate(newMemPosition)

or with

new(#flash, member(newMemPosition, newMemCastlibNameOrNum) ).media =
oldFlashMem.media

cheers,
valentin

Alan Skinner wrote:
 I think I found it


 tMember = new(#flash, castLib LibName)

 -Original Message-
 From: Alan Skinner
 Sent: 18 January 2006 14:18
 To: Lingo programming discussion list
 Subject: RE: lingo-l Dynamically duplicating SWF in Director


 Bit of background which I should have mentioned.
 My XML file contains a list of buttons which I want to create on the 
 stage.
 Each button (where button=flash object!) will call a specific callback

 and perform some function.

 Each button is actually some text and 2 inner buttons, the button name

 and back/forward

 Ie  colour 
width 
 Etc...

 I was hoping I could just create my flash buttons using newObject or 
 something then I could position them on the stage somewhere. But I 
 don't think this is possible.

 Do I have to draw them manually using lingo image stuff?


 -Original Message-
 From: Alan Skinner
 Sent: 18 January 2006 14:10
 To: Lingo programming discussion list
 Subject: lingo-l Dynamically duplicating SWF in Director


 Hi everybody.

 I have a .swf clip that I want to be able to dynamically add to my 
 director scene.

 I want to add as many as my .xml config specifies.

 Is this possible?

 If so how would this be done?

 Cheers

 alan


 --
 This email and any files transmitted with it are confidential and 
 intended solely for the use of the individual or entity to whom they 
 are addressed.

 If you have received this email in error please notify the originator 
 of the message. This footer also confirms that this email message has 
 been scanned for the presence of computer viruses.

 Any views expressed in this message are those of the individual 
 sender, except where the sender specifies and with authority, states 
 them to be the views of DA Group.


 [To remove yourself from this list, or to change to digest mode, go to

 http://www.penworks.com/lingo-l.cgi  To post messages to the list, 
 email lingo-l@penworks.com  (Problems, email 
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with 
 programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Rob Romanek

Hey Alan

If you are using DMX 04 check out

channel(x).makescriptedSprite(memberRef, loc)

channel(x).removeScriptedSprite()

hth,

Rob

On Wed, 18 Jan 2006 16:31:20 -, Alan Skinner [EMAIL PROTECTED] 
wrote:




It seems I have to have some sprites on the stage already

I then download the swf, create a dynamic member and then I can switch
these sprites members to the new dynamic one, bit sucky I think!

Ive previously used flash and attachMovie to fully dynamically attach
the new sprite to the stage.

I take it that's not possible in director and I must use these *PUPPET*
sprites?

Cheers alan

-Original Message-
From: Valentin Schmidt [mailto:[EMAIL PROTECTED]
Sent: 18 January 2006 14:54
To: Lingo programming discussion list
Subject: Re: lingo-l Dynamically duplicating SWF in Director

hi alan,

you can duplicate an existing flash member either with

oldFlashMem.duplicate(newMemPosition)

or with

new(#flash, member(newMemPosition, newMemCastlibNameOrNum) ).media =
oldFlashMem.media

cheers,
valentin

Alan Skinner wrote:

I think I found it


tMember = new(#flash, castLib LibName)

-Original Message-
From: Alan Skinner
Sent: 18 January 2006 14:18
To: Lingo programming discussion list
Subject: RE: lingo-l Dynamically duplicating SWF in Director


Bit of background which I should have mentioned.
My XML file contains a list of buttons which I want to create on the
stage.
Each button (where button=flash object!) will call a specific callback



and perform some function.

Each button is actually some text and 2 inner buttons, the button name



and back/forward

Ie  colour 
   width 
Etc...

I was hoping I could just create my flash buttons using newObject or
something then I could position them on the stage somewhere. But I
don't think this is possible.

Do I have to draw them manually using lingo image stuff?


-Original Message-
From: Alan Skinner
Sent: 18 January 2006 14:10
To: Lingo programming discussion list
Subject: lingo-l Dynamically duplicating SWF in Director


Hi everybody.

I have a .swf clip that I want to be able to dynamically add to my
director scene.

I want to add as many as my .xml config specifies.

Is this possible?

If so how would this be done?

Cheers

alan


--
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.

If you have received this email in error please notify the originator
of the message. This footer also confirms that this email message has
been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority, states
them to be the views of DA Group.


[To remove yourself from this list, or to change to digest mode, go to



http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email lingo-l@penworks.com  (Problems, email
[EMAIL PROTECTED]). Lingo-L is for learning and helping with
programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]






[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Thomas Higgins
 Ive previously used flash and attachMovie to fully dynamically attach
 the new sprite to the stage.
 
 I take it that's not possible in director and I must use 
 these *PUPPET* sprites?

Yup, mostly correct. In Director there is the legacy puppetSprite
function, but in MX 2004 we added makeScriptedSprite as a sprite channel
object method, both doing the same thing: dynamically creating a new
sprite on stage.

Cheers,
Tom Higgins | Product Manager | Director  the Shockwave Player
Adobe Systems Incorporated

http://weblogs.macromedia.com/thiggins/

... 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Dynamically duplicating SWF in Director

2006-01-18 Thread Rob Romanek

Hey Alan

If you are using DMX 04 check out

channel(x).makescriptedSprite(memberRef, loc)

channel(x).removeScriptedSprite()

hth,

Rob

On Wed, 18 Jan 2006 16:31:20 -, Alan Skinner [EMAIL PROTECTED] 
wrote:




It seems I have to have some sprites on the stage already

I then download the swf, create a dynamic member and then I can switch
these sprites members to the new dynamic one, bit sucky I think!

Ive previously used flash and attachMovie to fully dynamically attach
the new sprite to the stage.

I take it that's not possible in director and I must use these *PUPPET*
sprites?

Cheers alan


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]