all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

inseting AS code into a frame of a clip made of an AVI file


inseting AS code into a frame of a clip made of an AVI file aa
8/30/2006 10:04:06 PM
flash actionscript:
I have an AVI video imported into a library.
Then drug and drop this AVI into a movieclip.
Now in this movieclip timeline I see all 120 frames making the avi file.
If I wanted to place some AS code into a certain frame, how do I do that?

I understand, I need first to convert this frame into a keyframe. I select
this frame and then apply Convert to key frames. A message pops up saying
that the movie is 120 frames long and asking whether to add them.
If I confirm, my movieclip becomes two times longer.
If I deny, it places into this frame in question the picture from the first
frame.
What am I doing wrong?


Re: inseting AS code into a frame of a clip made of an AVI file derobinson
8/31/2006 2:07:20 PM
You probably need to add a new layer to the MC and place the keyframe for the
AS there. Placing the keyframe in the same layer as the AVI, its basically
splitting the video and restarting it (read the sectionon keyframes for
animation in the Help docs to better understand how keyframes and graphic
components work).

Hope that helps!

Re: inseting AS code into a frame of a clip made of an AVI file aa
8/31/2006 10:25:30 PM
Thanks,
I added another layer, but converting any frame thereof into a keyframe has
the same effect as doing the same in the AVI's layer as discribed in my
original message.
Another effect I observed is if I convert, say, the Nth frame, then frames
strating from ythe first one and to the (N-1)th are inserted after the Nth
frame, so that the rest of the frames are shifted to the right, and the last
(N-1) frames pf the original AVI are lost so that the total number of frames
is preserved.
I did not understand, where exactly shall read about works of keyframes and
graphic components?

[quoted text, click to view]

Re: inseting AS code into a frame of a clip made of an AVI file derobinson
9/1/2006 1:44:52 PM
Here's the LiveDosc link on keyframes...don't know if it will be helpful or
not, but its a place to start:

http://livedocs.macromedia.com/flash/8/main/00000040.html

You might want to consider converting the AVI to an FLV and using one of the
playback components. You may find that easier to control. Here's a LiveDocs on
that:

http://livedocs.macromedia.com/flash/8/main/00000636.html

How exactly are you importing the AVI into your Library? Are you using the
video import wizard? or are you simply saying File>Import>Import to Library?



AddThis Social Bookmark Button