[Flashcoders] Exit frame event

2009-10-26 Thread Henrik Andersson
Hi! Happy first post to me! I have been trying to figure out what the new exit frame event is for. The manual is not helpful at all here. I have done some experiments on how the different events are timed. (See attached file) They show that for the first frame, the exit frame event happens

Re: [Flashcoders] Exit frame event

2009-10-26 Thread Henrik Andersson
Cor wrote: Your switch always triggers enter_frame and not another choice possibility I tried without that, but the only effect was that all differences was zero (or 1 due to random timing differences). The position in the enter frame case is very intentional and is in fact needed to get any

Re: [Flashcoders] Website in an application

2009-10-27 Thread Henrik Andersson
John R. Sweeney Jr wrote: Howdy List, My client wants a touchscreen application. I've done several on 50 plasma screens before for them using a Flash projector on a PC, but the kink in this one is the client wants to be able to view the corporate website in the Flash app. They don't want a

Re: [Flashcoders] as3 to iphone app

2009-10-29 Thread Henrik Andersson
Kerry Thompson wrote: I don't know of a way to compile a swf from C, or any machine-language compiler. I'm not quite sure about iPhone apps developed in Flash--they may compile to native code, but there isn't a way to compile a swf to machine language that I know of. You must have missed the

Re: [Flashcoders] Colorizing Vector Drawn Image

2009-10-30 Thread Henrik Andersson
Ian Thomas wrote: If you want to colour the individual segments of the shirt separately, you need to split the image apart into different clips/layers first, then use one of the two method above. Do note that layers are not separately controllable, you really need separate movieclips for

[Flashcoders] List etiquette

2009-11-02 Thread Henrik Andersson
As I am new, I wonder what the etiquette is on this list for dealing with people who screws up the metadata by hitting reply instead of writing a new message. This annoys me, since my email client is smart enough to break the conversations down Usenet style, making it easy to keep track of

Re: [Flashcoders] as3 to iphone app

2009-11-02 Thread Henrik Andersson
Kevin Newman wrote: What I'm really interested in is are there any other language improvements/additions coming with the update (private constructors, inline functions, structural typing, let keyword, etc.)? Or is is the same version of Actionscrtip 3.0? Other than new api stuff for the new

Re: [Flashcoders] visually similar spectrum

2009-11-03 Thread Henrik Andersson
Anthony Pace wrote: I am not sure how to distinguish at what range or threshold a colour becomes too visibly similar to the eye to detect a difference, and I am really hoping there is a formula out there that I can be directed to. It depends on the context. If they are right next to each other

Re: [Flashcoders] Auto Webcam Detection

2009-11-04 Thread Henrik Andersson
Ktu wrote: So I've noticed that Facebook will automatically detect which Camera object to use on your computer. It seems on most if not all macs there are at least three (3) Camera objects always available. So, I've made a class that will automatically detect which webcam is active and running.

Re: [Flashcoders] RegExp question

2009-11-05 Thread Henrik Andersson
Mendelsohn, Michael wrote: I want the *entire* text in the text box to be considered, not just a matched substring. Is this possible? Use ^ to lock to the begining of the string and $ to lock to the end of the string, use both and it will not be allowed anything other than the expression.

Re: [Flashcoders] Weak eventListener Problem

2009-11-07 Thread Henrik Andersson
Ktu wrote: When the code below is run, the eventListener still fires. I was under the impression that it would not because the eventListener uses a weak reference, and thus get garbage collected. var sp:Sprite = new Sprite (); sp.addEventListener (Event.ENTER_FRAME, function (e:Event):void {

Re: [Flashcoders] Weak eventListener Problem

2009-11-07 Thread Henrik Andersson
Ktu wrote: That is true, however, this eventListener fires indefinitely. Garbage collection should pick it up after 30 seconds right? I have tried this on the main timeline, and in a document class, but GC never cleans up the object. Why? There is no set time when it will run. It runs when

Re: [Flashcoders] as3 dropdown

2009-11-09 Thread Henrik Andersson
romain DR wrote: Hi there, first message here! I m currently working on some dropdown. Get just a quick question! how do I can close a dropdown with a click outside of the sprite? I was thinking about adding a listener on holder_spr.stage but in that case the listener fire even if I click on

Re: [Flashcoders] different frame rate loaded sfw from its parent

2009-11-10 Thread Henrik Andersson
Davide Di Blasi wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I think you forgot the message. ___ Flashcoders mailing list

Re: [Flashcoders] different frame rate loaded sfw from its parent

2009-11-10 Thread Henrik Andersson
Davide Di Blasi wrote: Thanks Henrik, I didn't notice... Hello List, I was wondering if a loaded swf can have a different frame rate from its parent, as i have the main swf that runs at 30 fps and the animation i load that runs at 24 fps. Simple No. There is only one framerate in the player.

Re: [Flashcoders] different frame rate loaded sfw from its parent

2009-11-10 Thread Henrik Andersson
Karl DeSaulniers wrote: Yes. You can do it with code. Google multi frame rate in flash I know there is a code out there somewhere. I found it a while ago. That would be more like a hack to move the playhead manually. That is not going to work out for things syncing to the real framerate,

Re: [Flashcoders] URLRequest Unencoded Question

2009-11-10 Thread Henrik Andersson
TS wrote: Hello, Can someone help me with this. I need to send a url request with the spaces intact and not urlencoded. Is there a way to do this? No http client can do this, the http RFC requires the resource name to not contain any spaces. The encoding is required.

Re: [Flashcoders] how to create rss/data changes on server, how to process in AS3

2009-11-10 Thread Henrik Andersson
Andrew Sinning wrote: The data changes very quickly over time. Either move on to a Socket or a FMS connection, those allows for pushed content and not just pulled content. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] URLRequest Unencoded Question

2009-11-10 Thread Henrik Andersson
TS wrote: Then why does this work when I put it in my url? http://twitter.com/home?status=My Bikini Design http://www.chynnadolls.com/ If you by my url really mean Address bar in my browser, then it is because your webbrowser did the escaping for you.

Re: [Flashcoders] X-Post: Security Hole

2009-11-13 Thread Henrik Andersson
Pardon the short reply, but my gut response is simply: Old. People who can upload stuff to sites could just as easily upload html or something similar. Given that Flash is an executable format, it is impossible to filter out bad things. It is the same issue as when people are allowed to use

Re: [Flashcoders] Flicker feed doesn't seem to load

2009-11-14 Thread Henrik Andersson
Andrew Sinning wrote: I'm finding to problems with the flick feed that I'm trying to load. In the root tag there are name-space attributes: xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:flickr=urn:flickr: xmlns:media=http://search.yahoo.com/mrss/; Flash has support for those, but I don't

Re: [Flashcoders] Problem with First Flash Movie

2009-11-15 Thread Henrik Andersson
beno - wrote: when I tried to enter Main, as is in the script below (and what is the class associated in the Properties tab for the whole Flash movie) Flash complains that I must use a unique name. Don't give more than one symbol the same class, because it doesn't work. Use subclasses as

Re: [Flashcoders] Problem with First Flash Movie

2009-11-15 Thread Henrik Andersson
beno - wrote: So I've tried this, but still no cigar: public function Main():void { function mcHatAndFace():void { That is not a subclass, that is a sure fire sign that you don't know what you are doing. Nested functions is something only mad people and

Re: [Flashcoders] Problem with First Flash Movie

2009-11-15 Thread Henrik Andersson
John R. Sweeney Jr wrote: I don't know if it was your intent, but he asked for help and you really jumped down his throat telling him he doesn't know what he's doing and he is not respecting the proper way. Sorry then, I do have issues with being rude sometimes. I never said that he didn't

Re: [Flashcoders] Allowing website user to record video and voice

2009-11-16 Thread Henrik Andersson
Paul Steven wrote: My main question is do I need some special software on the server side or is this something that can be done using the flash player alone? I have no restrictions on the version of Flash to create this with/for. It could be done with the new fp 10.1 that is in beta, but it

Re: [Flashcoders] Allowing website user to record video and voice

2009-11-16 Thread Henrik Andersson
Paul Steven wrote: Can you explain what job the FMS would do please? Is this required for the recording side of things or the playback? FMS is short for Flash Media Server. It is what it sounds like, a server application that takes care of media distribution. It handles media storage and

Re: [Flashcoders] Problem with First Flash Movie

2009-11-16 Thread Henrik Andersson
beno - wrote: Here is my code to the moment. Pardon me for being blunt about this, but did you even pay attention when I said that functions inside functions are a no no? And if we count out that, you got some infinite recursion going on there. If you make a new instance of the class

Re: [Flashcoders] AS3 Loader memory leak?

2009-11-16 Thread Henrik Andersson
Steve Klein wrote: The problem is, every time the loop runs, my resource monitor shows a creep of about 12-15mb in the size of RAM used by the kiosk (deployed as a Projector exe). If I remove the above loader, the problem doesn't show up. Each loop is roughly 10-12 images at 150kb each. Does

Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson
Karl DeSaulniers wrote: Hello Flash minds, Wrap your head around this one. I have this piece of code that every time I use auto format, flash moves it outside the brackets it was originally at. I can not reproduce with this limited sample. It just results in a syntax error due to too many

Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson
Karl DeSaulniers wrote: On Nov 17, 2009, at 12:15 AM, Henrik Andersson wrote: I can not reproduce with this limited sample. It just results in a syntax error due to too many ending }, fixing that does not reproduce the bug. Hey Henrik, Kind of long code, thought twice about posting. I

Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson
Karl DeSaulniers wrote: Hey Henrik, Kind of long code, thought twice about posting. I shortened it and it still does it with this much code. Let me know if you experience the same. Darn, I slipped and replied without saying anything. Anyway, I can now reproduce the bug.

Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson
Karl DeSaulniers wrote: So it is a bug? Karl To be blunt, yes, yes it is. I filed a bug report, maybe it will be fixed in CS 5. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Henrik Andersson
beno - wrote: Error: Error #2136: The SWF filefile contains invalid data at Main/frame1() The flash player does not like you creating a new instance of a class that is the document class for a swf. ___ Flashcoders mailing list

Re: [Flashcoders] Baby Step #2

2009-11-17 Thread Henrik Andersson
beno - wrote: public function another():void { var mcHandInstance:mcHand = new mcHand(); addChild(mcHandInstance); mcHand.x = 400; mcHand.y = 400; } Compare line 3 and 4 with line 5 and 6 and note the difference, you are using the wrong variable name. You

Re: [Flashcoders] one class listening for another classes dispatched event

2009-11-17 Thread Henrik Andersson
Merrill, Jason wrote: Hi Michael, When you do b.addEventListener - you're listening for events in b, not in c. You should not, architecturally speaking, have b listen to c at all - that's called tight coupling, which is bad. So better to do the loose coupling thing I outlined above. Tight

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson
Merrill, Jason wrote: Tight coupling is not as bad as people make it out to be. Yes it is. No, it is not. Btw, thanks for your very stimulating response. Meh, I get to argue for my point first then. Tight coupling can be an issue, if the coupled components shouldn't be coupled. It is not

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson
Ian Thomas wrote: In which case they're actually one component, conceptually - if the dependencies are really that inextricable. :o) Two sub modules in a webbrowser is a http client and an image parser. Yet, they need to cooperate for images to download while being displayed. When do you

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson
Ian Thomas wrote: stuff My point is that things that can seem unrelated can have a direct relationship anyway. The image parser can run alone, yes. But it needs to cooperate with the http client module if you want to show the image while it is still loading. That was my point of the

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Henrik Andersson
Giro wrote: I do website with flex, flex builder is a best IDE thant Flash IDE. And using flex is more easy to do somethings, and one good thing for me it is less code lines. I find the opposite to be true. The swf format has a lot of neat features that you are just throwing away when using

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Henrik Andersson
Giro wrote: You can use vector graphics on flex. You can create this on flash and export to flex as symbol inside a swf. On flex you can scale and don't lose quality. Using Flash to create graphics for flex kinda defeats the point of flex, doesn't it?

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Henrik Andersson
Paul Andrews wrote: Stuff Allow me to summarize your post: You think that Flash is good for graphical projects, such as animations. You also think that Flex builder is better for creating software. You like the Flex components and how they are data driven. You acknowledge that Flex projects

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Henrik Andersson
Dave Watts wrote: Allow me to summarize your post: That never works out very well, does it? Because it seems to me that your summary missed a lot of Paul's points. When summarizing, you have to remove details. I just focused on what I felt was the core message. But if you just see Flex

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Henrik Andersson
Ian Thomas wrote: Stuff You seem to ignore the components that Flash does ship with. We can fight about whose components are the best, but I am not interested in that. I also never claimed that they where rivals, I see them as different tools designed for different tasks. You seem to

