Re: [flexcoders] Transfer development from PC to Mac??

2010-04-25 Thread Oleg Sivokon
If you export flex project it will create a zip archive anyway. But I see no harm in doing that manually if required. You may also want to look into version control tools such as Subversion, GIT or Mercurial. It usually helps in situations of this kind.

Re: [flexcoders] reseting and all list items...

2010-04-25 Thread Oleg Sivokon
A quick answer: You can use itemRendererFunction to create item renderers (in which case you will not be able to use virtual layout), but if you do the pool on your own, that might not be the worst approach. You can also let the renderers register themselves upon creation in some sort of array in t

Re: [flexcoders] Transfer development from PC to Mac??

2010-04-25 Thread Oleg Sivokon
If stuffit doesn't work, you can try RAR, it's not entirely a freeware, but you can run the evaluation version for as long as you want. Also, I think that unzip file.zip -d ~/another/folder (You run this in terminal - the CMD in PC terms) will work just fine on any mac OS you may have... Best.

Re: [flexcoders] DataGrid---crushing of DataProvider--how to cancat the last contain of DataProvider with an other one ??? :( :(

2010-04-23 Thread Oleg Sivokon
var dp: ListCollectionView = dg.dataProvider as ListCollectionView; if (dp) dp.addAllAt(figure.getListDataAtt(), dp.length - 1); else dg.dataProvider = figure.getListDataAtt(); * sorry, typo

Re: [flexcoders] DataGrid---crushing of DataProvider--how to cancat the last contain of DataProvider with an other one ??? :( :(

2010-04-23 Thread Oleg Sivokon
Your data provider will be some sort of collection view, but I don't know what kind of collection view you are using. What you want to do is to add items to the data provider... Your code above should give you an error, I believe, because addAllAt() returns void (that is undefined / nothing), it mo

Re: [flexcoders] DataGrid---crushing of DataProvider--how to cancat the last contain of DataProvider with an other one ??? :( :(

2010-04-23 Thread Oleg Sivokon
Like this: http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addAllAt() ?

Re: [flexcoders] DataGrid---crushing of DataProvider--how to cancat the last contain of DataProvider with an other one ??? :( :(

2010-04-23 Thread Oleg Sivokon
dg.dataProvider will be some kind of a collection already, why won't you concatenate to it and if it is a collection view, call refresh() on it for example?

Re: [flexcoders] Prevent number splitting into two lines when using space as thousand separator

2010-04-23 Thread Oleg Sivokon
Use non-breaking space?

Re: [flexcoders] List of objects-----PLease

2010-04-23 Thread Oleg Sivokon
You could really make some use of documentation. First thing probably you'd find would be that it is the AS3 language you are programming in, and not Java. :) Another probably discouraging discovery would be that List class you are referring to is maybe just some UI component from Flex framework, a

Re: [flexcoders] how to find redundant classes?

2010-04-23 Thread Oleg Sivokon
Hi, yes, just as Aron said. I was simply judging from my previous experience - usually the old classes would contradict to the other classes in one way or another. So the ASDoc would find the contradiction and spit it at you :) If somehow the PMD wont do that, you can always compile with -link-repo

Re: [flexcoders] how to find redundant classes?

2010-04-22 Thread Oleg Sivokon
Not a real answer: document them with ASDocs - it will try to document everything -> will certainly find errors in unused classes -> will argue with you about those classes -> you will know what to delete -> bonus, you will get documentation for the project :)

Re: [flexcoders] RTMPS performance issue

2010-04-22 Thread Oleg Sivokon
I'd think it is normal, since encoding and decoding data would take some time, I don't know the numbers, but it would be only reasonable that it would take longer... Best. Oleg

Re: [flexcoders] as 2 to as 3 question

2010-04-21 Thread Oleg Sivokon
You have already found a tool to decompile it, try finding an tool that will code that for you too ;)

Re: [flexcoders] Efficient SOAP WebService invocation

2010-04-21 Thread Oleg Sivokon
Speaking of optimization, SOAP is a shot in your own foot :) However, if given no choice, I'd go with something similar to decorators. That is, I'd have an AS3 webservice extending class that would allow to set / reset the functional part of it. Example: class DecoratedService extends WebService {

Re: [flexcoders] FB4: Create screenshot (bitmap) from loaded swf

2010-04-21 Thread Oleg Sivokon
With Loader you'd need to call (content as MovieClip).stop(), unload() or unloadAndStop() - depends on player version. Be aware that images that originate from other application domains are subject to security restrictions.

Re: [flexcoders] Re: What is the Correct Type of Component For This?

2010-04-21 Thread Oleg Sivokon
Well, if the objective is to not write the components yourself, then I'd look into: ASDocs for available styling for the existing components Tweener / TweenLight / TweenMax and similar. I think they have the effects you are talking about out of the box.

Re: [flexcoders] Re: What is the Correct Type of Component For This?

2010-04-21 Thread Oleg Sivokon
I'd really go for a custom layout than. Maybe you can take ListBase for a superclass, or just base it on UIComponent, or Group. Best. Oleg.

Re: [flexcoders] What is the Correct Type of Component For This?

2010-04-20 Thread Oleg Sivokon
Hi. A. You can always create your own layout. B. Thinking of ready-made components, it could be HorizontalList, TabNavigator, ApplicationControlBar etc, whichever is more relevant. Best. Oleg

Re: [flexcoders] Flex Upload/Download using XML-RPC

2010-04-20 Thread Oleg Sivokon
Why would you want to use XML for that? XML imposes quite a lot of restrictions on the content, such as for example, it may not contain certain bytes or byte sequences, whilst these restrictions may not necessarily apply to the files you want to transfer. Generally there are three ways of sending f

Re: [flexcoders] Re: security & flex

2010-04-19 Thread Oleg Sivokon
With this all said stigmas do exist, and it is hard to convince not technically savvy people that what ensures security is the SSL encryption and not the client technology. Many people simply won't enter their payment details anywhere else but the HTML page. We were forced to put an additional HTML

Re: [flexcoders] FB4 - Build fails when using 'export release build' wizard

2010-04-19 Thread Oleg Sivokon
Hi, yes, I remember this error mentioned few times, I think it was related to use of manifest files, where some classes would get referenced twice. Does you project deal with that? Or, maybe somehow else imports the same classes twice?

[flexcoders] Pretty major bug in FP 10.0.42 + (Security Application.allowDomain)

2010-04-19 Thread Oleg Sivokon
Hi, I'm posting this to drive your attention to this bug: http://bugs.adobe.com/jira/browse/FP-3513 It may not sound as very critical, but the consequences are really not nice. Me and a friend of mine where trying to find any possible way to work around that while using Mochiads AS2 API. And there

Re: [flexcoders] Re: NetStream.Publish.BadName

2010-04-19 Thread Oleg Sivokon
userItem.username is either null, or contains characters not allowed in the stream name, it's best to restrict it to alphanums, the stricter the better :)

Re: [flexcoders] SWC's vs. source

2010-04-15 Thread Oleg Sivokon
You can use SWC in three different ways: - external library (none of the SWC contents are included into the resulting SWF), this is if you want to have RSLs (runtime shared libraries). Example, you are developing an app that uses Cairngorm and has several modules. You would than link the Cairngorm

Re: [flexcoders] SWC's vs. source

2010-04-14 Thread Oleg Sivokon
Generally, SWC should be more efficient in terms of compilation time since you will be using already compiled code vs the code the compiler still needs to analyse or resources to encode. However, I haven't benchmarked that. So, could be there's something which escaped my attention. Best. Oleg

Re: [flexcoders] Problems with crossdomain and upload

2010-04-14 Thread Oleg Sivokon
Hi. crossdomain.xml should be deployed like so: MUST HAVE: root site folder of the destination server. possible: additional policy files in subfolders (if the top-level policy file allows that). If your server can accept HTTP uploads it can also host policy file, else, it's not really an HTTP serv

Re: [flexcoders] Flex Coloring with CMYK

2010-04-14 Thread Oleg Sivokon
Hi. CMYK color separation is a science all by itself, you'd need to learn and understand hardware color profiles, printing techniques and all that involves rasterizing images before they get printed. I'm afraid there is nothing built in in the framework for that purpose as it is a quite particular

Re: [flexcoders] Re: Runtime shared libraries compiler option changed between 3.3.0 and 3.5.0

2010-04-09 Thread Oleg Sivokon
Hi. This is what it looks like: ${FLEX_HOME}/frameworks/libs/textLayout.swc http://.../art-for-sale/textLayout_4.0.0.8287.swz http://.../crossdomain.xml http://.../art-for-sale/textLayout_4.0.0.10485.swz ${FLEX_HOME}/frameworks/libs/framework.swc http://.../art-for-sale/framework_4.0.0.

Re: [flexcoders] how to know SWF file size?

2010-04-09 Thread Oleg Sivokon
Hi, Mark. Look into these: http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/LoaderInfo.html#height http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/LoaderInfo.html#width Best. Oleg

Re: [flexcoders] Performance feedback PLEASE

2010-04-09 Thread Oleg Sivokon
Windows XP SP2 dualcore 2x2.13 Player plugin debugger (Chrome, Opera, FireFox, Safari) - 38-41 fps. Player ActiveX debugger - 38-47 fps. Standalone debugger - 36-37 fps. Player version 10.0.32 for all kinds. Best. Oleg

Re: [flexcoders] Runtime shared libraries compiler option changed between 3.3.0 and 3.5.0

2010-04-08 Thread Oleg Sivokon
Hi, I think it's a known bug, however, cannot find it in JIRA atm. I couldn't make antTask understand this option no matter what, so, I resumed to making an additional configuration XML and . But it is also possible I haven't tried enough :) Best. Oleg

Re: [flexcoders] ASDoc and third party libraries

2010-04-08 Thread Oleg Sivokon
Hi. http://www.flashdevelop.org/community/viewtopic.php?f=13&t=4555&p=21134&hilit=asdocs#p21134 This may be of some help, but, maybe also not enough info... Besides, I'd try looking at this plugin: http://www.flashdevelop.org/community/viewtopic.php?f=4&t=4641 AFAIK elyon has made some include /

Re: [flexcoders] RemoteClass Metadata

2010-04-07 Thread Oleg Sivokon
AFAIK alias is just a string, maybe there are some restrictions on syntax (like only alphanums + .:$_), but that's about it. If you look at how ArrayCollection is aliased, you'll see it's alias is different from that class' full name. I'd rather go for registerClassAlias then [RemoteClass] meta - t

Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
Ah, sorry, I see now. Well, bugs are expected in beta software... but why would you think it has anything to do with AIR <-> FP interaction? If you have different runtime versions there may be conflicts, especially, if one of the runtimes is still in beta...:S Best. Oleg

Re: [flexcoders] Flex 4: List with itemRendererFunction

2010-04-07 Thread Oleg Sivokon
Try dispatching "update" collection event from the collection assigned? I don't think it is a good workaround, because dispatching events from outside the dispatcher is a bad practice, but just for the experiment, I'd try. Best. Oleg

Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
Hi. You must be seeing RSL conflicts (the classes built into FlashPlayer won't behave in that way, since they aren't actually loaded from SWF), and if that's the RSL conflict, like you've loaded a newer version of RSLs into oldish application, then, well, that's the developer's problem, he should'v

Re: [flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Yeah, here you go: http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/filesystem/File.html#browseForDirectory() Best. Oleg

Re: [flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Ah. You welcome, James. Then look into this discussion: http://forums.adobe.com/thread/287536 It explains it on JavaScript AIR example, but the AS3 API shouldn't be different. Best. Oleg

Re: [flexcoders] Changing the Default Browse Window Directory When Uploading A File

2010-04-07 Thread Oleg Sivokon
Hi, If we are not talking about AIR, then this isn't possible, however, I think, that the default folder is picked from the opening windows history, that is the browser or OS would remember the last opened folder and then open it on the next file open dialog. At least this is how it works on Window

Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?

2010-04-07 Thread Oleg Sivokon
You probably want to mention the kind of errors you saw. I'm not implying anything, but, in most cases that I can think, the runtime errors are the developer's fault and not the runtime fault... Best. Oleg

Re: [flexcoders] Re: Using an ArrayCollection to populate a Tree component

2010-04-07 Thread Oleg Sivokon
Why make your own collection and not data descriptor: Well, this is questionable, and the question is exactly how much time are you going to spend on that and how critical this place is for you. If you can spend much time, or, as much time as you want, I'd say - make a tree control yourself, and do

Re: [flexcoders] Accessing attribute(?) in Flex XMLList with no name ....

2010-04-06 Thread Oleg Sivokon
The text node is the node's value: var foo:String = [bar][0]; // bar // This is just a quick way to show how XML value is interpreted, but, normally, you'd use toString() For XMLList, you'd use text() - this would return the collection of all nodes for which the nodeKind is "text" trace(.nodeKin

Re: [flexcoders] Re: ContextMenu 'clipboardMenu' property

2010-04-06 Thread Oleg Sivokon
You're welcome ;) Best. Oleg

Re: [flexcoders] Re: ContextMenu 'clipboardMenu' property

2010-04-06 Thread Oleg Sivokon
I'm afraid, that it is not possible to know that at compile time, unless you define some compiler variable for that. However, at runtime you can always check the player version in Capabilities.version. If you want to exclude the code targeting FP10 at compile time, I'd do it like this: mxmlc -defi

Re: [flexcoders] Using an ArrayCollection to populate a Tree component

2010-04-06 Thread Oleg Sivokon
The best way would be to implement your own ICollectionView, however, this would be a complex task. For your example, I'd do it like so: private var ac:ArrayCollection = new ArrayCollection([ { "Animals": ["dog", "cat"], { "Fruits": ["orange", "apple"] } ]); B

Re: [flexcoders] Re: ContextMenu 'clipboardMenu' property

2010-04-06 Thread Oleg Sivokon
*Language Version: *ActionScript 3.0*Runtime Versions: *Flash Player 10, AIR 1.5 Are you sure you are compiling for FP10? Best. Oleg

Re: [flexcoders] Re: Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread Oleg Sivokon
Hi. It seems like what you want is what in other languages would be called a delegate or closure (function signature). This is not entirely possible in AS3, end even what is possible requires to much work to be really useful. So, please vote: http://bugs.adobe.com/jira/browse/ASL-32 :) However, ma

Re: [flexcoders] Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread Oleg Sivokon
Just adding to what Alex said: parameters' names don't exist in compiled SWF, they are referenced by indices (when the function starts, the parameters are pushed to the stack and just follow the stack logic). So, no, reflection can only tell you the number of parameters used (you can get it from my

Re: [flexcoders] Embed FlashPlayer in C++ app tutorial?

2010-04-05 Thread Oleg Sivokon
Hi. This won't be an easy reading, since it's been obfuscated by google translator :), but, anyway, you may find it interesting: Part 1: http://translate.google.com/translate?hl=en&sl=ru&u=http://www.flasher.ru/forum/blog.php%3Fb%3D78%26goto%3Dprev&ei=fe65S_GDOtKiOPbUxKEL&sa=X&oi=translate&ct=resu

[flexcoders] Using flexTask on Linux

2010-04-04 Thread Oleg Sivokon
Hi. I was trying to compile a project that compiles fine on Win on Linux. I believe I'm using the same SDK distro on both platforms. The flexTask is even exactly the same file, but I'm getting this error: [compc] Error: org/w3c/css/sac/Condition [compc] [compc] java.lang.NoClassDefFoundErr

Re: [flexcoders] Re: weird data paging issue

2010-04-03 Thread Oleg Sivokon
hgnowhg: Hey, you're mistaking something... the SDK is downloadable and build-able back to the version 2.X (well, at least last time I tried I could download and build 3.X versions, and I saw the 2.X tags there too). The SDK (and it's bugs) have very little to do with Flash (Flex) Builder. I'm not

Re: [flexcoders] Embedding fonts with a font that doesn't have bold

2010-04-03 Thread Oleg Sivokon
Samuel, It was actually not me, who asked the question :) Besides, from what I understood from the question - the font doesn't have bold face, so, you cannot embed bold characters from that font, because they had never been designed by the font's author :) If this isn't the case, then probably my

Re: [flexcoders] Embedding fonts with a font that doesn't have bold

2010-04-03 Thread Oleg Sivokon
You can try using TextRenderer to mimic bold, but, unfortunately, the settings applied through TextRenderer are application-wide... Anyway, see if this may help: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextRenderer.html#setAdvancedAntiAliasingTable() Best Oleg

Re: [flexcoders] Amfphp and require_once

2010-03-31 Thread Oleg Sivokon
Either one of these: Required file cannot be found. Required file was found but contained errors. Try Charles HTTP proxy - it'll display what the response contained. It'll have some PHP generated error / warning text in the message - easier to diagnose the problem. Best. Oleg

Re: [flexcoders] SWFLoader throwing RTE

2010-03-30 Thread Oleg Sivokon
Stack overflow would mean that you have some recursion going on for ever. That would often happen if you conditionally create an instance of a class in that class constructor, or, you have used singletons in business logic and by loading a module you've made that a multitone. It also looks like tha

Re: [flexcoders] Re: Error #2170: Security sandbox violation

2010-03-30 Thread Oleg Sivokon
Hi David. Is there any reason you need multiple crossdomains on that site? This is the purpose of permitted-cross-domain-policies="by-content-type" attribute in the crossdomain master file. This will not allow you to load anything from the root site folder for example, unless it is another crossdo

Re: [flexcoders] FileReference does not sending the right header in file upload

2010-03-29 Thread Oleg Sivokon
Consider adding the parameters to URL instead of pushing them into POST request body. That is form the URL of the URLRequest however you want, so it will look like: domain/uploading-script?param=value&anotherParam=value You don't have to specify Security.allowDomain() for what you are doing, unless

Re: [flexcoders] Error #2170: Security sandbox violation

2010-03-29 Thread Oleg Sivokon
http://test.salesforce.com/crossdomain.xml must permit your domain to connect and get the data. If it doesn't, you'll have to either ask the owners of that domain to add your domain to the list or proxy the requests to their domain through your own proxy. Best. Oleg

Re: [flexcoders] Determining which version of FlashPlayer was compile/linked?

2010-03-26 Thread Oleg Sivokon
Hi. The problem is that SWF format doesn't contain a field that specifies the version it was compiled for. There is FileAttributes tag in SWF, but it only contains information on VM version and there are the "magic letters" in the file header that provide you the file version. More info here: http

Re: [flexcoders] Clean way to filter very large ArrayCollection (in pieces) using filterFunction

2010-03-26 Thread Oleg Sivokon
That's sort of misconception about ArrayCollection. It is not a collection, it misses "View" part in the name, but if you'll look at inheritance chain, then you'll see it is a view - it's basically the same as ListCollectionView. Another thing about ArrayCollection or ListCollectionView is that it

Re: [flexcoders] Re: Flex3: attaching assets from .swf using getDefinitionByName

2010-03-25 Thread Oleg Sivokon
Besides, you should really turn warnings on, if not already, install debug player and pay attention to errors and warnings you are getting - would spare you much time waiting for replies.

Re: [flexcoders] Re: Flex3: attaching assets from .swf using getDefinitionByName

2010-03-25 Thread Oleg Sivokon
SPADES is class, addChild() accepts DisplayObject as an argument... why would it work?

Re: [flexcoders] using Vectors and amfphp

2010-03-25 Thread Oleg Sivokon
Hi, the easiest way is to make custom serialization routine. Vectors aren't fully serializable anyway - regardless of the type parameter they are serialized to Vector. - so, it's absolutely in no way different from Array :( Besides, there aren't generics in PHP anyway, so, I think you'd be OK if yo

Re: [flexcoders] Re: PC Speaker Beep

2010-03-25 Thread Oleg Sivokon
Warren, This depends on whether you have a sound card or not, and how do you have that set up. Some mother boards have that on-board, so, they can play waveforms. But, some systems will have audio disabled, Maybe, OP is talking about some embedded system, like teller machine or something of that ki

Re: [flexcoders] How to use ArrayCollection for ActionScript project?

2010-03-25 Thread Oleg Sivokon
Ah, so if you want normal just a collection - check HaXe http://www.haxe.org, or, here's some stuff I've written: AS3: http://code.google.com/p/e4xu/source/browse/trunk/#trunk/src/org/wvxvws/data There's doubly linked list, data set, and typed dictionary, RBTree is worked on... I've also made seve

Re: [flexcoders] double check that this Switch statement can't work...

2010-03-25 Thread Oleg Sivokon
Sorry, typo... switch ((orgStructureADG.selectedItem as Object).constructor) { case VendorCompcodeData: { trace( "VendorCompcodeData" ); } break; case VendorPurchorgData: { trace( "VendorPurchorgData" ); } break;

Re: [flexcoders] double check that this Switch statement can't work...

2010-03-25 Thread Oleg Sivokon
In AS3 switch construction uses break - otherwise it'll fall through (all cases will be executed after the first case that matches the condition). Besides, you can leave the condition blank and put any statement in the case block, however, you have to be careful that the cases are unique. Example:

Re: [flexcoders] How to use ArrayCollection for ActionScript project?

2010-03-25 Thread Oleg Sivokon
Hi Mark. You have to add framework.swc to the source path. I assume you are trying to do this in Flex / FlashBuilder - it by default doesn't put framework libraries on the path. But why would you want to use this class anyway? There's zero benefits of using it outside framework... Best. Oleg

Re: [flexcoders] Flex3: attaching assets from .swf using getDefinitionByName

2010-03-25 Thread Oleg Sivokon
OK :) Embed assets like this: package com.foo.bar { [Embed('../assets/symbols.swf', symbol='hearts')] public class FooBar extends Sprite { public function FooBar() { super(); } } } Then in your MXML: This approach is better because it doesn't create dummy variables. You don't use mx.core.Sp

Re: [flexcoders] PC Speaker Beep

2010-03-24 Thread Oleg Sivokon
I *think* that you can do it in AIR 2 - it has something called native process, which should be able to launch another application - sorry, I really don't know the details. Maybe Zinc or SWFStudio can do this... I think that Zinc can launch native application as a process and have some means of con

Re: [flexcoders] SWC class like Main Class in Flash CS4

2010-03-24 Thread Oleg Sivokon
Yup. Convert those classes the designer needs to use to "compiled clip" - look at how fl.* components are designed, especially, the ComponentShim clip (in the _private folder). Best. Oleg

Re: [flexcoders] Flex3: attaching assets from .swf using getDefinitionByName

2010-03-24 Thread Oleg Sivokon
1. You cannot embed on constants. 2. It is always better to embed on a class then on a variable (you won't be using mx.core.WhateverAsset for the asset factory, but a normal flash.* class. Best. Oleg

Re: [flexcoders] SWC class like Main Class in Flash CS4

2010-03-24 Thread Oleg Sivokon
What's the point of recompiling the SWC in this way? Why not just extract the SWF from it? Best. Oleg

Re: [flexcoders] Security sandbox violation and BitmapDraw

2010-03-24 Thread Oleg Sivokon
Detach the NetStream from the video, draw it, attach the stream again - this bug exists ever since there was this security limitation, my forecast it's not going to be fixed in the upcoming year, so, you ought to be safe using that :D Best. Oleg

Re: [flexcoders] Re: Framework Choice

2010-03-24 Thread Oleg Sivokon
If you know there are Cairngorm and Mate, you can be sure, you can write one of your own. And if you used either one of those even briefly, you can write a better one. This said, my choice would be "none". I'm writing that myself, and, you just cannot imagine my happiness - two days ago I finally r

Re: [flexcoders] XML Problem ? how to retreive children from XML without having the same attributs of the principal object

2010-03-24 Thread Oleg Sivokon
Tracy, You are wrong on that remark, if you do valueOf()@attributename, then you are safe. This is because E4X-specific opcodes act like with() construction, i.e. they just push the current XML node context in front of every other context in the context lookup chain. While XML class is dynamic,

Re: [flexcoders] Pasting an image into an image or bitmap container?

2010-03-24 Thread Oleg Sivokon
Not unless the user has your AIR app installed, and that app will channel that image through LocalConnection. Or you may ask them to Base64 encode the image and paste it as text :D *sorry* Best. Oleg

Re: [flexcoders] XML Problem ? how to retreive children from XML without having the same attributs of the principal object

2010-03-24 Thread Oleg Sivokon
default xml namespace = " http://docs.oasis-open.org/wsbpel/2.0/process/executable";; var xml:XML = http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn"; xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:sxt=" http

Re: [flexcoders] Flex 4 Issue - flash/mx source code not found

2010-03-24 Thread Oleg Sivokon
There are no source for Array.splice() - it is not publicly available - what did you want to see there?

Re: [flexcoders] Automatically insert name, date, time into code, etc

2010-03-24 Thread Oleg Sivokon
Eclipse has it in templates - ${time} and ${date}, but I've not seen an option to insert date at cursor or something like that, same for author. There are some kind of templates in FB4, but they are still to primitive and missing lots of features...

Re: [flexcoders] Adding Drag/Drop with selected text within a TextArea

2010-03-23 Thread Oleg Sivokon
var tf:TextField = new TextField(); tf.multiline = true; tf.type = TextFieldType.INPUT; tf.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler); tf.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler); var begin:int; var end:int; function mouseDownHandler(event:Event):void { tf.set

Re: [flexcoders] Email in TextInput

2010-03-23 Thread Oleg Sivokon
Tom. Well, I'm not implying it may be used. However, Flex framework validator may not be used as well, but it is never mentioned in any comments ;) Most notably it will not allow local network e-mail addresses (that is the addresses, where there is only one domain level - postmas...@localhost for e

Re: [flexcoders] Re: extending the eventDispatcher class.

2010-03-23 Thread Oleg Sivokon
Hey, np, we all tried that at some point :D

Re: [flexcoders] extending the eventDispatcher class.

2010-03-23 Thread Oleg Sivokon
If you dispatch an event in constructor, there may not possibly be any handler added to the dispatcher. You have to dispatch an event *after *the object is created and thus the reference to the object may be made. That is in your example you should call myDispatchFunction() from init() *after *you

Re: [flexcoders] Email in TextInput

2010-03-22 Thread Oleg Sivokon
Opps, sorry, wrong link: http://tools.ietf.org/html/rfc822

Re: [flexcoders] Remote objects issue - Channel.Connect.Failed error NetConnection.Call.BadVersion

2010-03-22 Thread Oleg Sivokon
BadVersion usually means there's junk in the response, this would be caused by warnings or error messages being output into the same stream as the response body. The literal meaning of this message is that the Flash AMF parser could not understand what's been sent to it. Check for any code that may

Re: [flexcoders] Trim from the left till it finds the last '/'

2010-03-22 Thread Oleg Sivokon
var a:String = "1/2/3/4"; trace(a.substr(a.lastIndexOf("/") + 1));

Re: [flexcoders] Embedded an image list

2010-03-22 Thread Oleg Sivokon
Simplest possible reply - you are asked to do exactly this - embed the images, not load them at runtime. :) Best. Oleg

Re: [flexcoders] Make a Timer's first timeout event immediate

2010-03-22 Thread Oleg Sivokon
In the same stack frame? If so, then just call the handler directly. Otherwise it's not possible. Besides other things Timer isn't precise enough for such short intervals, it will depend very much on rendering and the code in the same frame. At 10 ms you can get +- 50% precision error. Best. Oleg

Re: [flexcoders] Email in TextInput

2010-03-22 Thread Oleg Sivokon
Validating e-mail address is quite a task... See this for what the requirements are: http://tools.ietf.org/html/rfc3696#section-4.3 There is the EmailValidator in the validators library provided with SDK, but it is doing it wrong - don't use it. Best way is to write your own, so far this is what I

Re: [flexcoders] Embedded an image list

2010-03-22 Thread Oleg Sivokon
This depends on the OS and / or the programming / scripting language you know to operate it. I had written a tiny C# program to browse a given folder for the files of a given type and generate an AS file with embeds, but, I'm sure you can do the same with any language that can access to the file sy

Re: [flexcoders] What are the Flex3/4 websites requirements after been FTP to the hosting server?

2010-03-22 Thread Oleg Sivokon
FTP stands for File Transfer Protocol. The idea is that it sets some rules on how to transfers arbitrary file formats from one computer to another. Flex3 website is a very broad definition, but, it's client would normally consist of HTML + SWF + some JS files. There should be no problem using those

<    1   2   3