Re: [Flashcoders] Problem embedding and using a font variant

2011-04-13 Thread John R. Sweeney Jr
Slate Pro (light,book,bold) is one. Driving me nutz right now. ;) on 4/11/11 1:56 PM, Merrill, Jason at jason.merr...@bankofamerica.com wrote: I have found every now and then certain fonts don't play well with Flash and there isn't much you can do if they don't work. There are a few fonts I

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Merrill, Jason
, April 11, 2011 3:11 PM To: Flash Coders List Subject: RE: [Flashcoders] Problem embedding and using a font variant Well, the textField as library symbol will work fine - I believe the font embedding works differently with library symbols, but I could be wrong. Jason Merrill Instructional

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Jens Struwe
Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Monday, April 11, 2011 3:11 PM To: Flash Coders List Subject: RE: [Flashcoders] Problem embedding

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Glen Pike
Have you tried enumerating your embedded fonts to see what name Flash gives it? If you embed just your Myriad Pro Condensed into a document and add the actionscript to list out the font name, etc. http://www.google.com/search?ie=UTF-8oe=UTF-8sourceid=navclientgfns=1q=as3+enumerate+font You

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Matt Perkins
Thanks Glen! That did it! I was named Myriad Pro Cond This is the little snip of Actionscript that I used: http://snipplr.com/view/15835/list-registered-font-files/ And, Jason, it is an OTF font. Matt On Tue, Apr 12, 2011 at 7:18 AM, Glen Pike g...@engineeredarts.co.ukwrote: Have you tried

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Merrill, Jason
, 2011 2:39 AM To: Flash Coders List Subject: Re: [Flashcoders] Problem embedding and using a font variant Don't ask me for details, but just a week ago I got this running. [Embed(source=myfont.otf, fontFamily=myfont, mimeType=application/x-font-opentype)] public var MyFont : Class; To support otf

[Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Matt Perkins
I'm using Myriad Pro for regular (non TLF) dynamic text fields in my project and it's working fine. Now the client wants to use Myriad Pro Condensed Bold for titles and I cannot get it to show up. I can't get just Myriad Pro Condensed to show either. I don't have any problems with Myriad Pro - I

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Andrew Sinning
Are you on a Mac? Apple did an update about 10 days ago that broke embedded fonts. If this is the cause of your woes, you'll need to roll back to 10.6.6, which is huge PITA. To roll back you need to first re-install the version of 10.6.x shipped with your machine, and then install the 10.6.6

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Merrill, Jason
___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins Sent: Monday, April 11, 2011 2:25 PM To: Flash Coders List Subject: [Flashcoders] Problem embedding and using

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Matt Perkins
Nah, I'm on Windows 7. I've seen the mess with 10.6.7 - glad I'm not on a Mac now! On Mon, Apr 11, 2011 at 2:54 PM, Andrew Sinning and...@learningware.comwrote: Are you on a Mac? Apple did an update about 10 days ago that broke embedded fonts. If this is the cause of your woes, you'll need

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Matt Perkins
...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins Sent: Monday, April 11, 2011 2:25 PM To: Flash Coders List Subject: [Flashcoders] Problem embedding and using a font variant I'm using Myriad Pro for regular (non TLF) dynamic text fields in my project

RE: [Flashcoders] Problem embedding and using a font variant

2011-04-11 Thread Merrill, Jason
: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins Sent: Monday, April 11, 2011 3:04 PM To: Flash Coders List Subject: Re: [Flashcoders] Problem embedding and using a font variant Well, the textField as library symbol will work

[Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Glen Pike
Hi, I am having a problem with getting the childIndex value from an e4x result: Both these functions work - e.g. they return an XML node from a list, but the childIndex property always traces as -1 for the first function. Can anyone see what the problem is? TIA Glen

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
Try: var res : XMLList = _assets.child(number).(text() == prop); var res:XMLList = _assets.*.(attribute(icon) == String(prop)); Jens Am 17.02.2011 11:08, schrieb Glen Pike: Hi, I am having a problem with getting the childIndex value from an e4x result: Both these functions work - e.g. they

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Glen Pike
Hmm, they just return the number node from a matching asset in the list, but if I do this: var res : XMLList = _assets.child(number).(text() == prop); if (0 != res.length()) { trace(this, getAssetDetails + res[0].parent().childIndex()); return res[0].parent(); } I still have the same

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
May I refine your question? I have an XML tree. How can I select nodes depending on the value of subnodes or the value of subnode attributes. Anyway, you should provide a simple test XML that does not work. Here my next try. When I understand right then you want to select assets depending

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Glen Pike
Hi, The problem is not getting the assets - this works for both example functions. The problem is that when I try to trace the childIndex() of the asset that has been found, it always returns -1 for the asset obtained by matching the child rather than the attribute. So the

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
Thanks for the XML. Given this, the method works as expected: getAssetByNumber(2001); getAssetByNumber(2004); getAssetByNumber(2007); public function getAssetByNumber(theNumber : int):XML { if (!_assets) return null; var res : XMLList = _assets.*.(number == theNumber);

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Glen Pike
Thank you - I have discovered the problem now - I was making a copy the XML for an asset when creating a list of items, which broke the indexing because the copy was not related to the original, e.g. for (var i:int = 0; i len;i++ ) { //Making a copy of the node means that getAssetDetails.

Re: [Flashcoders] problem with adding two digits

2010-12-19 Thread Anthony Pace
to prevent anyone answering on this thread: after toying with it again, and reading the docs + wikipedia I figured out that I can only trust a result of 15 digits or less, unless I have the string be returned instead of the number. n 12/18/2010 8:34 PM, Anthony Pace wrote: function

Re: [Flashcoders] problem with adding two digits

2010-12-18 Thread Anthony Pace
whoa... hold on Help Please. After I posted yesterday, (or the night before??? can't remember) as I realized how badly the code sucked, I was just messing around with this code below to see if I could separate the halves and recompose them properly; however, if you pop the code below on

Re: [Flashcoders] problem with adding two digits

2010-12-15 Thread Anthony Pace
I wrote the functions below in literally just a few min, so, even though they do seem to work for me, I wouldn't necessarily say they are production ready. Also, I would only use these if you will know that the numbers past the mantissa are of small amounts. Oh yeah, and please tell me if I

Re: [Flashcoders] problem with adding two digits

2010-12-15 Thread Anthony Pace
Oh yeah, I forgot to give some examples to test it with, so... trace(floatSum(-0.1,0.9155,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1)); //vs trace(-0.1+0.9155+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1); //and trace(floatProduct(2.1,0.1,1.0001,.0001)); //vs trace(2.1*0.1*1.0001*.0001); On 12/15/2010 2:25 PM,

[Flashcoders] problem with adding two digits

2010-12-14 Thread Adrian Zając
Hello, First of all, I want to say Hi to everyone here. This is my first post. Please, take a look at this part of code: trace (0.27 + 0.03); // output -- 0.30004 Can anyone tell me why I get this weird result in output window? Regards Adrian

RE: [Flashcoders] problem with adding two digits

2010-12-14 Thread Steve Abaffy
-boun...@chattyfig.figleaf.com] On Behalf Of Adrian Zajac Sent: Tuesday, December 14, 2010 8:43 AM To: Flash Coders List Subject: [Flashcoders] problem with adding two digits Hello, First of all, I want to say Hi to everyone here. This is my first post. Please, take a look at this part of code

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread tom rhodes
same here compiling for flash player 10 and flash player 9, 8 and below give 0.3 as expected On 14 December 2010 15:42, Adrian Zając zajac.adr...@gmail.com wrote: trace (0.27 + 0.03); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Adrian Zając
If you need the addition to be accurate and you know that the numbers will always be decimals you can multiply the numbers by 100 and then you will add 27 + 3 which will return 30 and then divide it by 100 to get your .3 (or at least I think that will work as I have not tried it) Yes

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Karim Beyrouti
It's an issue with floating point accuracy/calculations, Here is some info: http://joshblog.net/2007/01/30/flash-floating-point-number-errors/ saw more about it somewhere else... don't think it's an issue with the FP tho'. - Karim On 14 Dec 2010, at 15:15, tom rhodes wrote: same here

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Zeh Fernando
I like to quote this, from PHP.net's Floating Point documentation: Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error due to rounding in the order of 1.11e-16. Non

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread John R. Sweeney Jr
Howdy Adrian, Here is one way. trace (int((0.27 + 0.03)*100)/100) // output -- 0.3 Later, John on 12/14/10 8:42 AM, Adrian Zając at zajac.adr...@gmail.com wrote: Hello, First of all, I want to say Hi to everyone here. This is my first post. Please, take a look at this part of

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread tom rhodes
yup interesting that the old AVM gives you what you'd think... On 14 December 2010 16:36, Zeh Fernando z...@zehfernando.com wrote: I like to quote this, from PHP.net's Floating Point documentation: Floating point numbers have limited precision. Although it depends on the system, PHP

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Henrik Andersson
tom rhodes skriver: yup interesting that the old AVM gives you what you'd think... Pure luck, you might have compiled against something that happened to drop the decimal instead . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Adrian Zając
Thanks Zeh, now I understand. So do we have to keep an eye on our variables so we don't have for example:7.998 * 0,3004 ? Because I think it is a little heavier for processors to count than: 8 * 0.3 W dniu 2010-12-14 16:36, Zeh Fernando pisze: I like to quote

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Kerry Thompson
Adrian Zając wrote: trace (0.27 + 0.03); // output -- 0.30004 Can anyone tell me why I get this weird result in output window? As people have said, it's a problem with decimals. It's not a problem with Flash--it's a problem with binary numbers. Integers are accurate

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-08 Thread Henrik Andersson
Juan Pablo Califano wrote: I agree with you, but I'add for the sake of completeness that, sometimes, relaxing the rules a bit becomes a necessary evil, like for instance, when doing a cast. I have another example of where a typecast can be useful. When you really do need only BaseClass, but

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-08 Thread Jim Andrews
Here's my code which uses the SharedObject to implement a User Data Manager. This is my first ActionScript of any usefulness. ja http://vispo.com package { // This is for managing the user's state from session to session. // This saves their preferences and current state. import

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-08 Thread Juan Pablo Califano
Simple and gloriously concise example (as opposed to mine!). Here, whether the classes are native, or whether they are concrete instead of interfaces won't change the need for a cast; all the involved objects have commonalities but also important differences, and you want to treat them

[Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Jim Andrews
i want to write a method x which takes an argument y. i cannot anticipate what type the argument is going to be until run-time. it might be a number or a string or an array or who knows what? but i am not sure how to do this in actionscript because it is strongly typed. normally what is done

RE: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Cor
public function x(y:* = null):void { } -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim Andrews Sent: maandag 7 juni 2010 12:41 To: Flash Coders List Subject: [Flashcoders] problem with strongly typed

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Hans Wichman
public function x(y:Object):void { } or public function x(y:*):void { } hth jc On Mon, Jun 7, 2010 at 12:40 PM, Jim Andrews j...@vispo.com wrote: i want to write a method x which takes an argument y. i cannot anticipate what type the argument is going to be until run-time. it might be a

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
Architecturally speaking, that's a bad idea. There's probably a strongly typed solution to what you're doing. Can you provide detail about what you need to accomplish so we can help you figure out a better solution? On 6/7/2010 3:40 AM, Jim Andrews wrote: i want to write a method x which

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Patrick Matte
: Re: [Flashcoders] problem with strongly typed actionscript Architecturally speaking, that's a bad idea. There's probably a strongly typed solution to what you're doing. Can you provide detail about what you need to accomplish so we can help you figure out a better solution? On 6/7/2010 3

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Kerry Thompson
Patrick Matte wrote: public function x(y:Object):void { } Or this public function x(y:*):void { } Or, you can simply turn strict mode off. I tend to agree with Steven Sacks, though. There's a really good reason for strong typing--mainly, it's easier to find bugs at compile time than

RE: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Merrill, Jason
Or, you can simply turn strict mode off. I tend to agree with Steven Sacks, though. There's a really good reason for strong typing--mainly, it's easier to find bugs at compile time than at Yep. IMO, there should never be a reason to turn strict typing off, it's like saying, Don't tell me about

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Hans Wichman
or maybe he is just writing a custom logger and wants to be able to pass any type of object ;) On Mon, Jun 7, 2010 at 9:44 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Or, you can simply turn strict mode off. I tend to agree with Steven Sacks, though. There's a really good

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Hans Wichman
-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Mon, 07 Jun 2010 11:38:07 -0700 To: Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem with strongly typed actionscript Architecturally speaking, that's a bad idea. There's probably

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Jim Andrews
Architecturally speaking, that's a bad idea. There's probably a strongly typed solution to what you're doing. Can you provide detail about what you need to accomplish so we can help you figure out a better solution? i expect public function x(y:*):void { } will do the job. the public

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Patrick Matte
To: Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem with strongly typed actionscript I send the same reply 8 hours ago, are my messages not coming through?:) On Mon, Jun 7, 2010 at 9:05 PM, Patrick Matte patrick.ma...@tbwachiat.comwrote: public

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
Right so what you're essentially talking about is a Model, and the SharedObject is acting as a Service. public class Model extends EventDispatcher { private var so:SharedObject; public function Model() { super(); init(); } private function init():void {

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Juan Pablo Califano
I agree with you, but I'add for the sake of completeness that, sometimes, relaxing the rules a bit becomes a necessary evil, like for instance, when doing a cast. When you do this: // bar is typed as ISomeInterface somewhere else var foo:SomeConcreteClass = bar as SomeConcreteClass; // or

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Steven Sacks
With due deference, what you just said I disagree with. The scenario you described is not a necessary evil, it's a hack. The only situation where that isn't a hack is if your class extends a native type such as Sprite, but there's no ISprite. That problem is either solved by adding the Sprite

Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Juan Pablo Califano
Much obliged for your deference. We would have to agree to disagree then, since I think I agree with you in general terms, but you seem to disagree on this alleged agreement. You say except for one specific case, the scenario I described is a hack. Call it whatever you like. I might even agree

Re: [Flashcoders] problem with import mx.controls.Alert

2010-06-02 Thread Dave Watts
Thanks, Eric. So I guess none of the mx.controls are for Flash but, rather, are all for Flex? Yes, they are part of the Flex class libraries. You may be able to use them in Flash directly, but that's not their design intent. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/

Re: [Flashcoders] problem with import mx.controls.Alert

2010-06-02 Thread Eric E. Dolecki
I used Google and found this that seems decent enough: http://developer.yahoo.com/flash/astra-flash/alertmanager/ I am assuming that you like the fact that the Flex background is blurred while the alert is being displayed. Is this true? If you rolled your own, the stage is a MovieClip, so you

[Flashcoders] problem with import mx.controls.Alert

2010-06-01 Thread Jim Andrews
Am I on the right list for a question like this? I get an error, in Flash Builder 4, with the following line, which is part of an ActionScript project. import mx.controls.Alert; The error is 1172: Definition mx.controls:Alert could not be found. How do I fix this? ja? http://vispo.com

Re: [Flashcoders] problem with import mx.controls.Alert

2010-06-01 Thread Eric E. Dolecki
Make a Flex app - Alert is for Flex. Or make your own Alert class. I'm not sure if linking the Flex SWCs would work for an Alert or not. On Tue, Jun 1, 2010 at 10:34 PM, Jim Andrews j...@vispo.com wrote: Am I on the right list for a question like this? I get an error, in Flash Builder 4, with

Re: [Flashcoders] problem with import mx.controls.Alert

2010-06-01 Thread Jim Andrews
Thanks, Eric. So I guess none of the mx.controls are for Flash but, rather, are all for Flex? ja Make a Flex app - Alert is for Flex. Or make your own Alert class. I'm not sure if linking the Flex SWCs would work for an Alert or not. I get an error, in Flash Builder 4, with the following

[Flashcoders] problem displaying shared objects in swf

2010-03-07 Thread cem sonmez
hi At first I want to say this, this might not be an issue about red5.But I thought that somewhere in deep it can be pertinent to red5. At the red5 side I am creating a shared object called *chatSharedObject*connecting from the client to this with no problem. For the client side,I am using

Re: [Flashcoders] Problem Importing Class

2010-03-05 Thread Susan Day
This was a case of stripping down a class that worked to make the example smaller and easier for you all, then accidentally stripping out a necessary detail. Here's a different stripped down and tested version, different because I'm actually working with an mc not a string: package { import

RE: [Flashcoders] Problem Importing Class

2010-03-05 Thread Benny
Hi susan, In the 'other package' try: import Star; var myStar:Star = new Star(); addChild(myStar); --- Why are you getting the error? .. because you are trying to cast 'nothing' as a Star. Because Flash can't cast 'nothing' it tells you it's missing an argument. --- Regards, Benny

RE: [Flashcoders] Problem Importing Class

2010-03-05 Thread Merrill, Jason
Star(); Again Susan, as others have said, you're still just calling Star(). What you need to do in your other class is call var myStar:Star = new Star(); addChild(myStar); By calling new Star(), the constructor function (the Star() function inside your Star class) is called automatically and

Re: [Flashcoders] Problem Importing Class

2010-03-05 Thread Susan Day
On Fri, Mar 5, 2010 at 8:34 AM, Benny b.vlug...@hccnet.nl wrote: Hi susan, In the 'other package' try: import Star; var myStar:Star = new Star(); addChild(myStar); That works. --- Why are you getting the error? .. because you are trying to cast 'nothing' as a Star. Because Flash

[Flashcoders] Problem Importing Class

2010-03-04 Thread Susan Day
Hi; I have this line in the importing package: import Star; and this in the function of the same package: Star(); Star package has this code: package { import flash.display.MovieClip; public class Star extends MovieClip { public function Star() { trace('star'); } } } When I run the

RE: [Flashcoders] Problem Importing Class

2010-03-04 Thread Keith Reinfeld
10:03 AM To: Flash Coders List Subject: [Flashcoders] Problem Importing Class Hi; I have this line in the importing package: import Star; and this in the function of the same package: Star(); Star package has this code: package { import flash.display.MovieClip; public class

Re: [Flashcoders] Problem Importing Class

2010-03-04 Thread Henrik Andersson
Susan Day wrote: 1136 Incorrect number of arguments. Expected 1. Star.as What argument is it expecting?! The object to convert to the type. You omitted the keyword new and got the function style typecast. ___ Flashcoders mailing list

Re: [Flashcoders] problem with paths

2010-01-25 Thread sebastian
versions until they get fed up. Having you do it without being able to test is like having you code blindfolded with yours hands tied. --Original Message-- From: sebastian Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders

Re: [Flashcoders] problem with paths

2010-01-23 Thread John McCormack
: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] problem with paths Sent: Jan 22, 2010 2:16 PM Hello flash coders, Simple question I believe, but I'm having problems with a delivery of a flash file. My flash file loads an external XML

Re: [Flashcoders] problem with paths

2010-01-23 Thread John McCormack
Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] problem with paths Sent: Jan 22, 2010 2:16 PM Hello flash coders, Simple question I believe, but I'm having problems with a delivery of a flash file. My flash file loads

RE: [Flashcoders] problem with paths

2010-01-23 Thread Nathan Mynarcik
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John McCormack Sent: Saturday, January 23, 2010 4:45 AM To: Flash Coders List Subject: Re: [Flashcoders] problem with paths If I understand this correctly: html is in directory1 SWF in directory2/flash SWF is trying to load the XML from

RE: [Flashcoders] problem with paths

2010-01-23 Thread Nathan Mynarcik
Found it: (In Safari)Right click on page-inspect element-resources-enable resources -Original Message- From: Nathan Mynarcik [mailto:nat...@mynarcik.com] Sent: Saturday, January 23, 2010 10:37 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] problem with paths You could download

[Flashcoders] problem with paths

2010-01-22 Thread sebastian
Hello flash coders, Simple question I believe, but I'm having problems with a delivery of a flash file. My flash file loads an external XML and then from the external XML it loads images, videos text etc. It works fine locally and on our test server, however at the client's server, which

Re: [Flashcoders] problem with paths

2010-01-22 Thread Dave Watts
Am I right that I can replace: the load /xml/data.xml with http://domainname.com/flash/xml/data.xml; and then load the SWF from a directory like: http://domainname.com/somsubdirectory/index.html; and get it all to load correctly? Paths that begin with a slash, such as /xml/data.xml, tell the

Re: [Flashcoders] problem with paths

2010-01-22 Thread Nathan Mynarcik
: Flash Coders List Subject: [Flashcoders] problem with paths Sent: Jan 22, 2010 2:16 PM Hello flash coders, Simple question I believe, but I'm having problems with a delivery of a flash file. My flash file loads an external XML and then from the external XML it loads images, videos text etc

Re: [Flashcoders] problem with paths

2010-01-22 Thread sebastian
: Flash Coders List Subject: [Flashcoders] problem with paths Sent: Jan 22, 2010 2:16 PM Hello flash coders, Simple question I believe, but I'm having problems with a delivery of a flash file. My flash file loads an external XML and then from the external XML it loads images, videos text etc

RE: [Flashcoders] problem with paths

2010-01-22 Thread Merrill, Jason
-boun...@chattyfig.figleaf.com] On Behalf Of sebastian Sent: Friday, January 22, 2010 4:18 PM To: Flash Coders List Subject: Re: [Flashcoders] problem with paths Thanks Nathan and Dave, The leading slash was just a typo in my email, but the code doesn't start with a leading slash, so that can't

Re: [Flashcoders] problem with paths

2010-01-22 Thread Dave Watts
The leading slash was just a typo in my email, but the code doesn't start with a leading slash, so that can't be the problem. Well, in that case, it's doing something completely different. It's expecting to find the XML file in a subdirectory within the directory containing the current page

Re: [Flashcoders] problem with paths

2010-01-22 Thread Nathan Mynarcik
www.mynarcik.com -Original Message- From: sebastian infora...@gmail.com Date: Fri, 22 Jan 2010 13:18:08 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem with paths Thanks Nathan and Dave, The leading slash was just a typo in my email, but the code

Re: [Flashcoders] problem with paths

2010-01-22 Thread Nathan Mynarcik
...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: Re: [Flashcoders] problem with paths Sent: Jan 22, 2010 3:27 PM The leading slash was just a typo in my email, but the code doesn't start with a leading slash, so that can't be the problem. Well, in that case, it's

Re: [Flashcoders] problem with paths

2010-01-22 Thread sebastian
Watts Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: Re: [Flashcoders] problem with paths Sent: Jan 22, 2010 3:27 PM The leading slash was just a typo in my email, but the code doesn't start with a leading slash, so that can't

RE: [Flashcoders] problem with paths

2010-01-22 Thread Merrill, Jason
and since it is an intranet blog... who knows where all the assets are being placed... Huh. Well please take no offense when I say this, but your problem is not with code, but with the people and processes running your intranet. I would circle back with them before trying any fancy code

Re: [Flashcoders] problem with paths

2010-01-22 Thread Dave Watts
Curious about this solution below, when you say specify a fully qualified url in the flash vars do you mean that the URL should specify the CURRENT FULL URL* of the page loaded? I was suggesting that you specify the fully-qualified URL for the XML file. I just worked through a similar issue,

[Flashcoders] Problem with poping up a window

2010-01-07 Thread Lehr, Ross (N-SGIS)
I'm working with flash 8 and AS2. I'm loading text from a XML file If I load a href=javascript:openPop('pop.html');open pop/a in a textbox I can access a JavaScript function called openPop() in the HTML code of the page that loads the. Swf If I load the same code in a TextArea component, the

[Flashcoders] Problem with trackEvents in Flash

2009-12-28 Thread John R. Sweeney Jr
Howdy all, Hope everyone had a great holiday. My client wanted me to incorporate Google Analytics - Event tracking. Based on what they supplied me and what I've read on GA, I've incorporated these calls through out my program: --- GetURL(javascript:pageTracker._trackEvent('Videos', 'Play', 'Gone

Re: [Flashcoders] Problem with trackEvents in Flash

2009-12-28 Thread Glen Pike
Hi, I had some problems with this, particularly with Internet Explorer - here is my code that worked, although someone complained about errors in IE7 or 8 about _gat being undefined - I guess you can hide these with a try / catch block, but then it would be nice to know how to fix because

Re: [Flashcoders] Problem with trackEvents in Flash

2009-12-28 Thread John R. Sweeney Jr
I'll try a variant of this (this is written in AS2), but the first problem I had was the catch that wrapped the pageView. On the PC side, it would change the html page (which held my app) to a blank page with the word TRUE and the URL was my trackEvent string. That is what started me on this

Re: [Flashcoders] Problem with trackEvents in Flash

2009-12-28 Thread Karl DeSaulniers
Cool. Just checking. Since you had everything else URL encoded, I thought it might be getting cut off because of that space. Not completeing the full string. GL Karl Sent from losPhone On Dec 28, 2009, at 3:59 PM, John R. Sweeney Jr jr.swee...@comcast.net wrote: Thanks, but I just

Re: [Flashcoders] Problem with trackEvents in Flash

2009-12-28 Thread Andrei Thomaz
don't forget to check this: http://code.google.com/p/gaforflash/ []'s andrei http://code.google.com/p/gaforflash/ On Mon, Dec 28, 2009 at 8:13 PM, Karl DeSaulniers k...@designdrumm.comwrote: Cool. Just checking. Since you had everything else URL encoded, I thought it might be getting cut off

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Mon, Nov 16, 2009 at 5:00 PM, Barry Hannah ba...@shift.co.nz wrote: OK, I'm lost. Me too :) You need a function mcHatAndFace so you can call an asset from the library? Does var myHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); not work? I exported mcHatAndFace from the

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller
Hi, Could you try the following ? (you were doing addChild on 'mcHatAndFace' class, but I know you want the instance to be added to the display list, not its class) Main.as: package { import flash.display.MovieClip; import com.greensock.*; import com.greensock.plugins.*; import

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread John McCormack
Beno, It's difficult knowing exactly what you have done. I don't know any AS2, just AS3. To help sort out the scenario let's say: You have a program called program.fla You have clicked the stage and in 'properties' you have named the class as Main - without the as. So the code that drives

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 5:14 AM, Cedric Muller flashco...@benga.li wrote: Hi, Could you try the following ? (you were doing addChild on 'mcHatAndFace' class, but I know you want the instance to be added to the display list, not its class) Main.as: This is what came back from the code,

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Henrik Andersson
beno - wrote: Error: Error #2136: The SWF filefile contains invalid data at Main/frame1() The flash player does not like you creating a new instance of a class that is the document class for a swf. ___ Flashcoders mailing list

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: Error: Error #2136: The SWF filefile contains invalid data at Main/frame1() The flash player does not like you creating a new instance of a class that is the document class for a swf. How is

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller
1) Just open your FLA in Flash IDE 2) In the PUBLISH panel, you have a textfield input named Class: --- this is the document class, just leave it blank 3) retest with the revised code hth, Cedric On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson he...@henke37.cjb.netwrote: beno -

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 8:36 AM, Cedric Muller flashco...@benga.li wrote: 1) Just open your FLA in Flash IDE 2) In the PUBLISH panel, you have a textfield input named Class: --- this is the document class, just leave it blank 3) retest with the revised code YAHOO hth, Ya, mon!

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller
:) Now, the best is to try out different ways to launch your application and truely understand the differences between Classes, methods, properties, symbols, etc ... :) Moreover, now that you've got your Main class working, please read Adobe tutorials and senocular's excellent information,

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 10:49 AM, Cedric Muller flashco...@benga.li wrote: :) Now, the best is to try out different ways to launch your application and truely understand the differences between Classes, methods, properties, symbols, etc ... :) I've put up a new post (Baby Step #2). Already

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread John McCormack
Well done Cedric! beno, Later on, have a look at: Using the Document Class on: http://www.gotoandlearn.com/ John Cedric Muller wrote: :) Now, the best is to try out different ways to launch your application and truely understand the differences between Classes, methods, properties,

Re: [Flashcoders] Problem with First Flash Movie

2009-11-16 Thread beno -
Regarding the matter of offense, don't worry about it. Yes, some posters do tend to push the envelope and rely on the experts of the list more than they should. Perhaps we're all guilty of that to an extent when we get started. Yes, it brings the natural reaction to be abrupt, because it's the

Re: [Flashcoders] Problem with First Flash Movie

2009-11-16 Thread Cedric Muller
Hi Beno, I think you are close ... but far :S, but close :) public class Main extends MovieClip --- this is your class declaration public function Main ():void --- this is your class's constructor (first thing being called when you do a 'var main:Main = new Main()' class mcHatAndFace --

  1   2   3   4   5   >