Re: [Flashcoders] Getting Data into my SWF

2011-03-10 Thread Henrik Andersson
Kevin Holleran skriver: I am not concerned with the user SEEING the data, I just don't want them to be able to load the SWF in a way that they would be able to pass in their own values. Then you need to provide each user with a computer controlled by you and a competent guard to prevent the u

Re: [Flashcoders] Getting Data into my SWF

2011-03-11 Thread Henrik Andersson
Glen Pike skriver: Hello, The parameters that you pass to the SWF in your HTML are different to communicating with a back-end system. If you look at URLLoader in actionscript. This enables you to load data as you would load a web-page. You would use URLLoader with your server-side code, e.g. P

Re: [Flashcoders] Getting Data into my SWF

2011-03-11 Thread Henrik Andersson
Merrill, Jason skriver: Then you need to provide each user with a computer controlled by you and a competent guard You clearly haven't heard of And he's clearly new to this stuff as he said is his original post, so lay off& play nice. There's no reason to respond to people like that. The wh

Re: [Flashcoders] Getting Data into my SWF

2011-03-14 Thread Henrik Andersson
Developer skriver: Wouldn't it also be helpful to have the server-side script verify (validate) the data the swf is sending back up? That way if someone manually triggered the date, the server would not accept it because it doesn't match it's system date. Don. You have a point. The server ca

Re: [Flashcoders] Getting Data into my SWF

2011-03-14 Thread Henrik Andersson
Kevin Holleran skriver: Thanks to everyone for all of your responses. What is going to happen, is the application is going to hold a coupon. That coupon will be retrieved from a database and passed into the Flash application. I guess as I am writing this, the script will just check the date an

Re: [Flashcoders] Getting Data into my SWF

2011-03-14 Thread Henrik Andersson
Jordan L. Chilcott - Interactivity Unlimited skriver: Unless the client is actually displaying a countdown, it has no need for the data. All the client needs in this case is a polling mechanism to occur on a set interval, whether or not it intends to display any countdown down. No data needs to

Re: [Flashcoders] IE not releasing memory after unloading Flash object

2011-03-16 Thread Henrik Andersson
Karl DeSaulniers skriver: Hi Chris, I was rummaging around in one of my php.ini files and found this nifty little tid bit. Take a look. ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetim

Re: [Flashcoders] Simple encapsulation question

2011-03-16 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: I have a typical tabbed layout and am trying to figure out the simplest/best way to reset the focused state on the focused tab when another is clicked. Classes: Tab - contains graphics and a public variable referencing the MovieClip of the over state. Header

Re: [Flashcoders] Duplicate varibale definition

2011-03-16 Thread Henrik Andersson
The way I would do it is to assign each clickable object the url it needs to go to in a property and then use a single event listener that reads the property to know what url to use. If I was in a really fancy mood I would look into using a component definition to allow the url to be easily se

Re: [Flashcoders] Reusing an Image

2011-03-28 Thread Henrik Andersson
You might want to have a look at the Bitmap.bitmapData property. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Reusing an Image

2011-03-29 Thread Henrik Andersson
Kevin Holleran skriver: then do something like this? Good start, but I suggest using a vector here to make the code simpler. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] useCapture = true is faster?

2011-04-04 Thread Henrik Andersson
Capture happens before bubbling. Go for the capture phase if it works for you and you need to shave a few microseconds. Just remember that the capture phase does not extend to the actual target. ___ Flashcoders mailing list Flashcoders@chattyfig.figl

Re: [Flashcoders] Simulating image in textfield in AIR

2011-04-06 Thread Henrik Andersson
Mattheis, Erik (MIN-WSW) skriver: " For AIR content in the application security sandbox, You don't have to run in the application security sandbox. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/lis

Re: [Flashcoders] TLF: Questions... My situation... Your thoughts?

2011-04-16 Thread Henrik Andersson
Long story short, the TLF library is implemented in actionscript. Said library is hosted on adobe's servers. In order to use the library, the player must have loaded it. The default solution to this used by Flash is to wrap the main movie in a separate preloader movie. This system is called

Re: [Flashcoders] TLF: Questions... My situation... Your thoughts?

2011-04-17 Thread Henrik Andersson
Micky Hulse skriver: Does TLF text add much additional Kb to a document? Some people think so. It's a few hundred kb. But with the RSL preloader that cost is offloaded to the Adobe hosts. You only pay for the preloader that is just a few kb. ___ F

Re: [Flashcoders] TLF: Questions... My situation... Your thoughts?

2011-04-18 Thread Henrik Andersson
Kevin Newman skriver: ... I don't think they are loaded from Adobe's servers Check the publish settings, the exact url list for each RSL is listed there. TLF defaults to being loaded from Adobe's servers. ___ Flashcoders mailing list Flashcoders@cha