Re: [Flashcoders] Advice on minimum specification for cross platform cdrom

2009-11-18 Thread Henrik Andersson
Paul Steven wrote: I just wanted to double check this is correct before duplicating a few thousand CDROM sleeves. If it is important enough to print on the box, hire a company to do the testing for you and find out the real numbers. ___

Re: [Flashcoders] one class listening for another classesdispatchedevent

2009-11-18 Thread Henrik Andersson
Merrill, Jason wrote: If that makes it so there would be too much code in one class and the tasks so different, then they should be in separate classes with events dispatched and listened to. So you are basically saying that every single time you want to use something in another class, you

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-19 Thread Henrik Andersson
Sid Ferreira wrote: And Adobe Flash? 799 USD for one standalone normal license. 299 USD for the upgrade deal. There are packages and student discounts available. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] OOP and XML

2009-11-19 Thread Henrik Andersson
Dispatch an event when the data is ready and have the main code listen for the event. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!

2009-11-19 Thread Henrik Andersson
99 % of the time when Event.target is wrong, it is due to it being a Shape instance instead of the containing MovieClips as wrongly expected. It's due to authoring time content being added as separate Shape instances instead of being drawn on the Movieclip itself.

Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!

2009-11-19 Thread Henrik Andersson
Whenever I need to work with a reference to a leaf node, I run a loop like this: for(var obj=target;obj!=stage;obj=obj.parent) { if(target is Type) { yay(); break; } } ___ Flashcoders mailing list

Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!

2009-11-19 Thread Henrik Andersson
Ian Thomas wrote: Henrik, Setting mouseChildren=false on an InteractiveObject/Sprite is much easier. The children no longer react to or originate mouse events. Agreed, it is easier. But the loop always works. I don't use it for simple cases. The right tool for the right job.

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Henrik Andersson
Chris wrote: If you expect your child to always be parented, you might want to yell loudly about it: if(child.parent){ child.parent.removeChild(child); }else{ throw new Error(This child doesn't currently have a parent.); } You mean like flash does for you?

Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Henrik Andersson
Karl DeSaulniers wrote: Can we get a radio button selection in the properties pane for any MC to smooth its contents or not? First you have to define how to smooth vector graphics. Smoothing is only for bitmaps and it's supported there already. ___

Re: [Flashcoders] getChildByName problem

2009-11-22 Thread Henrik Andersson
The playhead vs actionscript situation is a mess in Flash since as 3 first came out. This is the end result of flex being the only tool to test with. But enough ranting about that. First make sure that your swf is published for FP 10, if it is, the situation is better. If this is not enough

Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Henrik Andersson
Julio Protzek wrote: Now if you need to deep into this field I would recommend Head First PHP MySQL as a good start. While that is a fun book, I don't think that they succeeded in explaining the important parts, they kinda got sidetracked with the latest tech trend (tm). They should have

Re: [Flashcoders] Flash, XML and Domino

2009-11-24 Thread Henrik Andersson
Glen Pike wrote: If your flash is served from https you might be suffering from cross-domain restrictions... Correction: is not served from https. Flash only allows secure content to access secure content. ___ Flashcoders mailing list

Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Henrik Andersson
beno - wrote: leftHand.addEventListener(event.ENTER_FRAME, leftHand); Bad idea, leftHand is either a MovieClip or a Function, not both at the same time. You need unique names. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Henrik Andersson
Julio Protzek wrote: As a teacher I can assure you that teach OO to person that is still learning what is a loop, is totally useless. I fully understand that you should teach things in order. My issue is that they wasted time dealing with the wrong things. A good php book should teach OO,

Re: [Flashcoders] Still Infinitely Looping

2009-11-25 Thread Henrik Andersson
Paul Andrews wrote: Barry Hannah wrote: Whomever told you to use enterframe to have something happen on frame 20 made a mistake. It's a valid way to get it working, I personally think an enterframe loop is a waste of resource for that case and, more importantly, I just don't think you're there

Re: [Flashcoders] Still Infinitely Looping

2009-11-25 Thread Henrik Andersson
Barry Hannah wrote: Bingo - use this. Just remember that addFrameScript is unstable. Look at it wrong and the player goes into an infinite loop and/or crashes. Try using it in another framescript, I dare you. It is safe for use, if you only use it in the constructor.

Re: [Flashcoders] CS5 release date?

2009-11-30 Thread Henrik Andersson
David Hunter wrote: hi all, there has been talk of CS5 before on this group in reference to iPhone apps, but does anyone know when it will be released to buy? Not even I know when it will be released. And I already have it ;) ___ Flashcoders

Re: [Flashcoders] Re:Trying to set multiple images to 'export for AS' with JSFL

2009-12-01 Thread Henrik Andersson
Craig Bowman wrote: It's NOT a bug. A bitmap can't be assigned the attributes you want directly and never has. It must be wrapped inside a symbol, like a MovieClip. Not true, there is a fully working Bitmap symbol type just for this. ___ Flashcoders

Re: [Flashcoders] simple E4X question, getting two types of nodes

2009-12-01 Thread Henrik Andersson
Glen Pike wrote: Please can we kill this thread - my screen is not wide enough to display the whole lot any more ;) This is one reason why people should not click reply when they want to start a new discussion. ___ Flashcoders mailing list

Re: [Flashcoders] Prevent space button passing click event to button (as3)

2009-12-02 Thread Henrik Andersson
Buttons are meant to be pressed like that. You are using the wrong object for the job. Here is my take on it: you have a game where there are button instances in the gui. I would add the keyboard listener to the stage as usual. However, in the listener, I would add a condition to ignore

Re: [Flashcoders] Prevent space button passing click event to button (as3)

2009-12-02 Thread Henrik Andersson
Paul Steven wrote: Thanks for the replies. When you say buttons are meant to be pressed like that - do you mean that it is standard practice to use the tab key to move between buttons and then use the SPACE key to click it? It wasn't implemented just to screw with people. It is how disabled

Re: [Flashcoders] Get video played time

2009-12-04 Thread Henrik Andersson
Bob Wohl wrote: You may want to listen for Netstream.play.start and then start a timer on a status method. When the video is complete, pause the timer. If there's a playlist type functionality, listen to the same events to start/stop the timer. I suspect that this might not account for

Re: [Flashcoders] The Flash Debug Player

2009-12-04 Thread Henrik Andersson
al...@cyberiantiger.biz wrote: use a debugger like Monster Debugger or X-Ray. Monster is not using the real debugging protocol, so that does not count. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] The Flash Debug Player

2009-12-04 Thread Henrik Andersson
al...@cyberiantiger.biz wrote: Henrik Andersson wrote: Monster is not using the real debugging protocol, so that does not count. snip It's not a true debugger in the sense that you and I mean, but it is a valuable debugging tool. That does count. For the purpose of actually needing

Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Henrik Andersson
beno - wrote: Disagree. If someone tells you, Hey, I'm going to help you. Just give me a couple of days and I'll take a personal look at your code and walk you through it. and you believe him and he strings you along and wastes 10 of your precious days, you mean to tell me that's all good? You

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Henrik Andersson
Steven Sacks wrote: The player team has confirmed the documentation is wrong. Data gets sent the instant you write it to the socket. flush() has no purpose. Then why was it added in the first place? ___ Flashcoders mailing list

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Henrik Andersson
Steven Sacks wrote: Henrik Andersson wrote: Then why was it added in the first place? Great question. Ask Adobe. You are the one who said that it was confirmed pointless. You know better how to ask the question. ___ Flashcoders mailing list

Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-08 Thread Henrik Andersson
Eric E. Dolecki wrote: So we'd all feel better activating the toilet handle I guess. I always feel better after a flush(). I am more of the opinion that it is an accident that no data is buffered. ___ Flashcoders mailing list

Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson
Sumeet Kumar wrote: Hi All, Is there any way by which i can publish the image in as3? Check out the as3corelib library, it is from Adobe, open source and has some imageformat encoders. It has jpeg encoding and png encoding among other formats. I am not sure about gif, but png is better

Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson
David Hunter wrote: Henrik, good shout mentioning that library. i've used it before but does it produce an _actual_ image or just a byte array that then requires some other script to write that as a file to a server or for download etc? forgive me, i've only played with the library once.

Re: [Flashcoders] .fla in Flex/Flash builder

2009-12-10 Thread Henrik Andersson
ktt wrote: Hello, I have .fla file with numerous .swf elements in library and I would like to switch to Flex/Flash builder. Shoul I convert all elements to swc manualy or there is other possible solution? If you are not in a hurry and can wait for it, there is CS 5 that will have much

Re: [Flashcoders] Publish transparent .gif file in AS3

2009-12-10 Thread Henrik Andersson
David Hunter wrote: hi Hendrik, are you on CS4? i'm still on CS3. the FileReference.download() method allows for URLRequests not bytearrays. in CS4 there is a save() method which allows you to pass bytearrays. is that what you mean or am i missing a trick with download() and URLRequest? it

Re: [Flashcoders] Colour Matching

2009-12-15 Thread Henrik Andersson
Nathan Mynarcik wrote: Have you tried pngs? Great idea, now you have another way of getting the colors wrong. How nice of the png standard to include an ability to embed the color correction profile, isn't it? Now you have twice the chance for the wrong profile being applied and in one of

Re: [Flashcoders] Dynamically set Sound's length..?

2009-12-16 Thread Henrik Andersson
It is called the samplerate, flash uses 44200 sample pairs per second. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] can I get some recommendations for development tools?

2009-12-16 Thread Henrik Andersson
Jim Lafser wrote: I'm trying to figure out what are some good tools to use for developing flash apps and could use some recommendations. Thanks. If you ask me, Flash cs 5 all the way, it is the closest that you can get to the swf format itself while still being easy to use.

Re: [Flashcoders] Java servlets a nd receiving XML from Flash’s xml.sendAnd Load() function

2009-12-17 Thread Henrik Andersson
Bring out a http debuging proxy (I use MS Fiddler) and see what the issued request really is. My hunch is that it is POST, but using the variable encoding usually attached with GET requests. ___ Flashcoders mailing list

Re: [Flashcoders] Flash Projects worklow

2009-12-18 Thread Henrik Andersson
Long story short, it must be public or else the Flash player can not set it for you. In practice isn't not a big deal. It's just something that people who cares about keeping things tidy and neat worry about. I am not saying that it is a bad thing, but I don't think too much about it.

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Henrik Andersson
Fumio Nonaka wrote: A variable declaration is processed before statements. Therefore, it does not matter if it is inside or outside a loop. Except for your case where it has an assignment. ___ Flashcoders mailing list

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Henrik Andersson
Piers Cowburn wrote: Hi Steve, I thought it'd be useful to have some actual figures, so I put together a quick test. Test code was as follows: I don't see any tests for the for .. in and for each .. in loops there. They, in combination with Array, Vector, Object or Dictionary are also a

Re: [Flashcoders] Performance from casting array/vector?

2009-12-27 Thread Henrik Andersson
Paul Andrews wrote: Piers Cowburn wrote: I think the compiler is still seeing the typed Vector as Vector, not typed vectors. Consequently a lookup is still involved. The Vector.Someclass declaration seems more of a syntactic convenience rather than anything else. That's just guesswork on my

Re: [Flashcoders] 404 page not showing with .htaccess

2009-12-28 Thread Henrik Andersson
You did not account for relative urls. The swf url is relative to the embeding html page. And that is not in the right folder. In conclusion, fix the url. I recommend the base element, it let's just override what the urls are relative to. Other options include using an absolute url.

Re: [Flashcoders] 404 page not showing with .htaccess

2009-12-28 Thread Henrik Andersson
Cor wrote: Hi Henrik, Thanks for replying. I don't completely understand what you are writing. The swf is at the same location as the 404.html. And I don't know what the base element is? Kind regards Cor van Dooren Basic list etiquette: reply only to the Reply-to: address. You are

Re: [Flashcoders] 404 page not showing with .htaccess

2009-12-28 Thread Henrik Andersson
Cor wrote: You are assuming that the location has 404.html in it, that is not correct. The location is the location that you entered in the browser, the location that did not exist. This doesn't make sence to me. When I enter a wrong address, the .htaccess reroutes me to the 404.html

Re: [Flashcoders] Encrypting credit card data

2010-01-05 Thread Henrik Andersson
Steven Loe wrote: Is there a preferred and easy to deal with method to encrypt credit card data being sent to a server in AS3? Is there a good open source class out there for this? Try http over ssl, it's what normal browsers use. If it's good enough for internet banking, it's good enough

Re: [Flashcoders] detect and remove listeners

2010-01-06 Thread Henrik Andersson
ktt wrote: Hello, What is the best method to iterate through MovieClip children, check if they have listeners and if they have - remove them? It is not possible to get a list of the listeners. This means that you can not remove them. You can however detect if there is any at all for a given

Re: [Flashcoders] Best MovieClip removal practice

2010-01-06 Thread Henrik Andersson
Event listeners will be destroyed along with the object the listeners belong to. But they will keep on firing until the garbage collector feels like running. Do note that a listener does hold a reference to the listener function from the event source. This means that if the object has a

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread Henrik Andersson
Glen Pike wrote: sandbox? Am guessing direct memory access maybe disallowed because people could try to exploit buffer overflows... You think that they honestly allows unbounded random memory access? They don't. It is restricted to the reservated memory area.

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread Henrik Andersson
John McCormack wrote: It looks as if the memory is protected anyway, according to: http://ncannasse.fr/blog/adobe_alchemy ... As a reminder, the Alchemy pipeline is the following : .c file *-* LLVM intermediate bytecode *-* AVM2 bytecode However, in general, doing so reduces a lot the

Re: [Flashcoders] A 3-way FMS chat rooms

2010-01-08 Thread Henrik Andersson
Alexander Farber wrote: For example you call ns.publish(XXX)/ns.play(YYY), but with which arguments? I would just let the FMS side take of figuring that out. The movie can then just use whatever the FMS side tells it to use. ___ Flashcoders

Re: [Flashcoders] AS3 can't target seekbar handle

2010-01-13 Thread Henrik Andersson
There is a property for it, I read the source myself. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Crossdomain.xml, shared hosting, https, oh my!

2010-01-15 Thread Henrik Andersson
Steven Loe wrote: I could load everything over https but it's ~7mb of swf and audio. It's going to be slower over https. I do not believe that it will be too noticeable. The transfer is done with a symetric encryption, it is very rare that those changes the data size at all (excluding some

Re: [Flashcoders] Exporting a movie file

2010-01-18 Thread Henrik Andersson
Nathan Mynarcik wrote: I know you can export a frame of a movie clip to an image, but can flash export a movie clip to a video file (.mov)? Do note that said video will miss several features, most importantly any actionscript used. Use some 3rd party converter instead, the built in

Re: [Flashcoders] Using MVC for a site framework

2010-01-19 Thread Henrik Andersson
Cor wrote: Hi Jason, I hope you don't mind me addressing you of list. If you do, please ignore this message and I apologize to you! I am trying to grasp the MVC pattern, but it is very hard for me. I am looking for a very simple example which explains the way it works. If you can help me with

Re: [Flashcoders] How this is done?

2010-01-20 Thread Henrik Andersson
Uhm, the swfobject javascript class? If you want details, please elaborate. Even better, ask whoever made the site. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Using MVC for a site framework (for non-programmers)

2010-01-20 Thread Henrik Andersson
Dave Watts wrote: No one needs to learn framework mumbo-jumbo, but if that's how you see frameworks, you're missing the point. The point of using a framework is to be able to spend less time thinking about how you organize things. Frameworks are for lazy people like me. I'd rather be watching TV

Re: [Flashcoders] Shape Tween

2010-01-23 Thread Henrik Andersson
Put the tween in a graphics symbol. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Shape Tween

2010-01-23 Thread Henrik Andersson
beno - wrote: Same problem. And how will it tween if it's a graphics symbol? Do graphic symbols tween? Graphic symbols has frames and as such can have shapetweens. But you apparently still need to use the special cut and paste menu. Use both solutions.

  1   2   3   4   5   6   >