Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create an opening envelope

New Here ,
Nov 15, 2011 Nov 15, 2011

Hi

I would like to know how to create an opening envelope effect after you click on the stamp.

I saw just one tutorial about that but it didn't work and the envelope it wasnt on the front position.

Abs

TOPICS
ActionScript
7.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 15, 2011 Nov 15, 2011

Here's a link to a CS5 file I made that demos 2 possible ways to approach it using AS3 to animate the flap.  One important element of both these approaches is the location of the registration points for the flaps (at the top).  The first approach gradually changes the scaleY property of the flap, which would have been an approach to take before CS4 introduced 3 dimensional properties. The second approach gradually changes the rotationX property.

http://www.nedwebs.com/Flash/AS3_flaps.fla

Translate
LEGEND ,
Nov 15, 2011 Nov 15, 2011

What is the tutorial you saw that did not work?  What would such an animation look like from the stamp-side of the envelope?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2011 Nov 15, 2011

Hi

What I would like to is something similar to this card

http://www.bluemountain.com/ecards/holidays/christmas/everyone/card-3132942

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 15, 2011 Nov 15, 2011

Here's a link to a CS5 file I made that demos 2 possible ways to approach it using AS3 to animate the flap.  One important element of both these approaches is the location of the registration points for the flaps (at the top).  The first approach gradually changes the scaleY property of the flap, which would have been an approach to take before CS4 introduced 3 dimensional properties. The second approach gradually changes the rotationX property.

http://www.nedwebs.com/Flash/AS3_flaps.fla

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2011 Nov 15, 2011

Thanks a lot!!

Would you mind to tell what¹s the best place to learn action script through

examples?

As I said I¹m trying to do something similar to that ecard but I¹ve been

trying to find tutorials to help me with that.

Now you help me with the opening envelope but I still have to find how to

trig events such as show decoration, lights on mouse event.

Regards

Patricia

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 16, 2011 Nov 16, 2011

The best place to learn Actionscript thru examples is on the machine/software in front of you.  Learning is best done by doing.  So find yourself some tutorials for a variety of different topics and set into learning how they work by trying them and playing with them.  What I did when I started learning AS3 is I decided on something fairly complicated as a project and pursued it step by step.  You might find it easier to start small if you have no coding experience.

There are numerous resources for tutorials, so it's up to you to decide what you want to learn.  You can try a site like lynda.com or a couple of other good resources are... 

The Adobe TV website - video based learning material: http://tv.adobe.com/product/flash/


Lee Brimelow's site http://www.gotoandlearn.com/ is great for video tutorials

One of the easiest ways to find anything that is related to Actionscript tutorials is to use a complete set of terms when searching Google.  Including terms like "AS3 subject matter tutorial" will often produce what you need to find. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2011 Nov 15, 2011

Hi Ned

One more question still in regards of the opening envelope. If I want to set

the envelope on the top the flap how do I hide it after opening the

envelope.

Then push a Œpaper¹ increasing it to show the nest scene.

Regards

Patty

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 16, 2011 Nov 16, 2011
LATEST

One way to change the layering of objects is to use addChild().  So if you wanted the card inside the envelope that is originally beneath the flap to appear atop the flap as it is slid out after the flap opens, you could use addChild(card) just after the flap is opened, where card is whatever instance name you assign to the card instance. (you'd deal similarly with the lower part of the envelope)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines