IDE :: Make Flash Not Bother The Line Thickness When Changing Scale Or Some Sort Of Alternative?
Apr 11, 2012
I'm having an issue when it comes to line thickness on movie clips, when a movieclip is flipped the line thickness vanishes due to Flash thinking I'm squishing the MovieClip. Is there any way I can make Flash not bother the line thickness when changing scale or some sort of alternative? Or is my only choice to kill line thickness altogether.
I am working on a interactivity wherien i draw lines using a pen/pencil just as in MsPaint application in Microsoft. Ia m done with the pencil/ pen tool and its working fine but I basically want to change the thickness of the line at runtime by using a slider functionality.
trying to make a slider that changes the line thickness in a drawing app that I would to share with my students. When moved from left to right a circle changes scale. This circle would act as a visual reference on the stage telling the viewer that the line thickness is changing. Right now I just want to figure out how to connect the slider so that the circle changes dynamically. Once I get that I feel I can figure out how to connect it to lineStyle(). The current code I am attaching has the circle change size at onle two points-the far left and far right. I keep trying to write something that uses mouseX properties but so far nothing is working.
Its an mx:Text object. (The Text object is actually being used as a mask so don't know if that's the problem.) If underline is set with the <u> tag in Text.htmlText, or Text.textField.setTextFormat, the underline thickness is always just one pixel which is not acceptable. (There are other problems with <u> so I'm limited to using setTextFormat currently.)
Can the thickness of an underline be set through CSS? (textField.styleSheet, etc.)
I may have another problem as I already use setTextFormat extensively, and the documentation says you can't use textField.setTextFormat if you use textField.setStyleSheet.
I primarily need the underline to simulate correctly the look for an anchor tag.
Whenever i try to draw anthing (oval, box, pencil, brush) it just comes out as a thin green line. Ive tried the obvious by changing the thickness, style and colour for each of the tools but nothing seems to work.
I have some movieclips with a graph (not generated, manually drawn). I want to change the thickness of the line inside the movie clip. How do I do that?
When I move the mouse over the line the graph must highligt (become thicker). I can do this with the line as a button, mouse-over graphics. But I also need to highligt the graph when the mouse is over some text (to link the graph with the text). If I have 2 - or several - buttons can I have them all show the mouse-over image at the same time, if the mouse is over just one of them?
Another ideer: I have made an actionscript the fades (using alpha 0 and 100) for 2 similar movieclips each with different thickness positioned over each other. But the initial value for both lines is a problem, only the thin line must be shown, the thick line must be alpha=0. If I set it at the start of the actionscript then it resets every time the flash starts over. Is there some way to set the inital value (alpha=0) just once? When the flash playes first time?
I made a small box that is filled with navy blue and has a red line around it, but when I increase the thickness to say 50, it reduces the size of my navy blue box.
PHP Code: public class Box extends MovieClip { public var color:uint = 0x000099; // class property of navy blue public function Box() :void { initialize(); construct(); this.graphics.lineStyle(50, 0xFF0000); this.graphics.beginFill(color); this.graphics.drawRect(0, 0, 100, 100); this.graphics.endFill(); }
how can i control my line thickness with the speed of the cursor?Right now ive got this code, but how can i convert (speed) into something that can be translated into thickness?
ActionScript Code: var prevPt:Point=new Point(mouseX,mouseY); addEventListener(Event.ENTER_FRAME,mouseSpeed); function mouseSpeed(e:Event){
Right now I create a paint program, which will consist of _xmouse, _ymouse, different colors to draw lines, different sizes. But I have a problem: _root.line.lineStyle(size,0x00ff99,100); The size is the thickness of the pen. But it don't seems to work inside of that script.
When using a simple line shape graphic (that was created in Flash) to supply Deco Tool > Symmetry Brush > Rotate Around, the line looses it's thickness along the rotation. See attached image. I'm following chapter 2 in Flash CS4 Classroom In A Book, and the visuals from the book do not match what is happening on my computer.
I'm having a weird situation that only seems to occur in IE. This may or may not be related to my other post ("Need to worry about thread-safety?"), but I'm not sure, so I'm putting this in a separate thread.I have a setup in my my flash app to load an arbitrary number of different sounds, but with an limit on the number of sounds being loaded simultaneously. It works like this (psuedocode):
EDIT: In other words, it starts loading up to the first, say, 5 sounds, and then after each one finishes loading, it starts loading the next sound in the queue.It works fine on everything except IE. And it will work on IE as long as the files aren't cached. But if they are cached, then in IE (and only in IE) the flash app will hang and produce a trace like this:
a b start callback start callback
[code]....
And after roughy 50 of those "start callback"s the flash app hangs and it never gets to any "end callback" or "c".It seems that loadSound is deciding to call onLoad synchronously, instead of asynchronously as would normally be expected. But this never seems to happen in anything but IE, even when the given browser has it all cached. So apparently it's either calling onLoad the wrong way in IE, or flash events like onLoad are susceptible to race conditions and need to be written accordingly.
I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._yscale".. However it's no longer supported by AS5.
I am using Flex 4 and AS3 and I am trying to make it so that the user can draw a freehand line with the cursor - I have this part done.However, I also need the line to be a dashed line instead of one solid line like it is now. below is my code I am using. I have found some examples on how to do this, but they are all for straight lines, not for a freehand line.
Basically I have created a custom sort function to use with sort(); inside an Array object and I have traced the amount of times each sort() has called customSortFunction. Apparently it keeps changing the amount of times it is called which has seemed to cause problems for me.I am using this to sort Sprite obects on the stage. I am working with an isometric grid and need to make sure everything is sorted based on y and if two objects are on the same tile (tile hover and avatar etc) then it sorts them as well.
However it seems that when I have some objects in a certain position, the customSortFunction isn't called to sort every single item. The case I am facing just now is it sorts every item, but leaves 2 unsorted. I have traced and debugged and it is definitely not calling customSortFunction enough times.
Im making a file data center sort of thing in flash. What's meant to happen is: You click an button on the side of the list and on the display area beside it it shows the text info on that item and the button that you click to display that item! really simple but i dont know how to do it Instance names: what ever you want Actionscript dyscription:
1. Click button 2. [instance name: "display" MOVIECLIP] displays the frame("display2") 3. Click other button in list and goto and stop ("display3")
I am looking for a way to create a sliding scale, not unlike a horizontal scrollbar that changes the background colour of a page as it moves left or right. Whats the best graphics software for this?
Under the stroke properties before or after I draw a line, I set it to NORMAL but when I re-select the line, it keeps changing it back to NONE. Some how it is now the default and I cannot change it I have tried opening new documents from scratch but I still cannot get it back to scale normally. All the lines are inside movie clips and these movie clips need to scale properly. I cannot seem to find any other answers besides telling me what I have already tried.If I change the line type from solid to dotted, it then scales (actually you cannot change the scale mode.
Let's say I have a movieclip, which contains a simple circle draw on it. What I need is to scale the movie clip along a random line (not vertical or horizontal only). The picture attached probably illustrates what I mean. The only idea I can have is to combine usual scaling and rotating.
I'm developing a Zoom tool in my Flex App, so I'm using scaleX and scaleY property to simulate this behaviour.But when I scale my Canvas, its size change as well (obviously). The problem is that I have this Canvas inside another Canvas, so the first Canvas can't be smaller than the second one.Here is an image before and after apply zoom changing scale property in both axis:At the left, the original Canvas. At the right, Canvas after update its scale (red rectangle is the original size at 1:1, and green is after resize).I need to extend the Canvas to take up the red rectangle (not the green).
Is there any possibility to combine those two handlers. I want a movieclip changing its scale when a button is pressed. The change I would write as this: onClipEvent(enterFrame) { if (_scale<200) { _scale+=10; }}
But I can't write on (release) { onClipEvent(enterFrame) { ... Is there a way to realize it?
I have developed a flash app in AS3 that allows you to drag objects around on stage, save,and load them. When the "save" button is pressed, it then loops through each item on the stage and gets the coordinates (x and y) for the bottom left corner and the top right corner. Code:
Code: ActionScript Code: var bottomLeft:Point = new Point(-50, -50);
I am using Flash Builder 4.5 to build an iPhone app.In order to display ads I plan to use StageWebView and load a webpage containing the ad code.Lets say the ad will be 320x50 pixels.So the Actionscript code would look similar to this:
adView = new StageWebView(); adView.loadURL("http://www.myadishere.com/ad.html"); var top:Number = navigator.actionBar.measuredHeight + 1[code]....
In the application I have set the applicationDPI="160" so the application is displayed properly when run on iPhone3 and iPhone4.However the content of the StageWebView looks tiny on iPhone4.If I do adView.drawViewPortToBitmapData() the bitmap's size is OK.how to make the StageWebView content to scale accordingly, so it looks OK regardless of the screen DPI?
The sprite which contains all element in my game world uses the real-world meter as distance unit, it doesn't know what pixels are. I then apply a scale to this sprite to make it appear correct on screen. Currently I use 1 meter = 100 pixels, so scale = 100.
If I try to draw a line inside this sprite it appears lineStyle(thinkness) rounds the thickness parameter. If I specify 0.5 (50 cm) it always gets drawn with 1 pixel (1 cm). If I specify 0.6, the line becomes 100 pixels, or 1 meter, thick. So basically I can only draw lines of 1, 100, 200 etc pixels thinkness.
Anything I can do about this? Otherwise I'll have to use a smaller unit like millimeters for my world.
My website is going to have a main wrapper that is set to a max-width property for compatible browsers. It will stretch to 940px across at max. When scaled down I would like the swf to scale proportionately with it. Like an image with width percent applied. The flash movie has the dimensions of 940 × 360 pixels.
I can't seem to figure out the correct attributes to add to the embed tag to get it to do this.I am currently using jquery flash embed, but am open to other options, though this is my ideal.In the example I have set the flash background to black.
When resize the browser window the flash movie doesn't scale proportionately to the div, only the photo does, leaving a blank canvas (black), while the div height stays the same. I can't add a height value in the CSS.How do I make this scale correctly? Adding a noscale param only crops the image. The swf's height doesn't scale also.
Okay so I need to make a basic activity (working Flash/as3) that simulates very basic weighing scales. All the objects that go on to the scales are the same weight.
If you imagine the classic weighing scales [URL]..we are dragging/dropping stuff on to the sides and animating accordingly.
I don't want anything fancy, just the maths required to affect the scales according to how many objects are on each side.
What I'm looking for is probably the angle of rotation of the horizontal arm. Any pointers?
I need help with page "Thumbs" (as first frame), page "List" (as second frame) and Image gallery (as third and base). So, every frame have one own XML file...When you choose some thumb or list line, you must came to this image in the gallery. Easy, sure.. but i don't know what Function exactly i need to use.It's one flash move, hence it doesn't work with getURL or loadMovie...Some exemple with 3 separate pages here: yuri.fr
I want to be able to change lines thickness/color for sprites/movieclips created in Flash CS in ActionScript code. Is it possible to achieve this kind of functionality?
How i would go about making a sort of increasing transparency layer..
say i have a movieclip which is scrolling back and forth horizontally ..
as it reaches its extremes ( were i want it to start being hidden) i do not want it to be completly hidden right away .. but i want it to look more and more hidden the further into the extreme it goes , so it looks as if its fading when it scrolls to the side.