Actionscript :: Applying DropShadowFilter To Text Within Mx.controls?
Nov 22, 2011Is there a way to apply, say, a DropShadowFilter to the text within a TextInput component in Flex 3 without affecting the component itself?
View 1 RepliesIs there a way to apply, say, a DropShadowFilter to the text within a TextInput component in Flex 3 without affecting the component itself?
View 1 RepliesI'm running into an issue where, if the dynamic text field I create wraps and autoSizes to 2 lines or more, the last disappears (sometimes partially). However, this only happens when I apply a DropShadowFilter to it. If I don't apply the drop shadow filter, it renders correctly. Note that whether or not the text renders correctly, flash seems to know that the text has wrapped and autosized, as this is how i assign the Y position of the second text field below it. See code below:
[Code,,,]
When applying text formatting to a comboBox, the text formatting appears perfectly on the dropdown menu items but the textField text disappears.Removing the text formatting from the textField makes the textField text reappear but of course there is no text formatting.
Is there a trick to this.
I'm importing XML text and sticking it in a text field. The text has some <span> tags with classes. Also importing a CSS file (verifying that it is importing correctly - at least when I trace it it says [object StyleSheet] - can I trace styles within a stylesheet? Or do an "exploded" trace that shows me everything in the stylesheet?)
Here's the key data:
AS (note default formatting, content, etc is working perfectly)
Code:
textBody = new TextField();
textBody.embedFonts = true;
textBody.wordWrap = true;
[Code].....
So theoretically I should have a few big words and a few small words among my otherwise mid-sized text, but the styles are having no effect.
Is there a way to verify that there are actually style in the stylesheet object (though why there wouldn't be I don't know....
I scripted a DropShadowFilter to render on my Movie Clip. The MC just consists of static text and its using the Tween class to move on the screen. Can't figure out why its not showing up. I'm using the same method on another movie clip that is just images, and works fine. Not generating any errors either.
Code:
import flash.filters.*;
var tds:DropShadowFilter = new DropShadowFilter(3,90,0x000000,40,3,3,1,3,false,false,false);
[code]....
I am working on a rollover mapping like page for an instructional demo. Basically, the user rollovers clickable areas and a dynamic text box popups explaining what the link's utility is.
I have all the text dynamically set, there are styles for the text box (ie borders and padding) and then a drop shadow filter applied. However, upon viewing the SWF file the drop shadow does not seem to work consistently. OnRollOut it doesn't always do so and upon OnRollOver a different hotspot the dropshadow will duplicate. The duplicating of the dropshadow will either continue to do so or the OnRollOut will remove the dropshadow and reset the text box as it should.
[Code]...
I am interested in applying text to each side of the cube.I feel like anything is possible with AS3.I have tried attaching the text at various points in the code to see what happens.I am at a point where I think maybe I need to write a separate threeD var for the text and attach that to each of the cubes sides.I am attaching the code in it's current state, which simply has text var "Can You See" placed in the middle with the cube rotating around it.he code is a bit long with comments to sort things out:
import flash.display.*;import flash.text.*;
var t:TextField = new TextField();t.x = 400;t.y = 350;t.text = "Can You See";t.autoSize = TextFieldAutoSize.LEFT;var format:TextFormat = new TextFormat();format.font
[code]....
I'm trying to work out why my actionscript isn't styling the text i've brought into an RSS reader TextField.[code]...
View 0 RepliesFirst an issue applying antialiasing to my text, it seems to not be used if the text color is anything but white. The second also regards the cell renderer. I've noticed a difference in the sharpness/brightness of text color (excluding the smoothed character edges) when enabling font embedding, do the rendering tecniques include a sort of blending with the background to less enthe text's visual impact?
View 0 RepliesI'm making an interface with quite a few dynamically generated instances of the Button component. I'm trying to animate the buttons' alpha. The graphical elements in the buttons change alpha as expected, but the text label does not. I thought this issue would be fixed simply by using setStyle() to specify an embedded font, but even with an embedded font I cannot alter the alpha.
View 1 RepliesI have a dropfilter defined using some bindable variables as parameters.
<mx:filters>
<mx:DropShadowFilter id="torinofilter" distance="0" color="{dropShadowColor}"
blurX="{dropBlur}" blurY="{dropBlur}" strength="8" quality="2"
[code].....
I'm working with a Sprite that has multiple children. I want to apply a DropShadow filter to the main sprite, but not it's children. Is there a way to exclude filter effects from children?[code]...
View 2 RepliesI am wondering how to apply perspective to a dynamic/static text field in CS3? I have tried a few ways, but I can't get farther than skewing. This is the pane on which I would like to place the text. Could someone tell me if there is a way to get the same perspective?
View 3 RepliesIn a mc is a dynamic textfield, trough as this textfield gets his content. The textfield works fine and also the html text displays/works as supposed. No problem at all. But now I put a rollOver/Out on this mc with the textfield, the text shows up allright, but the html doesnt work anymore (I mean the hyperlinks, the rest is okay)
Code:
textmc.textarea.html = true;
textmc.textarea.htmlText = "<a href='[URL]'>link here</a>"
textmc.onRollOver = function() {
trace("hover on textfield");
};
textmc.onRollOut = function() {
trace("going off textfield");
};
So the problem is the rollOn/Out, if I comment out those functions everything is okay...
I'm just starting to delve into AS, so this should be easy. I'm applying a simple alpha fade to the onEnterFrame event of a movie clip using AS, and inside that movie clip there is a dynamic text box that gets its content from an XML file. The fade works fine on everything except the text - the whole movie clip fades in, but the text just instantly "jumps into existence".
View 1 RepliesI'm very close to finishing the creation of a Flash Event Calendar app but I am having trouble with something I feel should be very easy. I'm adding text to a textbox dynamically based on how many events are on the selected day.
For some reason though the styles are only being applied to the last set of text being added. for example, if there are three events on a certain day, i will list the three events but only the 3rd event will have the styling. If there's 2 events that day, the 2nd event will have styling, if there's 10 events, the 10th event will have the styling. Why are they not all being styled and only the last one?
I'm trying to format some dynamically loaded text with CSS from a database via asp, I know that the asp works fine as it loads in, its just applying a style to the loaded text that doesn't work. This is a modified version from the Kirupa tutorial, but I cannot get it to work after many, many hours.
[Code]...
If you have a CSS ready, an XML file that already appears inside a dynamic text field, what AS2 code would you use to connect the CSS so it applies to the XML file which is now unstyled?
View 1 RepliesHow can I make a rollover, where when you mouse over, a scripted drop shadow appears using the DropShadowFilter?
View 10 Repliesi have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.
View 1 RepliesWhen i put a dropshadowfilter on a dynamic textfield with html-content, the links (a href) stop working.The textfields rotate in flash 3D space so they have a transformmatrix applied to them. Could this be the reason? Anybody had problems with html-links and dropshadowfilter applied to the textfield? it makes no difference if you put the filter on the textfield itself or the movieclip container around it.
View 2 RepliesI don't want to use the flv controller skin to play/pause my flv movies. I would rather use text buttons ("play" and "pause") instead.
View 1 RepliesThis is a really easy one that I thought would be easily found on google but I can't think of the terminology. I'm using CS4 and AS3 with a few multi-line dynamic text boxes beneath one another. When I populate the top text box I would like it to automatically push down the other text boxes beneath it when the content flows on to extra lines.
At the moment it only wraps to the gap that is between each text box but then stops when reaching the text box beneath. Is there a property to allow for this (I've worked in Silverlight and there was on controls there) that I can just set or will I have to manually implement this and call functionality to re-set all the controls y properties each time I change the text in the text box?
I keep getting this error and I'm not sure why.
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@3a062121 to fl.controls.TextArea.
at SrHome_fla::MainTimeline/frame3()
at flash.display::MovieClip/gotoAndPlay()
at SrHome_fla::intro_mc_3/frame139()
Here is the code that I am using that produces that error.
import fl.controls.*;
var info_txt:TextArea = photoArea_mc.photoSquare_mc.info_txt;
var image:XML = new XML(<image/>);
image.@fileName = "pic1.jpg";
[code]....
my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?
View 1 RepliesI couldn't find anything to directly answer my question online, so I thought I'd post here.
I have a CSS file, and an XML file. Both are loading fine, but the flash isn't applying the CSS to the XML nodes I assign.
ActionScript:
Code:
district1_BTN.onRelease = function() {
descText.text = Quotations.firstChild.childNodes[0].childNodes[0].firstChild;
for(i=0; i<Quotations.firstChild.childNodes[0].childNodes[1].childNodes.length; i++)
[Code]......
on a project in Flash CS4 for Windows. I have an object on a layer that moves separately at different times of the animation (all one large motion tween). I'm attempting to apply an ease to just one leg of that motion, but instead, when I choose an ease setting in the motion editor, the ease is applied to the entire tween (so it affects the stationary frames too!). Is there a way to apply an ease to a single span of motion instead of the entire motion tween?Alternatively (if it's not possible), is there an easy workflow for breaking-up a motion tween in to separate motion tweens while maintaining the position of the object in between the motion tweens? (I don't want to use the frame-by-frame animation conversion option I've seen.)
View 1 RepliesApplying CSS to XML data?Here is my relevant code:
CSS:
@charset "utf-8";
/* CSS Document */
p {
font-family:Arial;
[code]....
Using AS3 I am dynamically creating, sizing, positioning and formatting a textfield. I am dynamically setting the content of the textfield from the contents of an xml file. I am trying to use the bold tag and noticed that it is not working. After a bit of searching the best I could come up with is "Flash CS4 tag in with htmlText". Bottom line: I have to embed an emboldened fontface.
As an example, let's say I want to use Tahoma. In my .fla file (using Flash CS4) I embed Tahoma and export it for use in actionscript. This lets me use Tahoma as a font in my textfield. If I try to use the b tag (textfield.htmlText="not bold, <b>bold</b>";) the bold text does not get emboldened. Based on the above question I have now embedded the Bold version of Tahoma as well.
How do I link the bold version of Tahoma with the regular version of Tahoma so that when using the bold tag I get bold text in my textfield?
I am using action script 3 and need to know how to apply more than 1 action to a frame label, ie; I have 5 pages of images and have actions coded as follows:
btn1.addEventListener(MouseEvent.CLICK,play1);
function play1(event:MouseEvent):void{
gotoAndStop("1Lrg");
[Code]....
code continues like this for all the buttons (84 thumbnail images), so they will open a larger image when clicked. So what I now need to do is connect the side navigation buttons to go to the relevant page (frame) when clicked...the problem I'm having is that it is causing duplications in the code ie; I now have, for instance thumbnail (btn4) calling frame 4, but I also need a side navigation button to call this frame.