Re: [Flashcoders] TLF: Questions... My situation... Your thoughts?

2011-04-18 Thread Henrik Andersson
Micky Hulse skriver: Thanks for all the additional information Kevin and Henrik! Just out of curiosity, do you guys (or others on the list) use TLF text boxes much? I have yet to need it. I don't to such projects. Besides, I find it fun to work with the direct flash.text.engine classes. _

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 ev

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 any

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 c

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. ___ Flas

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 a

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] 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 object

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 sm

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() a

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 http://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. Here is the feature list for those wh

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 http://chattyfig.figle

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 yo

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 solutio

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 StageVide

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: http://img694.imageshack

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 http://chattyfig.figleaf.com/mail

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 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 returns an XMLList j

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 http://chattyfig.figleaf.com/mailman/listinfo/fl

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 = You can even do that completely from within flash: function onResizeHandler(event:Event):void { if (ExternalInterface.available) ExternalInterface.call("function(){document.getEle

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 Flashcoders@chattyfig.fi

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 http://chattyfig.figleaf.com/mai

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 reques

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 Flashcoders@ch

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 a

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 n

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] 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 http://ch

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] 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] 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 automatical

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 http://chattyfig.f

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] 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] 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] 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] 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 l

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] 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] 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 Flashcoders@chattyfig.fig

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 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 http://chattyfig.figle

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] 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] 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] Adobe ceases development on mobile browser Flash

2011-11-09 Thread Henrik Andersson
I see no reason why flash 11 would be the last player version. In fact, the article is quite clear that Adobe does not mind it if other parties were to port their players (providing they properly license it of course), just that they will no longer do it themselves. The indirectly linked to blog p

Re: [Flashcoders] Adobe ceases development on mobile browser Flash

2011-11-09 Thread Henrik Andersson
Bob Wohl skriver: > That right there has been cracking me up since day one. There's no ad block > for html. :) > That is a rather bold claim to make. Just one counterexample would ruin your whole claim. ___ Flashcoders mailing list Flashcoders@chattyfig

Re: [Flashcoders] Adobe ceases development on mobile browser Flash

2011-11-10 Thread Henrik Andersson
http://www.bytearray.org/?p=3744 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] nextFrame doesn't work

2011-11-14 Thread Henrik Andersson
Blame the timeline for losing track of it's instances. Or rather, blame yourself for messing with timeline instances so that the player loses track of them. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailma

Re: [Flashcoders] Image grid with zoom effect

2011-12-27 Thread Henrik Andersson
natalia Vikhtinskaya skriver: >How to make calculation? Call up your favorite math teacher and ask him/her to teach you basic geometry and per cent again. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailma

Re: [Flashcoders] Image grid with zoom effect

2012-01-02 Thread Henrik Andersson
Cédric Muller skriver: > stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true) > > > >> Is it possible to get information in swf from a browser that resizing >> process is finished? >> Sorry, but that event is not for when the resizing has finished. It is when it is happening. __

Re: [Flashcoders] Space filling Algorithm help

2012-01-04 Thread Henrik Andersson
http://en.wikipedia.org/wiki/Packing_problem ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] swfObject and full screen

2012-01-10 Thread Henrik Andersson
natalia Vikhtinskaya skriver: > I found a problem. I deleted this parameter > params.scale = "noscale"; and now full screen works. > Actually, scaling should be set to noscale and the actual code in the loaded movie should deal intelligently with scaling the content according to it's own rules.

Re: [Flashcoders] UI Black Box..,?

2012-01-13 Thread Henrik Andersson
I am not saying that HTML is the best solution here, but it has one thing that Flash does not: a built in layout manager system. It is not the one you are used to from Java and it is a major mess to figure out. But it is one thing that Flash lacks. Unless you count Flex that is. I don't like Flex.

Re: [Flashcoders] UI Black Box..,?

2012-01-14 Thread Henrik Andersson
Taka Kojima skriver: > > The biggest shift is from Classical Inheritance to Prototypical > Inheritance, but the key thing to note is that there is still inheritance. > > Prototypical inheritance is definitely more powerful than Classical > Inheritance when used right. > Yet it is considered in

Re: [Flashcoders] Confirmation succeeded?

2012-01-30 Thread Henrik Andersson
It is just a quiet day. All the controversial topics have died down for now. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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 the

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

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 Flashcoders@chattyfig.figle

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" 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

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] 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 a

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 it

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 > wrote: >> 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

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 Flashcoders@chattyfig.f

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 http://www.adobe.com/aboutadobe/pressroom/executivebi

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 th

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

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-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

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. Obser

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] 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 sou

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 Flashcoders@ch

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] 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. ___

<    1   2   3   4   5   6   >