Re: [Flashcoders] debugging events
Hi, you can check willTrigger(youreventtype), assuming its as3. Can you post the event constants here so we can take a look at them and the dispatching and listener code? regards JC On Thu, Sep 3, 2009 at 10:30 PM, Joel Stransky wrote: > I have some custom event classes for my project but one of them is just > failing outright. I can verify that the function that dispatches the event > is being called correctly but the object that's listening for it will never > get it. The event class has two constants, one works, one doesn't. Is there > a good way to verify that events are being broadcast or to debug wtf the > handler never gets triggered? > > Thanks. > > -- > --Joel Stransky > stranskydesign.com > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error when trying to embed a font
That's explained in the docs tbh: http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_09.html I always use that approach for embedding fonts in Flex. - Original Message - From: "Matt Gitchell" To: "Flash Coders List" Sent: Thursday, September 03, 2009 7:25 PM Subject: Re: [Flashcoders] Error when trying to embed a font Sheesh. I totally forgot, I've done this before: Create a TextField in your FLA, embed the selected character set into that textfield, stick that in a symbol, use [Embed] to embed that symbol ( [Embed(source="blah.swf", symbol="textMC")]), then you're off to the fonty races, if memory serves. I've gotten this to work in the past, but honestly I forget the particulars. --Matt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] debugging events
I have some custom event classes for my project but one of them is just failing outright. I can verify that the function that dispatches the event is being called correctly but the object that's listening for it will never get it. The event class has two constants, one works, one doesn't. Is there a good way to verify that events are being broadcast or to debug wtf the handler never gets triggered? Thanks. -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 1120: Access of undefined property
static function, they have a limited scope, can't see class variables unless their static On Thu, Sep 3, 2009 at 3:23 PM, Isaac Alves wrote: > could someone please tell me why in the following script , the flash > runtime doesn´t recognize the var counter? > 1120: Access of undefined property counter. > > package > { > public class StringUtils > { >public var counter:int = 0; > >public static function generateRandomString(newLength:uint = 1, > userAlphabet:String = > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String >{ >trace (counter); > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] 1120: Access of undefined property
Because you function is static -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves Sent: donderdag 3 september 2009 21:24 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] 1120: Access of undefined property could someone please tell me why in the following script , the flash runtime doesn´t recognize the var counter? 1120: Access of undefined property counter. package { public class StringUtils { public var counter:int = 0; public static function generateRandomString(newLength:uint = 1, userAlphabet:String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String { trace (counter); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 1120: Access of undefined property
Because counter is a class property and your function is static. Try this: public static var counter:int = 0; > From: Isaac Alves > Reply-To: Flash Coders List > Date: Thu, 3 Sep 2009 16:23:36 -0300 > To: > Subject: [Flashcoders] 1120: Access of undefined property > > could someone please tell me why in the following script , the flash > runtime doesn´t recognize the var counter? > 1120: Access of undefined property counter. > > package > { > public class StringUtils > { > public var counter:int = 0; > > public static function generateRandomString(newLength:uint = 1, > userAlphabet:String = > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String > { > trace (counter); > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 1120: Access of undefined property
Because your function is static. Either make your var static too: public static var counter:int=0; or make your function non-static. I'm sure you can Google static/non-static class members, but in short, anything that's non-static is only available from within a class instance (i.e. someone needs to have called new StringUtils()). HTH, Ian On Thu, Sep 3, 2009 at 8:23 PM, Isaac Alves wrote: > could someone please tell me why in the following script , the flash > runtime doesn´t recognize the var counter? > 1120: Access of undefined property counter. > > package > { > public class StringUtils > { > public var counter:int = 0; > > public static function generateRandomString(newLength:uint = 1, > userAlphabet:String = > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String > { > trace (counter); > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] 1120: Access of undefined property
could someone please tell me why in the following script , the flash runtime doesn´t recognize the var counter? 1120: Access of undefined property counter. package { public class StringUtils { public var counter:int = 0; public static function generateRandomString(newLength:uint = 1, userAlphabet:String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String { trace (counter); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error when trying to embed a font
I'll give that a try. Thanks! :) Andrew Murphy Interactive Media Specialist amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > Of Matt Gitchell > Sent: Thursday, September 03, 2009 1:25 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Error when trying to embed a font > > Sheesh. I totally forgot, I've done this before: > Create a TextField in your FLA, embed the selected character > set into that textfield, stick that in a symbol, use [Embed] > to embed that symbol ( [Embed(source="blah.swf", > symbol="textMC")]), then you're off to the fonty races, if > memory serves. I've gotten this to work in the past, but > honestly I forget the particulars. > > --Matt > > On Thu, Sep 3, 2009 at 10:04 AM, Ktu > wrote: > > > The only thing I can suggest is looking at Lee Brimelow's > tutorial on > > using [Embed] for fonts. Maybe going through that tutorial > will enlighten you. > > > > http://gotoandlearn.com/play?id=102 > > > > Kttu > > > > On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy > > > wrote: > > > > > Hi again, Ian. :) > > > > > > I have tried a few different variations on the font name, but I > > > hadn't tried using Font.enumerateFonts() to list the > system's names > > > for the fonts. > > > Thank > > > you for that suggestion. :) I gave it a try, listing out the > > > fontName > > and > > > fontStyle props and ended up with this: > > > > > > name: Akzidenz Grotesk BE style: regular > > > name: Akzidenz Grotesk BE Bold style: regular > > > name: Akzidenz Grotesk BE BoldEx style: regular > > > name: Akzidenz Grotesk BE Ex style: regular > > > name: Akzidenz Grotesk BE Light style: regular > > > name: Akzidenz Grotesk BE LightEx style: regular > > > name: Akzidenz Grotesk BE LightOsF style: regular > > > name: Akzidenz Grotesk BE LightSC style: regular > > > name: Akzidenz Grotesk BE MdEx style: regular > > > name: Akzidenz Grotesk BE Super style: regular > > > > > > > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it > > another > > > try, like this: > > > > > > [Embed( > > > systemFont="Akzidenz Grotesk BE", > > > fontName="AkzidenzOTF", > > > mimeType="application/x-font", > > > unicodeRange="U+0021-U+00FF" > > > )] > > > var akzidenz_otf:Class; > > > Font.registerFont(akzidenz_otf); > > > > > > > > > And it throws the exact same error. > > > > > > > > > > > > However I have managed to get it working, sort of, by > just creating > > > Font Symbols in my FLA's Library. It means embedding the > whole dern > > > font, rather than a smaller subset of characters, but at least it > > > works. > > > > > > I guess this is "solved". More-or-less. > > > > > > > > > Thank you for your help. ^_^ > > > > > > > > > > > > > > > > > > Andrew Murphy > > > Interactive Media Specialist > > > amur...@delvinia.com > > > > > > Delvinia > > > 214 King Street West, Suite 214 > > > Toronto Canada M5H 3S6 > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > CONFIDENTIALITY NOTICE > > > This email message may contain privileged or confidential > > > information. If you are not the intended recipient or > received this > > > communication by > > error, > > > please notify the sender and delete the message without > copying or > > > disclosing it. > > > > > > AVIS DE CONFIDENTIALITÉ > > > Ce message peut contenir de l'information légalement > privilégiée ou > > > confidentielle. Si vous n'êtes pas le destinataire ou > croyez avoir > > > reçu > > par > > > erreur ce message, nous vous saurions gré d'en aviser > l'émetteur et > > > d'en détruire le contenu sans le communiquer a d'autres > ou le reproduire. > > > > > > > > > > > > > -Original Message- > > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of > > > > Ian Thomas > > > > Sent: Monday, August 31, 2009 1:31 PM > > > > To: Flash Coders List > > > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > > > > > Sorry! My poor reading! > > > > > > > > The normal reason for such errors is that the na
Re: [Flashcoders] Hello. FLVPlayback as3 3.0
Yes! It works. Thanks. Tomek. 2009/9/3 Keith Reinfeld : > It seems you need to place the SkinUnderAllNoFullNoCaption.swf skin file on > the server as well. > > Regards, > > Keith Reinfeld > Home Page: http://keithreinfeld.home.comcast.net > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tomasz > Fertacz > Sent: Thursday, September 03, 2009 11:24 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Hello. FLVPlayback as3 3.0 > > Hello! > > I have a problem with FLVPlayback as3 3.0 component. > On localhost everything is ok. > But when i put the swf file on the server FLVPlayback component > doesn`t contain menu. > What`s the problem? > > Link to this site: http://www.ultra.wroclaw.pl/anna/full_screen_flash.html. > > There is no menu. > > 10x > Tomek. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error when trying to embed a font
Sheesh. I totally forgot, I've done this before: Create a TextField in your FLA, embed the selected character set into that textfield, stick that in a symbol, use [Embed] to embed that symbol ( [Embed(source="blah.swf", symbol="textMC")]), then you're off to the fonty races, if memory serves. I've gotten this to work in the past, but honestly I forget the particulars. --Matt On Thu, Sep 3, 2009 at 10:04 AM, Ktu wrote: > The only thing I can suggest is looking at Lee Brimelow's tutorial on using > [Embed] for fonts. Maybe going through that tutorial will enlighten you. > > http://gotoandlearn.com/play?id=102 > > Kttu > > On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy > wrote: > > > Hi again, Ian. :) > > > > I have tried a few different variations on the font name, but I hadn't > > tried > > using Font.enumerateFonts() to list the system's names for the fonts. > > Thank > > you for that suggestion. :) I gave it a try, listing out the fontName > and > > fontStyle props and ended up with this: > > > > name: Akzidenz Grotesk BE style: regular > > name: Akzidenz Grotesk BE Bold style: regular > > name: Akzidenz Grotesk BE BoldEx style: regular > > name: Akzidenz Grotesk BE Ex style: regular > > name: Akzidenz Grotesk BE Light style: regular > > name: Akzidenz Grotesk BE LightEx style: regular > > name: Akzidenz Grotesk BE LightOsF style: regular > > name: Akzidenz Grotesk BE LightSC style: regular > > name: Akzidenz Grotesk BE MdEx style: regular > > name: Akzidenz Grotesk BE Super style: regular > > > > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it > another > > try, like this: > > > > [Embed( > > systemFont="Akzidenz Grotesk BE", > > fontName="AkzidenzOTF", > > mimeType="application/x-font", > > unicodeRange="U+0021-U+00FF" > > )] > > var akzidenz_otf:Class; > > Font.registerFont(akzidenz_otf); > > > > > > And it throws the exact same error. > > > > > > > > However I have managed to get it working, sort of, by just creating Font > > Symbols in my FLA's Library. It means embedding the whole dern font, > > rather > > than a smaller subset of characters, but at least it works. > > > > I guess this is "solved". More-or-less. > > > > > > Thank you for your help. ^_^ > > > > > > > > > > > > Andrew Murphy > > Interactive Media Specialist > > amur...@delvinia.com > > > > Delvinia > > 214 King Street West, Suite 214 > > Toronto Canada M5H 3S6 > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > CONFIDENTIALITY NOTICE > > This email message may contain privileged or confidential information. If > > you are not the intended recipient or received this communication by > error, > > please notify the sender and delete the message without copying or > > disclosing it. > > > > AVIS DE CONFIDENTIALITÉ > > Ce message peut contenir de l'information légalement privilégiée ou > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu > par > > erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en > > détruire le contenu sans le communiquer a d'autres ou le reproduire. > > > > > > > > > -Original Message- > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > > > Of Ian Thomas > > > Sent: Monday, August 31, 2009 1:31 PM > > > To: Flash Coders List > > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > > > Sorry! My poor reading! > > > > > > The normal reason for such errors is that the name of the > > > font (when using systemFont) does not exactly match the name > > > your system thinks it should be. This can be complicated by > > > font variants - you say you've already tried combinations of > > > fontStyle, fontWeight etc. Have you tried those variants > > > within the name? Could it be something like the name should > > > be "Berthold Akzidenz Grotesk Bold" and you should have > > > fontWeight set to bold? > > > > > > Have you tried Font.enumerateFonts() to list what fonts your > > > Flash Player thinks is available on your system, and what > > > their names are? > > > > > > Ian > > > > > > On Mon, Aug 31, 2009 at 6:01 PM, Andrew > > > Murphy wrote: > > > > Hi, Ian. :) > > > > > > > > Thanks, but I tried that already, I mentioned it in my > > > first post. It > > > > throws the same error. > > > > > > > > > > > > > > > > Andrew Murphy > > > > Interactive Media Specialist > > > > amur...@delvinia.com > > > > > > > > Delvinia > > > > 214 King Street West, Suite 214 > > > > Toronto Canada M5H 3S6 > > > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > > > CONFIDENTIALITY NOTICE > > > > This email message may contain privileged or confidential > > > information. > > > > If you are not the intended recipient or received this > > > communication > > > > by error, please notify the sender and delete the message without > > > > c
RE: [Flashcoders] Hello. FLVPlayback as3 3.0
It seems you need to place the SkinUnderAllNoFullNoCaption.swf skin file on the server as well. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tomasz Fertacz Sent: Thursday, September 03, 2009 11:24 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Hello. FLVPlayback as3 3.0 Hello! I have a problem with FLVPlayback as3 3.0 component. On localhost everything is ok. But when i put the swf file on the server FLVPlayback component doesn`t contain menu. What`s the problem? Link to this site: http://www.ultra.wroclaw.pl/anna/full_screen_flash.html. There is no menu. 10x Tomek. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error when trying to embed a font
Hello Matt. :) Yes, it's a Type1 font. .pfm So Flash only allows the embedding of True Type (.ttf) fonts then? Okay. I'll keep that mind in the future, though the choice of what font to use is up to the Graphic Designers. Thank you. :) Andrew Murphy Interactive Media Specialist amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > Of Matt Gitchell > Sent: Thursday, September 03, 2009 1:20 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Error when trying to embed a font > > You said you were looking for a .pfm file down below, is it a > PostScript font? If so, doing a font library symbol is your > only recourse. > --Matt > > On Thu, Sep 3, 2009 at 10:04 AM, Ktu > wrote: > > > The only thing I can suggest is looking at Lee Brimelow's > tutorial on > > using [Embed] for fonts. Maybe going through that tutorial > will enlighten you. > > > > http://gotoandlearn.com/play?id=102 > > > > Kttu > > > > On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy > > > wrote: > > > > > Hi again, Ian. :) > > > > > > I have tried a few different variations on the font name, but I > > > hadn't tried using Font.enumerateFonts() to list the > system's names > > > for the fonts. > > > Thank > > > you for that suggestion. :) I gave it a try, listing out the > > > fontName > > and > > > fontStyle props and ended up with this: > > > > > > name: Akzidenz Grotesk BE style: regular > > > name: Akzidenz Grotesk BE Bold style: regular > > > name: Akzidenz Grotesk BE BoldEx style: regular > > > name: Akzidenz Grotesk BE Ex style: regular > > > name: Akzidenz Grotesk BE Light style: regular > > > name: Akzidenz Grotesk BE LightEx style: regular > > > name: Akzidenz Grotesk BE LightOsF style: regular > > > name: Akzidenz Grotesk BE LightSC style: regular > > > name: Akzidenz Grotesk BE MdEx style: regular > > > name: Akzidenz Grotesk BE Super style: regular > > > > > > > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it > > another > > > try, like this: > > > > > > [Embed( > > > systemFont="Akzidenz Grotesk BE", > > > fontName="AkzidenzOTF", > > > mimeType="application/x-font", > > > unicodeRange="U+0021-U+00FF" > > > )] > > > var akzidenz_otf:Class; > > > Font.registerFont(akzidenz_otf); > > > > > > > > > And it throws the exact same error. > > > > > > > > > > > > However I have managed to get it working, sort of, by > just creating > > > Font Symbols in my FLA's Library. It means embedding the > whole dern > > > font, rather than a smaller subset of characters, but at least it > > > works. > > > > > > I guess this is "solved". More-or-less. > > > > > > > > > Thank you for your help. ^_^ > > > > > > > > > > > > > > > > > > Andrew Murphy > > > Interactive Media Specialist > > > amur...@delvinia.com > > > > > > Delvinia > > > 214 King Street West, Suite 214 > > > Toronto Canada M5H 3S6 > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > CONFIDENTIALITY NOTICE > > > This email message may contain privileged or confidential > > > information. If you are not the intended recipient or > received this > > > communication by > > error, > > > please notify the sender and delete the message without > copying or > > > disclosing it. > > > > > > AVIS DE CONFIDENTIALITÉ > > > Ce message peut contenir de l'information légalement > privilégiée ou > > > confidentielle. Si vous n'êtes pas le destinataire ou > croyez avoir > > > reçu > > par > > > erreur ce message, nous vous saurions gré d'en aviser > l'émetteur et > > > d'en détruire le contenu sans le communiquer a d'autres > ou le reproduire. > > > > > > > > > > > > > -Original Message- > > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of > > > > Ian Thomas > > > > Sent: Monday, August 31, 2009 1:31 PM > > > > To: Flash Coders List > > > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > > > > > Sorry! My poor reading! > > > > > > > > The normal reason for such errors is that the name of the font > > > > (when using syste
RE: [Flashcoders] Error when trying to embed a font
Hi Kttu. :) Actually, that video is what got me started with trying to use Flash CS4 to embed a selection of characters, rather than the whole thing. Unfortunately it doesn't contain any answers to the problem I am having. Embedding the whole font, by making it into a Library Symbol, seems to be the only solution. Thank you anyway. :) Andrew Murphy Interactive Media Specialist amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu > Sent: Thursday, September 03, 2009 1:04 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Error when trying to embed a font > > The only thing I can suggest is looking at Lee Brimelow's > tutorial on using [Embed] for fonts. Maybe going through that > tutorial will enlighten you. > > http://gotoandlearn.com/play?id=102 > > Kttu > > On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy > wrote: > > > Hi again, Ian. :) > > > > I have tried a few different variations on the font name, > but I hadn't > > tried using Font.enumerateFonts() to list the system's > names for the > > fonts. > > Thank > > you for that suggestion. :) I gave it a try, listing out > the fontName > > and fontStyle props and ended up with this: > > > > name: Akzidenz Grotesk BE style: regular > > name: Akzidenz Grotesk BE Bold style: regular > > name: Akzidenz Grotesk BE BoldEx style: regular > > name: Akzidenz Grotesk BE Ex style: regular > > name: Akzidenz Grotesk BE Light style: regular > > name: Akzidenz Grotesk BE LightEx style: regular > > name: Akzidenz Grotesk BE LightOsF style: regular > > name: Akzidenz Grotesk BE LightSC style: regular > > name: Akzidenz Grotesk BE MdEx style: regular > > name: Akzidenz Grotesk BE Super style: regular > > > > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it > > another try, like this: > > > > [Embed( > > systemFont="Akzidenz Grotesk BE", > > fontName="AkzidenzOTF", > > mimeType="application/x-font", > > unicodeRange="U+0021-U+00FF" > > )] > > var akzidenz_otf:Class; > > Font.registerFont(akzidenz_otf); > > > > > > And it throws the exact same error. > > > > > > > > However I have managed to get it working, sort of, by just creating > > Font Symbols in my FLA's Library. It means embedding the > whole dern > > font, rather than a smaller subset of characters, but at least it > > works. > > > > I guess this is "solved". More-or-less. > > > > > > Thank you for your help. ^_^ > > > > > > > > > > > > Andrew Murphy > > Interactive Media Specialist > > amur...@delvinia.com > > > > Delvinia > > 214 King Street West, Suite 214 > > Toronto Canada M5H 3S6 > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > CONFIDENTIALITY NOTICE > > This email message may contain privileged or confidential > information. > > If you are not the intended recipient or received this > communication > > by error, please notify the sender and delete the message without > > copying or disclosing it. > > > > AVIS DE CONFIDENTIALITÉ > > Ce message peut contenir de l'information légalement privilégiée ou > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir > > reçu par erreur ce message, nous vous saurions gré d'en aviser > > l'émetteur et d'en détruire le contenu sans le communiquer > a d'autres ou le reproduire. > > > > > > > > > -Original Message- > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On > Behalf Of Ian > > > Thomas > > > Sent: Monday, August 31, 2009 1:31 PM > > > To: Flash Coders List > > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > > > Sorry! My poor reading! > > > > > > The normal reason for such errors is that the name of the > font (when > > > using systemFont) does not exactly match the name your > system thinks > > > it should be. This can be complicated by font variants - you say > > > you've already tried combinations of fontStyle, > fontWeight etc. Have > > > you tried those variants within the name? Could it be > something like > > > the name should be "Berthold Akzidenz Grotesk Bold" a
[Flashcoders] problem with dictonary on dynamic buttons
ok i'm creating a dictionary to store the values contained by some sprites that im using as button but i keep getting term undefined when i click on the item in the output. //create dictionary to store data public var dict:Dictionary = new Dictionary(); for (var Wi:int=0; Wi < len; Wi++) { if (assetArray[Wi] is IBitmapSprite) { trace(assetArray[Wi]); var myBitmap=IBitmapSprite(assetArray[Wi]).container; IBitmapSprite(assetArray[Wi]).content.visible=true; //assign data to dictionary item dict[(assetArray[Wi]).no...@goto] myBitmap.visible=true; myBitmap.x=xPos; myBitmap.y=0; xPos=xPos+myBitmap.width+padding; myBitmap.alpha=1; trace(myBitmap.x); trace(myBitmap.width); // new stuff myBitmap.buttonMode=true; myBitmap.addEventListener(MouseEvent.CLICK, bitmapClick); scroller.holder.addChild(myBitmap); } function bitmapClick(e:Event) { trace(dict[e.target]); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error when trying to embed a font
You said you were looking for a .pfm file down below, is it a PostScript font? If so, doing a font library symbol is your only recourse. --Matt On Thu, Sep 3, 2009 at 10:04 AM, Ktu wrote: > The only thing I can suggest is looking at Lee Brimelow's tutorial on using > [Embed] for fonts. Maybe going through that tutorial will enlighten you. > > http://gotoandlearn.com/play?id=102 > > Kttu > > On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy > wrote: > > > Hi again, Ian. :) > > > > I have tried a few different variations on the font name, but I hadn't > > tried > > using Font.enumerateFonts() to list the system's names for the fonts. > > Thank > > you for that suggestion. :) I gave it a try, listing out the fontName > and > > fontStyle props and ended up with this: > > > > name: Akzidenz Grotesk BE style: regular > > name: Akzidenz Grotesk BE Bold style: regular > > name: Akzidenz Grotesk BE BoldEx style: regular > > name: Akzidenz Grotesk BE Ex style: regular > > name: Akzidenz Grotesk BE Light style: regular > > name: Akzidenz Grotesk BE LightEx style: regular > > name: Akzidenz Grotesk BE LightOsF style: regular > > name: Akzidenz Grotesk BE LightSC style: regular > > name: Akzidenz Grotesk BE MdEx style: regular > > name: Akzidenz Grotesk BE Super style: regular > > > > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it > another > > try, like this: > > > > [Embed( > > systemFont="Akzidenz Grotesk BE", > > fontName="AkzidenzOTF", > > mimeType="application/x-font", > > unicodeRange="U+0021-U+00FF" > > )] > > var akzidenz_otf:Class; > > Font.registerFont(akzidenz_otf); > > > > > > And it throws the exact same error. > > > > > > > > However I have managed to get it working, sort of, by just creating Font > > Symbols in my FLA's Library. It means embedding the whole dern font, > > rather > > than a smaller subset of characters, but at least it works. > > > > I guess this is "solved". More-or-less. > > > > > > Thank you for your help. ^_^ > > > > > > > > > > > > Andrew Murphy > > Interactive Media Specialist > > amur...@delvinia.com > > > > Delvinia > > 214 King Street West, Suite 214 > > Toronto Canada M5H 3S6 > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > CONFIDENTIALITY NOTICE > > This email message may contain privileged or confidential information. If > > you are not the intended recipient or received this communication by > error, > > please notify the sender and delete the message without copying or > > disclosing it. > > > > AVIS DE CONFIDENTIALITÉ > > Ce message peut contenir de l'information légalement privilégiée ou > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu > par > > erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en > > détruire le contenu sans le communiquer a d'autres ou le reproduire. > > > > > > > > > -Original Message- > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > > > Of Ian Thomas > > > Sent: Monday, August 31, 2009 1:31 PM > > > To: Flash Coders List > > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > > > Sorry! My poor reading! > > > > > > The normal reason for such errors is that the name of the > > > font (when using systemFont) does not exactly match the name > > > your system thinks it should be. This can be complicated by > > > font variants - you say you've already tried combinations of > > > fontStyle, fontWeight etc. Have you tried those variants > > > within the name? Could it be something like the name should > > > be "Berthold Akzidenz Grotesk Bold" and you should have > > > fontWeight set to bold? > > > > > > Have you tried Font.enumerateFonts() to list what fonts your > > > Flash Player thinks is available on your system, and what > > > their names are? > > > > > > Ian > > > > > > On Mon, Aug 31, 2009 at 6:01 PM, Andrew > > > Murphy wrote: > > > > Hi, Ian. :) > > > > > > > > Thanks, but I tried that already, I mentioned it in my > > > first post. It > > > > throws the same error. > > > > > > > > > > > > > > > > Andrew Murphy > > > > Interactive Media Specialist > > > > amur...@delvinia.com > > > > > > > > Delvinia > > > > 214 King Street West, Suite 214 > > > > Toronto Canada M5H 3S6 > > > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > > > CONFIDENTIALITY NOTICE > > > > This email message may contain privileged or confidential > > > information. > > > > If you are not the intended recipient or received this > > > communication > > > > by error, please notify the sender and delete the message without > > > > copying or disclosing it. > > > > > > > > AVIS DE CONFIDENTIALITÉ > > > > Ce message peut contenir de l'information légalement privilégiée ou > > > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir > > > > reçu par err
Re: [Flashcoders] Error when trying to embed a font
The only thing I can suggest is looking at Lee Brimelow's tutorial on using [Embed] for fonts. Maybe going through that tutorial will enlighten you. http://gotoandlearn.com/play?id=102 Kttu On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy wrote: > Hi again, Ian. :) > > I have tried a few different variations on the font name, but I hadn't > tried > using Font.enumerateFonts() to list the system's names for the fonts. > Thank > you for that suggestion. :) I gave it a try, listing out the fontName and > fontStyle props and ended up with this: > > name: Akzidenz Grotesk BE style: regular > name: Akzidenz Grotesk BE Bold style: regular > name: Akzidenz Grotesk BE BoldEx style: regular > name: Akzidenz Grotesk BE Ex style: regular > name: Akzidenz Grotesk BE Light style: regular > name: Akzidenz Grotesk BE LightEx style: regular > name: Akzidenz Grotesk BE LightOsF style: regular > name: Akzidenz Grotesk BE LightSC style: regular > name: Akzidenz Grotesk BE MdEx style: regular > name: Akzidenz Grotesk BE Super style: regular > > > I'd already tried "Akzidenz Grotesk BE" but just in case I gave it another > try, like this: > > [Embed( > systemFont="Akzidenz Grotesk BE", > fontName="AkzidenzOTF", > mimeType="application/x-font", > unicodeRange="U+0021-U+00FF" > )] > var akzidenz_otf:Class; > Font.registerFont(akzidenz_otf); > > > And it throws the exact same error. > > > > However I have managed to get it working, sort of, by just creating Font > Symbols in my FLA's Library. It means embedding the whole dern font, > rather > than a smaller subset of characters, but at least it works. > > I guess this is "solved". More-or-less. > > > Thank you for your help. ^_^ > > > > > > Andrew Murphy > Interactive Media Specialist > amur...@delvinia.com > > Delvinia > 214 King Street West, Suite 214 > Toronto Canada M5H 3S6 > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > CONFIDENTIALITY NOTICE > This email message may contain privileged or confidential information. If > you are not the intended recipient or received this communication by error, > please notify the sender and delete the message without copying or > disclosing it. > > AVIS DE CONFIDENTIALITÉ > Ce message peut contenir de l'information légalement privilégiée ou > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par > erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en > détruire le contenu sans le communiquer a d'autres ou le reproduire. > > > > > -Original Message- > > From: flashcoders-boun...@chattyfig.figleaf.com > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > > Of Ian Thomas > > Sent: Monday, August 31, 2009 1:31 PM > > To: Flash Coders List > > Subject: Re: [Flashcoders] Error when trying to embed a font > > > > Sorry! My poor reading! > > > > The normal reason for such errors is that the name of the > > font (when using systemFont) does not exactly match the name > > your system thinks it should be. This can be complicated by > > font variants - you say you've already tried combinations of > > fontStyle, fontWeight etc. Have you tried those variants > > within the name? Could it be something like the name should > > be "Berthold Akzidenz Grotesk Bold" and you should have > > fontWeight set to bold? > > > > Have you tried Font.enumerateFonts() to list what fonts your > > Flash Player thinks is available on your system, and what > > their names are? > > > > Ian > > > > On Mon, Aug 31, 2009 at 6:01 PM, Andrew > > Murphy wrote: > > > Hi, Ian. :) > > > > > > Thanks, but I tried that already, I mentioned it in my > > first post. It > > > throws the same error. > > > > > > > > > > > > Andrew Murphy > > > Interactive Media Specialist > > > amur...@delvinia.com > > > > > > Delvinia > > > 214 King Street West, Suite 214 > > > Toronto Canada M5H 3S6 > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > CONFIDENTIALITY NOTICE > > > This email message may contain privileged or confidential > > information. > > > If you are not the intended recipient or received this > > communication > > > by error, please notify the sender and delete the message without > > > copying or disclosing it. > > > > > > AVIS DE CONFIDENTIALITÉ > > > Ce message peut contenir de l'information légalement privilégiée ou > > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir > > > reçu par erreur ce message, nous vous saurions gré d'en aviser > > > l'émetteur et d'en détruire le contenu sans le communiquer > > a d'autres ou le reproduire. > > > > > > > > > > > >> -Original Message- > > >> From: flashcoders-boun...@chattyfig.figleaf.com > > >> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On > > Behalf Of Ian > > >> Thomas > > >> Sent: Monday, August 31, 2009 12:35 PM > > >> To: Flash Coders List > > >> Subject: Re: [Flashcoders] Error when trying to e
Re: [Flashcoders] fullscreen weirdness (solution)
On Thu, Sep 3, 2009 at 4:35 PM, Joe Cutting wrote: > Ian reported problems with the Javascript version and Chrome. I'd be > interested to hear if anyone else has problems with one or the other. Both versions now work fine with latest Chrome, Firefox, Safari and with IE7 - that seems to have solved it! Cheers, Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Hello. FLVPlayback as3 3.0
sprawdź skin file komponentu, albo módl się, żeby Ci ktoś odpisał z zagranicy ;> pozdr A. 2009/9/3 Tomasz Fertacz > Hello! > > I have a problem with FLVPlayback as3 3.0 component. > On localhost everything is ok. > But when i put the swf file on the server FLVPlayback component > doesn`t contain menu. > What`s the problem? > > Link to this site: http://www.ultra.wroclaw.pl/anna/full_screen_flash.html > . > > There is no menu. > > 10x > Tomek. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Hello. FLVPlayback as3 3.0
Hello! I have a problem with FLVPlayback as3 3.0 component. On localhost everything is ok. But when i put the swf file on the server FLVPlayback component doesn`t contain menu. What`s the problem? Link to this site: http://www.ultra.wroclaw.pl/anna/full_screen_flash.html. There is no menu. 10x Tomek. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] fullscreen weirdness (solution)
>>- If the buttons which call the fullscreen change are using >>MouseEvent.MOUSE_DOWN, it doesn't happen if they're using MouseEvent.CLICK I know one Flash player 9/10 rule about initiating full screen is it has to be user initiated, and I know even though MouseEvent.MOUSE_DOWN is technically a user initiated event, they (Adobe) may have only programmed it thinking of MouseEvent.CLICK or something like that. Not that it helps, but may explain why. Purely a theory of mine. Jason Merrill Bank of America Global Learning Learning & Performance Soluions Monthly meetings on making the most of the Adobe Flash Platform - presented by bank associates, Adobe engineers, and outside experts in the borader multimedia community - join the Bank of America Flash Platform Community (note: this is for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] fullscreen weirdness (solution)
Ok, here's an update on this. I built a test rig and managed to reproduce the problem and found out that it only happens: - If you're using Firefox (IE and safari are fine) - If you're NOT using StageScaleMode.NO_SCALE - If the buttons which call the fullscreen change are using MouseEvent.MOUSE_DOWN, it doesn't happen if they're using MouseEvent.CLICK So the solution is to make sure that the buttons you use to select fullscreen mode are using MouseEvent.CLICK not MouseEvent.MOUSE_DOWN. This still leaves me with two versions - the SwfObject one and the CS4 Javascript one. The links are below: CS4 Javascript http://www.joecutting.com/demos/MySpace/starLoader.html SwfObject http://www.joecutting.com/demos/MySpace/starLoaderSO.html Ian reported problems with the Javascript version and Chrome. I'd be interested to hear if anyone else has problems with one or the other. Cheers Joe Joe Cutting Computer exhibits and installations www.joecutting.com 35 Hospital Fields Road, York, YO10 4DZ 01904 624681 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] fullscreen weirdness
Joe, What code are you using to do the fullscreen switch? Again, I'm getting problems with the Chrome version - so if it's not your embedding causing the problems, it must be somewhere in your AS code... Ian On Wed, Sep 2, 2009 at 6:01 PM, Joe Cutting wrote: >>> > You're definitely doing something peculiar - in Chrome, after I click > to go fullscreen on your movie, nothing is clickable at all! I have to > press Esc to get out of full screen. In Firefox it seems to work okay. > > I'd switch to using SWFObject for embedding your movie in HTML; that's > what I use, and I've had no problems with full-screen usage on any > browser. >>> > Thanks for looking into this. The complex javascript I was using is the > default which is generated by > Flash CS4! > I've had a go at making a SWFObject version and also tested in Internet > Explorer 8. > Here's the SwfObject version: > http://www.joecutting.com/demos/MySpace/starLoaderSO.html > and here's the CS4 javascript original > http://www.joecutting.com/demos/MySpace/starLoader.html > > IE8 doesn't have a problem with either version. Firefox 3.52 has the same > problem with both versions, except that sometimes > the flash disappears completely with the SO version. > > Any more thoughts would be appreciated > > Cheers > > Joe > > > > Joe Cutting > Computer exhibits and installations > www.joecutting.com > 35 Hospital Fields Road, York, YO10 4DZ > 01904 624681 > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] smoothly rotating a dynamic loaded image with AS2
Just a thought. Maybe try setting the smoothing to the MC the bitmap is loaded into instead of your bitmap?? Something like this.. http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html I used something similar in a mouseWheel controlled "shrink and zoom" on a Dynamically loaded image and it kept everything smooth, I dont know about rotating though. But I think it would work fine. HTH, Karl On Sep 3, 2009, at 2:18 AM, Cor wrote: My guess is that you can't see the difference in this line: mcBanner2._rotation=-3; try mcBanner2._rotation=-30; to see if it rotates at all. And to rotate constantly you need to create a function which runs continuously with onEnterFrame or timer. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves Sent: woensdag 2 september 2009 23:59 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] smoothly rotating a dynamic loaded image with AS2 Hello list, i-d like to smoothly rotate an image loaded in an as2 swf file. no tween, just rotate and leave it there. it doesn´t work. i´ve tried lot of things and no success. actually i-m used to as2, i don´t understand as2 very well. here is the code: mcBanner2.loadMovie(linksBanners[1]); var bitmap:BitmapData=new BitmapData(mcBanner2._width,mcBanner2._height,true,0); var charObj:Object=new Object(); charObj.rotation = -3; var angle_in_radians = Math.PI * 2 * (charObj.rotation / 360); var rotationMatrix:Matrix = new Matrix(); // rotationMatrix.translate(-16,-16); rotationMatrix.rotate(0.1); // rotationMatrix.translate(16,16); var rectangleTrans:Transform = new Transform(mcBanner2); rectangleTrans.matrix = rotationMatrix; var myColorTransform:ColorTransform = new ColorTransform(0, 0, 1, 1, 0, 0, 255, 0); var myRectangle:Rectangle = new Rectangle(0, 0, 100, 80); var smooth:Boolean = true; bitmap.draw(mcBanner2,rotationMatrix, myColorTransform, "normal", myRectangle, smooth); // mcBanner2._rotation=-3; // this doesn´t work. mcBanner2.attachBitmap(bitmap,100,"auto",true); mcBanner2._xscale=100; mcBanner2._yscale=100; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] smoothly rotating a dynamic loaded image with AS2
My guess is that you can't see the difference in this line: mcBanner2._rotation=-3; try mcBanner2._rotation=-30; to see if it rotates at all. And to rotate constantly you need to create a function which runs continuously with onEnterFrame or timer. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves Sent: woensdag 2 september 2009 23:59 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] smoothly rotating a dynamic loaded image with AS2 Hello list, i-d like to smoothly rotate an image loaded in an as2 swf file. no tween, just rotate and leave it there. it doesn´t work. i´ve tried lot of things and no success. actually i-m used to as2, i don´t understand as2 very well. here is the code: mcBanner2.loadMovie(linksBanners[1]); var bitmap:BitmapData=new BitmapData(mcBanner2._width,mcBanner2._height,true,0); var charObj:Object=new Object(); charObj.rotation = -3; var angle_in_radians = Math.PI * 2 * (charObj.rotation / 360); var rotationMatrix:Matrix = new Matrix(); // rotationMatrix.translate(-16,-16); rotationMatrix.rotate(0.1); // rotationMatrix.translate(16,16); var rectangleTrans:Transform = new Transform(mcBanner2); rectangleTrans.matrix = rotationMatrix; var myColorTransform:ColorTransform = new ColorTransform(0, 0, 1, 1, 0, 0, 255, 0); var myRectangle:Rectangle = new Rectangle(0, 0, 100, 80); var smooth:Boolean = true; bitmap.draw(mcBanner2,rotationMatrix, myColorTransform, "normal", myRectangle, smooth); // mcBanner2._rotation=-3; // this doesn´t work. mcBanner2.attachBitmap(bitmap,100,"auto",true); mcBanner2._xscale=100; mcBanner2._yscale=100; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders