Hello. I am using Flash Pro CS6.
Now I am trying to place bitmap image sequence on a layer. I imported images as image sequence using the menu "File - Import - Import to Stage", and Flash Pro automatically placed them into a layer, but all keyframes are set as 1 frame.
Plz see the picture below.
"1F" layer shows the situation. I import image sequence into "1F" layer. All keyframes are set as 1 frame, but I want to make them to be 5 frames like "5F" layer.
Is there any way to make all 1frame keyframes to be 5frames automatically? I need to import lots of bitmap sequence and place them in a layer and adjust duration. It's really time consuming If I need to set the duration manually.
Please give me your advice.Thank you in advance.
To answer your original question, there is no quick/easy way to have frames automatically added between keyframes.
In AS2 you cannot do anything to modify the frame rate of the file, so if you need things to operate at different speeds you will need to implement code-based controls that dictate frame progression or object manipulation.
The only built-in timer tools that support AS2 are the setTimeout() function and the setInterval() function, which you can find information about if you search Google using terms like "AS2 setInterval". If you want these timers to control moving one frame at a time, then they could be used in combination with nextFrame() commands, which do what they say... go to the next frame and stop.
In AS3 you can change the frameRate property of the file using code, but it applies to the whole file, not individual movieclips. If you still want things to operate at different rates then you'll need to use timing elements.
AS3 has one more tool in its arsenal as far as timing things goes... the Timer class, which can work somewhat like the setInterval function (which is in AS2 and AS3).
This jsfl-Code works as a Macro that automatically stretches the duration of every frame of every layer on your current timeline from1 to 5 frames:
var countNum = fl.getDocumentDOM().getTimeline().frameCount*5;
for (var i = 0;i<countNum;i += 5){
fl.getDocumentDOM().getTimeline().insertFrames(4,true,i);
}
to use it: create a blank jsfl-file (file->new), paste the code above and have your fla open in a second window. Press the playbutton on the jsfl and it should "stretch" the duration of every frame of every layer on your current timeline from1 to 5 frames.
Beware: Depending on how many layers and bitmaps you have to manipulate, it can take a while.
Backup your work before usage.
North America
Europe, Middle East and Africa
Asia Pacific