[Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Paul Steven
Is there a property or function to detect if a Flash movie is being tested in authoring mode or live on the web? Basically I have added a random variable to my xml file when loading it to prevent caching. The following works in both authoring and when live myXML.load(xml/homeFlashContent.xml);

Re: [Flashcoders] FPS question

2009-04-02 Thread Ian Thomas
Also = try to redraw as little of the screen as possible from frame to frame. If your entire screen is constantly redrawing, that takes a lot of processing power. So alpha fades that affect the entire screen or moving/animating a sprite which covers the entire screen are problems. The Flash

Re: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Karl DeSaulniers
Try +my_Date.getUTCSeconds().toString() Sent from losPhone On Apr 2, 2009, at 2:19 AM, Paul Steven paul_ste...@btinternet.com wrote: Is there a property or function to detect if a Flash movie is being tested in authoring mode or live on the web? Basically I have added a random variable

Re: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Ian Thomas
Hi Paul, Take a look at System.capabilities.playerType. System.capabilities.playerType==External means you're running in the IDE. System.capabilities.playerType==Plugin means you're running in a browser. HTH, Ian On Thu, Apr 2, 2009 at 8:19 AM, Paul Steven

Re: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Glen Pike
Hi, I have used the _root.url variable before to detect whether it is an http or a file based one and done caching based on that. Glen Paul Steven wrote: Is there a property or function to detect if a Flash movie is being tested in authoring mode or live on the web? Basically I have

[Flashcoders] Proof of Concept - HTTPService object doesn't require crossdomain-policy file

2009-04-02 Thread Johan Nyberg
Hi, thanks for all the response to my question about the crossdomain.xml. But... I didn't get a lot of response to the fact that HTTPService can access public feeds/content on other sites without the need of a crossdomain.xml Please check out the code included at the end of this post. I've

[Flashcoders] Oops.. forgot to include the code. Proof of Concept - HTTPService

2009-04-02 Thread Johan Nyberg
Forgot to include the code as promised in my previous post. Here it is. Please set url to wathever favourite RSS or whatever you want to access: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=loadSettings()

Re: [Flashcoders] Proof of Concept - HTTPService object doesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike
If that is the case then why is my standalone Flash exe restricted when I set it to allow network access only? Paul Andrews wrote: Isn't the context for an AIR application different to a flash application loaded from a browser? In the browser the flash swf is loaded from a particular domain

Re: [Flashcoders] Proof of Concept - HTTPService objectdoesn't require crossdomain-policy file

2009-04-02 Thread Paul Andrews
Is this a projector or an AIR application? Seems to me that if you say network only to an executable, it's like running it in a browser with no default domain, whereas an AIR application isn't restricted. Paul - Original Message - From: Glen Pike g...@engineeredarts.co.uk To: Flash

Re: [Flashcoders] Proof of Concept - HTTPService object doesn't require crossdomain-policy file

2009-04-02 Thread Paul Andrews
Isn't the context for an AIR application different to a flash application loaded from a browser? In the browser the flash swf is loaded from a particular domain and access outside that domain requires the crossdomain policy. In an Air application there is no concept of the domain that the

Re: [Flashcoders] Oops.. forgot to include the code. Proof of Concept - HTTPService

2009-04-02 Thread Ian Thomas
Johan - from memory, I'm not sure AIR needs the crossdomain file, whereas browser-based Flash does. That might explain the discrepancy. (That is from memory, though - probably needs doublechecking...) Cheers, Ian On Thu, Apr 2, 2009 at 9:35 AM, Johan Nyberg johan.nyb...@webguidepartner.com

RE: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Paul Steven
Thanks Glen - that seems to be just what I was after. Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: 02 April 2009 09:15 To: Flash Coders List Subject: Re: [Flashcoders]

Re: [Flashcoders] Proof of Concept - HTTPServiceobjectdoesn't require crossdomain-policy file

2009-04-02 Thread Paul Andrews
Looking at the flash player security model, a projector has a local security sandbox while a browser launched swf has a security sandbox that includes it's own domain, so this would explain why your projector would be restricted. Paul - Original Message - From: Paul Andrews

Re: [Flashcoders] Proof of Concept - HTTPService objectdoesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike
Hi, It's an AS2 Flash application running standalone on Linux requesting stuff from the localhost on various ports - the irritating thing is I still have to implement x-domain files / responses on every port I connect to, I tried setting a policy server up on the default port as per the

Re: [Flashcoders] Proof of Concept - HTTPServiceobjectdoesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike
Projector sandbox can be set to local or network, but not both. Paul Andrews wrote: Looking at the flash player security model, a projector has a local security sandbox while a browser launched swf has a security sandbox that includes it's own domain, so this would explain why your projector

[Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
I am new to bitwise operators, so I am trying to learn it. I have the following code and it works half. I am using a switch case to get the result, but this is messing things up. I could revert to and if - else statement, but I was wondering if there is a more elagant way of doing it. I post

RE: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Paul Steven
Nice one Ian - that looks even better than the other suggestion by Glen:) Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas Sent: 02 April 2009 08:40 To: Flash Coders List Subject:

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Hans Wichman
Hi, isn't the absence of break statements messing things up? greetz JC On Thu, Apr 2, 2009 at 12:08 PM, Jiri jiriheitla...@googlemail.com wrote: I am new to bitwise operators, so I am trying to learn it. I have the following code and it works half. I am using a switch case to get the

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Thanks Hans, I am aware of that, so if-else would be the only way to go I guess. Jiri Hans Wichman wrote: Hi, isn't the absence of break statements messing things up? greetz JC On Thu, Apr 2, 2009 at 12:08 PM, Jiri jiriheitla...@googlemail.com wrote: I am new to bitwise operators, so I

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread jonathan howe
Jiri, I think Hans's advice will get you what you want. case RESTRICTION1 : tRestrict +=\u0020-\u007E; trace('all'); break; case RESTRICTION2:

Re: [Flashcoders] Proof of Concept - HTTPServiceobjectdoesn't requirecrossdomain-policy file

2009-04-02 Thread Paul Andrews
I think that my point was that the sandbox permissions for the projector are restricted to the machine it runs on and you need the policy file in place to go anywhere else. I'm not saying Adobe did the right thing for projectors, just how it is. Paul - Original Message - From: Glen

Re: [Flashcoders] Proof of Concept - HTTPService objectdoesn't requirecrossdomain-policy file

2009-04-02 Thread Paul Andrews
Yes, that sounds tedious and frustrating. Paul - Original Message - From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 02, 2009 10:54 AM Subject: Re: [Flashcoders] Proof of Concept - HTTPService objectdoesn't

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Mark Winterhalder
Jiri, if() isn't too bad, especially since you will possibly want to permit multiple restrictions (like numbers /and/ letters, or Latin letters plus umlauts). If you use if() and combine that with appending to the restriction instead of setting it (+= instead of =), you gain flexibility. That

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Thanks for the helpfull feedback Mark Winterhalder wrote: Jiri, if() isn't too bad, especially since you will possibly want to permit multiple restrictions (like numbers /and/ letters, or Latin letters plus umlauts). If you use if() and combine that with appending to the restriction instead of

[Flashcoders] as3 rollover rolloff issue..

2009-04-02 Thread Preston Parris
So basically I have a bunch of thumbnail images set up in a grid form, each is the same movieclip just multiple instances of it. This movie clip has a rollover and rolloff state that basically scales the image up, this is done with external as that loops through and creates the event listeners for

Re: [Flashcoders] as3 rollover rolloff issue..

2009-04-02 Thread jonathan howe
Preston, There are two possible issues: 1. The scaled image is overlapping other scaled images and messing up your chain of events fired 2. The tween method you are using to scale is not being properly terminated and restarted/triggered. (How are you scaling the images?) I would start by

[Flashcoders] Flashplayer positioning

2009-04-02 Thread Glen Pike
Hi, I have just setup FP10 in standalone on my Gentoo Linux box and am running a SWF from the command line in standalone mode. The x, y position of my SWF is all wrong - the SWF is positioned mostly off the screen. Reverting to FP9 standalone it works fine. The SWF is compiled

RE: [Flashcoders] Bitwise selection

2009-04-02 Thread Kerry Thompson
Jiri has gotten some good answers. I got to work late today after working until 11:30 last night meeting my 5:00 deadline :-P I did occur to me that a fair number of us may not completely grok bitwise stuff. That's computer science stuff, and a lot of us got here by other routes-I see a lot of

Re: [Flashcoders] Proof of Concept - HTTPService objectdoesn't requirecrossdomain-policy file

2009-04-02 Thread Muzak
I haven't really looked into the differences between standalone and AIR - haven't created a projector in years - but my guess is that because you have to install an AIR application (and are therefor informed/warned about the risks that entails) it is allowed to do more than a standalone

Re: [Flashcoders] Flashplayer positioning

2009-04-02 Thread Joel Stransky
Is there any off-stage content that might be causing this? On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike g...@engineeredarts.co.ukwrote: Hi, I have just setup FP10 in standalone on my Gentoo Linux box and am running a SWF from the command line in standalone mode. The x, y position of my

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Nice, that you took the time to write that post. It is much appreciated. Jiri Kerry Thompson wrote: Jiri has gotten some good answers. I got to work late today after working until 11:30 last night meeting my 5:00 deadline :-P I did occur to me that a fair number of us may not completely

RE: [Flashcoders] Bitwise selection

2009-04-02 Thread Kerry Thompson
Jiri wrote: Nice, that you took the time to write that post. It is much appreciated. Thanks, Jiri. One other thing worth mentioning is that an integer is actually 4 bytes, so you have 32 bits. I kept my example to one byte for simplicity. If you want to do operations on a single byte, you can

Re: [Flashcoders] Flashplayer positioning

2009-04-02 Thread Glen Pike
Hi, There is stuff offstage, but I am not sure if it is in a guide layer or not - will check later. Why this would happen in FP10 and not 9 though?? Glen Joel Stransky wrote: Is there any off-stage content that might be causing this? On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike

Re: [Flashcoders] Flashplayer positioning

2009-04-02 Thread Taka Kojima
not sure, maybe FP10 defaults to a different stage alignment. Maybe try explicity stating the stage alignment and see if that fixes it. - Taka On Thu, Apr 2, 2009 at 11:16 AM, Glen Pike postmas...@glenpike.co.uk wrote: Hi,   There is stuff offstage, but I am not sure if it is in a guide layer

[Flashcoders] id3 runtime error

2009-04-02 Thread Dave Segal
I have a bug that is driving me nuts. I am loading an mp3 file from the same server as my swf. About 1 in 30 tries when trying to reading the id3 tags after the ID3 event I get a runtime error telling me I need to load the crossdomain policy file in order to access the tags. I tried setting the

Re: [Flashcoders] id3 runtime error

2009-04-02 Thread Taka Kojima
Hey Dave, Can you paste the exact error message? On Thu, Apr 2, 2009 at 4:51 PM, Dave Segal d...@oddcast.com wrote: I have a bug that is driving me nuts. I am loading an mp3 file from the same server as my swf. About 1 in 30 tries when trying to reading the id3 tags after the ID3 event I get

Re: [Flashcoders] id3 runtime error

2009-04-02 Thread Joel Stransky
Are they id3 version 1 or 2? --Joel On Apr 2, 2009, at 7:51 PM, Dave Segal d...@oddcast.com wrote: I have a bug that is driving me nuts. I am loading an mp3 file from the same server as my swf. About 1 in 30 tries when trying to reading the id3 tags after the ID3 event I get a runtime