ActionScript 3.0 :: Why Underlining Certain Fonts But Not Others (all Of Which Are Pretty Common)?

Apr 29, 2011

I have a simple question that hopefully has a simple answer (which mocks me with its elusiveness). In the code below (taken from Gary Rosenzweig's "ActionScript 3.0 Game Programming University" (2nd ed.)), I am declaring a simple style sheet using all AS3 supported tags/attributes to underline an HTML link. My question is this: why won't AS3 underline the chosen font (Arial) but yet it will underline certain other fonts that I substitute it for (such as "Times New Roman" and "Garamond")?

[Code]...

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Find Greatest Common Factor And Lowest Common Multiple?

Nov 21, 2010

find greatest common factor and lowest common multiple

View 8 Replies

Actionscript 3 :: Use Emacs To Pretty-print?

Nov 4, 2010

I've been trying to use emacs in batch mode to pretty-print an ActionScript file but it doesn't quite do what I'd expect it to. I downloaded actionscript-mode.el and as-config.el from here

[Code]...

View 1 Replies

Professional :: Made A Pretty Face In Flash That Shows In FireFox But Nowhere Else?

Feb 25, 2011

Built a nice Flash page and exported it to use as a web page (didn't export to HTML just exported image to SWF). Plunck it into DW CS5 and test in FF & it looks great. Try it in IE8, only get a white page, same in Chrome & Opera. What gives?

View 2 Replies

Flash Fonts - Text Fields' Fonts Replace To Default Fonts.some Text Gone Down

Feb 25, 2010

my web site has a lots of text field. it is xml based site.it is locally run perfectly but after i upload it to my server it's text fields' fonts replace to default fonts.some text gone down.so its confused to me.i used Myridpro font.now it is replace to default font .can u tell what is the solution for that..? [URL]

View 1 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Flash :: Runtime Fonts Not Playing Nice With Fonts Embedded In Static Text?

Jul 11, 2010

I save my (embedded) fonts in an external file (fonts.swf) that gets loaded at runtime. Pretty standard. I also use a bunch of UI artwork generated in the Flash IDE. Some of this artwork contains static textfields (thus, not proper TextFields that can change. Just frozen glyphs). Here's the problem: if I use the same font in any static textfield and then embed that same font into my collection of runtime fonts, the runtime font will refuse to render. It's the same effect you get if you set a textfield with embeddedFonts=true to use a font that isn't embedded. If I change the static textfields to use a different font, the runtime fonts work just fine.

[Code]...

View 2 Replies

Flash Detect Missing Embedded Fonts And/or Replace With Available Fonts?

Dec 22, 2010

Edited Short Version:The Adobe Flash docs list a property embedFonts on TextAreas:

A Boolean value that indicates whether the font specified in fontFamily is an embedded font. This style must be set to true if fontFamily refers to an embedded font. Otherwise, the embedded font is not used. If this style is set to true and fontFamily does not refer to an embedded font, no text is displayed. The default value is false. Regarding the "If this style is set to true and fontFamily does not refer to an embedded font, no text is displayed" statement: How can I detect in ActionScript when this scenario happens?

TL;DR Original Version: I have a flash application which loads external .swf files containing embedded fonts, so that these fonts can be used within the main application. We're accomplishing this by using the following ActionScript code on anything which uses custom fonts:

[Code]...

View 1 Replies

ActionScript 3.0 :: Uploading Fonts - Loading Fonts From The Server?

Jul 21, 2010

Right I can upload the font to the server.But the only examples I can find - require registerFont(Verdana);Which means I'll need to create a new SWF with the new font embedded and reupload to the server. I need an automated way of doing this or perhaps something different altogether?

View 2 Replies

ActionScript 3.0 :: Can't Put A Common MC Inside 5 MCs?

Aug 3, 2011

Simple question: In AS3 you can't do sharing of a MC between more MCs, right? In AS2, you can. How can I work around this?

Let me be specific: in ActionScript *TWO* I do something like this:

movie.attachMovie(LargeImage, "image", 20);

LargeImage = movie clip of 400 x 480.

Now... the thing is: I do this for 20 MovieClips but they all REUSE the same original MC apparently (with no memory increase, of course). If I animate the MC, it will animate within all 20 MovieClips. I'm using a mask to show only portions of the MC, but I think that's not important.
 
But in ActionScript 3 this wouldn't work, right?
 
Because in AS3 every time we .addChild, the child is REMOVED from the parent, so the same MovieClip / Sprite couldn't be in 2 places at once. How would you work around this without creating a separate instance of the "LargeImage" MovieClip for each object? Note that I don't want to use BitmapData & CopyPixels: the object may be animated.

View 11 Replies

ActionScript 3.0 :: Can't Put A Common MC Inside 5 MCs

Aug 3, 2011

In AS3 you can't do sharing of a MC between more MCs, right? In AS2, you can.Let me be specific: in ActionScript *TWO* I do something like this:

Code:
movie.attachMovie(LargeImage, "image", 20);
LargeImage = movie clip of 400 x 480.

Now... the thing is: I do this for 20 MovieClips but they all REUSE the same original MC apparently (with no memory increase, of course). If I animate the MC, it will animate within all 20 MovieClips. I'm using a mask to show only portions of the MC, but I think that's not important. But in ActionScript 3 this wouldn't work, right?

Because in AS3 every time we .addChild, the child is REMOVED from the parent, so the same MovieClip / Sprite couldn't be in 2 places at once.How would you work around this without creating a separate instance of the "LargeImage" MovieClip for each object? Note that I don't want to use BitmapData & CopyPixels: the object may be animated.

View 9 Replies

Flex3 :: Widget For A Common Calculator?

May 4, 2010

I need a calculator for a flex app I am making, and was wondering if there was any official widget prebuilt or already in good quality. I could make one myself but it would be nice to use one that already existed and had a nice api to customize it with.

View 1 Replies

Flex :: Common Function Across Modules?

Jun 25, 2011

We are working on a project where we have multiple modules- all these share a common set of functions like rounding, string parsing etc.Currently, we have added these functions into the parent container (which calls these modules) and use them in the respective modules. Likewise, if we have to share variables between modules, we add them to the parent module- so it becomes shareable across.Is this the right approach- both from a performance and structure perspective?

View 2 Replies

Common Video Format That Will Run On Any Browser?

Jan 30, 2012

Video format that play on any browser , with play/pause/stop buttons? i have the following code for .swf but i cant get any button to control. [code]...

View 3 Replies

ActionScript 3.0 :: Translation From All The Common Commands?

Nov 11, 2009

is there a site out there that has a translation from all the common AS2 commands?I'm just learning AS3 now and i have no idea how to do the basic things such as _root.mc.loadMovie("asd.swf"); anymore

View 6 Replies

ActionScript 3.0 :: Finding The Least Common Denominator

Feb 17, 2011

I want to know how to find the Least Common Denominator between two fractions so I can make them into integers. I understand to do this you probably need to get the denominator itself but I can't figure out a way mathematically to do this.

View 9 Replies

ActionScript 3.0 :: Critique Class - Add Some Common Functionality?

Feb 5, 2010

I've extended Sprite to add some common functionality - this is a generic class I use in most of my real-world applications.Everything "works", but I'm curious if there's anything I'm doing that could be done better, or if there are common tasks that should be included that aren't, or if there are members that aren't really that handy and perhaps could be omitted.

For example, there are several members to handle display-list traversal - I've kind of gone back-and-forth on this, and various versions have had methods to remove all siblings, or retrieve an array of elderSiblings and youngerSiblings,etc,but that seemed a little overboard so have been removed.The offsetWidth and offsetHeight are inelegant at best (so clumsy in fact I'm really leaning toward removing them entirely), but AFAIK there's no other way to get back the "true" height/width of an object whose first child is not a position 0.Also I'm curious about the event management overrides. I've run these on several commercial applications and have found them both useful and without any obvious drawbacks, but have never seen anyone else do anything similar,

View 13 Replies

SWFAddress - Common URL String Not Allow Page Reload

Jun 10, 2011

Here is the code that I've got, I'm also using SWFaddress:
Code:
function whyPageLoad(event:Event):void {
var link:URLRequest = new URLRequest("[URL]");
navigateToURL(link, "_self");
}

The swf exists on a page [URL] and the link above [URL] doesn't work/do anything. I tested the swf on a different URL and it loads the page correctly or if I load it into "_blank" it also works. So it seems to be something with the common URL string that is not causing a page reload.

View 1 Replies

Flex :: How To Set Common Background Color For All Tabs

Oct 30, 2009

Is there a way to set a common Backgroundcolor for all the tabs in a given TabBar? Rightnow I am able to set color only for selected tabs using
tabBar.getChildAt and setStyle

View 1 Replies

Flex :: Set Up Projects That Reference Common Controls?

Mar 30, 2010

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder.I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA.I now have to build projB which also has a .mxml that will create a different .swf. I want to use some of the same controls from projA.I currently build projA through the command line and nant and will need to do the same for projB.

Should I create a new project to move all of the common controls into? How do I then use this library project in both the projects & compile via command?

View 1 Replies

Actionscript 3 :: Serialization Format Common To Node.js?

Feb 22, 2011

The game is written in Flash, and I plan to develop the server in node.js because (a) it would be a cool project for learning node.js, and (b) it's fast, which is important for games.The server's architecture is based on messages sent between the server and client (sort of like Minecraft's server protocol). The message format I have so far is a byte (the packet type), two bytes (the message length) and that many bytes (the message data, which is a mapping of key-value pairs). Problem is, I really don't want to develop my own serialization format (because while I probably could, implementing it would be a pain compared to using an existing solution).Unfortunately, I am having problems finding a good candidate for the message data serialization format.

ActionScript's own remoting format might work, but I don't like it much.SON has support in node.js (obviously) and in ActionScript, but it's also textual and I would prefer binary for enhanced speed.MessagePack looked like a good candidate, but I can't find an ActionScript implementation. (There's one called as3-msgpack on Google Code, but I get weird errors and can't access it.)BSON has an ActionScript implementation, but no node.js support besides their MongoDB library (and I'm planning on using Redis).

View 4 Replies

Have Flex WebServices Share A Common Wsdl

Aug 3, 2011

I have a flex app that loads a WSDL at runtime and shares that across several different web services I have defined. Unfortunately each call to loadWSDL() makes a network request for it, and while it's not really a problem due to caching it's still annoying and wasteful to have all those requests generated. Is there a simpler way to solve this problem and only make one network request?[code]

View 1 Replies

Arrays :: Flash / AS3 - How To Find Common Values

Dec 13, 2011

I'm struggling with something that shouldn't be too difficult but I can't figure it out I have a number of Arrays with different values and I want to find the common values all of the Arrays have, see example below:
var arrayOne:Array = ["1","2","3"];
var arrayTwo:Array = ["1","2","7"];
var arrayThree:Array = ["1","2","9","12"];
_resultArray = ["1","2"];

View 3 Replies

ActionScript 3 :: Most Common Color In Bitmap (Data)

Mar 26, 2012

I would like to extract the most common color of a bitmap. My first idea was to do this by looping through the bitmapData and extracting every pixel color and storing it in an array. But the function has to be as light as possible so my question is; Is there a more lightweight approach to achieve this? The function is used to extract background color of a Bitmap.

View 4 Replies

ActionScript 2.0 :: Rotation Around Common Center OnEnterFrame

Mar 25, 2008

url...I'm using this code i made some changes like changing the array for a xml.In some part i put a button to stop the movement and i used [code]
and it works perfectly, but then i want to return with another button to the movement. and i can't make it work.

View 2 Replies

ActionScript 3.0 :: What Is Common Or Acceptable Flash CPU Usage

Jul 17, 2009

I'm building a media player with alot of tweens in the interface , I'm wondering what is common or exceptable in the professional flash community. When I tween the whole Interface into another view firefox spikes to 12 - 16 cpu on a 3.01 GHz duo-core. Is this normal? After the tween Firefox flunctuates between 2 - 8 cpu while idle.

View 6 Replies

ActionScript 3.0 :: Mixin Instead Of Include For Common Function?

Aug 12, 2010

If I have say a dozen classes, that may or may not be called at runtime, and that all have a common function; is there an advantage to creating a separate class with just this common function in it and then having it mixin at runtime ?I am wondering would this allow me to reduce the size of each class and thereby the swf file size? I figure this must be wrong else why would we ever extend anything when we could just mixin the functionality we want at runtime?

View 4 Replies

ActionScript 3.0 :: Common Class Directory Source Path ?

Oct 20, 2011

I have created few actionscript projects and most of them uses same com/ dir with same classes library such are adobe or greensock.In Flash builder, on one of the projects, I`ve created new source path, to that common dir.So now I have structure like this: MyProject

[source path] com
src (with AS documents)
fla (flash file)

When I edit one of my AS files from src dir in Flash Builder, I can normaly see reference to [source path] com directory, and I have full tooltip reference to it`s content.

ActionScript Code:
import com.greensock.loading.*;
import com.adobe.serialization.*

However, if I try to edit that same file in flash professional, I get no reference and there is no way I can compile file.What am I doing wrong, why flash professional does not see classes from my com directory? I even try to point it to that dir in actionscript settings but that did not work either.

View 1 Replies

ActionScript 2.0 :: Finding Most Common Element (Mode) In Array

Jun 6, 2006

I have a simple array and I want to find the most common element in the array, i.e. the mode statistically. This is what I have so far,

var answers = ["c","b","c","a","b","c","a","b"];
var aTotal = 0;
var bTotal = 0;
var cTotal = 0;
for (i=0; i<=answers.length; i++) {
switch (answers[i]) {
[Code] .....

View 3 Replies

Jquery :: Online Graphs Of Common Tween / Easing Functions?

Apr 13, 2010

Is there an online cheat-sheet to graphs of common tween / easing functions? I want a bookmark I can refer to when picking a function for a tween (e.g., Quintic, Quadratic, "Bounce"). The only one I can do in my head easily is linear.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved