Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

How to share fonts in between more SWF with flash CS3

This is a discussion on How to share fonts in between more SWF with flash CS3 within the Tutorials forums, part of the Flash English category; Hi Flep thank you so much for your effort but still doesn't work... When I test the "home.swf" ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-11-07, 12:37
Junior Member
 
Join Date: Sep 2007
Posts: 24
Rep Power: 0
lfdesign is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Hi Flep thank you so much for your effort but still doesn't work...

When I test the "home.swf" alone off course he can't find the "txtFormatGrunge" because is only defined on the "main.swf"... Most certainly I'm doing something wrong! :p

This is my first AS3 site, so please be gentle... :P

Here are the files Index of /flep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 04-11-07, 13:33
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Hi,
i can't try those files cos many classes are missed.
Anyway, i also can't find where you load home.swf .
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-11-07, 14:28
Junior Member
 
Join Date: Sep 2007
Posts: 24
Rep Power: 0
lfdesign is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Sorry for the mess...

I've made a simplified version of my problem...

Can you please take a look?

Index of /flep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 04-11-07, 14:50
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Ok, i got it.

1) Home.as must extend MovieClip
2) Main.as must extend MovieClip
3)
Home.as
Code:
private function addedToStage(event:Event):void {
			home_txt.embedFonts = true;
			var m:MovieClip=root.parent.parent.parent as MovieClip;
			trace(m.txtFormatVerdana);
			home_txt.defaultTextFormat = m.txtFormatVerdana;
			home_txt.text = "isjevoiwejiow jev wevwje viwej";
		}
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 04-11-07, 14:58
Junior Member
 
Join Date: Sep 2007
Posts: 24
Rep Power: 0
lfdesign is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

I must be very stupid... But it still doesn't work...

I've uploaded the fixed files... Please see what's wrong with them!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 04-11-07, 15:03
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

It's working to me:
Attached Images
File Type: jpg Picture 1.jpg (13.8 KB, 8 views)
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 04-11-07, 16:06
Junior Member
 
Join Date: Sep 2007
Posts: 24
Rep Power: 0
lfdesign is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Yes, on the "main.swf" file it works...

But the point here is to use the fonts loaded into "main.swf" on the "home.swf"! And that's not working... No text appears...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 04-11-07, 16:20
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Ok, now it's working.
Try to do this:
set home_txt textfield with _sans font
commet the line //home_txt.embedFonts = true; in Home.as
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 04-11-07, 18:39
Junior Member
 
Join Date: Sep 2007
Posts: 24
Rep Power: 0
lfdesign is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

Yes that works because in that way the font is not embedded...

If you do a text rotation the text no longer appears... Wich means that the font is not embedded...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 04-11-07, 18:40
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to share fonts in between more SWF with flash CS3

yes...
also, did you try to create home_txt at runtime ?
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash CS3 Embedd Fonts - aiuto! Fox+ Actionscript 3.0 avanzato 3 29-08-08 21:59
Come condividere le fonts tra più SWF con Flash CS3 Flep Articoli e tutorials 1 08-06-08 15:25
Incorporare fonts nell' SWF con Flash CS3 Flep Articoli e tutorials 4 21-04-08 00:15
Emded fonts into SWF Flep Tutorials 0 03-10-07 19:41


All times are GMT. The time now is 19:17.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap