|
Home > Archive > Macromedia Flash Server > May 2005 > Embedding fonts in MX2004 components
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Embedding fonts in MX2004 components
|
|
| Heemesh 2005-05-04, 2:45 am |
| Hi all
How can i embedd fonts other than default font in MX2004 components?
componentInstanceName.setStyle("fontFamily","TradeGothic");
componentInstanceName.setStyle("fontSize","8");
the above code works only if the font is installed in the machine. How ca=
n i
display the same font in components when the swf is playing other machine
which doesnt have that font installed?
Thanks
Heemesh
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]On Behalf Of Simon
Skr=F8dal
Sent: Wednesday, May 04, 2005 11:03 AM
To: FlashComm Mailing List
Subject: [FlashComm] ServerSide Client Scope
I am struggling a little with understanding scope on the serverside, and,
although I think I have a workaround for a specific problem, I just want =
to
run it through with you guys for '(dis)approval'.
My problem is understanding client-specific variables on the serverside -
what is 'private' to the individual client, and what is not.
For example, I have found that in onConnect(clientObj), I can add stuff
like: clientObj.firstName =3D someDynamicChangingName;
....and then later, in onDisconnect, I can trace(clientObj.firstName); ...=
and
get the unique names added in the other function. Am I right so far?
Now, in a custom declared SS function, my client passes a variable, let's
call it 'myVar'. I want this variable to be unique for each client, but I=
no
longer have the clientObj reference, so I can't do clientObj.var =3D myVa=
r,
since clientObj only seems to exist within the scope of the
connect/disconnect functions.
So what I did was to assign myVar to Client, i.e. Client.var =3D myVar;
It looks like that did the trick - if I now trace clientObj.var in
onDisconnect(); I seem to be getting the value assigned to Client.var, bu=
t
is this really the way I should be doing it? If a hundred clients connect=
s,
and all passes separate values for myVar, will this still work?
Ahw, not sure if I get my question right, but if you understand what I me=
an,
any help would be appreciated 
Kind regards,
Simon Skr=F8dal
=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Ryan Matsikas 2005-05-04, 5:45 pm |
| i believe you will want: component.setStyle("embedFonts", true);
before you set the fontFamily etc
On 5/3/05, Heemesh <heemesht-icus-jktMLj7Z/YwQJ1UNl7U1Bw@public.gmane.org> wrote:
> Hi all
>=20
> How can i embedd fonts other than default font in MX2004 components?
>=20
> componentInstanceName.setStyle("fontFamily","TradeGothic");
> componentInstanceName.setStyle("fontSize","8");
>=20
> the above code works only if the font is installed in the machine. How ca=
n i
> display the same font in components when the swf is playing other machine
> which doesnt have that font installed?
>=20
> Thanks
> Heemesh
>=20
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]On Behalf Of Simon
> Skr=F8dal
> Sent: Wednesday, May 04, 2005 11:03 AM
> To: FlashComm Mailing List
> Subject: [FlashComm] ServerSide Client Scope
>=20
> I am struggling a little with understanding scope on the serverside, and,
> although I think I have a workaround for a specific problem, I just want =
to
> run it through with you guys for '(dis)approval'.
>=20
> My problem is understanding client-specific variables on the serverside -
> what is 'private' to the individual client, and what is not.
>=20
> For example, I have found that in onConnect(clientObj), I can add stuff
> like: clientObj.firstName =3D someDynamicChangingName;
> ...and then later, in onDisconnect, I can trace(clientObj.firstName); ...=
and
> get the unique names added in the other function. Am I right so far?
>=20
> Now, in a custom declared SS function, my client passes a variable, let's
> call it 'myVar'. I want this variable to be unique for each client, but I=
no
> longer have the clientObj reference, so I can't do clientObj.var =3D myVa=
r,
> since clientObj only seems to exist within the scope of the
> connect/disconnect functions.
>=20
> So what I did was to assign myVar to Client, i.e. Client.var =3D myVar;
>=20
> It looks like that did the trick - if I now trace clientObj.var in
> onDisconnect(); I seem to be getting the value assigned to Client.var, bu=
t
> is this really the way I should be doing it? If a hundred clients connect=
s,
> and all passes separate values for myVar, will this still work?
>=20
> Ahw, not sure if I get my question right, but if you understand what I me=
an,
> any help would be appreciated 
>=20
> Kind regards,
> Simon Skr=F8dal
>=20
> =3D---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D---------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|