When i change the font size and font color i get the result i want.But when i try to change the font-family, or to make a part of text in italics or bold i fail to get what i want.I also tried this:
<font style="font-style:italic">my text</font>with no success
i am creating a maths quiz...There are 2 input text fields..The instance names of 2 input text fields are inputField and inputField02. There is one dynamic text field to display the result....The instance name of dynamic text field is resultField.
Code: var a: Number; var b: Number;[code]....
however when i press on answer button, the result displayed is NaN.What's wrong with the code?
I need to make a button animate from its normal size to a larger size but in a fluid scaled motion. I'm using a png image I cant seem to get it to scale from small to big when animating, and I have inserted a motion tween.
I want to reduce the size of Swf using the size mentioned in the object tag of html. Same swf file size can be different for different request.
The problem is this if we reduce the size all control in swf reduced according to the change in swf size. But we want the buttons and one more graphics remain same size for any change in size of swf file. How can we make it ..
In one of our project we are using flex for front end, blazeds/java in the backend. Its an existing code where services are prewritten. I have to make calls to 3 services in the backend (basically 3 remote objects) and get their result and store the result in an object and show the data of this object in a view. Now in front end we are using Flex and Parsley Framework. I was thinking of the following approaches.
1) Making commands for each service call and storing the result in a shared object (model) and then displaying this model in the view. In this approach the problem is some services are needed in some other web pages, but they donot need the same model. How should i handle this scenario ? Should i make a asynchronous remote call and fetch the result and then again dispatch and event with the event object storing the result.
2) Making a service call , wait for the result then make another call and wait for the result and then make other call, not sure if this is the right way ?
some buttons which are cloud shaped. When I import them from photoshop as pngs they some with a square tranparent backgroud.This makes the "hand" appear outside the cloud shapes as well as inside them (like it should).
I made a button That says "Save" I then duplicated the button and changed the linkage and properties.
I next changed the Text to say "Discard".
Both "Save" and "Discard" fit inside of my square button.
looking at all the width properties in my properties panel for each item, the text and the button background, they are all set to 95
When I run my project the save button says 96 (which is fine) but the discard button says 111, which is NOT fine. Why do these have different sizes? The largest item in the button is 96 why is the discard button 111 when the size is traced out?
How do I refer to a button in its own handler.I need to change the size of a button on rollover using actionscript code. this._height doesnt seem to work.
I'm creating radio buttons with actionscript. How can I access the circular part of the radio button? I want to change the size because it's too big!
I tried putting the component into the library and then changing the physical size of the up, over, down, disabled, etc. circles, but this did not work. Is there a programatic way to access the circle?
Flash map with a number of flash created vector buttons sitting over it. I wish to keep the button size from changing during a users zooming in/out on the map we have, i.e button remains 5mm wide whatever the zoom. Is the solution to this in coding and what code do I use ?
I'm trying to alter the text size on a button component.I can get in and alter the button graphics properties (color, etc.), I can change the text in the instance properties 'component parameters', and change the text placement, however I don't see where to alter the font size or the font.
I've skinned an hSlider's thumb with an image. But the image is pixelated, as though it's been forced to resize.It's just a pretty circle with a radius of 30 px.The other thing that happens is that instead of the new button being cleanly bisected by the track, it is just below the track, tangential to it. So now I have to reposition it by modifying its y value in SliderThumbSkin.mxml? And (presumably because its registration point is at upper left) when I slide it all the way to the right, it goes right off the end of the track until its left edge is at the track's right edge. This might also mess up calculations for the hSlider.value property.
You'd think you could just apply the skin and it would replace the button, but seems that both its position and size are being wrongly manipulated.Is the thumb's size automatically reset or resized somewhere? Is there a way to do this correctly and cleanly?
This is my first time skinning a scrollbar and I ran into a issue. The button I click and hold to scroll up and down changes in size depending on how much content there is. Is there a way to keep the button from changing in size?
More Details:
For example if my scrollbar button was a smiley face and I didn't want it to stretch. I am changing my scrollbars globally by creating an instance of my custom scrollbar and applying it via the style manager in my code.
I've had a good look around but couldn't find anything that directly solves my problem.There are several posts which are along the right lines, but I can't get my head around it in order to fix the issue.I need to automatically resize the text so that it doesn't exceed the width of the button. The maximum length for my sized text appears to be 13 characters before it will become too large.The program starts by dynamically creating several buttons, filling them with the title and description as set in an XML document.
To add the text I have this code: var tform:TextFormat = new TextFormat(); tform.size = 20;
Is there anyway to do this? By default it automatically re-sizes according the the content in the target dynamic text field. I'd like to have it's size fixed, but I don't see any obvious way to do that in the documentation.
I'm looking for code which will use my buttons instance name and when the button is clicked a new window will open up a new web page at the exact size referred to in the code. I tried playing around with this code but it comes up with errors.
test_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1); function mouseDownHandler1(event:MouseEvent):void { navigateToURL("hhtp://www.website.com/onlinesurvey.html","_self"; var jscommand:String = "window.open('http://www.website.com
i would just like to now how you could expand an image when the mouse moves over it. I'm trying to copy this effect:[URL] as you can see, not only does the image increase in size, but it also shrinks the other buttons around it when the mouse goes over it.
I wanted that, when I place the mouse on the button, a movieclip appears, but in a random place in the screen, with a random size and a random color and plays until all its animation is complete, and then disappear.How can I do that? I don't know even where to start!
I've got a bunch of text boxes that I need to be able to change the text size of with the click of a button. All the text needs to be embedded so I tried to use a tlf text field and target it but to no avail. This is what i have.
ActionScript Code: import flash.events.MouseEvent; fifteen_btn.addEventListener(MouseEvent.CLICK, changeSize); function changeSize(evt:MouseEvent):void {
I have a line of 12 horizontal placed buttons. I want whatever button is rolled over to get larger (no problem), but I need the other buttons to slide over to allow for the new size that the larger one would bring. I have no idea what type of code I should be looking for here.
i have a tabbar with 10 button. when i change the some buttons visible and includeInLayout property false then tabbar size is not change..it is same as when it has 10 button