The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> Flash Help
|
Movieclip distortion/transformation
Discuss Movieclip distortion/transformation in the Flash Help forum on Dev Shed. Movieclip distortion/transformation Flash Help forum discussing all products originally created by Macromedia including DreamWeaver, Contribute, Flash, Fireworks, Freehand, Director, Authorware and HomeSite. Adobe bought Macromedia in 2005.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 5th, 2006, 09:27 AM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
|
Movieclip distortion/transformation
If I have a movieclip is there anyway to set the location of it's four corners dynamically in such a way that will distort the original shape of the clip? Specifically changing a rectangular clip from: |___| to: \___/
|

May 5th, 2006, 10:35 AM
|
 |
Prisoner of the Sun
|
|
Join Date: Jul 2004
Location: The Mews At Windsor Heights
|
|
|
Hmm I don't think so.
If you are using Flash 8, then have a look in the Help at the Transform object. That might be able to do it somehow - but it looks complicated.
__________________
.
:: My blip.fm tunes :: Web Design Feeds :: Web Dev Feeds :: CheatSheets :: PHP :: MySQL :: 13 Moon FB App.
"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks
"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra
|

May 5th, 2006, 03:44 PM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
Howdy, skewing with Flash 8 is shown here hmmmm i just tried that out and without some modifications it wont do the particular skew your after. Thats more of a perspective skew. Found this perspective skew example although it looks like it might be overkill. Theres this kickass Transformation tutorial on Senoculars site which might help you get your head around things. I used to use this prototype for skewing clips in Flash MX, you could always use that still but it just seems a pity to not use the new Flash 8 features. Doing a google around seems to have tons of people pointing at the second link i posted.
__________________
Quis custodiet ipsos custodes?
|

May 5th, 2006, 04:09 PM
|
 |
Contributing User
|
|
Join Date: Apr 2005
Posts: 538
  
Time spent in forums: 5 Days 27 m 36 sec
Reputation Power: 10
|
|
|
Wow that Senocular tutorial is amazing o.o, it looks quite easy now o.O (if you get how to use the matrices that is :P)
__________________

why "i++;" ? is better to evaluate first then add
MSTDump, Just Dump iT!
|

May 8th, 2006, 10:18 AM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
|
I need to change the perspective, not the skew which is what I think all those links do. Also I'm on MX 2004, not Flash 8. So I'm thinking it's not possible.
|

May 9th, 2006, 03:01 PM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
|
yer im sorry, i looked around and tried various things out during the day but couldnt get it setup the way your after. its really strange though, i was sure it could be done and that i had it happen when i was after skewing. i guess i must be confused since it seems no one has achieved this.
no you what, screw it, im going to take another stab at it tomorrow. i have this hunch i can jimmy rig Senoculars prototype to do the angle your after. maybe it will, maybe it wont, let you know tomorrow evening :¬)
|

May 10th, 2006, 06:30 PM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
so i went back to muddling over which past project I had where I was trying to get the same kind of effect and eventually i remembered. it wasnt even that long ago as it was a rotating christmas card project. the client wanted to have dynamically loaded images on one side of the card and a still color on the other.
I got stumped when trying to just skew a movieclip so I went for a pseudo 3d system which I partially five fingered from the Flash page of ericlin. Scroll down there a bit and check out the "perspective cube Flash MX" under the Flash 3D header.
squash a cube down and it becomes a card which is the mentality I went at it with and it worked quite well. Each side of the cube/card is a seperate movie clip so one of them can contain your image. then to give it the perspective skew your after just rotate the cube slightly. once its setup its really nice as you can tween animate it and link it to the mouse.
|

May 10th, 2006, 07:13 PM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
|
Thanks for trying so hard, but even that ericlin tutorial is just using the drawing api to achieve the effect. What I wanted was to be able to achive the effect on a whole movieclip.
What I want is a rotating cube with text on each face of the cube. So I need more than just a cube's face drawn, I need to attach a movieclip to it that contains my text field that is also being distorted with the cube face.
|

May 11th, 2006, 06:57 AM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
hehe oops my bad. when I saw that site I was like "oooo thats how i did it" but it wasnt, it was a bit of a variation of that by the same person here. Looking at their tutorial demo again though; im not sure if even that does the perspective skew your after, maybe if you play with the code a bit you can jimmy rig something out of it :¬)
|

May 11th, 2006, 09:45 AM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
|
That's it man, thanks a lot! Now I just have to figure out how to adapt it for my use.
|

May 11th, 2006, 01:04 PM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
Running into more problems. I added a static text box to one of the movieclips that make up a face of the cube and when I tested the movie it worked perfectly!
When I changed that static text box to a dynamic text box, however, it didn't display the message in my box.
I don't think I know enough about what the script is doing to find out if I'm doing something wrong. But does anyone have any suggestions?
|

May 11th, 2006, 01:07 PM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
|
try embedding the font :¬)
|

May 11th, 2006, 06:35 PM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
|
I don't think that's it, cause if I add the movie clip just normally to the stage (not attached to the cube) then it displays the text fine.
|

May 12th, 2006, 04:05 AM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
|
but when you try doing anything funky with a dynamic text field and the text isnt embedded then it wont work, did you at try it?
|

May 12th, 2006, 10:11 AM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: College Station, TX
Posts: 97
Time spent in forums: 11 h 18 m 16 sec
Reputation Power: 11
|
|
Ok, Tann... I'm sorry, I'll never doubt you again  It worked. Thanks again for all your help.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|