ActionScript 3.0 :: Dynamically Displaying Text On A Cylinder Surface?

Jun 20, 2011

Basically I need to have;

- interface where a user can choose a font (from pre determined font sets) and input a text string

- This text is then displayed engraved on a ring (jewellery)

I'm not sure the best way to achieve this or if there is a module somewhere that does similar.

My best guess would be to

- using mathematics (sin, cos) to be able to plot the oval (where the text need to be displayed on the ring) on an imaginary graph.

- From here there will be a centre , start and end point. The text will need to be limited as it will eventually following the curve of the ring until it can't be see as it is masked by the angle of the ring

- If using dynamic font then the width of each letter should be possible to obtain with AS.
Then mathematically it should be possible to determine how far away from the centre point on the oval each letter is.

- Following this, dependant on the letters distance from the centre, transformations can be applied to each letter. IE stretch, skew and an emboss filter via the convolution filter.

- Hence this will provide the illusion that the text is following the curve of the ring and the look like it is engraved via the emboss.

View 6 Replies


Similar Posts:


IDE :: Display Dynamic Text When The Instance Name Of The Text Box To Do The Displaying Is Dynamically Stored Within A Variable?

Nov 6, 2009

There's a movieclip, lets call it myMovieClip. Inside this movieclip there is a dynamic text box, lets call this one myText. Now to change the text within this text box that is embedded in a movieclip, it's simply:

[Code]....

However, what if there is a variable, called myVariable that stores the instance name of the text box. With only one text box I know it's pointless, but for the sake of example, lets leave it simple. So, suddenly the code looks like:

[Code]....

View 2 Replies

ActionScript 1/2 :: Dynamically Displaying Text In A Textfield?

Jun 16, 2009

I want to display text in a textfield which dynamically creating. Also this textField is creating inside a movicelip which is created dynamically. I used the following code. Its not working.

var mainMc:MovieClip = _root.createEmptyMovieClip("mainMc",1000);
mainMc.createTextField("my_txt",1,100,100,300,100);  my_txt.text = "This is my first test field object text.";

[code]......

View 2 Replies

Professional :: TLF Text Direction - Not Displaying The Text Icon Cursor And Don't Allow To Insert Text Inside

Aug 28, 2011

When I create a TLF text area that is editable at runtime (which means that it can get a user input at runtime) I set the text direction to the 'right-to-left' definition in both the 'container and flow' and the 'paragraph' sections and set the language for Arabic or Hebrew at the 'locale' setting. I also set the text alignment to the 'align to start' mode. Now at runtime there's a stange thing. When I try to click with the mouse cursor on the editable TLF text-box, it's not displaying the text icon cursor and don't allow me to insert text inside.

But when I move my mouse cursor over the right side of the editable TLF text box, it change his appearance to the familiar text cursor which indicate that if you click here you will be able to insert text input inside. So my problem is how can I make it that only when I will hover over the TLF text box itself, the mouse cursor will be changed to text cursor icon and when I will hover beside its right side, it will remain at the normal cursor mode.

View 1 Replies

Actionscript 3 :: Wrap A Drawing Around A Cylinder?

May 12, 2011

I have drawings (arrays of points with x and y coordinates) that are rotated in 3d space: [URL]

As it is now, the drawing looks as if wrapped around a cube, with a nasty 90° degree in the corner. Instead it should look as if it were wrapped around a cylinder. Before starting the rotation I call a function (in ActionScript) 'bendDrawing' that for each point sets an initial z-value:

for (var j = 0; j < numPoints; j++ ) {
// drawings are centered - points left of center are < 0
var distFromCenter = Math.abs(shape[i].points[j].x);

[Code]....

View 1 Replies

Actionscript 3 :: Unload Dynamically Loaded Swf After Displaying It?

Jul 8, 2011

I am doing a presentation on which I need to use a lot of video clips. I load all these videos dynamically using Loader. [code]...

View 2 Replies

ActionScript 3.0 :: Displaying Radio Buttons Dynamically?

Aug 24, 2009

In my main application I consume a web-service which gives me an array of vendors.There is a add button in the main application, which when clicked a pop-up is opened.I want to display one radio button for each vendor in this pop-up window.This is all I have done so far: 1. In the pop-up I created a radiobutton group (id = vendorGroup).2. vendorGroup has one radio button called Others (this is the default).

In the main app I call pop-up using:
private var addItemDB:addItemForm;
addItemDB = PopUpManager.createPopUp(this,addItemForm,true) as addItemForm;

[code]....

View 0 Replies

Flex :: Mapping Pictures To A Sphere Or Cylinder?

May 14, 2010

i am developing an application where client can add his photos to appear on a sphere or ball or coffee cup and able to save them and give it for printing using flex. like itasveer.com site. i tried to use away3D but if the image is small it is stretched and added to sphere. i dont want it to strech instead the original image shud appear on the sphere. if it is added to cup it shud cover only the circular part it shud not add this to top and bottom.

View 1 Replies

Actionscript 3 :: Combine A Texture On A Cylinder In Papervision3d?

May 27, 2010

I would like to combine bitmaps to one texture and apply it to a cylindric primitive. The cylinder will be rotating or better: the texture should moving along the cylindric-surface and therefor you should see only one (up to 3 textures at the same time). For better understanding: it's my intention to create somehow a poster-pillow with a undefined number of posters on it. By clicking on the pillow, it should rotate to the next poster but you will see always parts of the previous/next poster.

My question is: How can I load the texture dynamically but also how to combine, load/unload posters on the run ?

View 1 Replies

ActionScript 3.0 :: Papervision Cylinder - Two Different Materials For Each Side?

Dec 12, 2008

I want to create a cylinder, but with different sides (front and back). At the minute I have a mc on the stage and link in that as the material, but it repeats that all over the cylinder?

[Code]...

View 4 Replies

ActionScript 3.0 :: Draw Cylinder And Cone Through Flash?

Feb 7, 2011

How to draw cylinder and cone through flash action script.

View 1 Replies

Professional :: Dynamically Displaying Xml Feeds From Content Partners?

Oct 9, 2011

I created a flash application that is dynamically displaying xml feeds from content partners. This flash application has a black background and will be called and displayed from the C# windows application. The issue is sometimes when our application loads the flash swf file, the background color turns white so the text being displayed are not readable anymore since they are white. This intermittent and I am using flash cs 5 actionscript 3. Before I was relying on the stage background but after I saw the issue, I already used a solid background container like (vector, png, gif, or jpeg).

View 4 Replies

Actionscript 3 :: Create 3D Cylinder - Sphere And Cone Using Flash 10?

Dec 6, 2010

I want to create a 3D cylinder, sphere, cone using Actionscript for Flash Player 10. Is there any available class? I also want to know how to paint gradient, wrap text and texture around them. It would be nice if these class have these functions. I can't use non DisplayObject in this project so PV3D is not an option

View 2 Replies

Actionscript :: Dynamically Loaded Images Not Displaying Properly In Flash

Mar 10, 2011

I'm creating a banner advertisement in Flash. It pulls all information from an XML file. Images for each product are also loaded externally. Everything is working fine except for 1 thing.

I have an image separator i'm using as a background for each product container to lend a bit of separation to each product. But when I try to add it using code it's only added to the last item. Doesn't matter if it's 10 items or 2 items...it's only being added to the last one and i'm not sure why. Anyways, i've zipped up the associated files and put it on my webserver. I'm using the Tweener class and have included that in the archive as well.

Here's a link to the archive : Project Files

View 1 Replies

Javascript :: Dynamically Add Wmode=opaque To Already Displaying Embed Elements?

Mar 17, 2012

How to dynamically add wmode="opaque" to already displaying embed elements? Without reloading the elements, the embedded content should not lose its state.

Just setting the wmode attribute with javascript doesn't work.

Removing the element and then adding it again makes wmode take effect, but the flash element loses its state, among other problems. E.g if it's a video player its position/playback status resets. So that solution is no good.

Any other way of displaying content over the embedded element is acceptable as well.

(I'm doing this trough a content script in a Chrome extension if that is of any help.)

This is not a duplicated of How to dynamically add wmode=transparent to Youtube embed code? as there the parameter is added to a frame and not directly to the element it self.

View 2 Replies

ActionScript 2.0 :: Animate Movement Of Cylinder Going Non Stop Up And Down And With Possibility To Change Speed

Apr 8, 2009

I tried with AS2 to animate the movement of a cylinder going non stop up and down and with possibility to change speed. I managed the sliding down and the acceleration of the cylinder but it does not recognize the limit where it has to stop and make the movement backwards to starting position.[code]

View 1 Replies

IDE :: Designed A Cylinder Shape In Flash - The Edges Of Cylinders Are Coming Out And Also They Are Looking Blur?

Sep 10, 2009

I have designed a cylinder shape in flash. The edges of cylinders are coming out and also they are looking blur. But the interesting thing is when I see the cylinder on 300% it is clear and lines are not blurred.

View 3 Replies

Professional :: Dynamic Text Field Not Displaying Text Even When Font Is Embedded?

Jan 16, 2011

So, I have some basic actionscript code.  It's a legacy site, so I'm using AS2.  The line of code simply does this:
 
myField.text = "some text"
 
So, I select the text field on the stage, then ensure the font is embedded.  All the glyphs I want are checked, but then when I compile and test, the fonts don't show up when the code is executed.  Instead, the textfield is blank!  What happened?!  Where did the text go?
 
I should mention that the .swf which I compile is loaded into another parent .swf during runtime.  If that parent .swf does not contain embedded fonts, is that why it's broken? 

View 1 Replies

Actionscript :: Flash Displaying Weird Text In A Dynamic Text Field?

Mar 2, 2011

I am working in Flash CS5 and I have placed a text field (dynamic, classic text) on the stage. I am accessing it through Actionscript on the same frame like this:

var ct:TextField = TextField(getChildByName("Temperature"));
ct.text = "Hello world";

What ACTUALLY appears is this: So... The H, Ls, and D are gone. Mysteriously. Without warning. I am sitting here utterly confused. Is this just me?

PS. The text field is set to Myriad Pro Bold, a font on my computer, so it isn't like it's a font problem.

View 3 Replies

ActionScript 3.0 :: Displaying Variable As Text In Dynamic Text Field?

May 24, 2010

This should be basic enough but I'm having trouble troubleshooting it

var instrument:MovieClip=banjo;
instrument_txt.text="The " + String(instrument)+ " has been selected!";

I wanted this to result in dynamic text field displaying

"The banjo has been selected!" but it results in "The [Object MovieClip] has been selected!".

Is String(var) wrong command to use? The only reason I could think why it's not working is, that the variable has been stated as 'MovieClip' instead of Number or Text. What can be done in the case of MovieClip if this is correct?

P.S I'm wondering if there're rules on asking questions on this board... I've asked two for today already and they would be considered pretty 'basic' ones to professionals / experienced users on this board >_<

View 2 Replies

ActionScript 3.0 :: Text Field Not Displaying Text File Format?

Jul 10, 2009

I'm reading text from a text file and displaying it into a text field. The problem is when i read it doesn't display the text as it is in a text file. For ex - See below imageNow , as you can see, second line in the text file starts right where first line ends.But flash doesn't display it like that. I have hundreds of lines and in most cases flash spaces consumes less space then a text file. The font in both text field in Flash and notpad is to Arial so the font shouldn't be a problem.

View 8 Replies

Flex :: Playbook AIR SDK Images On Surface

Jul 21, 2011

I am trying to write a Playbook app using the AIR SDK, I need a surface of some kind that I can load a large image onto, then subsequently place some smaller images on top of and add the whole lot to a ScrollPane so I can pan it around the screen. I have tried by adding the image to a sprite and displaying that in a group in the application but the image does not show up. What is the correct surface kind I should be using here and how should I be loading the images? (currently using "Embed" and loading the image into a BitmapAsset.)

var scroll:ScrollPane = new ScrollPane();
scroll.setScrollContent(image);
scroll.update();
scroll.graphics.beginBitmapFill(icon.bitmapData);
scroll.graphics.drawRect(100,100,56,56);
scroll.graphics.endFill();
scroll.update();

This code causes a non-moving icon to be drawn behind the scrollContent, I want to add something on top of the scroll content that moves with it.

View 2 Replies

ActionScript 3.0 :: MovieClip Co-ordinates And Surface?

Apr 22, 2010

There is something i do not understand, i'm making a Tetris like game and i want borders (limits) but when put an height and width to my MovieClip nothing appears.

Code:
public class Thugtris_V2 extends MovieClip
{
var ts:ThugtrisShapes;//ShapeManager.GetInstance().CreateShape(ThugtrisShapes.RLSHAPE);[code]....

I have second problem, i check my coordinates of my dropping shapes and my shape disapeared from the screen,fell completely down, and it's last coordinates were : pos = (x=-6, y=371).My bottom is suppose to be at 440? The entire screen does not "measure" 400 pixels? How can u get a negative coordinate,are'nt the coordinates suppose to be like texture coordinates, only positive and (0,0) is at the top left corner?How do u measure the pixels limits of the top DisplayObject? How are the coordinates actually "setuped"? Like cartesian but only the upper part?

View 5 Replies

ActionScript 2.0 :: Actor On Rotating Surface?

Sep 23, 2006

I'm working on a game, and I'm a bit stuck on something that I think I'm really close to solving.

I have an actor, which I can move around on a platform (Top-down view)

The platform rotates, and I want the actor to receive the x- and y acceleration, so that it appears to be on top of the platform, and thus rotate together with it. I don't want the actor to rotate 'inside' the platform, because of some other constraints

View 1 Replies

ActionScript 2.0 :: Any Way To Add Reflective Surface Effect?

Aug 23, 2007

I am working on a firework move look's coolfire works are dynamic. Is there a way I could add a type of reflective surface kind of like water to show he reflection?

View 4 Replies

ActionScript 3.0 :: 3D Charting In Flex Surface?

Mar 28, 2010

Do you have any recommendation for a free 3D charting library in Flex. To be more precise, I only need to draw surface (for now). Basically, I just need a chart that displays three axes (one should be timeline, and two should be linear axises) and the surface.

From what I have seen so far, two most popular free Flesh 3D libraries are Papervision3D and Away3D. Also, I've found one IBM library - ILOG Elixir that looks really nice, but it's proprietary (although, I haven't seen any surface examples for Elixir neither).

From what I have seen, Papervision3D and Away3D should do much more then 3D charting, but I haven't seen any examples on how to draw surfaces in any of them (except this line chart in 3D: [URL]..So, if anyone has a link to a documentation or some examples that would be great. Also, I'm interested to hear your opinion and recommendations on this topic.

View 3 Replies

ActionScript 2.0 :: Displaying Text From XML In Incrementing Text Boxes?

Mar 13, 2006

I want to parse the data from an XML file into an array and then put each of the values in the array into a dynamic text box on the stage. The text boxes are name "number1_txt", "number2_txt" &c.I have managed to set up a loop to parse the XML into my array and also to generate the names of the text boxes dynamically but I can't get the values from the array to display in the text boxes!

function parseXMLNumbers(doc:XML):Void {
temp = new Array();
for (a=0; a<doc.firstChild.childNodes.length; a++) {

[code]......

View 2 Replies

ActionScript 3.0 :: Rotating Enemies Along A Curved Surface?

Apr 14, 2009

This one concept has been bugging me for days now and I can't seem to solve it. You see, I'm trying to rotate my enemies along an uneven surface. So far, they follow along it perfectly, using my hitTestPoint collision checks.But I don't know how to rotate the collision points and thus rotate the movieclip along the curve so it remains clipped to the ground like in Fancy Pants Adventure 2 or a tanks game.Here is what it looks like right now

View 3 Replies

ActionScript 3.0 :: A Drip Effect For Drawing Surface

Sep 2, 2010

I would love to get some help or advice on how to create an effect in a drawing application. I want to build a drawing application, which is not that difficult. I've found several resources on these type of applications. What I want to do is "merge" 2 examples that I've found. This drawing application makes sense to me and I feel I can modify it to my liking. (sorry in advance I cant post links)

[Code]....

View 0 Replies

ActionScript 2.0 :: Mouse Pointer Reflection On Surface

Mar 20, 2004

I'm working on a new site: [URL]. However, I've got some problems with my reflection of the mouse-pointer. The problem is that I don't know how to create the fake 3D effect, because now when you move your mouse over "Identity" the reflection is above the real mouse. I was thinking to put a mask, so the reflection cannot go above the real mouse, but then there is no reflection.

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved