Hi Rich, could you provide some sample code of your Settings class and your
xml processing ?
2006/11/16, Rich Rodecker [EMAIL PROTECTED]:
Hello,
I've got a class named 'Settings' which has a number of properties. Those
properties are strongly typed to various types...string, number, boolean,
Hello :)
a XML is only a String all properties (nodeValue) or attributes are
strings... you must transform the type of your values with customs
deserialize functions.
For me it's better to use JSON for example : http://www.json.org/ (you keep
the primitive types of your objects with the
Actualy you can iterate through the variables of a movieclip
(including the instance names of child movieclips) with a for..in loop
and test for their type and class (see typeof and instanceof), but
putting the checkbox references into an array when you create them and
iterating through this
julien:
sure here's a sample:
class com.mysite.model.Settings {
private static var instance = null;
public var custom_color_3:String;
public var background_image:Boolean;
public var background_type:String;
public var background_alpha:Number;
public var title_mode:String;
Use json or eden ... you can use it in XML to with a deserialization of the
nodes ;)
x = new XML(xmlitem{ prop1:item1, prop2:item2 }/item/xml) ;
you can use JSON.deserialize( x.firstChild.firstChild.firstChild.nodeValue )
; // it's an example not tested !
EKA+ :)
2006/11/16, Rich Rodecker
In AS2 there is a compile-time type-checking only, the Flash VM itself
doesn't care about type settings. If the type of an expression cannot
be determined during the compilation, then type-checking is simply
omitted. In your code it applies to the settings[tagName] reference,
where the referred
Thanks Rich ;-)
You don't have compiler errors because you're assigning values to your
singleton by using the square brackets [ ] method. By doing this, at compile
time the compiler doesn't know which property you're trying to modify... The
property can be of any type or can even not exist at
Hi all, I'm working on creating a shared library using IMPORT/EXPORT
tags. A question I have is:
Does the IMPORT action block untiil the imported movie is fully loaded ?
Or do I have to use getBytesLoaded()/getBytesTotal() even for imported
movies ?
This info will also be needed to properly
London (UK) agency urgently (due to the current coder falling unwell)
requires a freelance highly experienced Actionscript 2 coder familiar with
MVC architecture to complete a standalone external API driven application,
being produced for one of the largest online brands in the world. The
project
Hi,
another option for typed data is the serializer from the xflas2 package.
It serializes/deserializes classes as well.
Or example imagine you not only have strings and numbers in your xml but a
type MyClass as well.
After deserializing it, you immediately calls methods on your object.
The
The swf (SWFA) that wants to load your swf (SWFB) can't do so if you
i) you don't allow it
ii) you don't know where SWFA is
You have to know where SWFA is to allow it.
See the System.security.allowDomain entry in the Flash 8 docs; it has
a nice diagram to illustrate things.
I Liked the 'Test' :)
Would be some nice discussion material for on this list too :P
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Grden
Sent: donderdag 16 november 2006 4:21
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Job Opportunity
Does anyone happen to know if static variables will be able to be viewed
in the debugger in Flash 9? Other than using trace statements, of
course.
Thanks,
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Well, there's tricks you can pull to ensure that the movie only works
if run from the server it's supposed to be run from. A different sort
of security, I know.
Ian
On 11/16/06, Weyert de Boer [EMAIL PROTECTED] wrote:
Yeah, securing code in Flash Movie. Anyone know a good one for that
beside
Hi guys,
Electrotank is primarily a Flash game development company. We create web
games used for marketing, free online games, and paid downloadable games.
The demand for our services has been increasing. As a result we are looking
for programmers that can help with some work we have coming
Remember Macromedia Generator? With the Generator extensions in the Flash
authoring environment, you could create .swt files with placeholders for
dynamic data and images. The Generator Server could then render these at
runtime into .swf, .jpg, .gif, or .png files. With the advent of Flash MX,
Hello :)
With BitmapDatas, AS3, flexBuilder, the flex 2 sdk you can do this now :)
for example : http://www.kaourantin.net/2005/10/png-encoder-in-as3.html
EKA+ :)
2006/11/16, Jim Robson [EMAIL PROTECTED]:
Remember Macromedia Generator? With the Generator extensions in the Flash
authoring
I saw that posting, and it's great. However, I'm looking for a method that
doesn't require Flash Player 9. Do you know of a way to accomplish it in
Player 8 (and lower)?
Thanks for the help
-Jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent:
I know you can use this to generate .swf. not sure about the images. Its worth
checking out. I have created swfs with it. You would have to know some java
though. http://www.flagstonesoftware.com/transform/index.html
chris
Jim Robson [EMAIL PROTECTED] wrote:
Remember Macromedia
There used to be some hex editor tricks you were used to be able to use.
It made some of the decryptors crash. Never used it though. Just try to
code in a way that it never matters if people can read your source code.
(Although I can imagine there must be some situations where it would be
very
Hi,
see this thread for more info:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-November/175633.html
Using the code there it would be:
lessonXML.load(App.getPath(_root, media/eLesson_player.xml));
basically the url of the xml file has to match that of the swf that loads it.
On
Thanks for the response Ray but that is not really what I am looking for. I
don't want to prevent others from using my swf. I just want an way to
identify the referring domain when it is embedded. Specifically, I want
people to embed my swf from my server on their web pages (hosted by myspace
or
This may help you out.
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-May/165858.html
Jamie
On 11/15/06, Matheus Araujo [EMAIL PROTECTED] wrote:
Hi,
Is there any way to play multiple FLV files in sequence
as if they are only one, with only one visual buffer?
The sound will be a
If I understand you need something like this:
path = _url.substring(0,19);
if (path == http://www.myspace; || path == http://myspace.com; ){
play();
}else{
stop();
getURL(http://www.myspace.com,_parent;);
}
The code above checks to see if the SWF is playing on the correct
No it doesn't.
That's why so much people uses sharedlib locally and find them not working
once deployed on a website.
2006/11/16, strk [EMAIL PROTECTED]:
Hi all, I'm working on creating a shared library using IMPORT/EXPORT
tags. A question I have is:
Does the IMPORT action block untiil the
Dave,
Hopefully the following will help you get closer to your goal.
I tried various things to get this to work and the biggest problem is I
couldn't find a way to make javascript talk back to flash when it's created
in flash. If you have javascript functions on the html page where the flash
On Thu, Nov 16, 2006 at 05:59:34PM +0100, Eric Priou wrote:
No it doesn't.
That's why so much people uses sharedlib locally and find them not working
once deployed on a website.
Ok, thanks for the answer, so there's really no difference with
explicitly using loadMovie ? And, can I rely on
Also, do people use the Flash webservices component/class for anything
real
or does one always end up doing one's own server-side coding (aside
from
wrapping the web services call to get around security restrictions)?
Is
there a reason to use a web service rather than constructing a query
string
In AS2 there is a compile-time type-checking only, the Flash VM itself
doesn't care about type settings
here's what I'm thinking: the complier should know that the return value
from xmlnode.nodeValue == string (even though the xml wouldnt be loaded
until runtime), and therefore throw an
RR // this does not produce an error
RR settings.settings_id = settingsBranch.childNodes[0].firstChild.nodeValue;
Of course not, because you use the array syntax again (childNodes[0],
which is in fact the same method as in your previous
settings[tagName]) and when using such, the compiler has no
When saying the compiler has no type information I mean that it
doesn't know, that the members of the childNodes array are XMLNode
objects (because the lack of typed arrays), so it doesn't know
anything about the type of the array members' properties, too.
Attila
Of course not, because you use the array syntax again (childNodes[0]
there you go! I was overlooking the array syntax in the assignment.
Thanks!
On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote:
When saying the compiler has no type information I mean that it
doesn't know, that the
ok well maybe i spoke too soon:
If you try it by
the following way, you'll surely get a compile error:
settings.settings_id = settingsBranch.firstChild..firstChild.nodeValue;
// nope, no error
settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue;
On 11/16/06, Rich
RR // nope, no error
RR settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue;
Are you sure that variable settings is typed as Settings?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
plus if i try to assign a string literal i do get an error.
On 11/16/06, Rich Rodecker [EMAIL PROTECTED] wrote:
yuyp, in the superclass, so its an inherited property
var settings:Settings;
On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote:
RR // nope, no error
RR settings.settings_id =
Well, looking again into your earlier posts I noticed this line:
RR var settingsBranch = app_xml.firstChild.firstChild;
You didn't set the type of settingsBranch to XMLNode, so any further
reference to the properties of the object it refers to, will not carry
type information. Was this line
Thanks for the response Joey. I actually tried a similar method before that
almost worked. From Flash I did this -
getURL(javascript:document.mySWF.SetVariable('referringDomain',document.loc
ation.host));
The problem I ran into was that in IE as soon as this line executes the page
stops
Hi list,
I don't usually spam the list, but if there are any internet marketers
here, you might find this List Virus theory interesting:
http://www.thelistvirus.com/cgi-bin/a/clickthru.cgi?id=scriptkitty
--
Thuy Nguyen
Web Designer
Angus Journal
816.383.5228
I'm coming in late to this discussion but is this lack of compiler error
on strict typing in AS2 causing your code to break or is this concern
purely academic? If it's academic then might I suggest you stop
procrastinating and get on with your project? ;)
AS2 strict typing is a lie anyway. It
I have an object that uses a movieclip loader to load a swf into a holder
movieclip on the stage. The mcl code in the loading object looks like this:
__mclListener = new Object();
__mcl = new MovieClipLoader();
var r = this;
__mclListener.onLoadStart = function(target_mc:MovieClip) {
Just make sure it extends MovieClip or else it won't work...
Actually, extending Sprite is sufficient.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Movieclips need one frame to initialize methods. Properties are
available right away but methods are not. I suggest you put the init()
function on the first frame of your loaded clip's timeline and let it
handle its own init(). The properties you set on the clip will be set
prior to the init()
there you go, you are correct, i missed strong typing that variable. thanks
again!
On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote:
Well, looking again into your earlier posts I noticed this line:
RR var settingsBranch = app_xml.firstChild.firstChild;
You didn't set the type of
I'm working on a Flash 8 piece that blits particles onto a BitmapData
object. Somewhere along the way Safari decided it didn't like rendering
to the screen any faster than 1-2 frames per second (amongst other
oddities). An fps meter says otherwise, but there is a definite
performance issue.
yes it is purely academic, it's not causing me problems. And I manage my
time quite well thank you :) as a matter of fact, the project is done...but
I'd still like to discuss it, maybe i'll learn something.
On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
I'm coming in late
there's a ready state for the External interface you might need to check,
the ready state fires when the page has done loading and the javascript is
ready for you to call , check the ExternalInterface class in flash 8 for
that
On 11/16/06, Dave Segal [EMAIL PROTECTED] wrote:
Thanks for the
the allowScriptAccess attribute of the embed tag can be set to never or
always. if its never, you can write all the javascript you want, but it
wont get called. i see embeds with both always and never on myspace
pages. im guessing that any third party swfs will be set to never.if
thats the
A winky emoticon denotes sarcasm or a joke.
I'm glad that somebody was able to locate your problem, though. I
figured somewhere you were using a loosely typed variable so the
compiler wasn't complaining.
Here's a fun one.
someFileName:String = something.swf;
extension:String =
MySpace is a prime example of allowScriptAccess=never
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of John VanHorn
Sent: Thursday, November 16, 2006 3:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] RE: swf and referring domain
It has really big text - must be useful.
People are wising up, they must have been too savvy to put it in
capitals, otherwise we might have all realised it's just a lot of hot
air and some b* pyramid scheme.
The blonde joke
http://www.markdrew.co.uk/blog/index.cfm/2006/1/13/Fridays-joke
In AS2 i was able to use the VideoPlayer class as a lighter version of the
FLVComponent to create a nice video player. Yes i was lazy and didnt want to
roll my own. So i was hoping to do the same with AS3, but it looks like the
changed the VideoPlayer class doesn't allow this possibility. Has
A winky emoticon denotes sarcasm or a joke.
right, i got that part, which is why you got a smiley in return. a smiley
indicates a good vibe.
the reasoning for making Object the return type for pop() is obvious...but i
se what you mean by your example.
On 11/16/06, Steven Sacks | BLITZ
emailBody:String = Strict typing is kind of an all or none thing. If
you only partially strict type, which I have done plenty of in the past,
then you'll only partially get compiler errors. However, in preparation
for AS3 where strict typing has a very noticable improvement in speed, I
am strict
nevermind... figured it out like 2 secs after posting... still
have to get used to the whole concept of everything being a class and the
displaylist... if anyone is curious heres the code... compiles to ~17kb
i have no idea what the limitations/risks are of using this AS3 class
emailBody:String = Strict typing is kind of an all or none thing. If
you only partially strict type, which I have done plenty of in the past,
then you'll only partially get compiler errors. However, in preparation
for AS3 where strict typing has a very noticable improvement in speed, I
am
heh, funneh
On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
emailBody:String = Strict typing is kind of an all or none thing. If
you only partially strict type, which I have done plenty of in the past,
then you'll only partially get compiler errors. However, in preparation
for
You can't put strict typing like that in the timeline. ( ^^)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Claus Wahlers
Sent: Thursday, November 16, 2006 5:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] why are my
hahaha!
On 11/16/06, Glen Pike [EMAIL PROTECTED] wrote:
It has really big text - must be useful.
People are wising up, they must have been too savvy to put it in
capitals, otherwise we might have all realised it's just a lot of hot
air and some b* pyramid scheme.
The blonde joke
you can, but you need to use 'var'.
On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
You can't put strict typing like that in the timeline. ( ^^)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Claus Wahlers
Sent: Thursday,
You can't put strict typing like that in the timeline. ( ^^)
This works fine for me:
var emailBody:String = Strict typing is kind of an all or none thing.
If you only partially strict type, which I have done plenty of in the
past, then you'll only partially get compiler errors.
Yes, you need to declare it as a var or you'll get a compile error.
That's why I said like that. ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Does anyone know if this exists? Or if it is on it's way soon?
Alternatively, is there any way to get the non-intel version to run
on an intel mac?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
As far as I know it only ships with Flex, perhaps in the SDK.
Word is 9.0.28 debug plugin 'universal binary' will ship with Flex 2.0.1
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
63 matches
Mail list logo