Scaling objects, timers and transparent backgrounds

  • adrianne
  • Born
  • Born
  • adrianne
  • Posts: 3

Post 3+ Months Ago

I haven't worked in flash in a long time. I usually work in Director, but now I have to remember how to use flash and I have a few problems that I need help with.

I you can answer any or all of these questions I will have your child...(and trust me I'm hot)

1.) Can you resize an entire timeline. I seem to be able to resize a section, but not the whole thing.

2.) I would like my program to play at 30 second intervals, but also be able to click on it and animate it. I'm clueless.

3.) How can I make my background transparent?

Please help me!
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

1) Not sure what you mean by "resize the timeline".

2) You can use the setInterval() method to create a timed event. You can attach a function to a button/movie clip that would trigger the animation and reset the timer.

3)In the HTML generated by Flash find "wmode", twice, and set it equal to "transparent".

Compensation is not required.
  • adrianne
  • Born
  • Born
  • adrianne
  • Posts: 3

Post 3+ Months Ago

oooh thank you.

By resize the timeline I mean resize the stage items throughout the timeline.
Say I have a walking bear on my stage. My bear walks out of frame durring a part of my animation so I want him to be smaller.
I want all of the componants that make up that bear to be resized together throughout all the keyframes in my timeline.
It doesn't work if you just select everything and resize.

thanks soo much!!!
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

Yes, you can do that by creating the bear as a number of nested movie clips combined into an overall movie clip. Then you can either scale different instances of the bear manually during production, or scale it programatically at runtime.

The movie clips that are nested within the overall movieclip can act indepently from the overall clip through tweened animations or programatic animation - but they will still be scaled as a group when the overall clip is scaled.
  • adrianne
  • Born
  • Born
  • adrianne
  • Posts: 3

Post 3+ Months Ago

OK so this is interesting.

I checked out the interval funtion.


I attached this code to a button in frame 1

setInterval(function () {
trace("button");
gotoAndPlay("BEGIN");
}, 19000);


Frame "BEGIN" starts the animation sequence.

at the end of the animation sequence there is a
gotoAndStop(1);
(located in an actions layer at the last frame)


my result is that it playes once,
then waits 19 seconds and plays again,
then it does not wait again and plays immediately,
and then waits another 19 seconds before doing the same thing again.


Uh... can some some kind soul please explain to me why my code is goofed?
Why would it only work every other time?

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.