ActiveDen

The Amazing tfm Pauser (Delayer) Component

  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
Heliosjiee says

Nice.

Just FYI , after the file is compiled (and compressed) into a .swf, the comments are left out which means the commented and as-only versions will be the same in size (probably smaller due to compression)

3 years ago
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Community Superstar
  • Beta Tester
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
DaniMun says
Author

@ Heliosjiee Thanks for your opinion. Speaking about the comments, I realized my mistake too late, when my component was already online, and of course you’re right, the comments never get rendered into the swf file, my bad :)

Now, speaking about the file size of the lite version, it is smaller, not due to compression, but because the lite component doesn’t use an UI icon, hence the lighter filezise :)

Anyway, thanks for your comment, constructive criticism is always welcome ;)

3 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
rakesh_p says
Purchased

Hi,

I am unable to get the ‘pause/delay’ working inside a movieclip on the main timeline. I am using this actionscript:

_root.imgclip.myDelayer.timeDelay = 6000; _root.imgclip.play();

and also tried to use the instance name:

_root.pics.myDelayer.timeDelay = 6000; _root.pics.play();

The pause works on the main time line though.

3 years ago
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Community Superstar
  • Beta Tester
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
DaniMun says
Author

I’m not sure I understand which movieclip you want to pause. Please make sure you place the pauser component inside the movieclip you intend to pause.

Please avoid the usage of stop() and play() methods since you don’t need them to stop and play your movieclip’s animation. The pauser component in built to do that for you. It will pause and then play the animation once the timeDelay is finished.

If you want to pause, say, the pics movieclip, which is located in the _root timeline, just make sure you place the component inside the pics movieclip. Set the instance name of the component to myDelayer, set the timeDelay parameter to 0 in the Components Inspector panel, set the pics movieclip instance name to pics, and choose where you want to place the timeDelay script. If you want to place the script in the _root timeline, use this one:

pics.myDelayer.timeDelay = 6000;

If you place the script in the pics movieclip’s timeline, use this one:

myDelayer.timeDelay = 6000;

The pics movieclip will continue playing once the 6000 ms interval is over.

I bet there is only an adressing scheme (targeting) issue. There are two different contexts for addressing in Flash: absolute addressing and relative addressing. Absolute addressing means that regardless of where in the movie the action is being called from, the path to its timeline is always the same. To do this, Flash assumes that the top level master timeline, _root, is the starting reference point for all paths. Relative addressing means that the path begins from the point at which the action is called/executed. With relative addressing, the path to the targeted instance is different relative to the location of each action in the movie. I hope this makes sense to you.

For more information on this see the page #8 here or read this documentation from Adobe

Please make sure you carefully read the documentation which you find in the timeDelayer component’s package. See the FAQs section. Please let me know if you still need further assistance with this.

Thanks!

3 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
rakesh_p says
Purchased

Hi, thanks for the prompt help.

What I want is a delay on the main timeline and also inside a movieclip. Should your component be placed on both timelines? I am able to work this correctly on any one timeline.

Now I have placed the ‘delayer’ inside my MC ‘impclip’ with instance name ‘pics’ and it works fine.

I also need a delay on the main timeline, so I put this: pics.myDelayer.timeDelay = 6000; and also tried: imgclip.myDelayer.timeDelay = 6000; but it didn’t work.

I guess the simplest workaround would be to place the delayer on both the timelines.

3 years ago
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Community Superstar
  • Beta Tester
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
DaniMun says
Author

You guessed right, but this is not a workaround, it’s the way the Actionscript interpreter in the Flash Player works. You can’t tell Flash to do sometihng with an object which doesn’t exist. Well… actually you can, but the compiler will fail silently instead of throwing an error message.

Basically you need to place one component in every timeline you intend to pause, then set the delay for each of the components via actionscript.

Also please make sure you are referring to the instance name of a movieclip, and not to the library name of that movieclip.

3 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • Bought between 100 and 499 items
  • United Kingdom
indigochris says
Purchased

Are you planning on creating an AS3 version of this any time soon? Thanks

2 years ago
Author
DaniMun DaniMun replied

Hi Chris,

Thanks for your interest in my files and for supporting our work!

Creating an AS3 version of the delayer component would be a good idea, please give me your email address so I can let you know when the AS3 version is released :)

Thanks!

Best regards,
Dani

2 years ago

by
by
by
by
by