Embed fonts in Flash CS3 and load in Flex at runtime
Hi,
I want to embed fonts in the library of Flash CS3, compile it into a SWF and load it in my flex up at runtime and register the embedded font.
I'm able to get the linked class in Flex but the font doesn't show.
The FLA has a font called Viner Hand embedded as a library item, with linkage VinerHand and baseclass as flash.text.Font
Here's the code in flex to register the font -
var FontLibrary:Class = ApplicationDomain((event.target as LoaderInfo).applicationDomain).getDefinition('VinerHand') as Class;
Font.registerFont(FontLibrary);
When I do Font.enumerateFonts after this, I see [Font VinerHand] in the array but the textField doesn't show the font embedded.
Nishant
Hi there,
Try taking a look at the following links:
http://www.trajiklyhip.com/blog/index.cfm/2007/7/18/Embedding-Fonts-in-Flex
http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
Hope it helps.
With best regards,
Barna Biro
Similar Messages
-
How do i embed fonts in flash builder 4?
how do i embed fonts in flash builder 4?
thanks,
danielTry http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/
I also answered in your other thread, http://forums.adobe.com/thread/482315.
Let us know if you're still having problems and we can try and help you get started.
Peter -
Creating metadata in Flash CS3 and reading it in AS3
Is there a way to store metadata in a library symbol in Flash
CS3, and then read it in AS3? For example, I want to have the
following code run:
m_Metadata = 'You're cool!'
I need this data before I can play the movie clip. Is there a
way to store this? I've been trying to find a solution, but it
looks like I'm just going to have to load in a separate XML file
with the data.
Thanks!Unfortunately there's no simple way to add instance level
code in Flash CS3 or CS4 with AS3. This is a significant authoring
tool deficiency in my opinion.
Making a component... depending on what you want to do, there
can be a lot of overhead. There may also be some very flaky/buggy
behavior in Flash CS3 with custom components if your experience is
anything like mine. However, for basic metadata, try this:
1. Select the Symbol in the Library
2. Right click, choose Component Definition...
3. In the Parameters data grid you can add
parameters/properties. Make sure you set the "Variable" field as a
unique identifier for each parameter. These are the properties
you'll use in AS at runtime to retrieve the values.
4. Now on each instance on the canvas you can go to the
Parameters tab and enter custom values for each parameter.
5. At runtime, you should be able to access the values via
instance_name.variable_name
I believe that will work without actually creating a
component class and making it functional. -
Help!! Flash CS3 and CS4 "Test Movie" very slow on OS X
This is a problem that, having read many forums, affects a
very large amount of people, though Adobe doesn't care at all. It
only affects OS X users. I know that it has been addressed many
times in different forums, but I never actually stumbled across
anyone having found a solution.
When I use Flash CS3, and I make any animation, even the
simplest tween, and I preview it with Test Movie, the result I get
is an extremely slow playback. Something like half the FPS it
should be.
However, when I export the SWF and preview it in the external
Flash Player or in a browser, it's just fine and fast.
Another interesting thing is that in CS3, when I open the
Help panel, the problem with Test Movie only happens like 20% of
the time. In that case, it only gets solved if I restart or Log Out
at least. I have no idea why the Help panel being open solves the
problem, this only shows that this is probably a little graphic
user interface bug, or something similar, that could be solved very
very easily.
In Flash CS4, there is no Help panel, so there is no solution
to the problem.
It would be nice to be able to press Cmd + Enter to see the
movie, and not have to do File > Export > bla bla bla, open
Finder, Find the SWF, double click it, wait for the browser to
open... etc...
I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
faster on my 900MHz Pentium III PC!! Funny...
Here are some links I found about this problem:
http://bugs.adobe.com/jira/browse/FP-878
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
http://www.kirupa.com/forum/archive/index.php/t-258991.html
This is quite ridiculous, and on Adobe's Support page, the
solution is "Do not use Test Movie."
And the funny thing is that they didn't even bother to fix
this in CS4...
So basically if something doesn't work, Adobe's solution is
"Don't use it."
I guess they're right!
Please, tell me if anyone has or does not have this problem
or knows anything about it!
Thanks,
MateThis is a problem that, having read many forums, affects a
very large amount of people, though Adobe doesn't care at all. It
only affects OS X users. I know that it has been addressed many
times in different forums, but I never actually stumbled across
anyone having found a solution.
When I use Flash CS3, and I make any animation, even the
simplest tween, and I preview it with Test Movie, the result I get
is an extremely slow playback. Something like half the FPS it
should be.
However, when I export the SWF and preview it in the external
Flash Player or in a browser, it's just fine and fast.
Another interesting thing is that in CS3, when I open the
Help panel, the problem with Test Movie only happens like 20% of
the time. In that case, it only gets solved if I restart or Log Out
at least. I have no idea why the Help panel being open solves the
problem, this only shows that this is probably a little graphic
user interface bug, or something similar, that could be solved very
very easily.
In Flash CS4, there is no Help panel, so there is no solution
to the problem.
It would be nice to be able to press Cmd + Enter to see the
movie, and not have to do File > Export > bla bla bla, open
Finder, Find the SWF, double click it, wait for the browser to
open... etc...
I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
faster on my 900MHz Pentium III PC!! Funny...
Here are some links I found about this problem:
http://bugs.adobe.com/jira/browse/FP-878
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
http://www.kirupa.com/forum/archive/index.php/t-258991.html
This is quite ridiculous, and on Adobe's Support page, the
solution is "Do not use Test Movie."
And the funny thing is that they didn't even bother to fix
this in CS4...
So basically if something doesn't work, Adobe's solution is
"Don't use it."
I guess they're right!
Please, tell me if anyone has or does not have this problem
or knows anything about it!
Thanks,
Mate -
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at index_fla::MainTimeline/Down3()"
import nl.demonsters.debugger.MonsterDebugger;
var d:MonsterDebugger=new MonsterDebugger(this);
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
// loader is the loader for portfolio page swf
var loader:Loader;
var loader2:Loader;
var loader3:Loader;
var loader1:Loader;
// resize content
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
/*loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;*/
addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
function onEnterFrame(ev:Event):void {
var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel1"
//adds gallery.swf to stage at begining of movie
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requesterb);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// stop gallery.swf from duplication over and over again on enter frame
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel"
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
removeChild( getChildByName("about") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.name ="contact"
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.name ="about"
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
removeChild( getChildByName("carousel") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop();Andrei1,
Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
loader.unload();
loader2.unload();
loader3.unload();
I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
function killLoad():void{
try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
loader.unload(); loader2.unload(); loader3.unload();
I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly? Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
---- Here is my updated code ----
// variable for external loaders
var loader:Loader;
var loader1:Loader;
var loader2:Loader;
var loader3:Loader;
// makes borders resize with browser size
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
//adds gallery.swf to stage at begining of moviie
Down();
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent = null):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
this.addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// sure this is not the best way to do this - but it is unload external swfs
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop(); -
Just bought an .OTF font for Flash CS6 and it's not showing up in the list.
Just bought an .OTF font for Flash CS6 and it's not showing up in the list.
EscrowText-Roman.otf
Any reason why? It shows up in Illustrator and Photoshop just fine.
LineIf you have never synced an audiobook yet, you have to connect your ipad and go to the books tab.
Scroll down past the regular books and there will be where you sync your audiobooks.
Then they will show up on the music app under "other" -
Flash CS3 and CS4 "Test Movie" extremely slow, ridiculous.
This is a problem that, having read many forums, affects a very large amount of people, though Adobe doesn't care at all. It only affects OS X users.
When I use Flash CS3, and I make any animation, even the simplest tween, and I preview it with Test Movie, the result I get is an extremely slow playback. Something like half the FPS it should be.
However, when I export the SWF and preview it in the external Flash Player or in a browser, it's just fine and fast.
Another interesting thing is that in CS3, when I open the Help panel, the problem with Test Movie only happens like 20% of the time. In that case, it only gets solved if I restart or Log Out at least. I have no idea why the Help panel being open solves the problem, this only shows that this is probably a little graphic user interface bug, or something similar, that could be solved very very easily.
In Flash CS4, there is no Help panel, so there is no solution to the problem.
It would be nice to be able to press Cmd + Enter to see the movie, and not have to do File > Export > bla bla bla, open Finder, Find the SWF, double click it, wait for the browser to open... etc...
I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs faster on my 900MHz Pentium III PC!! Funny...
Here are some links I found about this problem:
http://bugs.adobe.com/jira/browse/FP-878
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
http://www.kirupa.com/forum/archive/index.php/t-258991.html
This is quite ridiculous, and on Adobe's Support page, the solution is "Do not use Test Movie."
And the funny thing is that they didn't even bother to fix this in CS4...
So basically if something doesn't work, Adobe's solution is "Don't use it."
I guess they're right!
Please, tell me if anyone has this problem or knows anything about it!
Thanks,
Mate1) Every post I see that you have made recently reflects on problems that are most likely associated with your computer that are causing problems with your software. 1st thing I would look at with your problems (and I do not mean just this one) is a conflict with another program, ei antivirus software, etc. Trying turning off programs one by one, relaunching your CS programs, and see if you can find a culprit.
2) With that kind of attitude you are only going to receive just as friendly/helpful solutions. Just because SOMEONE ELSE doesn't solve YOUR problem does not mean that THEY are ignorant. -
I'm trying to use the following script to embed a font in a CS3 flash file. When I publish and preview it, all I get is a blank screen :S Can someone tell me if this script is valid for AS3/CS3?
Thanks.
package {
//import flash.util.describeType;
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.AntiAliasType;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormatAlign;
public class Test extends MovieClip {
// be sure this is pointing to a ttf font in your hardrive
[Embed(source="Arial.ttf", fontFamily="foo", mimeType="application/x-font-truetype")]
public var bar:String;
public function Test() {
var format:TextFormat = new TextFormat();
format.font = "foo";
format.color = 0xFFFFFF;
format.size = 130;
var label:TextField = new TextField();
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.defaultTextFormat = format;
label.text = "Hello World!";
addChild(label);
trace(label.text);
label.setTextFormat(format);Im not sure if u can do it with flash cs3.
i change a little ur code to :
package {
//import flash.util.describeType;
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.AntiAliasType;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormatAlign;
import flash.text.Font;
public class Test extends MovieClip {
// be sure this is pointing to a ttf font in your hardrive
[Embed(source="arial.ttf", fontFamily="foo", mimeType="application/x-font-truetype")]
public var arialfont:Class;
public function Test() {
Font.registerFont(arialfont)
var format:TextFormat = new TextFormat();
format.font = "foo";
format.color = 0xFFFFFF;
format.size = 130;
var label:TextField = new TextField();
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.defaultTextFormat = format;
label.text = "Hello World!";
addChild(label);
trace(label.text);
label.setTextFormat(format);
and it works fine with flash cs4, only first time it will ask to confirm flex sdk location ( have to have flex sdk to use embed, u can downlaod it free from adobe.com)
hope that helps -
Did Adobe come up with a way to load PDF files into an SWF in
Flash CS3? If not .... they need to do that for the next version,
because that would be wonderful.I'm using Flash Paper for this and the results are excellent.
It wasn't included in CS3 but still installs ok from the Studio 8
disc. -
Hi, i am experiencing a strange and unpleasant situation.
I am using CS3 and upgraded to Snow Leopard 10.6.2 last night, along downloading the latest Flash Player for browsers.
Problem is that now all of my text block arent displaying the same line height that before i updated?????
I compared the same exact SWF made under Tiger and those made under Snow Leopard and the two arent identical, lines are misaligned regarding line height!
What gives? Flash or OSX interpreting fonts differently?
Thanks!I dont know whats up with this... but all of a sudden today, in my flash cs4 (mac and PC versions) When i go to open a fla in flash to work on it, i select a text box... in the properties window under position and size --- HIEGHT-(selection hieght) value is grayed out... I opened fla's that i had don before but this also now affects them as well. I tried opening on my PC .. now it does the same thing. Every file i open now.. when i got to the properties of a text box ... the height values are grayed out. I am using Palatino roman font... in a simple text box.
Position and size:
x:20 y:15
w:264 H:335.2 <-------- grayed out!!!
I have opened these files in cs3... and that now is also experiencing this......
PLEASE HELP... Im in the middle of a project --- with extreme deadlines...
PLEASE PLEASE PLEASE
my post....
saw yours.. wondering if this is related.. Im running Snow Leopard now to.. just started. Then the Height variable became grayed out. In your properties windows, are you experiencing the same??
It's killing me...Im an animator that does books... I am unable to adjust this value, and when i sent the fla to someone else... they say they see everything fine, but when i view it.. the Text spacing in multiline text box is different than discribed back to me... My line height is much larger than what he is seeing.
Please let me know if you find anything.
Regards
Phantom Lady -
Fonts different between CS3 and CS5 on Win7 system using the same fonts directory
I have several files created in Fireworks CS3 that work fine. Fonts are all installed in the system directory on my Win7 box. This used to be a WinXP Pro box.
I can load a file into Fireworks CS3 without a single issue and the text all looks perfect. The way it should. Close CS3, open CS5 and load the same file and CS5 tells me I have to update my fonts. Why? Same system, same fonts in the same fonts directory. Only thing that's changed is that I'm opening the file(s) in CS5.
The fonts do not look the same in CS5. Am I going to have to redo every Fireworks CS3 file so that it looks correct in CS5? If so, why?
-- Bob
Here's a sample image the way it's supposed to look. The Swift gets hosed. PlazaDUtil is the font. I'd hate to have to redo all my logo files.Prior to CS4 Fireworks used the Macromedia type engine. From CS4 forward, adobe introduced the adobe type engine to improve text handling/integration between FW AI and PS. As a result moving CS3 files over to cs4 forces FW to update the fonts.
-
Flex 4 Embed fonts in flash swf VS embedding fonts in flex
I have this dilema...what's the best way to embed fonts?
In flash I can easily embed the fonts + the chars ranges that I need through the menus export the swf and then use it in flex.
In flex I don't see an easy way of setting the character ranges. How can I get the values I need? I read the format is U+(beginning of range)-(end of range) but where do I take beginning and end of the range from ?
Thanks in advance.Сode hinting in Flash Builder 4 code editor for global style, e.g.
global {
font-family : Arial;
works for me.
Also in @font-family style declarations, I can code hint for "font-family", "embed-as-cff" styles property too.
Although, it is true you do not get code hints for values for those particular properties, I think that CSS editor could support it too, but it does not. -
Ok. So I have a file that was originally created with Flash
8. The file was opened in Flash 9 and published. The problem is
that the text that I have in there is being cut off when published
(publish preview only, The full publish works fine so far). I've
narrowed it down to being a problem with the filters that are used.
I'm using a basic drop shadow on the static text.
More specifically, when I publish using Flash 7, filters are
not supported and they are dropped out and the entire word shows.
When I publish in Flash 8 or 9 with filters turned on, the words
are cut off. For example the word "connection", when a filter is
applied, all that publishes is "connecti". The o and n are gone.
And if I change the settings on that drop shadow filter, the word
is cut off in a different place than before, sometimes cutting a
letter in half. When I delete the filter and publish in 8 or 9, the
entire word shows again. Also, I can edit the blurX or Y, or the
strength or distance and it will sometimes show the entire word.
But when I do this to other words, it creates a problem on those
words. If I then go and edit the settings back or to different
numbers, cutoff happens once again.
This is very inconsistent and makes working with filters
difficult since I can't preview what I've done without doing a full
publish. I've converted the words to movie clips and so far have
not had the same problem, however, I don't want to add movie clips.
So this basically looks like a glitch with this new version of
Flash. I sure hope that someone at Adobe sees this post and might
look into the problem.
I'm on an Intel based MacBook Pro. If anyone has run into
this problem, please let me know if you have found there to be a
solution rather than a work around. Thanks to Anyone who can help.
And once again, this only appears to be a problem when I do a
publish preview, not a full publish.
TobinThanks; thats helpful.
What's going on is that the filter is being reused for your
text instances.
Flash does automatic associations between frames to see where
some objects
should be instances of or related to the objects in the frame
before it. In
your case, since each of your frames have a single static
text field in the
same depth (one spot above the jump in button), and since
they all use the
same drop shadow filter with the same settings, Flash will
reuse that exact
same filter for each of the objects in consecutive frames at
those depths
assuming they are the same object. What this amounts to is
the bounding box
for the first text+filter combination being used for all
others. You can
see this more clearly if you move the "Love" text to be at
the beginning of
the sequence and then test your movie.
What can you do? Here are a few options (though only a few
may work in your
situation):
- include one frame between each text field
- on every other text field, modify a property of the filter,
either
adjusting the strength by a value of 1, changing the quality,
or something
not visible but enough to make Flash recognize it as a
different filter
- in a layer under every other textfield place an invisible
object. This
should force every other text field to be at a higher depth
thereby
preventing Flash from assuming they are the same object as
the one before
it.
- place each text field in a movie clip thereby separating
the filters from
the same timeline (or, technically, just every other text
field would be
necessary)
- change your text to dynamic text. These will be treated as
separate
instances (or at least Flash will be wise enough not to be so
static in its
application of the filter). You may need to be sure to embed
your fonts for
anti-aliasing
In the mean time I will officially log a bug. Though Flash is
"technically"
doing what it thinks is best, its not working out very well
for this case.
"PhoTobin" <[email protected]> wrote in
message
news:[email protected]...
>I have not scaled the text at all. We've just used font
size. Here is the
>link to download the FLA.
>
>
http://www.3peaksintl.com/intro-filter.zip -
More FMS & Flash CS3 not loading FLV
I consider myself an intelligent fellow, but getting Flash
CS3 to stream vis FMS is killing me. I've read the posts here where
people are describing similar situations. I've read several
websites that show kinda similar methods of getting this done, but
none are working! The docs on FMS & CS3 are like in an infinite
loop "see AS2.0/3.0 documentation on how to stream videos" &
when you get there "See FMS documentation on how to stream
videos"!!
I've read this & did it all, no dice:
http://www.mcalister.cc/ddd/flv/index.html
Read this which linked me to above, no dice:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00003495.html
Here is my config:
SERVER running FMS2, Windows Server 2003, IIS6, offsite, but
am able to RDP in.
File structure:
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\streams\small\Cosmo_Small.flv
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\main.asc (sole content being:
load(components.asc))
Where: ForRentFlash = appName
small = instanceName
Flash CS3 development locally & testing movie produces
WHITE SCREEN.
Component Inspector for FLVPlayBack AS3.0 dropped on stage:
Source Content Path:
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv (of course with
correct IP)
No matter how I go about this, I end up with: FAILED TO LOAD
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv.
Port 1935 was opened on the firewall of the remote
server.Try placing your flv files in a _definst_ directory.....
Here is how mine are set up:
C:\Program Files\Macromedia\Flash Media Server
2\applications\aniridia\streams\_definst_\V032v.flv
I don't use any .asc files, but I'm fairly certain that they
would be in the root of the " aniridia " directory (which is the
application), rather than in the " aniridia\streams\_definst_ "
directory.
My videos would not stream until I put them in the _definst_
directory.
I use an xml playlist with my flv player to call my videos.
My stream syntax looks like this:
rtmp://mydomain.com/aniridia
Don't reference the flv file name.
Good luck! -
A couple of weeks ago, I wrote in another thread about how
Flash CS3 (using AS3) can directly handle javascript. I must tell
you that this direct handling is limited. You cannot call custom
javascript functions from html this way. If you need to call
function in your html, you must still use ExternalInterface.
Flash CS3 has a new function called navigateToURL().
navigateToURL() is part of the flash.net package and is
asynchronous (does not return any kind of value).
Let's say you want to throw a simple javascript alert message
to a user. You need to first make a call to the URLRequest
constructor and pass it a string value that uses javascript
protocol. In the alert example, you'll be calling the string
"javascript:alert('Your first AS3 javascript call');" To those
familiar with HTML, this will look very very familiar. All put
together, it looks something like the code below....
This idea can be expanded on and added to custom event
handlers in classes for buttons and other things in your projects.
Remember though that you must call the javascript code as it
appears in the javascript protocol. So to open a popup window,
you'd need to use window.open( blah, blah, blah ). Personally, I
still use ExternalInterface to call my Javascript functions (if I
need them at all). The only reason I use navigateToURL is when the
browser I'm using does not support ExternalInterface.
Anyhow, the code for the above example is down below. If you
have questions, post them here.k,
my post 2+ weeks ago was adrenaline driven and premature. the
example I just gave was the code I was talking about. Why I ever
posted that URLLoader was capable of javascript interaction is
beyond me. I know better. The purpose of my post was simply to
answer questions I've been getting in my e-mail and to clarify my
original post 2 weeks ago.
As I stated, navigateToURL is meant for specific scenarios
just as getURL was in AS1 and 2 which was replaced by navigateToURL
in AS3. This would be more for the Linux users and the a-typical
O/S users where ExternalInterface is not supported by the browsers
on those operating systems. I do not condone using navigateToURL or
getURL. I will always recommend external javascript files and
ExternalInterface. My apologies for leading anyone on with my
premature run-off of the typing finger.
Maybe you are looking for
-
I use a dynamic IP, so I have been trying to get DHCP working. I changed the interface line in rc.conf to this: eth0="dhcp" just like the Networking Wiki says. I also made sure that I have dhcp and dhcpcd installed. When I installed dhcpcd there w
-
Emerlad-theme-manager Is Extremely Slow For One User
Hello. I'm having a problem with Emerald's theme manager. I have three users on my system. root, guest, and snowyclaw. The theme manager works perfectly fine with root and guest, but it's extremely slow for snowyclaw. Loading the window at first, rel
-
Creating Smart Albm - keywords selection is greyed out
Hi, I have about 4000 photos and 15 or so keywords in my aperture library. keywords can be viewed in the Keywords HUD and also in the metadata panes, so they exist. When I create a smart album, the settings window allows me to filter on ratings and c
-
Reset Firefox in safe mode. Clicked 'Help', then "Restart with Add-ons disabled" After restarting, Checked "Reset all preferences to Firefox default" When done, found three new Tabs, one asking if I wanted to continue previous session, a second from
-
Hi, I have install Oracle 9.2.0.7.0 on a SLES 9 SP3 64bit and anything is ok, but now I have a little strange Problem. When I take a look into the log-Files from the Apache I see the following entries: error_log [Fri Mar 30 10:42:30 2007] [warn] OPM: