Philter
Explorer
Philter
Explorer
Activity
‎Oct 18, 2011
11:35 PM
Are there any plans to support remote connections and scripting in Lightroom in the same way that it's supported through the Photoshop SDK? Thanks.
... View more
‎Dec 07, 2009
03:00 PM
This is perfect. Thanks for the example Michael! I'll give this a try.
... View more
‎Dec 07, 2009
01:57 PM
Thanks for your response Michael. Actually, to be more specific, I'm building a Flash based panel to use with Photoshop. Not sure if this qualifies as a "built-in" panel as you mention. What I'm looking to do is have the panel resize itself when a button within the panel is pressed. Also, I'd like to be able to position the panel to a specific x/y location when it is opened.
... View more
‎Dec 07, 2009
01:23 PM
Is there a way to set a panel's x/y position and size using PS scripting? If someone could point me to some documentation on this, that would be hugely appreciated!
... View more
‎Jul 31, 2009
09:19 AM
1 Upvote
When embedding the swf (either using embed/object tags or swfobject), are you setting an "id" value on it? If not, that would be why it's not working.
... View more
‎Jul 31, 2009
08:45 AM
1 Upvote
The problem is that every time you call draw() on your BitmapData instance, it replaces what was drawn to that instance previously. So when you later try to attach the BitmapData to a Bitmap, you'll only see whatever was last drawn to that BitmapData. I would create a new Bitmap instance for every frame you need to draw, and then store the Bitmaps into the array and just add those to the displaylist later.
... View more
‎Jul 31, 2009
08:40 AM
If you're saying that error is caused by the line: showProgr.text = Math.floor((loaded/total)*100)+ "%"; I would double check that showProgr actually exists by just calling trace(showProgr). If it traces null or undefined, then double check to make sure your instance name of the instance on stage matches the code.
... View more
‎Jul 31, 2009
08:34 AM
The common workaround is to use a server side proxy file that sits on the same server as the swf, to grab the data and pull it into Flash. Here is an example: http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/
... View more
‎Jul 31, 2009
08:23 AM
I would put the intances in a vector (since you are using the same datatype - Sprite): var arr:Vector.<Sprite> = new Vector.<Sprite>(); for (var i:uint=0;i<3;i++) { arr.push(new Sprite()); } Then you can also loop back through the array to access the instances.
... View more
‎Jul 31, 2009
07:52 AM
1 Upvote
The crossdomain.xml file needs to go on the domain that's hosting the RSS feed (ie, norea.nl), not the domain that's hosting the swf. So if you have 2 domains: www.a.com - hosting the RSS feed www.b.com - hosting the swf The the crossdomain.xml file goes on www.a.com and would look like: <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all" /> <allow-access-from domain="http://www.b.com" /> </cross-domain-policy> or, if you wanted to allow any domain to access the RSS feed, do this: <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all" /> <allow-access-from domain="*" /> </cross-domain-policy>
... View more
‎Jul 31, 2009
07:33 AM
A couple of problems: 1. You're trying to add a class to the stage instead of an instance of the child 2. Generally, the movieclip shouldn't add itself to the stage (displaylist). You should do it from outside. So something like this (from outside your Preloader class (perhaps a Main class): // Import the class import BowerPower.Startup.Preloader; // Create the instance and add it to the displaylist var p:Preloader = new Preloader(); addChild(p);
... View more
‎Jul 30, 2009
11:03 AM
When you embed the swf in the page, append a random number to it and it should prevent caching: "file.swf?r=23948734" Obviously you'll need to generate the random number using javascript, but that should do it.
... View more
‎Jul 30, 2009
10:58 AM
import flash.net.navigateToURL; import flash.net.URLRequest; navigateToURL(new URLRequest("Halloween_09/Welcome.html"),"_self");
... View more
‎Jul 30, 2009
10:46 AM
1 Upvote
If the php file exists on a different server than the one you're testing the swf from, you need a crossdomain policy file on the server that's hosting the php file. http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
... View more
‎Jul 28, 2009
02:48 PM
If it works properly in the Flash IDE, it's likely a problem with the embedding html. Did you set the width and height in the html to 100%?
... View more
‎Jul 28, 2009
02:44 PM
No, unfortunately, Flash player is not able to run something on a seperate thread while code is currently executing (the player will just lock up if the code execution takes longer than a certain amount of time and you'll get the dreaded "A script is causing the player to run slowly" dialog). People have done work to do something similar to what you are trying to do, but ultimately, it comes down to running an ENTER_FRAME event or timer to break up the code execution.
... View more
‎Jul 28, 2009
02:36 PM
A screenshot would help in diagnosing this issue. I know that some Flex controls use the bold version of the font, so you need to make sure that the bold font is also embedded into the swf that contains your fonts.
... View more
‎Jul 28, 2009
02:29 PM
Try creating a seperate client object on NetStream (rather than using the default client which is the NetStream object itself) and then add the onPlayStatus function to that object.
... View more
‎Jul 28, 2009
02:24 PM
I would recommend using GTween which is really simple to use and works with filters. http://www.gskinner.com/libraries/gtween/
... View more
‎Jul 28, 2009
02:22 PM
I would try loading an empty swf and then unloading using unloadAndStop. If it doesn't crash, you know it's a problem with the swf that's being loaded. If it does still crash, it's likely an issue with the swf that's doing the loading. I've used unloadAndStop without any issue so it's likely not a player bug.
... View more