Jump to content
Search Community

FrameLabel plugin?

American horizon test
Moderator Tag

Recommended Posts

Hi, i'm an italian boy, the sorry for any error in my post

 

I'm still a noob but i'm studying flash and action script programming includes tweenlite/max classes. Now i'm stuck on the understanding of the plugin called "FrameLabel".

This is it syntax:

 

TweenLite.to(mc, 1, {frameLabel:"mylabel",ease:Elastic.easeIn})

 

I don't understand why i need to apply it on an object (mc)... Isn't it a thing that manage our position on timeline? Why i need aplly it on an object?

Anyway when i execute my flash file, software give me this error:

 

Error: Cannot tween a null object.
at com.greensock::TweenLite()
at com.greensock::TweenLite$/to()
at Senzanome_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndStop()
at com.greensock.plugins::FramePlugin/set changeFactor()
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1006: value non è una funzione.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
at com.greensock.plugins::FrameLabelPlugin/onInitTween()
at com.greensock::TweenLite/init()
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()

 

This is the entire syntax used by me:

import com.greensock.plugins.*;
import com.greensock.*; 
import com.greensock.easing.*;


TweenPlugin.activate([FrameLabelPlugin, FramePlugin]);


TweenLite.to(mc, 1, {frameLabel:"cazzo",ease:Elastic.easeIn})

Link to comment
Share on other sites

It sounds like your "mc" object is null (it doesn't refer to anything). Do you have a MovieClip on the stage with an instance name of "mc"? I bet you don't. If you're still having trouble, feel free to post a very simple FLA that demonstrates the issue.

Link to comment
Share on other sites

It sounds like your "mc" object is null (it doesn't refer to anything). Do you have a MovieClip on the stage with an instance name of "mc"? I bet you don't. If you're still having trouble, feel free to post a very simple FLA that demonstrates the issue.

Yes i've created it on stage

 

source file: http://digilander.libero.it/American_horizon/prova.rar

 

 

anyway i d0nt understand why i have to apply this function on an object. Isn't it a plugin for manage timeline position?

Link to comment
Share on other sites

Also, if you are trying to control the main timeline and NOT a Movie Clip symbol, you can use the this keyword

 

TweenLite.to(this, 1, {frameLabel:"mylabel",ease:Elastic.easeIn})

 

writing "this" i haven't any error.. But i've wrote "mc" fallowing the official guide, obviously i've created a movieclip on stage called "mc"

Link to comment
Share on other sites

i looked at your file.

 

and since your frame "cazzo" is on the main timeline you would not use mc as your target as mc does not have a frame labeled "cazzo".

 

mc is used in the documentation as a generic instance name. 99% of the TweenLite tweens you will do will control movie clip symbols so you need the instance name to define which object you are tweening.

 

also, the frameLabel plugin is usually used to play through frames in a timeline that already has some timeline-based motion/classic tweens in them. you only have 2 keyframes with static content so there isn't going to be much to see visually as the tween is running.

 

read/watch this tutorial to see a common implementation of the frameLabel plugin:

http://www.snorkl.tv/2010/10/overview-o ... backwards/

Link to comment
Share on other sites

i looked at your file.

 

and since your frame "cazzo" is on the main timeline you would not use mc as your target as mc does not have a frame labeled "cazzo".

 

mc is used in the documentation as a generic instance name. 99% of the TweenLite tweens you will do will control movie clip symbols so you need the instance name to define which object you are tweening.

 

also, the frameLabel plugin is usually used to play through frames in a timeline that already has some timeline-based motion/classic tweens in them. you only have 2 keyframes with static content so there isn't going to be much to see visually as the tween is running.

 

read/watch this tutorial to see a common implementation of the frameLabel plugin:

http://www.snorkl.tv/2010/10/overview-o ... backwards/

ah ok, then writing the istance of the mc i can manage frames INSIDE the mc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...