FORUMS: list search recent posts

Linking trackingdata from After Effects through FLV cuepoints.

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Hisham Ramish
Linking trackingdata from After Effects through FLV cuepoints.
on Feb 3, 2010 at 11:51:20 pm

Hello everyone.

I have an FLV video with a lot of cuepoints. These are tracking data from After Effects. When I try to import the video to Flash and then write some code to make it link, I get a lot of errors and the actionscript stops executing after some time. One error is that "testing" is undefined and has no properties. Another one is Cannot access a property or method of a null object reference on the "testingRot.

Do you know how I might fix this?

Or even an even better/easier way to link the cuepoints and the symbols?

This is my code:

import ;

var paramObj:Object;

singing_vid.addEventListener(MetadataEvent.CUE_POINT , testing);

function testing(evt:MetadataEvent):void{
paramObj =;
var values:Array = paramObj["Transform_Position_Male"].split(/,/);
face_mc.x = values[0];
face_mc.y = values[1];

var paramObjRot:Object;

singing_vid.addEventListener(MetadataEvent.CUE_POINT , testingRot);

function testingRot(evt:MetadataEvent):void{
paramObjRot =;
var valuesRot:Array = paramObjRot["Transform_Rotation_Male"];
face_mc.rotation = valuesRot[0];


var paramObj1:Object;

singing_vid.addEventListener(MetadataEvent.CUE_POINT , testing1);

function testing1(evt:MetadataEvent):void{
paramObj1 =;
var values1:Array = paramObj1["Transform_Position_Female"].split(/,/);
mouth_mc.x = values1[0];
mouth_mc.y = values1[1];


Return to posts index

Brodd Nesset
Re: Linking trackingdata from After Effects through FLV cuepoints.
on Feb 4, 2010 at 8:55:25 am

Hi! I'm doing a kind of wild guess here first, but I've seen similar things myself, and the solution may be really silly...

Flash doesn't 'see' the video object before it is actually loaded, or rather: have started loading. This may take 1/10 second or less, but in the meantime Flash tries to execute the rest of the script, and it can't attach neither eventlisteners and its associated functions to an object that isn't there quite yet...

Crude solution would be to split the script in two frames (if applicable), one for loading, the next for the rest.
More proper would be to check for the LOADED event, and don't procede before it triggers.

In your script I don't see how you have loaded up your video object, so please give some info on this.

Not everything that can be counted counts, and not everything that counts can be counted.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved