Re: [Flashcoders] AIR native extension - Windows debugging

2014-09-05 Thread Henrik Andersson
The rumors of Flash dying are overblown. The Flash and AIR runtimes are still great at what they do. Apple pulled a stunt to shame Flash, but the truth is that they just wanted to protect their appstore. They didn't want to kill Flash. They wanted to kill Flash apps in the browser. They have

Re: [Flashcoders] AIR native extension - Windows debugging

2014-09-05 Thread Henrik Andersson
The problem here is developers not stating what runtime they use for their apps. What can be done is checking existing apps for obvious signs of the runtime. Shouldn't take long for someone to crawl the appstore and check all the apps for the fingerprint of the runtime. John McCormack skriver:

[Flashcoders] AIR native extension - Windows debugging

2014-08-28 Thread Henrik Andersson
Ever wanted to play with classics like ReadProcessMemory in Actionscript? Now you can! I have written an ANE that exposes the Windows debugging API for use in ActionScript. It comes with a asdoc reference manual for easy API learning. It allows access to everything you'd expect from a basic

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-27 Thread Henrik Andersson
This assumes that all mobile devices are incapable of Flash. That's patently false. It also ignores the issue of non-mobile devices that doesn't support Flash. natalia Vikhtinskaya skriver: Here is the code that I use (thank you Karl) and it works. Maybe it will be useful for somebody. I try

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-25 Thread Henrik Andersson
You got the priorities wrong. He wants to use Flash if possible, with the video as the fallback. Karl DeSaulniers skriver: Hi Natalia, Looks like this is your best solution and doesn't involve any javascript. video width=100% height=100% controls source src=jack_giant.mp4 type=video/mp4

Re: [Flashcoders] Projector positioning (centering)

2014-04-19 Thread Henrik Andersson
John R. Sweeney Jr. skriver: Hi all, I need to center a Flash projector on both MAC and PC. Not center the stage, but literally, when you double click the app or exe, it opens in the center of the monitor. Which monitor? Believe it or not, but there are people who have more than one.

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread Henrik Andersson
natalia Vikhtinskaya skriver: This is code in app var appDirectory:File = File.applicationDirectory;//File.applicationStorageDirectory var fileString:String = appDirectory.nativePath; var appFile:File = File.documentsDirectory; var

Re: [Flashcoders] Air Windows installed app

2014-02-17 Thread Henrik Andersson
natalia Vikhtinskaya skriver: Hi to all. I solved all problems with xml editor in flash. I created AIR app that loads and saves xml after editing. I created Windows installer app. It works well on XP and Win 8. But when the user installs it on his pc (I think he has no AIR program on it) app

Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Henrik Andersson
Just use File.separator, it will get you the correct one if you care. Jim Hayes skriver: Or use a / which I think works both on PC and the mac (which \ will not, that will only work on windows) Forgive me if I'm wrong on that one. From:

Re: [Flashcoders] static const singleton GC?

2013-09-20 Thread Henrik Andersson
There is no such thing as calling a constant. And static properties are only initialized once. Your approach only serves to delay the construction of the instance to the moment it is first accessed, as opposed to when the runtime decides to initialize the constant. What OP needs is a singleton

Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread Henrik Andersson
Kerry Thompson skriver: Take it easy, Oren. There is no spam I've seen. It looks like something got corrupted in my reply, but that's hardly spam. I'm posting from a Caribbean island, and there might be some transmission problems-- this is a small, less-visited island. Isn't TCP supposed to

Re: [Flashcoders] AS3 finally..

2013-05-19 Thread Henrik Andersson
Hans Wichman skriver: That said, AS3 is much more about (strong) typing than AS2 was. In that line of thinking, you need to specify exactly what types of parameters go into a method/function and what it returns, even if that what is nothing. The type of Nothing is this respect is void.

Re: [Flashcoders] Re: Air is dead (was Flash is dead)

2013-05-10 Thread Henrik Andersson
They would offer the flash runtime as a linkable library if they were serious about being middleware. Have you seen the ANE stuff? Complete rubbish compared to real native classes! They don't trust people to actually have access to all the useful stuff the runtime has. And it's not a matter of

Re: [Flashcoders] Adobe Flash future

2013-05-08 Thread Henrik Andersson
Liu, Peter skriver: Why can't Adobe make HTML5 as one of the publishing options, then we can continue to use Flash without the need to learn another program? Because HTML5 doesn't do a good job at vector animation. The Flash runtime is quite powerful. And it is difficult to replicate so much

Re: [Flashcoders] AIR installer

2013-01-22 Thread Henrik Andersson
Windows will show it as an unrecognized file type and present the usual shall we go to a website and fail to find anything useful? question. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Exhibition type kiosks

2012-11-30 Thread Henrik Andersson
Glen Pike skriver: We built an AIR shell loader so we could run the App in browser etc. Tell me more. I have not heard how to do this. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] pull in html section to Flash

2012-11-21 Thread Henrik Andersson
natalia Vikhtinskaya skriver: Thank you Karl Some more questions: 1.What Flash function can pull in basic html to flash? 2.And what Flash function can get access to the database? I suppose that can not be done directly from flash. And how to manage that dynamically with new url

[Flashcoders] PSA: Monocle in open beta

2012-10-25 Thread Henrik Andersson
I know that this is a bit late, but since noone else has posted it I guess I will. http://www.bytearray.org/?p=4858 You can now register and instantly get access to the Monocle profiling tool. ___ Flashcoders mailing list

Re: [Flashcoders] AS3

2012-10-24 Thread Henrik Andersson
Karl DeSaulniers skriver: Thank you Cor! The buttons are MCs placed on the stage. At first they were Buttons, but when they wouldn't change even the states within the Button, so I converted them to MCs. Also, what does the , false, 0, true); do? Does it have to do with removing the

Re: [Flashcoders] AS3

2012-10-24 Thread Henrik Andersson
Karl DeSaulniers skriver: Thanks Henrik, Well for this, there are two buttons on stage. When you hover over one it makes a message appear, if the other another message appears. So if I dont use those, your saying that when I roll out, the listener is removed automatically? I am saying

Re: [Flashcoders] Actionscript lives on.

2012-09-18 Thread Henrik Andersson
Tom Gooding skriver: thanks - had seen Machinarium - will take a look at Wonderputt, thing that worries us specifically with AIR is the networking stack; running robust / low-latency socket connections for multiplayer games (which we do fine in browser flash). I say that AIR is even more

Re: [Flashcoders] Actionscript lives on.

2012-09-17 Thread Henrik Andersson
John McCormack skriver: One thing that Apple issue seemed to miss was that any significant download of pixels, no matter what the delivery language, is going to use a similar amount of battery life. So it really had little to do with Flash. More to do with control of the market. I beg to

Re: [Flashcoders] Actionscript lives on.

2012-09-17 Thread Henrik Andersson
Jon Bradley skriver: Of static art and of limiting complexity. The moment complex vectors are used, the data requirements balloon and once motion is taken into consideration (data for per-control point manipulation) the argument is far out the window. Either way, it's a moot argument.

Re: [Flashcoders] Actionscript lives on.

2012-09-17 Thread Henrik Andersson
Ross P. Sclafani skriver: http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html That discusses runtime performance, not how big the data is. And it does not provide any concrete research results. Just unscientific individual observations. I want concrete numbers that

Re: [Flashcoders] Actionscript lives on.

2012-09-17 Thread Henrik Andersson
Paul Andrews skriver: Adobe has said for years that mobile platforms should use bitmaps to conserve processor utilisation. The other real problem with flash is that some developers use inefficient processing loops that eat up processing power - I can often see it on my laptop when the fan

Re: [Flashcoders] AS3 read serial data over USB on Mac

2012-08-29 Thread Henrik Andersson
Eric E. Dolecki skriver: I have some hardware that sends serial data over USB. Any good proxy app to use with Sockets to read that data in an AS3 app? Have you tried an AIR native extension? ___ Flashcoders mailing list

Re: [Flashcoders] Converting a flash game to facebook app

2012-05-31 Thread Henrik Andersson
The idea is obviously to let your server be the one who asks the Facebook servers for the data, meaning that the only possible attack points are the server itself and the connection. If your server is compromised then you have fail security. If the connection is compromised then SSL failed. SSL is

Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Henrik Andersson
Bob Schmitt skriver: It is now: http://www.w3schools.com/html5/html5_new_elements.asp embed Defines a container for an external application or interactive content (a plug-in) HTML 5 is not a standard. It has yet to be finalized. ___

Re: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Henrik Andersson
Kerry Thompson skriver: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. Well, you can't deprecate something that has never been in the standard to begin with.

Re: [Flashcoders] Should I use BlazeDS for this?

2012-03-20 Thread Henrik Andersson
Steven Loe skriver: I'm confused... I would like to control the flash apps on ~1000 machines by sending occasional server messages to them. If I use remoting, seems I need 1000 persistent tcp connections from server to clients. That seems like a lot of connections. Would remoting be less

Re: [Flashcoders] AIR Screensaver?

2012-03-12 Thread Henrik Andersson
David Hunter skriver: Hi All, Anyone have any advice on making screensavers from Flash? I have seen some decent looking software http://www.screentime.com/software/flash-screensaverto convert an swf into a screensaver but it is quite pricey, I didn't have any luck with a mac open source

Re: [Flashcoders] AIR Screensaver?

2012-03-12 Thread Henrik Andersson
David Hunter skriver: That doesn't seem to work on my mac. System Preferences Desktop Screen Saver not picking up my renamed projector file. Is it Windows only? Thanks Henrik. Yup, windows only. ___ Flashcoders mailing list

Re: [Flashcoders] Should I use BlazeDS for this?

2012-03-09 Thread Henrik Andersson
Steven Loe skriver: I have a flash project that polls a php server every 10 seconds to check for commands. I have 1200 machines running this on a local network. You want push, not pull. And http can't provide push. You need a different protocol.

Re: [Flashcoders] MVC - ScreenManager

2012-03-08 Thread Henrik Andersson
Terry Riney skriver: Would like to pass a score/time/damage to client will stick with score/damage right now: package observer{ import observer.Observer; /** * A Java-style Observable class used to represent the subject * of the Observer design pattern. Observers must

Re: [Flashcoders] MVC style Correction

2012-02-27 Thread Henrik Andersson
Ross Sclafani skriver: An MVC Example FLVPlayback is an interesting MVC component: it holds a NetStream as a model of the video it holds a Video as a view of the Video It acts as controller to set the model in motion by connecting it to a stream the ui is also a view of the video:

Re: [Flashcoders] MVC style Correction

2012-02-26 Thread Henrik Andersson
John McCormack skriver: Kevin mentions... ...need to transform the format to fit the view, you would do that in the controller Henrik mentions... The data changing should be done in an adapter that the controller puts in between the model and the view. So the problems arise because the

Re: [Flashcoders] Importing A Button or Other Component Dynamically With Pure AS 3

2012-02-26 Thread Henrik Andersson
Please don't tell us what the error is. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] MVC style Correction

2012-02-25 Thread Henrik Andersson
Kevin Newman skriver: On 2/25/2012 8:00 PM, Paul Andrews wrote: Who is then? The model - but it depends on what you really mean by manipulate - if you are storing it (such as in a database) to be retrieved by the model at a later time, the model should do it. If you are channeling the data

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Henrik Andersson
James Merrill skriver: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html A new version of AS3 will be nice, it's just too bad no one wants Flash anymore. Flash player is basically dead in the water, with its future usage being hardcore gaming. How many of you guys/gals are

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Henrik Andersson
Henrik Andersson skriver: James Merrill skriver: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html A new version of AS3 will be nice, it's just too bad no one wants Flash anymore. Flash player is basically dead in the water, with its future usage being hardcore gaming. How

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Henrik Andersson
Matt S. skriver: On Wed, Feb 22, 2012 at 3:37 PM, Henrik Andersson he...@henke37.cjb.netwrote: If you ask me, Adobe needs to get the animation part back on track before the competition runs past them. Everything Adobe is doing suggests that they think that particular horse has already

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Henrik Andersson
Karl DeSaulniers skriver: If I had anything to say about the future of flash, it would be, sell it back to Macromedia if you can't fill the position. Adobe didn't buy Flash. They bought Macromedia. ___ Flashcoders mailing list

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread Henrik Andersson
Karl DeSaulniers skriver: Ok, then sell it/give it back to the guys who started Macromedia. It seems like they already have positions in the top Adobe management. http://www.adobe.com/aboutadobe/pressroom/executivebios/davidwadhwani.html

Re: [Flashcoders] AIR Socket.readObject received in multiple ProgressEvents?

2012-02-16 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: I'm not understanding something here - in the following excerpted and simplified example, I'm trying to send a ByteArray of length 170 and there seem to be 173 bytes received. Where are the extra bytes coming from and and is that the reason readObject

Re: [Flashcoders] AIR Socket.readObject received in multiple ProgressEvents?

2012-02-16 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: On 2/16/12 4:20 PM, Henrik Andersson he...@henke37.cjb.net wrote: It is highly possible that multiple writes was stuffed into one read, even if you don't flush between the writes. The three left over bytes could be the first three bytes of the length

Re: [Flashcoders] AIR Socket.readObject received in multiple ProgressEvents?

2012-02-16 Thread Henrik Andersson
Ross Sclafani skriver: Henke! Have we met on IRC ? I operate there as butter. Used to hit up actionscript and papervison3d on freenode but it's been a while. Quite likely, since I do hang on ##actionscript@Freenode all the time. It must indeed have been quite a while, since I am afraid I

Re: [Flashcoders] AIR Socket.readObject received in multiple ProgressEvents?

2012-02-15 Thread Henrik Andersson
Basic TCP rules says that you are sending an octet stream. All socket APIs are optimized for bulk access to avoid silly performance issues due to lots of function calls (and possible mode switches). This means that you MAY get more than one object in one go and that you MAY get only a part of

Re: [Flashcoders] AIR Socket.readObject received in multiple ProgressEvents?

2012-02-15 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: If I have to do this without looking at functional examples, how would one transmit a terminator byte or byte size while using Socket.writeObject()? Write the object to a ByteArray, measure the size of that and send the size of that before the contents of the

Re: [Flashcoders] am i loaded by another swf?

2012-02-15 Thread Henrik Andersson
Ktu skriver: Hey List, I'm building a swf, and i want to set the stage.scaleMode and align ONLY IF my swf is the top level swf, and was not loaded by another swf. anyone know how to find out if a swf was loaded by another swf? need more info? thanks You can't know in the general

Re: [Flashcoders] am i loaded by another swf?

2012-02-15 Thread Henrik Andersson
Ktu skriver: sorry now, what if the loader is already in a display list when it runs that first frame? is it still not aware of the stage? If a movie is loaded by a Loader that is on the display tree of the stage the loaded movie DOES NOT have access to the stage.

Re: [Flashcoders] am i loaded by another swf?

2012-02-15 Thread Henrik Andersson
Karl DeSaulniers skriver: Is there no reference in AS3 like AS2 where you can look with _level0 for the top level MC? The equivalent to levels would be the display list of the stage itself. ___ Flashcoders mailing list

Re: [Flashcoders] Flash + jQuery

2011-11-04 Thread Henrik Andersson
You sure that you need javascript to access the server? Flash is perfectly capable of making http requests on it's own. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] swf 2 pdf on the fly

2011-10-28 Thread Henrik Andersson
You could just read up on the pdf file format specification. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] tips for designing games for kids with special needs

2011-10-25 Thread Henrik Andersson
I can only point at the normal design guidelines. They still apply no matter who the target audience is. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Flash Player 11 and Flash Professional CS 5.5 (11.5)

2011-10-20 Thread Henrik Andersson
Right now. You need the correct playerglobals.swc file and a simple xml file to tell Flash about the new player. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Nice looking bit map scaling in flash

2011-10-20 Thread Henrik Andersson
Flash has bitmap smoothing that will blur the image so that the scaling artifacts are less visible. Try it out. At least it is better than making things look pixelated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS2 open pps file from flash project

2011-10-05 Thread Henrik Andersson
As 2 might not be able to do it. As 3 on the other hand can open any file, as long as you write the needed code to parse the file. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Flash on top of flash

2011-09-21 Thread Henrik Andersson
You won't get much luck overlaying anything on top of a flash player. Not even another flash player. I think that the correct solution here is to use just one flash player that loads both movies. ___ Flashcoders mailing list

Re: [Flashcoders] SWF size reduction

2011-09-17 Thread Henrik Andersson
The issue here is that the compiler does not know that they will remain unused and can not assume they will. Why? Because if another swf file accesses the first file at runtime then the second file may need the features. ___ Flashcoders mailing list

Re: [Flashcoders] timer confligt

2011-09-12 Thread Henrik Andersson
Timers doesn't run while their listeners run. This gradually skews their position. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] array problem,loop.plot

2011-08-23 Thread Henrik Andersson
I say, store no pints what so ever. Store the formula needed to compute each point. Then you can just compute the point when actually needed. This way you can plot the graph at any zoom level without sacrificing any quality. ___ Flashcoders mailing

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Henrik Andersson
Use a reasonable amount of points. Don't draw more points than the graph is wide. Consider using curveTo to get smoother lines. Consider using the bulk drawing to reduce the cost of telling flash each point. One method call vs one per point can make a difference.

Re: [Flashcoders] rotation cw ccw

2011-08-19 Thread Henrik Andersson
You can't unless you assume that the maximum rotation speed is less than 180 degrees per update. This is due to the aliasing problem. This is, assuming that you don't actually know the rotation speed and are calculating the angular difference between two positions.

Re: [Flashcoders] Simplify XML Call

2011-08-13 Thread Henrik Andersson
There is still no eval function. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Simplify XML Call

2011-08-12 Thread Henrik Andersson
ActionScript 3 is a compiled language. There is no such thing as an eval function in as 3. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] CS5 text problem

2011-08-11 Thread Henrik Andersson
It is a very common problem. You need to embed the font in a different way that is not automatically dealt with. Just find the textfield on the stage, select it and click on the embed button in the properties inspector panel to add the correct symbol for the font. Flash will then

Re: [Flashcoders] Simplify XML Call

2011-08-11 Thread Henrik Andersson
While you have the right spirit I think that it would be a better idea to check the length of the array instead. That way you won't accidentally step out of bounds there. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Question: Fullscreen but want to retain a movieClip's width and height

2011-08-09 Thread Henrik Andersson
It depends on the set scaling mode of the stage. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Henrik Andersson
Glen Pike skriver: Hi, Unless you can use /usr/sbin/diskutil as your File name and pass the other elements of the command line as separate arguments, then you might have to be more creative with your approach. 1. Write a shell script that encapsulates this command and call that. 2. Capture

Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread Henrik Andersson
Sounds like the classical mask not being in a display list issue, but in a new variation. Ensure that both the mask and the maskee is in the container passed to the draw call. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Re: secure sockets?

2011-07-24 Thread Henrik Andersson
flash.net.SecureSocket ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Henrik Andersson
Cor skriver: OK, so when I change the output line in my PHP from: print $response; to print returnString=$response; So flash expects a key-value pair!!! Now the real question is, why is Flash expecting that format to begin with? You shouldn't change your php code. You should change the

Re: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Henrik Andersson
Cor skriver: Thank you. I have: var myXML:XML = XML(e.target.data.returnString); You should have XML(loader.data). Use the URLLoaderDataFormat.TEXT mode, not the URLLoaderDataFormat.VARIABLES mode. As for the ordering, did you request any specific order at any time in the chain? You did

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Your php code is broken then. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Did you even look at the code he posted? The code already does that! As for the code itself, while I do not aprove of using string concatenation to build xml, that seems to be ok. You seem to have some sort of dodgey filter running somewhere later in the chain. I recommend using a http

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Karl DeSaulniers skriver: Hi Cor, I think you will want to put htmlspecialchars() around what comes out of the database. More like using a proper XML generating library. I recommend the DOM php extension. ___ Flashcoders mailing list

Re: [Flashcoders] Calling native code from Flash

2011-07-19 Thread Henrik Andersson
Embed the flash player in your own native application. Then add stuff to the api using high level magic and there you go, new stuff for actionscript to use. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AIR app - possible to dynamically unzip?

2011-07-14 Thread Henrik Andersson
First of all, there is no protection in the current design. And you can never make one that will do squat. Second, there are libraries to work with zip files. I have used one myself, not too hard. ___ Flashcoders mailing list

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Henrik Andersson
Set the embeding code to use a dynamic size, such as 100 %. Then use the Stage.stageWidth and Stage.stageHeight properties to do your layout. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] scrolling webpage with flash

2011-06-30 Thread Henrik Andersson
Kevin Newman skriver: On 6/30/11 4:40 PM, Eric E. Dolecki wrote: document.getElementById(divName).style.height =valPassedByFlash You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available)

Re: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Henrik Andersson
CDATA is just an encoding trick to force the parser to not parse the data as containing tags. It represents plain old text so treat it like plain old text. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Henrik Andersson
Merrill, Jason skriver: var kids = xmlData.children(); // gets me the CDATA content without the![CDATA[ or ]] var kidscdata:String = kids[0].toString(); That seems unnecessary unless I don't understand your question. Wouldn't var kids:String = theXMLNode.text() work? The text method

Re: [Flashcoders] Stage video

2011-06-16 Thread Henrik Andersson
John R. Sweeney Jr skriver: Everything I've found on the web about stage video is Flex examples. Has anyone used this new class with Flash? If so, any links to examples of usage would be greatly appreciated. I've searched my drive and don't appear to have the class files for things like

Re: [Flashcoders] Stage video

2011-06-16 Thread Henrik Andersson
John R. Sweeney Jr skriver: I have the 10.3 plugin and Flash CS5. I haven't installed CS5.5 yet, but a friend has it and he doesn't have the playerglobals.swc file either. He isn't looking hard enough then. All versions of flash comes with several playerglobals.swc files, one for each player

Re: [Flashcoders] Detecting if line crosses movie clip

2011-06-16 Thread Henrik Andersson
Glen Pike skriver: Hi, Can you measure the vector distance between the centre of the polygon and the centre of the ball? If that is 0,0, and the diameter of the circle is less than the smallest of width / height of the box, then you are inside. Glen Not in all cases:

Re: [Flashcoders] RE: HTMLLoader not loading [SOLVED]

2011-06-14 Thread Henrik Andersson
I think that this is likely due to the quoted requirements. It can not be scaled, rotated, filtered, color transformed or anything of that fun stuff. Somehow the root had something on that list. Mendelsohn, Michael skriver: OK, after two days of total stress, I figured I'd document the

Re: [Flashcoders] AS3 is it possbile to show a movieclip before its all frames loaded

2011-06-13 Thread Henrik Andersson
B Shankar PEDANA skriver: Hi, Is it possible to show a movieclip before all its frames(say 100 frames) or when its first frame is loaded? That is the default, flash will start rendering a swf file as soon as it can, only pausing if it gets ahead of itself. The Event.INIT event will tell

Re: [Flashcoders] as3 component screen redraw

2011-06-08 Thread Henrik Andersson
My gut instinct says that something is messing with the delay rendering system that the components are using. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] sneaky AIR

2011-06-08 Thread Henrik Andersson
Karl DeSaulniers skriver: Hello all, Has anyone here heard of the PrivateEncriptedDatak keychain that Adobe has? That's not even spelled correctly. I don't buy it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Incubator updates

2011-05-22 Thread Henrik Andersson
Since nobody else has done this, I might as well do it. It's old news by now, but it doesn't hurt to tell people about it. The flash player incubator have updated and added new features. http://labs.adobe.com/technologies/flashplatformruntimes/incubator/ Here is the feature list for those who

Re: [Flashcoders] typechecking ActionScript 3.0

2011-05-20 Thread Henrik Andersson
Isn't the playerglobals.swc file part of the player definition? As such, it is referenced by an xml file in the $flashroot/common/configuration/players folder. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] TypeError: Error #1034:

2011-05-17 Thread Henrik Andersson
Roland López skriver: hello everyone im having some trouble meaking a php contact form the error that returns me is this : TypeError: Error #1034: Type Coercion failed: cannot convert fl.controls::Button@2e35f0b1 to flash.display.MovieClip. at flash.display::Sprite/constructChildren()

Re: [Flashcoders] is there a dsp lib with analysis using zero crossing in as3

2011-05-11 Thread Henrik Andersson
Anthony Pace skriver: Hello list, I have been doing some experiments, but although my stuff is working, it isn't optimized at all, and I would to try a reliable lib that uses zero crossings for analysis, if one exists. Any suggestions? I am really just interested in pitch analysis with very

Re: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Henrik Andersson
Start by throwing away the XMLList wrapper, what you really have is a single XML element, stop trying to pretend otherwise. Once you have the XML instance, just call the namespace method with the prefix to get the correct Namespace instance to use. Or even simpler, create the Namespace

Re: [Flashcoders] f4v video does not play in test mode

2011-04-26 Thread Henrik Andersson
The test player in the IDE is too old. f4v support was added to the player after CS 3 was released. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Henrik Andersson
Steve Abaffy skriver: what is going on here??? Each DisplayObject can only be on one display list. Trying to add it to another one when already on a list will automatically remove it from the first one before it is added to the second one. ___

Re: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Henrik Andersson
Steve Abaffy skriver: Great then how do I use the same image in two different spots?? In general it is impossible. But bitmaps are an exception. You see, by using the same BitmapData instance with multiple Bitmap instances you can save a lot of memory by showing the same data as many times

Re: [Flashcoders] Test if class is attached to document or symbol?

2011-04-21 Thread Henrik Andersson
Micky Hulse skriver: Basically, I needed a way to test if my class was assigned to the FLA as a Document Class, or, if it was assigned to movieclip/sprite in library (export for actionscript) and added to stage manually. You are missing two cases: The first one is if it was never added to

Re: [Flashcoders] Test if class is attached to document or symbol?

2011-04-21 Thread Henrik Andersson
Micky Hulse skriver: After I posted my code, I changed this line: public class Test extends Sprite { ... to this: public class Test extends MovieClip { I assume that is how I would account for a timeline instance? Nope. Timeline instances can, but doesn't have to, be Sprites too. And the

Re: [Flashcoders] Variable scope with asynchronous SQL connection

2011-04-20 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: 1. The SQLConnection is asynchronous. Is there a possibility the function variable sql would get garbage collected before the event handler fires? It is a local variable. Yes, it is up for garbage collection the instant the function returns. So if the

  1   2   3   4   5   6   >