Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimelineLite addLabel not working as per documentation #4

Open
supercrabtree opened this issue Jul 18, 2013 · 1 comment
Open

TimelineLite addLabel not working as per documentation #4

supercrabtree opened this issue Jul 18, 2013 · 1 comment

Comments

@supercrabtree
Copy link

Hey there, first up thanks for everything.

I'm using the addLabel function a lot at the moment, and in the documentation the second parameter should have a default value of "+=0", to allow it to append to the end of the timeline, but when I look at the TimelineLite.as file I can see:

public function addLabel(label:String, position:): {
_labels[label] = _parseTimeOrLabel(position);
return this;
}

I assume it should be:
public function addLabel(label:String, position:="+=0"): {
_labels[label] = _parseTimeOrLabel(position);
return this;
}

I'm looking at version 12.0.13

Thanks
George

@jackdoyle
Copy link
Member

Ah yes, that is actually the way it's behaving now except that the parameter is required when it really shouldn't be. We'll get that patched up in the next push. Thanks for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants