Value part - are you talking about the docs / requirements when writing the regex, or for SWFObject / JS flashvars passing?
If you are talking about the flashvars side of things, then you can use single or double quotes to encapsulate the String. Escaping the same type of quotes used to represent the String is required if there is a quote in the actual variable value (e.g. you would need to escape the following: foo: 'this isn't bar' to be represented as: foo: 'this isn\'t bar' ) All values end up as Strings inside flash , so you can pass foo : 1 in the flashcars object, but once you read the value inside Flash foo = "1". PS - Yes, as Actionscript is an ECMAScript based language, the same rules apply for variable naming (as well as reserved keywords etc) Aran On Thu, May 5, 2011 at 12:57 PM, mikek12003 <[email protected]> wrote: > OK found some feedback regarding the reg. exp. but have still > questions regarding the format. All that I found in the documentation > was that in the name:value format the value part is always in double > quotes (even when the value is a number -is it necessery?) and can I > use instead single quotes? > P.S. As for the formating of the name part I suppose the same rules > for variables names as in javascript apply (start with a letter and > then only numbers,letters,underscores allowed) > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
