| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Apr 2004
Location: montréal
Posts: 19
|
Is there a way to export a mc from the timeline instead of from the library? I'm thinkin' of something like this:
ActionScript Code:
instead of from the library: ActionScript Code:
any clue? |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
create a new document object. copy that timeline element to the stage of the new document, and export that item. there is a marked difference between the library and the stage, so expect different behaviour
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2004
Location: montréal
Posts: 19
|
mkay, I've done something like this:
for (var i = 0; i < frmArray.length; i++){ fl.getDocumentDOM().getTimeline().copyFrames(i); fl.createDocument(); fl.getDocumentDOM().getTimeline().pasteFrames(); fl.getDocumentDOM().exportSWF("file:///"+realPath+"slide"+(i+1)+".swf"); fl.getDocumentDOM().close(false); } but it makes movies of 1KB was that the way you meant? what I'm doing wrong? |
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
i did it a bit differently. i copied a symbol from my library into a new fla, and exported that. here is the code:
ActionScript Code:
remember that if that symbol has childSymbols those will go along. also remember that if those items in folders, under certain circumstances the library folder structure of the new fla will look different than what you had. |
|
|
|
|
|
#5 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
edit, i reread you title, sorry got sidetracked there.
let me check it out, i will get back to you in the morning. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Apr 2004
Location: montréal
Posts: 19
|
No worries, the code you just post made me look further in my jsfl learning.
and thanks for your time. |
|
|
|
|
|
#7 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
ok gotit. took me 10 min this morning to figure it, but its good i did, inline with something i want to do soon.
ActionScript Code:
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Apr 2004
Location: montréal
Posts: 19
|
its working great, but it keeps exporting the same movie (the selected one). In my source_movie.fla, there is a layer called slides and every slides are in a different keyframe. How can I use clipCopy() for every keyframe?
|
|
|
|
|
|
#9 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
you should be able to walk through each layer and then each frame check what kind of frame it is and then select each element on each frame and then proceed with the code i gave you before.
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Apr 2004
Location: montréal
Posts: 19
|
ok thanks, I managed to make it work using
ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|