[Flashcoders] Javascript call to Actionscript 3.0 problems

2008-04-16 Thread Carl Welch
Hi Guys, I'm finally making the painful transition from AS2 to AS3. I am having difficult time getting javascript to send vars to AS3. I've pasted my AS and JS below. Can anyone tell if I am doing something wrong? I tried to follow every tutorial I googled but I just can't seem to make

[Flashcoders] Gaia Framework 2.1 - SEO Scaffolding

2008-04-16 Thread Steven Sacks
Just wanted to let everyone know I just launched a major release of my Gaia Framework for Adobe Flash. http://www.stevensacks.net/2008/04/16/gaia-flash-framework-21-seo-scaffolding/ Gaia 2.1 contains SEO Scaffolding. To find out more about it, check out my blog post and the wiki. Gaia 2.1

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread jonathan howe
To put a practical question out about this. I'm setting up something that is more or less a game with levels. Each level has a different set of movieclips as its background graphics and enemies for the level. I store all assets for a single level in an external swf, and using techniques we've

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Andrei Thomaz
dear Jonathan, and what if Adobe fixes this in a near future? Your code would be broken... So, I don't think is a good idea to write code that needs this feature of Flash Player. []'s andrei On Wed, Apr 16, 2008 at 8:00 AM, jonathan howe [EMAIL PROTECTED] wrote: To put a practical question

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Cedric Muller
from my tests so far, this creates only one reference targetable by your code, but two instances sit in memory ... and some time after a new instance is created (given the complexity of what's created in this newly created instance), everything crashes cedric if the player revisits a

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread jonathan howe
@andrei Well, the alternative that I suggested at the end would be to just keep track of the swfs that I had loaded and not go through the steps of attempting to unload them described in previous posts. So, it would only be broken after the bug fix in the sense that I could ideally be releasing

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Piers Cowburn
I think any kind of fix they implement now would have to have some level of backwards-compatibility. Like passing a boolean which indicates whether you want to fully unload the movie or not. It's been too long without a fix for that in my opinion. Piers On 16 Apr 2008, at 12:19, Andrei

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Hans Wichman
hmm, as in: myMovie.unload (false); which would then be documented as: Unload unloads your movie except when false is passed Feels...wrong somehow;) On Wed, Apr 16, 2008 at 1:40 PM, Piers Cowburn [EMAIL PROTECTED] wrote: I think any kind of fix they implement now would have to have some

[Flashcoders] [AS2] How to remove unused code from the SWF?

2008-04-16 Thread Pasha
Hey! I'm trying to reduce SWF file size to the minimum. The problem that bothers is a large amount of unused code exported to the SWF. If I use a class, all the code from the class is exported. Even if a single method with an empty body is used, the class is exported completely. I use Action

Re: [Flashcoders] [AS2] How to remove unused code from the SWF?

