Re: [Flashcoders] createTextField and embedding fonts
Yup, I did exactly this and it works great! Thanks! - Original Message - From: "Arindam Dhar" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, January 09, 2007 10:24 AM Subject: Re: [Flashcoders] createTextField and embedding fonts Hi Thomas, ok, its coming a bit late though, but here is a solution for using shared font library.. 1) in SharedFonts.fla, have a shared font, let the linkage identifier be "testfont" and symbol name also the same.Export it for runtime sharing as done normally. 2) in receiving fla, import the shared font from the SharedFonts.swf.( only import from the specified URL, in this case SharedFonts.swf). The tricky part comes now, 3) create a movieClip symbol in receiving fla. library, create a dynamic textfield inside it at authoring time with font as testfont*, and give a dummy linkage(export for AS, export in first frame). now,try this code to test it, this.createTextField("myTf",this.getNextHighestDepth(),10,10,200,20); var tFormat:TextFormat = new TextFormat(); tFormat.font ="testfont"; this.myTf.embedFonts =true; this.myTf.wordWrap = true; this.myTf.text ="Testing the shared font"; this.myTf.setTextFormat(tFormat); This works fine, and the idea of shared library holds good too, as u will see that changing any font property in SharedFonts.fla/swf gets reflected in receiving.swf. Mind it, the trick is step 3 :-) regards, Arindam [EMAIL PROTECTED] wrote: I think you might be right here Arindam. Perhaps in the receiving file I merely need to do an import for runtime sharing instead of exporting it in the shared fonts swf. The documentation has always been a little spotty in terms of what's actually going on when using shared libraries... Thanks for the response! - Original Message - From: "Arindam Dhar" To: "Flashcoders mailing list" Sent: Wednesday, January 03, 2007 4:43 AM Subject: Re: [Flashcoders] createTextField and embedding fonts hi Thomas, going by the steps u mentioned earlier, if I change a property,say Font, in the SharedFonts.fla and save and publish, later if i publish the fla which imports the shared font, i don't see the change in font done in the SharedFonts.fla. >7. Once the font symbol from SharedFonts.fla is in your other .fla's library right click on it (in your other .fla's library) and go to properties. Check the "Export for ActionScript", "Export for runtime sharing" and "Export in first frame" checkboxes. Supply the location to SharedFonts.swf (e.g. SharedFonts.swf or somepath/SharedFonts.swf) in the URL field below the checkboxes. the receiving file, in shared library concept, usually "imports for runtime sharing" the object from the URL specified, but in the above line there is no import happening, in fact, both the SharedFonts.fla and receiving file are "exporting for runtime sharing". The idea behind shared libraries is "change in one place and it will get updated everywhere", but its not working here... Hope, I will get some clarification on this --- Arindam [EMAIL PROTECTED] wrote: So, to recap... 1. Create a SharedFonts.fla that will contain the font symbol you want to use in another movie. 2. Create the font symbol in SharedFonts.fla. Once the font symbol is created make sure to check the "Export for ActionScript", "Export in first frame" checkboxes in the Properties dialog box. 3. Publish the .swf for the SharedFonts.fla. 4. Open the .fla in which you want to use the font symbol from SharedFonts.swf. 5. Then, go to File -> Import -> Open shared library... and open SharedFonts.fla 6. Drag the font symbol from the SharedFonts.fla library into your other fla's library that will be using the font. 7. Once the font symbol from SharedFonts.fla is in your other .fla's library right click on it (in your other .fla's library) and go to properties. Check the "Export for ActionScript", "Export for runtime sharing" and "Export in first frame" checkboxes. Supply the location to SharedFonts.swf (e.g. SharedFonts.swf or somepath/SharedFonts.swf) in the URL field below the checkboxes. 8. Publish your other .fla and you should be good to go. One thing to be mindful of is the path to your SharedFonts.swf. This MUST be correct in order for these shared fonts to work. To simplify things I just placed the SharedFonts.swf in the same directory as my other .swf. I hope this helps someone Cheers, Thomas - Original Message - From: "Glen Pike" To: "Flashcoders mailing list" Sent: Tuesday, January 02, 2007 2:59 PM Subject: Re: [Flashcoders] createTextField and embedding fonts Hi, Yes, you will probably need to use "runtime sharing" and load in the fonts contained in a different file. Glen The question I have is it possible to apply a TextFormat to a TextField using an embedded font that is NOT in the container swf's library? If not then that is my problem and I think I can use shared libraries to counter this behavior. Either way, I was won
Re: [Flashcoders] Flash Tracer / FF2
I believe so, although I haven't tried it... Steven would know better than I... - Original Message - From: "slangeberg" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, January 09, 2007 9:33 AM Subject: Re: [Flashcoders] Flash Tracer / FF2 Does XRay work with AS3 / Flex 2 apps? -Scott On 1/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: There's a standalone debug executable available too at http://www.osflash.org/xray/ BLITZ | Steven Sacks - 310-551-0200 x208 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: Monday, January 08, 2007 3:54 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Flash Tracer / FF2 > > I can do you one better. Download the XRay connector and > classes from Blitz agency and use this link > http://www.rockonflash.com/xray/flex/Xray.html and tell me > what you think ;) > > T > > - Original Message - > From: "Eric Lee" <[EMAIL PROTECTED]> > To: "'Flashcoders mailing list'" > Sent: Monday, January 08, 2007 5:42 PM > Subject: [Flashcoders] Flash Tracer / FF2 > > > For those of you who haven't used it, there's a cool FF > plugin called > > Flash > > Tracer (https://addons.mozilla.org/firefox/3469/) that lets > you view any > > traces generated by a SWF within firefox. > > > > > > > > My problem is that, since upgrading to FF2, I haven't been > able to get it > > to > > work properly. Has anyone had similar issues / know of a fix? > > > > > > > > Thanks! > > > > -Eric > > > > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Tracer / FF2
I can do you one better. Download the XRay connector and classes from Blitz agency and use this link http://www.rockonflash.com/xray/flex/Xray.html and tell me what you think ;) T - Original Message - From: "Eric Lee" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Monday, January 08, 2007 5:42 PM Subject: [Flashcoders] Flash Tracer / FF2 For those of you who haven't used it, there's a cool FF plugin called Flash Tracer (https://addons.mozilla.org/firefox/3469/) that lets you view any traces generated by a SWF within firefox. My problem is that, since upgrading to FF2, I haven't been able to get it to work properly. Has anyone had similar issues / know of a fix? Thanks! -Eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Drag on a specific angle
Very well said... and I was wrong about calculating the slope. "m" IS the slope. Sorry for that... - Original Message - From: "Mark Winterhalder" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, January 05, 2007 10:21 AM Subject: Re: [Flashcoders] Drag on a specific angle it's not AS notation, 'mx' is actually 'm * x', and the m stands for the slope (i.e., the higher the m the steeper the angle). c is an offset, you won't need it. So, you take the mouse's x position, multiply by your slope, and get the y you want to set the dragged clip to. HTH, Mark On 1/5/07, eric dolecki <[EMAIL PROTECTED]> wrote: Mike - can you elaborate? On 1/5/07, Mike Mountain <[EMAIL PROTECTED]> wrote: > > So y=mx+c doesn't give good results? > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Merrill, Jason > > Sent: 05 January 2007 15:42 > > To: Flashcoders mailing list > > Subject: RE: [Flashcoders] Drag on a specific angle > > > > We investigated this recently. We found the easiest thing to > > do was create the drag interaction on a clip which has the > > standard horizontal orientation, and then rotate that clip. > > Constraining it to a sloped line was possible, but very tough > > to get smooth. > > > > Jason Merrill > > Bank of America > > Learning & Organizational Effectiveness > > > > > > > > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com http://training.figleaf.com > > > > > > ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ > > Tel: 01964 672000 > Fax: 01964 671102 > > Registered in England no. 01646471 > > The information contained within this email expresses the views of the > sender and not necessarily those of the company. It is private and > confidential and may be legally privileged. It is intended solely for > those > authorised to receive it. If you are not the intended recipient you are > hereby notified that any disclosure, copying, distribution or action > taken > in reliance on its contents is strictly prohibited and may be unlawful. > If > you have received this email in error, please telephone us immediately > on > 01964 672000 or email a reply to highlight the error and then delete it > from > your system. This email may contain links to web-sites, the contents of > which ECM Systems Ltd have no control over and can accept no > responsibility > for. Any attachments have been virus-checked before transmission; > however, > recipients are strongly advised to carry out their own virus checking > as ECM > Systems Ltd do not warrant that such attachments are virus-free. Please > note > that this email has been created in the knowledge that Internet email > is not > a secure communications medium. We advise that you understand and > observe > this lack of security when emailing us. > > ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ > > Tel: 01964 672000 > Fax: 01964 671102 > > Registered in England no. 01646471 > > The information contained within this email expresses the views of the > sender and not necessarily those of the company. > It is private and confidential and may be legally privileged. It is > intended solely for those authorised to receive it. If you are > not the intended recipient you are hereby notified that any disclosure, > copying, distribution or action taken in reliance on its > contents is strictly prohibited and may be unlawful. If you have > received > this email in error, please telephone us immediately > on 01964 672000 or email a reply to highlight the error and then delete > it > from your system. This email may contain links to > web-sites, the contents of which ECM Systems Ltd have no control over > and > can accept no responsibility for. Any > attachments have been virus-checked before transmission; however, > recipients are strongly advised to carry out their own > virus checking as ECM Systems Ltd do not warrant that such attachments > are > virus-free. > Please note that this email has been created in the knowledge that > Internet email is not a secure communications medium. > We advise that you understand and observe this lack of security when > emailing us. > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or searc
Re: [Flashcoders] Drag on a specific angle
Much like y = mx + b when determining the slope of a line. I think that was algebra... :) - Original Message - From: "Merrill, Jason" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, January 05, 2007 10:11 AM Subject: RE: [Flashcoders] Drag on a specific angle mx+c? Probably should explain yourself. :) Jason Merrill Bank of America Learning & Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: Friday, January 05, 2007 11:04 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Drag on a specific angle So y=mx+c doesn't give good results? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 05 January 2007 15:42 To: Flashcoders mailing list Subject: RE: [Flashcoders] Drag on a specific angle We investigated this recently. We found the easiest thing to do was create the drag interaction on a clip which has the standard horizontal orientation, and then rotate that clip. Constraining it to a sloped line was possible, but very tough to get smooth. Jason Merrill Bank of America Learning & Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ Tel: 01964 672000 Fax: 01964 671102 Registered in England no. 01646471 The information contained within this email expresses the views of the sender and not necessarily those of the company. It is private and confidential and may be legally privileged. It is intended solely for those authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or action taken in reliance on its contents is strictly prohibited and may be unlawful. If you have received this email in error, please telephone us immediately on 01964 672000 or email a reply to highlight the error and then delete it from your system. This email may contain links to web-sites, the contents of which ECM Systems Ltd have no control over and can accept no responsibility for. Any attachments have been virus-checked before transmission; however, recipients are strongly advised to carry out their own virus checking as ECM Systems Ltd do not warrant that such attachments are virus-free. Please note that this email has been created in the knowledge that Internet email is not a secure communications medium. We advise that you understand and observe this lack of security when emailing us. ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ Tel: 01964 672000 Fax: 01964 671102 Registered in England no. 01646471 The information contained within this email expresses the views of the sender and not necessarily those of the company. It is private and confidential and may be legally privileged. It is intended solely for those authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or action taken in reliance on its contents is strictly prohibited and may be unlawful. If you have received this email in error, please telephone us immediately on 01964 672000 or email a reply to highlight the error and then delete it from your system. This email may contain links to web-sites, the contents of which ECM Systems Ltd have no control over and can accept no responsibility for. Any attachments have been virus-checked before transmission; however, recipients are strongly advised to carry out their own virus checking as ECM Systems Ltd do not warrant that such attachments are virus-free. Please note that this email has been created in the knowledge that Internet email is not a secure communications medium. We advise that you understand and observe this lack of security when emailing us. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chatty
Re: [Flashcoders] createTextField and embedding fonts
I think you might be right here Arindam. Perhaps in the receiving file I merely need to do an import for runtime sharing instead of exporting it in the shared fonts swf. The documentation has always been a little spotty in terms of what's actually going on when using shared libraries... Thanks for the response! - Original Message - From: "Arindam Dhar" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, January 03, 2007 4:43 AM Subject: Re: [Flashcoders] createTextField and embedding fonts hi Thomas, going by the steps u mentioned earlier, if I change a property,say Font, in the SharedFonts.fla and save and publish, later if i publish the fla which imports the shared font, i don't see the change in font done in the SharedFonts.fla. >7. Once the font symbol from SharedFonts.fla is in your other .fla's library right click on it (in your other .fla's library) and go to properties. Check the "Export for ActionScript", "Export for runtime sharing" and "Export in first frame" checkboxes. Supply the location to SharedFonts.swf (e.g. SharedFonts.swf or somepath/SharedFonts.swf) in the URL field below the checkboxes. the receiving file, in shared library concept, usually "imports for runtime sharing" the object from the URL specified, but in the above line there is no import happening, in fact, both the SharedFonts.fla and receiving file are "exporting for runtime sharing". The idea behind shared libraries is "change in one place and it will get updated everywhere", but its not working here... Hope, I will get some clarification on this --- Arindam [EMAIL PROTECTED] wrote: So, to recap... 1. Create a SharedFonts.fla that will contain the font symbol you want to use in another movie. 2. Create the font symbol in SharedFonts.fla. Once the font symbol is created make sure to check the "Export for ActionScript", "Export in first frame" checkboxes in the Properties dialog box. 3. Publish the .swf for the SharedFonts.fla. 4. Open the .fla in which you want to use the font symbol from SharedFonts.swf. 5. Then, go to File -> Import -> Open shared library... and open SharedFonts.fla 6. Drag the font symbol from the SharedFonts.fla library into your other fla's library that will be using the font. 7. Once the font symbol from SharedFonts.fla is in your other .fla's library right click on it (in your other .fla's library) and go to properties. Check the "Export for ActionScript", "Export for runtime sharing" and "Export in first frame" checkboxes. Supply the location to SharedFonts.swf (e.g. SharedFonts.swf or somepath/SharedFonts.swf) in the URL field below the checkboxes. 8. Publish your other .fla and you should be good to go. One thing to be mindful of is the path to your SharedFonts.swf. This MUST be correct in order for these shared fonts to work. To simplify things I just placed the SharedFonts.swf in the same directory as my other .swf. I hope this helps someone Cheers, Thomas - Original Message - From: "Glen Pike" To: "Flashcoders mailing list" Sent: Tuesday, January 02, 2007 2:59 PM Subject: Re: [Flashcoders] createTextField and embedding fonts Hi, Yes, you will probably need to use "runtime sharing" and load in the fonts contained in a different file. Glen The question I have is it possible to apply a TextFormat to a TextField using an embedded font that is NOT in the container swf's library? If not then that is my problem and I think I can use shared libraries to counter this behavior. Either way, I was wondering if someone could clarify some of this for me. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Send instant messages to your online friends http://asia.messenger.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training
Re: [Flashcoders] createTextField and embedding fonts
I ended up using Shared libraries but that wasn't the problem. I'm almost embarrassed to say... I had a movieclip where I was setting it's visibility to false and therefore wasn't seeing it. Wow... that was definitely a dumba$$ moment. I did however find that the shared library route was much more predictable. Everyone probably knows this but I'll post what I did anyway... I made a separate .fla called SharedFonts.fla and inside of that created a font symbol. I then checked the "Export for ActionScript" and the "Export in first frame" checkboxes. From there, I imported the SharedFonts.fla into my view .fla containing the text to which I wanted to apply the particular font. This part is a bit counter-intuitive. In order for the symbol to be available during runtime from my view .swf, the symbol inside of the view fla has to have a few properties set as well. First you must check the "Export for ActionScript" checkbox and supply a linkage identifier. Second, and this is the counter-intuitive portion, you MUST check the "Export for runtime sharing" check box and subsequently provide the location to the shared library .swf containing the font symbol. In my case this was SharedFonts.swf. Last, and I'm not sure if this is necessary or not, is to check the "Export in first frame". So, to recap... 1. Create a SharedFonts.fla that will contain the font symbol you want to use in another movie. 2. Create the font symbol in SharedFonts.fla. Once the font symbol is created make sure to check the "Export for ActionScript", "Export in first frame" checkboxes in the Properties dialog box. 3. Publish the .swf for the SharedFonts.fla. 4. Open the .fla in which you want to use the font symbol from SharedFonts.swf. 5. Then, go to File -> Import -> Open shared library... and open SharedFonts.fla 6. Drag the font symbol from the SharedFonts.fla library into your other fla's library that will be using the font. 7. Once the font symbol from SharedFonts.fla is in your other .fla's library right click on it (in your other .fla's library) and go to properties. Check the "Export for ActionScript", "Export for runtime sharing" and "Export in first frame" checkboxes. Supply the location to SharedFonts.swf (e.g. SharedFonts.swf or somepath/SharedFonts.swf) in the URL field below the checkboxes. 8. Publish your other .fla and you should be good to go. One thing to be mindful of is the path to your SharedFonts.swf. This MUST be correct in order for these shared fonts to work. To simplify things I just placed the SharedFonts.swf in the same directory as my other .swf. I hope this helps someone Cheers, Thomas - Original Message - From: "Glen Pike" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, January 02, 2007 2:59 PM Subject: Re: [Flashcoders] createTextField and embedding fonts Hi, Yes, you will probably need to use "runtime sharing" and load in the fonts contained in a different file. Glen The question I have is it possible to apply a TextFormat to a TextField using an embedded font that is NOT in the container swf's library? If not then that is my problem and I think I can use shared libraries to counter this behavior. Either way, I was wondering if someone could clarify some of this for me. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] createTextField and embedding fonts
All- I'm sorry to do this and I'm sure someone has an explanation here, but I'm at my wit's end. I have an empty swf that is loading another swf with all of my views, assets etc. I am creating a font symbol in the "view" swf's library to be used later by dynamic TextFields. The font symbol is being exported for ActionScript and has a linkage identifier. From the container swf I'm dynamically creating dynamic TextFields within the "view" swf and setting the embedFonts and text properties appropriately like so: textTitleFormat = new TextFormat(); textTitleFormat.font= "AkzidenzGroteskBE"; textTitleFormat.color = 0x51433D; textTitleFormat.align = "left"; textTitleFormat.underline = true; textTitleFormat.size= 24; titleText = curProductText.createTextField("Title" + "_" + date.getTime(), curProductText.getNextHighestDepth(), this.View.copyBox.Title._x, this.View.copyBox.Title._y, this.View.copyBox.Title._width, this.View.copyBox.Title._height); titleText.text = title; // where title is a string; this is tracing out the value I expect titleText.type = "dynamic"; titleText.embedFonts = true; titleText.antiAliasType = "normal"; titleText.setTextFormat(textTitleFormat); The question I have is it possible to apply a TextFormat to a TextField using an embedded font that is NOT in the container swf's library? If not then that is my problem and I think I can use shared libraries to counter this behavior. Either way, I was wondering if someone could clarify some of this for me. Thanks, Thomas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com