Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Using Perspective With Text In Flash?



I am wondering if anyone knows a way to use ActionScript or any other method to make text in Flash use perspective. Please see the attached file to see what I mean - I want text on the TV screen, however am not sure how to make it look like its on the right perspective.

Thanks for all the help!

- MIKE



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-27-2003, 11:33 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Text With Perspective
Im creating an application form. The fields have interaction with the rest of the movie (which is an image). The problem is the perspective and text. It just doesnt fit. I drew all the lines (considering a point out of the movie where all the lines merge, point of..i dont know the name...flight point?) to have a guide. The problem is that flash dont let me to distort the text boxes, so, the closer letter doesnt look bigger than the other one from the beginning. The shape itself is a box, like a cube with some perspective. There is where i want to fit the field and the text. If anybody knows how to solve this (or knows an add-on or a program) i would be more than thankful.
The other choice that i have is to use photoshop or freehand and import text as images, but with the imput fields is imposible. Anyway it look acceptable with the skew of flash, but it doiest look "good", if you know what i mean.
Any help is welcome.I will recieve any help as a christmass gift

Perspective With Text?
Hi Guys,

Does anyone know how to make text look and move in perspective? I would like to apply perspective to text the same as perspecive in Photoshop, is it possible?

PS: WITHOUT BREAKING APART and using distort (as file size increases profoundly)

Thanks in advance,

dfx

Text Shaping For A Perspective Look
How do i make my text behave like the rest of my design?

Just click on the link and go to PROGRAMS and a window with the text in question is there. I would like to know how i can minipulate the text so that it matches the perspective of the window from which it resides in. Break Apart? Convert to a Graphic? Sell my soul?


.oO


The Link

Perspective Text Field
Hi all,

I know by default Flash MX does not allow you to distort text fields. I am looking for away to get around this. I have drawn a sign in perspective and I want text on that sign that is pulled from a database. If the text wasn't pulled from a database, it would be easy.

Does anyone know any way for me to accomplish this?

Perspective Text Spin?
How can I drop in the different labeled movie balloons into this actionScript array?

Its reading "balloon" for all points, but need new labels for each point. Or is there an easier way to get this effect?

Working in Flash 8 here, thankz

Perspective Scrolling Text Box ?
is it possible for flash to have a normal dynamic scroll box displayed in a perspective rather than flat. one side distorted larger than the other?

Perspective And Dynamic Text
anyone have any idea how to add perspective to dynamic text? (like using the distort tool) Thanx.

Scolling Text Perspective
A new dialiemah of mine... I want to create a star wars like scrolling text feature. And im pretty sure its a case of altering the perspective as the movie clip rises. Well, so I think.

I thought it would be quite straite forward, but flash isnt that nice to me, so can anyone help?

I have attatched a .fla to work from if you have any spare time to offer. And the image below is a sort of description of what i think needs doing.




I not asking anyone to go to the extreme lenghts of making the hole thing, But any help will the text scrolling up bit would be great.

Thanx all.

Mark

Perspective And Dynamic Text
anyone have any idea how to add perspective to dynamic text? (like using the distort tool) Thanx.

Skewing Dynamic Text With Perspective
Hi All

I am trying to skew a text field not only so it appears side on but with the the left hand side narrower than the right to give the appearance of perspective (see attached pic)

Is this possible without haveing to break apart the text ie still have it dynamic, I know about the embedd font issue, this is not that.

Any help mucho appreciated

Cheers

Perspective Effect On Dynamic Text
howzit!

i need to have a tapering perspective effect on a dynamic text field:



any advice? pls help......deadline is a coming!
Cheers
Kyle

Adding Perspective To Dynamic Text Area
Is it possible to add perspective to a dynamic text area, (includes text area and scroll bar component)?. I've tried but the text disappears and the scroll bar stops working.

Cheers people.

Adding Perspective To Vector Based TEXT
Does anyone know how to distort vector based text in Flash MX to give the illusion of adding perspective. I know I can do a bitmap converion but it defeats the purpose of creating the text with vectors. Is it possible with Flash MX or do I have to use Illustrator and import the newly designed vector elements into my file? Thanks for the help.