2008-04-16 Thread Glen Pike
Hi, You can use FlashDevelop (Windows) to create intrinsic classes - stub code that will allow you to compile a SWF without using the classes (which go in a library). I think there is a separate program called Igen which generates these intrinsic classes for you from existing files so

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Jer Brand
hmmm, that's not so bad... I'm kinda partial to: myMovie.forceUnload() or myMovie.noSeriouslyUnload() Although this also has it's own sort of personal charm: myMovie.iDontCareIfYouHaveListeners_DIE_DAMN_YOU_DIE() ; Sorry, read this after my morning caffeine rush hit

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Jon Bradley
On Apr 16, 2008, at 9:49 AM, Jer Brand wrote: myMovie.iDontCareIfYouHaveListeners_DIE_DAMN_YOU_DIE() ; LOL. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Paul Andrews
- Original Message - From: Jer Brand [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 16, 2008 2:49 PM Subject: Re: [Flashcoders] Is Adobe fixing this big FP9 problem? hmmm, that's not so bad... I'm kinda partial to:

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Matt S.
Is there any conceivable way that such a thing could be built as a custom class, should Adobe choose to ignore the masses? .m On Wed, Apr 16, 2008 at 9:49 AM, Jer Brand [EMAIL PROTECTED] wrote: hmmm, that's not so bad... I'm kinda partial to: myMovie.forceUnload() or

[Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Gustavo Duenas
Ok, Coders, how is going long time no see. I was wondering if I can open the swf files inside the editor of flash cs3 the way I could do in flash 5 or mx? could I? I mean the swf file in the stage and with the timeline...is that possioble with nthe CS3 or I've been dreaming about it.

[Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
I have a question about SQLite and AIR. Does anybody know why I get this error, becuase the connection is open? I put the code below. The weird thing is that when I use openAsync instead of open, it does work? error Error: Error #3105: Operation is only allowed if a connection has an open

Re: [Flashcoders] code review

2008-04-16 Thread Peter B
also, have you put text in p_1 already? Because the order that Flash wants is you setTextFormat on the text field, and then you put the text in it. HTH Gabino Really? I thought it was the other way around - put text in, then set the format, *unless* you are using

Re: [Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Paul Andrews
- Original Message - From: Gustavo Duenas [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 16, 2008 4:16 PM Subject: [Flashcoders] open swf file inside the flash editor Ok, Coders, how is going long time no see. I was wondering if I can

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread eric e. dolecki
Every SWF to be loaded would need an instance of that custom class and register its events, etc. with it so a method could be called on it to blow it up. I think. Seems like it would be a pretty monstrous booger to do and implement. On Wed, Apr 16, 2008 at 11:01 AM, Matt S. [EMAIL PROTECTED]

Re: [Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Glen Pike
You can't but you can use a 3rd party decompiler like ASV or SWFDecompiler. ASV is working on an AS3 version, not sure if Eltima are. For me ASV is the better one for looking at ActionScript, but I have found it easier to export assets with the SWFDecompiler

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread laurent
You can use BulkLoader to catch your downloaded asset: http://code.google.com/p/bulk-loader/ L jonathan howe a écrit : To put a practical question out about this. I'm setting up something that is more or less a game with levels. Each level has a different set of movieclips as its background

RE: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Morten Barklund
Hi Jiri, I believe it is due to the default lock type. The default lock type (DEFERRED) description says: * SQLTransactionLockType.DEFERRED indicates that a lock is not acquired until the first read or write operation. And since a CREATE is technically neither a data read or data write, but

Re: [Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Pedro Kostelec
Yeah SWF Decompiler Tillix is great even if it really looks like a Microsoft's Office software because of the design: http://www.flash-decompiler.com/ There is one more i know: http://www.sothink.com/product/flashdecompiler/ Pedro D. K. On Wed, Apr 16, 2008 at 5:54 PM, Glen Pike [EMAIL

[Flashcoders] tracking solution for standalone projector

2008-04-16 Thread Jason Van Pelt
I'm creating a kiosk (using as3) to run as a standalone projector. We'd like to track user-interaction if possible, but all tracking solutions i've used in the past (web trends, omniture, google analytics) rely on javascript calls. Can anyone recommend anything that would work without javascript?

RE: [Flashcoders] code review

2008-04-16 Thread Morten Barklund
Hi, It is the other way around. setTextFormat is for formatting text currently in the textfield (optionally text in the textfield within a certain range), and setNewTextFormat is for text prepended to the current contents of the textfield (either prepended by script or by the user in case of

Re: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
Perfect that was it. Thank you Morten. Jiri Morten Barklund wrote: Hi Jiri, I believe it is due to the default lock type. The default lock type (DEFERRED) description says: * SQLTransactionLockType.DEFERRED indicates that a lock is not acquired until the first read or write operation.

[Flashcoders] FMS 3.0 - Dropping application (record/_definst_) message. Clients not allowed to broadcast message.

2008-04-16 Thread Daniel Goldman
I have a simple app which records a live webcam stream – works fine on my local FMS3 – with a hosted solution I get the: -à FMS 3.0 - Dropping application (record/_definst_) message. Clients not allowed to broadcast message. Error message. Has anyone encountered this before? /* *

Re: [Flashcoders] code review

2008-04-16 Thread Gabino Travassos
Oh, right. I never use setTextFormat, I always create the text box, format it and put the text in. public static function makeTextField(x:Float,y:Float,w:Float,h:Float,f:String, s:Float,rgb,t:String){ var newDepth=flash.Lib.current.getNextHighestDepth(); var tf2

Re: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
Morten, i just burst my own bubble. It appears not to be working after all. It seems the line Sql_conn.openAsync( Sql_db ) in the build() method is the problem, becuase when I change it to Sql_conn.open( Sql_db ) everything works fine. Do you have any other suggestions? Jiri Morten Barklund

[Flashcoders] AS3/E4X Problems porting from AS2

2008-04-16 Thread Jer Brand
I'm in the process of switching some of my apps over to AS3, with one class used to access and XML object giving me a fits. The class is used to navigate through a serious of pages, with the XML acting like the table of contents (chapter/topic/page). Applications using this class would make calls

Re: [Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Gustavo Duenas
I was wondering if flash could do that, because I remember doing that back with flash 5 or 4? anyway, right now, the only thing I have with cs3 is the swf running in a player :( I've lost the source files due a HD crash, so for that reason I'm asking. and BTW, those programs cost, any

Re: [Flashcoders] Reading and parsng binary file formats

2008-04-16 Thread Stuart (FunkDaWeb)
Im not sure fi this will work but try WinMerge www.winmerge.org - Original Message - From: Rich Shupe To: FlashCoders Sent: Wednesday, April 16, 2008 7:16 PM Subject: [Flashcoders] Reading and parsng binary file formats Can anyone definitely tell me that this isn't

[Flashcoders] Reading and parsng binary file formats

2008-04-16 Thread Rich Shupe
Can anyone definitely tell me that this isn't possible, or point me to additional information? I want to compare two files, but they are binary. The nearest example I can think of is an encoded text file. That is, no audio, video, sound, etc. but something like Word vs. ASCII or Quicken vs. QIF,

Re: [Flashcoders] AS3/E4X Problems porting from AS2

2008-04-16 Thread Peter Hall
When porting from AS2, you might find it more direct to use XMLDocument instead of XML. This behaves exactly like the AS2 XML object. Having said that, I tried your code and it seemed to work (I assumed where you put node.childIndex() it was a typo and you meant to write

Re: [Flashcoders] AS3/E4X Problems porting from AS2

2008-04-16 Thread Jer Brand
yeah, typo (copied code without changing the names to make any sense in the context of this post). If that code is working, I may have a more subtle bug working somewhere...I'm going to guess that it may be from running a filter and setting the XMLList directly to an XML object -- Either way,

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Helmut Granda
I think eric is already aware of bulk loader ;) http://www.ericd.net/2007/11/as3-class-bulkloader.html On 4/16/08, laurent [EMAIL PROTECTED] wrote: You can use BulkLoader to catch your downloaded asset: http://code.google.com/p/bulk-loader/ L jonathan howe a écrit : To put a

Re: [Flashcoders] AS3/E4X Problems porting from AS2

2008-04-16 Thread Jer Brand
And the problem becomes obvious... once I think about it. AS2's to attempt to execute code on a variable containing null was used over and over to determine when I reached the end of a set of pages in a particular topic. Code like switch(node.nodeName) ... case undefined: Happily executes

Re: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Muzak
Because when adding listeners you are implying asynchronous mode. In other words, as soon as you add listeners, you have to use openAsync(). I've found the use of synchronous mode to be alot easier. regards, Muzak - Original Message - From: Jiri Heitlager [EMAIL PROTECTED] To: Flash

[Flashcoders] byteArray x/y

2008-04-16 Thread Terry Riney
Hello, Can someone send me a link/tutorial on breaking a byteArray up and moving it along x/y coordinates? In Colin Moock's book Ess. A 3.0 he shows on pg. 528 how to take a set array elements (products) and and give a width/height to them. I would like to do the same with a set of

[Flashcoders] AIR bitmapdata.draw( FLV ) Security error

2008-04-16 Thread Patrick Matte | BLITZ
Hi, I get a security error in my AIR app when I try to draw a video that's on my computer to a BitmapData. How can I fix this? Is it because I'm using a self-signed certificate? Should I buy a certificate form Verisign? ___ Flashcoders mailing list

Re: [Flashcoders] byteArray x/y

2008-04-16 Thread Glen Pike
Hi, The TileSet class will split up a bitmap into square tiles for you - look at the convertBitmapTiles function. It also has a loadTiles function which does all this for you. Have a look at the SpaceMap demo - which uses the TileMap, TileSet the dragging stuff. TileMap