ActionScript :: Text In Window Is Clipping
Sep 8, 2009The last 2 characters or so are partially obstructed by parentheses.
For example, when I type: "stop()" it looks like "sto()".
The last 2 characters or so are partially obstructed by parentheses.
For example, when I type: "stop()" it looks like "sto()".
I noticed that for some reason whenever I use the 3d rotation tool on an object inside of a clipping mask that the object releases the clipping mask. Are 3d objects not supported within clipping masks? Is there a way around that?
View 6 RepliesI have a simple flash video player that streams the video from a streaming media server. The stream plays fine and I have no problems with playing the video and doing simple functions. However, my problem is that on a mouse over of the video, I have the controls come up and when I do a seek or scrub on the video, I get little weird boxes that show over the video - like little pockets - of the video playing super fast (you can basically see it seeking) until it gets to the point it needs to be at and then these little boxes disappear.
View 2 RepliesHow is cropping/clipping accomplished on a Sprite in Flex?
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="Init()">
<mx:Script>
<![CDATA[
[code]....
Notice that the lineTo completely leaves the UIComponent and Panel.How can I cause my UIComponent or Sprite, Or Panel for that matter, to be cropped/clipped? I realize I could just change the hard-coded 2222's to something more reasonable, but I need a generalized solution to this, since the actual project doesn't involve hard-coded values that I can alter, but works with dynamic data.
I have a container with a vertical layout inside which I have two other child containers "A" and "B". n the first container "A" there is a component that I would like to resize dynamically based on the available display size. To to that I tried listening to the resize event of the main container and do my measures accordingly. That works somewhat until the parent container reaches a clipping size : container "B" gets clipped earlier than "A" because it contains much more stuffs : As soon as the parent container reaches "B"'s clipping size, it does not resize anymore (so no more resize event either) thus preventing me from updating my component's display in "A".
View 1 RepliesI am trying to figure out bitmapdata and was attempting to draw 2 ellipses as sprites,capture the bitmapdata and then spit them out with draw(). The problem is, there is some nasty clipping and I don't know how to get rid of it. I have tried using rect and messing with the draw parameters but nothing seems to work.
Code:
public class fhParticle extends MovieClip
{
[code]....
I want to create a MovieClip symbol of a certain width and height, but with content that extends outside its boundaries, with the option to have the external content be clipped/hidden or visible.
In Flex, the solution would be to create a group with .clipAndEnableScrolling = true.
Is there a way to do this in Flash CS5, or will the symbol always resolve to the size of its contents?
I've been playing with the dynamic audio library standingwave 3. Almost the first thing one notices is that if one tries out the code samples in the developer's guide, namely this code:
[code]...
then one gets a really unpleasant sound and trace messages that read "AUDIO CLIPPING". The developer explains in one of the issue reports on github that you need to reduce the gain of samples when you mix them together to avoid this, and that there's no easy way to know dynamically how much reduction is needed.My question is, how is it that stangingwave2 seems to have dealt with this automatically? For instance, the code quoted above did not clip in SW2. Likewise consider this SW2 example demo - if you increase the sustain and hold (the S/H sliders) and press one of the sequence buttons, multiple tones will overlap without clipping, even though the source doesn't show any apparent sign of changing the gain or the volume of the sin tones, they just get mixed together.What's going on here - did SW2 have some way of dealing with this automagically, or is there some robust way of generally overlaying arbitrary numbers of sounds dynamically without causing clipping?
when I move the camera around my scene the rendering at certain points is odd. Triangles become missing and it seems as though its just not working correctly. When you move the camera beside the cube, triangles along the side of the cube go missing. Is there a way I can turn the clipping off? Should I use more triangles? Is it a material/render engine/viewport problem?
[Code]...
I have a Plane and I try tweening a MovieClipSprite on it. I run into trouble when I try to tween near the points where both segment triangles meet (I have kept both segments as 1), While moving near these points the Sprite disappears. I can tell it goes beneath the Plane because when it reappears it does so gradually and I can see it's lower half appearing as it moves away from these points. Increasing the segments obviously deteriorates the performance further as this begins to happen at other points as well. I am pasting some relevant code var planeMaterial:BitmapMaterial = new BitmapMaterial(texture.bitmapData, {smooth: true, precision: 4});
[Code]....
I have been trying to import clipping paths into Flash, but the images look fine, except for the white outline around the imported clipping paths. what I could do to remove this. The clipping path looks fine when I drop it on the same color background in Illustrator. I'm using CS2 and Flash 8.
View 1 Repliesvar snapshot:ImageSnapshot = ImageSnapshot.captureImage(someSprite);
var file:FileReference = new FileReference();
file.save(snapshot.data,'abc.png');
n the above code I am able to capture an image.But I also want to apply a scalingMatrix(for zoomIn/Out) and a clipping rectangle to it. How to do it? I tried capturebitmapdata too, but with that I can't even get a proper image. See here. So I don't want to use that.
I wrote a collision detection class that works off using BitmapData.hitTest. Basically, every update, the .draw method is called and then two BitmapData's are hitTest'ed against each other to see if there is a collision.It works pretty well, however if I start rotating the source MovieClip I use for the BitmapData, the transformations don't get registered in the draw method. So what I did was pass through a Matrix in the draw method. That works. But here's the actual issue. If I output the BitmapData to a Bitmap on the stage, I see that Bitmap is, in fact, rotating, but now it's exceeding the bounds (width and height) of the BitmapData. Which is cropping / clipping the image of the source MovieClip.
UPDATE: Basically, when the Bitmap clone of the MovieClip rotates outside the positive co-ordinate space, it doesn't get drawn. It rotates outside the bounds of the BitmapData set width and height. I can multiply the bounds by 2, and then center the bitmap inside the set bounds, but then the origin point is never fixed and the object is always being moved around. Works pretty well, but makes aligning the object to any specific point impossible.Here's my isolated test code. It requires you to have a MovieClip on the stage named "iTest". I used a fairly vertical arrow shape (higher than it is wide) so I could keep track of rotations visually accentuate the clipping problem:
var rotateTimer:Timer = new Timer(10);
function rotateObject_init():void
{
[code].....
I have the following code which shows the Flash Player Information in OUTPUT WINDOW. How can I view the same on FlashInfo (Dynamic Text Box) Texbox on stage?
Code:
import flash.system.Capabilities;
var flashPlayerMajorVersion:int;
trace("Getting Flash Player version ...");
[code].....
I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
View 5 RepliesI am kind of new to flash and used a template to build a flash website. One of my pages has links on it that when you click them open a pop-up text box. I've looked at the actions of the link to try to figure out how to add an image but can't seem to figure it out. The actions of the link also reference a text file. The [URL] and it's the second page with the contacts (peoples names). Below is the actions from one of the links:
[Code]...
The problem that I am having is that stopping sounds using a basic "mySound.stop()" command, or using "setVolume" to fade it out instead - causes clipping. I understand that, technically, it is not "clipping" (this is part of the reason why I can't find any forum threads about this). What is happening really is that the sound card is interpreting going from an average dB level to zero makes a square wave, and thus the popping sound. For example, imagine that each dot is a sample in a WAV, and as you can see the straight vertical line occurs when the sound is stopped:BUT, what I am confused about is that this does NOT ALWAYS happen. I find it hard to believe that I am just getting lucky and hitting the stop button exactly at a moment when the wave is at zero (or really close).
View 0 RepliesI have a dynamic text box with html enabled on it. There are hyperlinks in the text that I want the user to be able to click and have that link open in a new window. This is causing pop up blockers to go crazy though, and when the user allows popups it refreshes the window, losing their current location in the flash file.
I have been able to open a new window with some javascript and a geturl(), but this only seems to work with buttons. My textual hyperlinks are not buttons though. I have tried using asfunction in my href and then using geturl inside the function, which doesn't seem to work either. Open a new window without triggering popup blockers from an html enabled dynamic text link.
I am trying to save the text in the chat window from sky poker. A standard select all and copy then paste will only extract the text visible at the time. It is not possible to scroll and select all the text.It is possible to view all the chat box text that has taken place while you have the window open.I guess that what is happening is you are simply viewing what exists on the chat log of the server via the poker window.What I would like to do is either:
i) get the chat text (I expect this is only possible if it is saved on my pc)
ii) harvest the text as it happens.
I am opening a pop up windows with javascript from my Flash movie that works fine. Each opening window has a video in it. Now what I'd like to do is add text under/above the quick time movie inside the pop up windows. I'm not very savvy with programming and I've tried to look all over but can't find a simple direct answer, Here's the code I have inside the Flash movie:
[Code]....
I have tried a few ways but have failed to get text into a dynamic text field inside the window component. I need to get the following trace command to appear in the window component. I have a workable window component and that is not the issue. I just lack the knowledge of how to link dynamic text in a window that doesn't respond to absolute instance ID scope such as _root.yadayada.[code]
View 0 RepliesOk i have a dragable window that i want text to be loaded into from a .txt. I used loadvariable and when i click my button and the window pops up no text. the close button on the window works, and i can drag it but no text. i tried pulling the text window and all its code out of the Window symbol but then the text didnt follow the window.
View 1 RepliesI made an AIR app and enabled it so the user can move it around the desktop where they want. One problem is on a page of textfields, if the user tries to select text (click, drag cursor to select the text) the app drags instead.
Any easy solutions other than having to set up listeners for every textfield and "interrupting" dragging?? (AIR 2.7)
I am tying to make a number appear in a dynamic text window. I have a dynamic textfield on the stage with an instance name called count_txt. The code that I am using is shown below. Both tace statements show a value of 100 but nothing appears in the dynamic text window.
var count_txt:Number;
var n:Number;
n = 100;
[Code].....
1. How can I make msgA[3] text #C0C0C0? 2. How can I make mgsA[3] open in a new window?
var format1:TextFormat = new TextFormat();
format1.bold = true;
format1.color = 0x666666;
format1.size = 15;
[Code]...
I have attempted to have a hyperlink text using actionscript:
[Code]...
when I run the code it always creates a new window to open up the file in. I have even attempted to switch out _self with _top, _parent, and _blank, always with the same result. I simply want the file to open up in the same window.
I have a FLA file that when I open it and I rollover any title in a palette window all the text in that and every window disappears. For instance the title "Timeline" will vanish. And most of the text in the palette vanishes, for instance all the text in the properties panel disappears like "Position and Size". This does not occur with any of my many other FLA files. I have had some issues with fonts lately. After deleting some bad fonts, my FLA ask me to remap some fonts, which I do. Everything in the FLA appears to be working fine.
View 2 RepliesI am trying to increment a counter by one digit if a window (called searchItem_txt) contains text for more than five seconds. The code below activates the counter after five seconds but it keeps on incrementing until the count has reached 63.
[Code]...
Despite adding: source="myScript.as" (that basically feeds the main.mxml file)
to my TitleWindow component MXML file (which I instantiate from the main.mxml file) the variables defined in myScript.as appear to be null hence I can't populate my text fields in the title window, even though those variables work fine in the main.mxml.
Well, I'm making a program that has to write random names to the screen.I'm loading the names from an external .txt-file called nameDataFile.txt[code]...
View 1 Replies