Perspective In Flash?
Hello...

I'm looking to create a rectangle in flash but I would like to add perspective to it, like it's a wall or something. But there is a design on it and I'm not sure how to make the perspective with the pattern on it. If it was just a solid colour, that would be fine but how do I make the whole thing, rectangle and pattern in perspective?

Thanks
Mike

Perspective In Flash
well right now im doing this crazy new design...im curious if there is a way you can take a regular flat text swf file - and when it is imported into another flash movie, add perspective to it - theres an example attached to help you get my drift...basically just taking a normal swf file and adding perspective to the clip when its imported into another larger movie

3D Perspective In Flash
I've recently seen quite a few flash sites that use 3D objects and movements, and some said they used 3DSMax. I was wondering how they imported the 3DS file and manipulated it in flash?

Flash Perspective Question...
how can I make a block of type transform as a unit using the distort tool in Flash MX, to make it look as if the type is being from one angle and then looks as though the camera angle is changing to give the opposite angle as the final view.

I can get it so far but the type is no way near tight enough to look as though it is a solid block of copy... it looks what it is lots of individual letters changing angle as opposed to a clean movement!

I did wonder about using jpeg/bitmap imagery but the distort tool doesn't work on those does it? or does it? I've tried and not managed it.

Are there plugins or cheats to get this effect?

Any ideas????

Help With Perspective In Flash MX (tutorial)
I sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM.

