as3 text formatting, Underline spacing?
So if I want to imitate a link in as3, when I set myFormat.underline = true; the underline is directly underneath my text. Is there any way I can set the spacing of that underland? Thanks. ...
So if I want to imitate a link in as3, when I set myFormat.underline = true; the underline is directly underneath my text. Is there any way I can set the spacing of that underland? Thanks. ...
Hi I want to find some HTML codes for 3d games would you send me some links for it? i have searched a lot but they were not good! thanks ...
Hey All, I'm not quite sure how to describe the problem I'm having but I'll do my best. I have an image gallery built in AS3 that loads content via an XML file. Nothing mind blowing here... When testing locally on a static XML file, the gallery works as intended. The purpose of this gallery is to function within a CMS and load dynamica...
Ok I know this practically sounds elementary, but I don't understand what I'm not doing correct here. I draw a simple rounded Rect backing1.graphics.beginFill(bgColor); backing1.graphics.lineStyle(borderSize, borderColor1); backing1.graphics.drawRoundRect(position1, position1, sizeW-1, sizeH-1, cornerRadius1); backing1.graphics.endFill...
I want my data grid to behave by default as if the user is holding the control key down. So when an item is clicked, then another item they are both part of the selection, clicking them again removes them from the selection. I already have allowMultipleSelection = true but I can't seem to find any setting that does this. I'm working on ...
When you build a flash piece from scratch using flash, and it's mostly AS3 and you are using all external .as class files, how do you structure your software? what type of global variable structure do you use? does your top level class always look the same? what line of code do you use to program attaching the main sub display objects to...
Here is a portion of my code: var styles:String = ".keyword{color: #ff0000;} .comment{color: #00ff00;}"; var myStyleSheet:StyleSheet = new StyleSheet(); myStyleSheet.parseCSS(styles); myTextArea.htmlText = '<span class = "keyword"> red </span> uncolored <span class = "comment"> green text</span>'; Everything is fine till this point, ...
after browsing the documentation for the sound classes, it seems there is no way to control sound pitch with Actionscript 3.0. there is only the ability to control volume and pan. why is there no pitch property? it's the only sound property missing for the ability to create a full featured sound engine in Actionscript? i hope i'm mis...
After browsing for the images, and selecting them. How can I display a preview of the image in the datagrid? I am able to display the file name, file size, but was unable to display the image. Below are the codes I have written, please note it is not a complete code but just enough to make it understandable. Thanks. // variables used va...
I'm not sure how to explain this, but why isn't this code pulling the correct image and icon file? It continues to pull the wrong info at the line 35, which makes all other data one node behind. Even when I delete the three locations below, it still gets the xml wrong. Why would it be doing this? I verified the xml data and made sure al...
how can i cycle thru a local folder to add all (or some) files names and references to that file in an array using actionscript 3.0? var fileArray:Array = new Array(); for (var item:Object in "../myFolder/") { trace(item.name); fileArray.push(item); } something like this? ...
Hi, I hope I can explain this properly. I'm using flashDevelop for an avatar creation engine. I have a movieclip(class) called body_view which is structures like this : body_view -> 10 visual body components -> each component needs to have a jpeg loaded Then there is a body_model class which is extended from the body_view class and i...
Hai, I want to override the dispatchEvent method while inheriting from flash.display.Sprite. Whenever an event gets dispatched now like ADDED_TO_STAGE and CLICK it will get through dispatchEvent in my theory. However there is no single trace he'll get through dispatchEvent.. so the events get dispatched internally from some where else? ...
Hi ppl, I participate in a important project right now and I have to implement a class that manages music and sound. The project that I'm making is developed in AS3 using the Flex enviroment. Is there a "best approach" or only different ones?... Thx. ...
when handling data, i always have to write the following: var dataSourceRequest:URLRequest = new URLRequest("/path/file.xml"); var dataSourceLoader:URLLoader = new URLLoader(dataSourceRequest); dataSourceLoader.addEventListener(Event.COMPLETE, handleDataSource); while i can understand the usefulness of these 2 objects and event listen...
I have created a crosdomain policy file, I have added code to my flex app, and I still get security sandbox violation...have I done something wrong? Here are my errors and file snippets: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load d...
is there non-blocking io in flash? I need it for my live chat project. If not, please tell me what thing need if i make a live chat with the web cam in java. ...
Hey all, I am a student with a mainly electronics background getting into programing. The more I get into it, the more I realize how bad I am at it. I am trying to get better at OO design. One thing I have been reading about is the use of Getters and Setters. http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html?page=1 ...
Hi all, I don't know if this is possible, but is there a command line tool included in the Flex SDK that allows me to do the same as the "view source" option in Flex/FlashBuilder : I'd like to generated HTML files with my source code etc but I don't have FlexBuilder, Cheerz, ...
Hi, I'm trying to load images from a relative folder /media/one.jpg but it never loads, I use the same script to load from my local folder and it does. The absolute path e.g c:/mydir/one.jpg does not work either. Earlier I used to throw things at my server and get jpegs from there. But for testing purposes I need these images locally ...