I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial (http://www.kirupa.com/developer/mx/s...erspective.htm). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
nbClip=50;
for (i=0;i<nbClip;i++){
duplicateMovieClip(ball,"ball"+i,i);
mc=_root["ball"+i];
mc.startx=Math.round(Math.random()*300)-50;
mc.starty=Math.round(Math.random()*300)-50;
}

Question: The tutorial states that the aforementioned loop construct should be entered "on the first frame of the _root." This means that the loops should be entered in the first frame of the Flash movie's main timeline, no?

Question: Does anyone know whether the properties "startx" and "starty" apply to Flash MX (and not Flash MX 2004)? The Actions panel does not seem to recognize these properties as no syntax coloring is applied and I cannot find any mention of these properties in the Reference panel.

I proceeded to complete the tutorial and everything except for the duplication of random "stars" (the "ball" movie clip instances) appears to work. I have included my code below. Can anyone see anything that I have done incorrectly?

I appreciate your help!!

Matt

Attached to the "ball" movie clip instance that is part of the Flash movie's main timeline:

onClipEvent(load)
{
maxDepth = 1000;
z = Math.round(Math.random() * maxDepth);
fl = 300;
scale = fl / (fl + z);
_xscale = _yscale = 100 * scale;
_alpha = scale * scale * 100;
this.swapDepths(scale * 1000);
}

onClipEvent(enterFrame)
{
var xcenter = _root._xmouse;
var ycenter = _root._ymouse;
var offx = (startx - xcenter);
var offy = (starty - ycenter);
_x = xcenter + offx * scale;
_y = ycenter + offy * scale;
}

Attached to Frame 1 of the Flash movie's main timeline:

bnClip = 50;

for (i = 0; i < nbClip; i++)
{
duplicateMovieClip(ball, "ball" + i, i);

mc = _root["ball" + i];
mc.startx = Math.round(Math.random() * 300) - 50;
mc.starty = Math.round(Math.random() * 300) - 50;
}

Help With Perspective In Flash MX (tutorial)
I sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM.

I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial (http://www.kirupa.com/developer/mx/s...erspective.htm). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
nbClip=50;
for (i=0;i<nbClip;i++){
duplicateMovieClip(ball,"ball"+i,i);
mc=_root["ball"+i];
mc.startx=Math.round(Math.random()*300)-50;
mc.starty=Math.round(Math.random()*300)-50;
}

Question: The tutorial states that the aforementioned loop construct should be entered "on the first frame of the _root." This means that the loops should be entered in the first frame of the Flash movie's main timeline, no?

Question: Does anyone know whether the properties "startx" and "starty" apply to Flash MX (and not Flash MX 2004)? The Actions panel does not seem to recognize these properties as no syntax coloring is applied and I cannot find any mention of these properties in the Reference panel.

I proceeded to complete the tutorial and everything except for the duplication of random "stars" (the "ball" movie clip instances) appears to work. I have included my code below. Can anyone see anything that I have done incorrectly?

I appreciate your help!!

Matt

Attached to the "ball" movie clip instance that is part of the Flash movie's main timeline:

onClipEvent(load)
{
maxDepth = 1000;
z = Math.round(Math.random() * maxDepth);
fl = 300;
scale = fl / (fl + z);
_xscale = _yscale = 100 * scale;
_alpha = scale * scale * 100;
this.swapDepths(scale * 1000);
}

onClipEvent(enterFrame)
{
var xcenter = _root._xmouse;
var ycenter = _root._ymouse;
var offx = (startx - xcenter);
var offy = (starty - ycenter);
_x = xcenter + offx * scale;
_y = ycenter + offy * scale;
}

Attached to Frame 1 of the Flash movie's main timeline:

bnClip = 50;

for (i = 0; i < nbClip; i++)
{
duplicateMovieClip(ball, "ball" + i, i);

mc = _root["ball" + i];
mc.startx = Math.round(Math.random() * 300) - 50;
mc.starty = Math.round(Math.random() * 300) - 50;
}

Flash Video In 3D Perspective
Hi, everyone!

For my first post here I'm going to ask a question (big shocker there):

I'm trying to incorporate a streaming flv into the image of a billboard so that it looks like the video is being projected onto it in a way that is similar to a drive-in movie screen. The only problem is that the billboard is at an angle instead of straight on. I can skew the video component using the basic tools in Flash, but the final result lacks the realism I'm looking for. Does anyone here have an idea how to get the video to appear in perspective?

Thanks for your time.

How Do You Create A Pseudo-3d Perspective In Flash?
Hi all,

I've noticed a lot of sites doing this pseudo 3D perspective in flash where you have a square and two corners are closer together and the others further apart - giving a 3D look - this can't be achieved with 'scew' right?

Perspective Style Flash Layouts
Hey everyone,

I'm using a regular easing tween on six movie clips/buttons however I want to be able to stop this function temporarily when a movie clip is clicked But I can't figure this out??? The best example of what I'm aiming for was www.madrid2milyalgo.com (unavailable now) another example is http://www.diesel.com/denimguide/ss06/ - I imagine they use the scaleTo and swapDepth actionscript however I can't figure out how the rotational style animation of the clips works - is it just a tween to a defined location depending on the depth ????? That's the only idea I can come up with. Any help would be well appreciated

jamesmclean.ideas@hotmail.com

Perspective In Flash Source Files?
Any idea how i may obtain flash document source files for all the examples shown in both Perspective with Flash and Experiments with Perspective tutorials?

Perspective In Flash Source Files?
Any idea how i may obtain flash document source files for all the examples shown in both Perspective with Flash and Experiments with Perspective tutorials?

SEO Vs Flash From A Business/site Owner Perspective
I would like to open a discussion if others are interested:

Seeing as though there are literally billions of websites out there and the odds of a small business getting any sort of decent position on Google/Yahoo etc are slim to none, how important do you rank actual search engine optimization? In all reality, Flash can entertain/sell/grab a user much better than it's static HTML/Flash or HTML-only counterpart.

That said, wouldn't we (me) as small business owners be better served with a full Flash site/dynamic commercial for those few visitors we direct to our sites as opposed to losing that edge in the hopes of moving from page 6 to page 5 in the search engines?

Really, my company has no way to compete with my larger competitors' volume and rapid update of content. Speaking in generalities, what are your thoughts?

Flash Script - 3D Perspective Moving Effect
This is a dedicated thread for discussing the SitePoint article 'Flash Script - 3D Perspective Moving Effect'

Perspective Correcting Zoom (throught Scale) In Flash.
I am trying to take a large image behind a matte and move the image aound so it looks like a camera viewfiner. The problem I run in to is when zooming. The movement and focus controls were easy enough, but I now have problems when trying to zoom. I simulate zooming by scaling the image, but because I scale based on the image center rather than the matte center, the image gets moved sideways. I wanted to know if anyone knew how to counteract that. Thanks.

Can Flash Transform A Square Into A Trapezoid? (for Forced Perspective)
I know flash can do skewing, but that preserves the parallels, as does every matrix transformation.

I am looking to do basically a tabletop with some forced perspective so the back side (top) is narrower than the front side (bottom), but I would like the originating movieclip be square since I have a series of square tiles on it.

Not the end of the world if it isn't there, but it would be nice.

Flash Perspective Movement: Back Button Problem
Hi there,

I am working on a project, for which I have made perspective movement of thumbnails. My one side movement is working fine, but I am unable to create to and fro movement (back & forward), as variable values don't change as desired. Can anyone help me with this and tell me how to code this.

file can be seen at http://www.geocities.com/cybe_r/

I have put there fla download link and code too.

plssss.. help

Rajiv

Perspective
How do I tell an object (that I am dragging) to get smaller when it goes up on the y axis and gets larger going down the y axis? For the sake of making dropzones and dropobjects in perspective.

Perspective
hi guys,

i just need some help making a symbol shrink as it gets dragged closer to a horizontal line and then large as it moves away.

Trying to give the image of perspective.

Any help towards this would be great.

Thanks,
dEX

Perspective
I am trying to create a 3d 3 Panel Display with a dead on View so the outer edges of the outer displays are the larger base to the trapazoids. Problem is you can only manipulate MCs with the skew. This causes them to be parallelograms. Has anyone been able to make this effect or been able to create this effect with some sort of work around?

Thanks in Advance,
ESE51

Doing Perspective In AS2 Or AS3?
I'm not sure if theres a way in AS3.

Is there a way to do perspective in AS2 ?

Making a movieclip go from this
._
|_|

To this

.._
/__

I know you can skew with a really roundabout method, but I don't think perspective is possible. I'd like to be proven wrong though cause I could use it.

Add 2D Perspective
Hi All,

Could someone point me to a good resource or way to add some perspective to a 2D square / rectangle?

I've been looking at the Transform Matrix, but only seem to be able to adjust skew of an object. Let's say my square is made up of four points point A (the upper left), point B (the upper right), point C (the lower right), and point D (the lower left). I want to be able to adjust points B and C so they are closer together, as if they were further away.

I know I could draw an object like this and adjust the points, but I want to add an image to the object.

Thoughts?

Thanks.

_t

3D Perspective
I am trying to make a program using a three dimensional interface. A point in space is represented by the following class.


ActionScript Code:
class Point{
    var x //x position
    var y //y position
    var z //z position
    var t //time- not used in this program
    function Point(a:Number, b:Number, c:Number){
        x = a
        y = b
        z = c
        t = 0
    }
    function shiftX(n:Number):Void{
        x += n
    }
    function shiftY(n:Number):Void{
        y += n
    }
    function shiftZ(n:Number):Void{
        z += n
    }
    function rotateZ(angle:Number/*radians*/):Void{ //rotates view clockwise
        var xi = x
        var yi = y
        x = Math.sin(angle) * yi + Math.cos(angle) * xi
        y = Math.cos(angle) * yi - Math.sin(angle) * xi
        offsetRect()
    }
    function rotateY(angle:Number/*radians*/):Void{ //rotates view clockwise
        var xi = x
        var zi = z
        x = Math.sin(angle) * zi + Math.cos(angle) * xi
        z = Math.cos(angle) * zi - Math.sin(angle) * xi
        offsetRect()
    }
    function rotateX(angle:Number/*radians*/):Void{ //rotates view clockwise
        var zi = z
        var yi = y
        z = Math.sin(angle) * yi + Math.cos(angle) * zi
        y = Math.cos(angle) * yi - Math.sin(angle) * zi
        offsetRect()
    }
    function offsetRect():Void{ //used to correct for any calculation errors
        if(x - Math.floor(x) < .001){
            x = Math.floor(x)
        }
        if(y - Math.floor(y) < .001){
            y = Math.floor(y)
        }
        if(z - Math.floor(z) < .001){
            z = Math.floor(z)
        }
        if(Math.ceil(x) - x < .001){
            x = Math.ceil(x)
        }
        if(Math.ceil(y) - y < .001){
            y = Math.ceil(y)
        }
        if(Math.ceil(z) - z < .001){
            z = Math.ceil(z)
        }
    }
}

if I generate a circle with a center at point P, at 100, -100, 0, and rotate that point around the z axis (0, 0 from the point's perspective), the circle follows a predictable circular path around it in a counterclockwise path, for example (the function would rotate clockwise if flash used the first quadrant of a cartesian coordinate system instead of the fourth).
One thing I don't know how to do is correctly skew object to account for perspective (for example- if you look at a circle lying flat on the x-y plane at an angle, it looks like an elipse.) Can anyone tell me a formula for the skewing or at least point me in the right direction for deriving it?

Perspective
What is the formula for calculating coordinate points and scale on a one point perspective grid (e.g. the posiions on the squares of a Chess board viewed from the middle and above)
Thanks

Perspective :(
yeah, i know theres loads of tutorials on it..... but i cant find what i need................................. well i dont know what im looking for so any steps into the right direction would be very helpful....

basically...... the background im using is in perspective. The character that moves around needs to change its perspective. I have been trying to find an equation for it....... but most of them are like rotating 3d cube, or dynamically changing the background to put into perspective. I cant see how this could help me. What i have so far is: http://www.tbadventure.com/TBA3D.swf

i just told actionscript to slightly change the characters size and speed on each (enterFrame) this works for walking from the current position.... but if you go behind the building he walks at the same angle as infront of it and it looks wrong... any thoughts would be so helpful thanks

Is There Any Way To Get Perspective
I have skewed and tweaked and everything. How can you get an mc to do perspective like in photoshop? Will the next version have this feature? thanks.

Perspective
I have read the tutorial http://www.kirupa.com/developer/mx/perspective.asp
and i have a question about it..

The script looks like this:

onClipEvent (load)
{
z=0;
zspeed=5;
fl=300;
}
onClipEvent(enterFrame)
{
scale=fl/(fl+z);
_xscale=_yscale=100*scale;
z+=zspeed;
}

Question: How do I stop the object to get negative(upsidedown) when I use zspeed=negative, I want it to stop before it turns around

Perspective
Any ideea for create this http://www.ccdsv.go.ro/perspective.htm
Action Script or motion.
Thanks.

3D Perspective Help
[solved]

Hey, I'm experiencing some stretching in my perspective. I have points, and I change their coorisponding x/y based on the cameras position. I move the camera around with the arrow keys. I don't know how to make it so the sides of the cube don't go past their default length.

Anyone experience this before? Got a tip? Thanks

3D Perspective
hi guys, any idea how to achieve something similar like http://www.airtightinteractive.com/p...iltviewer/app/ ? Not a image gallery, but ability to make 3D-perspective swf content.

Erm, i am not asking for source code or ready made example, but if so happen any of you have done similar research, please 'enlighten' me or share some tips/concept with me. Thanks in advance.

I came across FIVe3D, its cool, but unfortunately the Sprite class defined only allow user to draw shape or text within, but not loading external swf nor a jpg. Shame to say i am unable to modify it to do so.

Perspective
How do I add perspective to an image or movieclip with AS3?

Perspective
Any ideea for create this http://www.ccdsv.go.ro/perspective.htm
Action Script or motion.
Thanks.

Perspective
I need to plot coordinates on a perspective (not isometric) board. I need to know what the formula is for calculating the x/y coordinates and the scale for a particular position on the board (perspective projection). What I want to do if pass two coordinates to a function which then calculates the perspective point on the board.

Thanks

Philippe

Perspective
how to build a good perspective effects.. from far to near

Perspective
I was just wondering... If i had a drawing of something in a 2point perspective, how would i go about something else in the 2 point perspectove moving accross the screen?
Wouldn't that make it go out of the perspective?

Perspective In Animation
Does anyone know of some good sites that have examples of Flash that use perspective or "3-D" animation? Thanks,

Perspective Scaling
I have an animated movie clip that I want to put on top of a picture of a computer monitor in my movie, trouble is the monitor isnt facing front, so perspective comes into play.

Is it possible to scale a movie clip into perspective?

Copyright © 2005-08 www.BigResource.com, All rights reserved