Re: [Flashcoders] access to drawing API information via ActionScript

2006-11-07 Thread Rkos Attila
B is it possible to write ActionScript code to gain access to B lines/fills/shapes drawn on the stage using the standard Flash API? If you need to parse a drawing created in the Flash IDE and convert it to an AS script which creates the same result, but using Drawing API methods, then use JSFL.

Re[2]: [Flashcoders] EventDispatcher and onEnterFrame.... problems

2006-11-08 Thread Rkos Attila
SSB Inside an onEnterFrame function you have to use this when referring to SSB things in the class (if the class extends MovieClip, which I hope it SSB does because only MovieClips can have onEnterFrame as far as I know). Well, using this is not the matter of onEnterFrame but that of any runtime

Re[3]: [Flashcoders] EventDispatcher and onEnterFrame.... problems

2006-11-08 Thread Rkos Attila
RA Well, using this is not the matter of onEnterFrame but that of any RA runtime function definition. If you declare your onEnterFrame as a RA simple method, this can be omitted. Oh, I mean if the class extends MovieClip of course (but in other case your code doesn't work, too :)) class MyClass

Re[5]: [Flashcoders] EventDispatcher and onEnterFrame.... problems

2006-11-08 Thread Rkos Attila
SSB That is true, however if you just need a temporary onEnterFrame SSB then it's better to just assign it to this instead of delcaring SSB it in the class. I'm used to avoid runtime function declaration just because it can lead to creating more than one copy of the function, instead of

Re[2]: [Flashcoders] Hiding loadsound URL from Activity Monitor

2006-11-09 Thread Rkos Attila
IT You'd need to change the mimetype on the server, too AFAIK Flash doesn't care about mime-types, simply enough to rename the file - if it is a valid mp3, Flash will handle it correctly. Attila ___ Flashcoders@chattyfig.figleaf.com To change your

Re[4]: [Flashcoders] Hiding loadsound URL from Activity Monitor

2006-11-09 Thread Rkos Attila
IT Flash may not care, but (for example) the latest version of IIS does. IT If you don't set a mime-type for a file extension, it defaults to a IT 404 instead of serving the file. Stupid system. :-) I see, it escaped my attention - I have minimal experience with IIS :) Attila

Re[2]: [Flashcoders] Simple Flash player detection without versioning?

2006-11-09 Thread Rkos Attila
MJ Yes, but I don't want my scripts to HAVE version detection for the users MJ who do have the Flash player, because we always know what to build for MJ and what version the user will have. Since the detection script gets MJ copied all over the place, I don't want to update those scripts to MJ

Re: [Flashcoders] List Component - Custom Display Settings

2006-11-10 Thread Rkos Attila
HDC Is it possible to change the appearance of single items in a List Component? Look up for the CellRenderer API in the docs. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] launching an exe?

2006-11-10 Thread Rkos Attila
AF Is there any way to launch an exe with any version of Flash? I basically AF want to download my installer using Flash and then automatically launch it, AF basically bypassing the browser's download and launch cycle to make things AF easier on the user. AF AF I know very little

Re: [Flashcoders] List Component - Custom Display Settings

2006-11-10 Thread Rkos Attila
HDC I'm developing an application that simulations an e-mail HDC application, similar to Outlook. I'd like to use the List HDC Component to hold all the e-mails and have unread e-mails bold, HDC e-mails that need follow up in red, and completed e-mails as HDC plain text. I have been reading

Re[2]: [Flashcoders] launching an exe?

2006-11-12 Thread Rkos Attila
AF I'd basically like a signed AF Flash movie that could do the same thing, using Flash instead of Java AF because it's more ubiquitous and doesn't take so friggin' long to launch. I AF imagine there's still no way though huh? You are right, there is no way :) You cannot sign a Flash movie and

Re: [Flashcoders] Google image search from Actionscript

2006-11-12 Thread Rkos Attila
MN I have a potential client who wants their program to incorporate Google MN Image Search results. I have never used Google web services or other MN programming tools, so I don't know how much work this will involve and what MN server side resources are required. I will be using Flash 8 and

Re: [Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread Rkos Attila
j As you can see the first value is correct, the rest have weird values. Can j anyone explain this to me? This is because of the precision errors of floating-point arithmetic. Try to round the results: import flash.geom.Point; var angles: Array = [0, 90, 180, 270, 360]; for (var i = 0; i

Re: [Flashcoders] Any ideas on changing the color of multiple objects within the library.

2006-11-13 Thread Rkos Attila
oao Anyone have any script ideas for changing the actual object color of an oao object within the library. I have about 700 objects and they all need a new oao color :) I know I can setrgb when they are on the stage. But is there oao possibly an external script or plugin that will allow this. By

Re: [Flashcoders] Complex objects in a DataProvider

2006-11-14 Thread Rkos Attila
JMH However, what I want is to be able to see the results of certain JMH method calls on the objects in my dataProvider. Is there some way JMH to accomplish this feat without going berserk? Why don't you use getter properties in your objects or DataGridColumn.labelFunction? Attila

Re[2]: [Flashcoders] Complex objects in a DataProvider

2006-11-15 Thread Rkos Attila
MH I could not use labelFunction because I wished to populate each MH row of my DataGrid with the results of various method calls on a single MH object, and labelFunction builds a label in a single cell. May be I'm not understanding your problem properly, but using labelFunction you can display

Re: [Flashcoders] removing a bunch of checkboxes in a movieClip

2006-11-15 Thread Rkos Attila
CA I've got this thing with a bunch of checkboxes created through CA createClassObject sitting in a movieclip. CA Problem is, I don't know how to get rid of them once I'm done with them CA (they're based on filtered data, so I need to update them). CA Of course there's destroyObject(), but that

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rkos Attila
In AS2 there is a compile-time type-checking only, the Flash VM itself doesn't care about type settings. If the type of an expression cannot be determined during the compilation, then type-checking is simply omitted. In your code it applies to the settings[tagName] reference, where the referred

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rkos Attila
RR // this does not produce an error RR settings.settings_id = settingsBranch.childNodes[0].firstChild.nodeValue; Of course not, because you use the array syntax again (childNodes[0], which is in fact the same method as in your previous settings[tagName]) and when using such, the compiler has no

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rkos Attila
When saying the compiler has no type information I mean that it doesn't know, that the members of the childNodes array are XMLNode objects (because the lack of typed arrays), so it doesn't know anything about the type of the array members' properties, too. Attila

Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rkos Attila
RR // nope, no error RR settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue; Are you sure that variable settings is typed as Settings? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rkos Attila
Well, looking again into your earlier posts I noticed this line: RR var settingsBranch = app_xml.firstChild.firstChild; You didn't set the type of settingsBranch to XMLNode, so any further reference to the properties of the object it refers to, will not carry type information. Was this line

Re[2]: [Flashcoders] as 2 email validation class

2006-11-18 Thread Rkos Attila
Well, this is too simple, there are too many invalid strings which are considered as valid by this script. I think if you validate the input, then do it correctly or don't validate at all :) An incomplete validation makes you feel that your data is valid and secure, however it can lead to

Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread Rkos Attila
This is much better, but not perfect yet :) It still lets pass strings like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc. I think that validating carefully everything what comes from the user is an essential thing, and we have to don't allow breaking programs by wrong inputs. It

Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread Rkos Attila
I have attached a class which - hopefully - takes care of each possible issue :) Attila___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

Re[3]: [Flashcoders] as 2 email validation class

2006-11-19 Thread Rkos Attila
uhh, attachments are not allowed here? class Validate { // characters allowed in e-mail addresses, not including the separators (@ and .) public static var EMAIL_CHARS: String = abcdefghijklmnopqrstuvwxyz_-; // test a string for containing allowed characters only public static

Re[2]: [Flashcoders] Q:JSON vs XML advantages

2006-11-23 Thread Rkos Attila
e With JSON your objects are typed.. in XML all properties, attributes, are e String values only. AFAIK this typing is limited, since the objects (structures) are not typed and JSON doesn't store class information (I know that class hints are used sometimes, but this is a kind of hack only). On

Re: [Flashcoders] Q:Class scope issues and Gotchas

2006-11-23 Thread Rkos Attila
mmc The first is accessing the class scope from within a xml object , mmc solved by defining a local variable withing the constructor mmc before your XML object. mmc mmc var parent:ClassName= this; mmc _xmlData.onLoad = function(success:Boolean) { mmcif(success)

Re: [Flashcoders] flash paypal shopping cart security

2006-11-25 Thread Rkos Attila
System.security.allowDomain() serves a little bit different purpose, it has nothing to do with your current problem. LoadVars.send() and LoadVars.sendAndLoad() somewhat differ concerning security issues. The send() method is allowed to send data to any target domain, but sendAndLoad() is

Re[2]: [Flashcoders] changing a MovieClip instance class at runtime inAS2 ?

2006-11-26 Thread Rkos Attila
DB it changes the class prototype but errors when i try to initialize the DB constructor using the call method. That's because in this case classes.testClass interpreted by the compiler in the context of AS2 syntax and not as a simple Function object. So you have to cast it to type Function

Re: [Flashcoders] Sorting/Matching Fields in Two Recordsets

2006-11-26 Thread Rkos Attila
E.g. you can use the RecordSet.filter() method for obtaining the list of images associated with a specified article ID. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Issue with differnet fps in same swf

2006-11-29 Thread Rkos Attila
There is only one frame rate in a movie and its sub movies - if a movie is loaded into an other one, then it will always be played with the frame rate of the loader (so its own frame rate setting is discarded). Attila ___

Re: [Flashcoders] Open PDF in Acrobat

2006-11-29 Thread Rkos Attila
Are you talking about a projector application? In this case you can create a simple batch file for opening PDF-s, that contains a simple start foo.pdf line. Unfortunately fscommand cannot pass parameters to the executable, so you have to make batch files for each PDF, unless you use a third-party

Re: [Flashcoders] LoadVars.send vs. LoadVars.sendAndLoad

2006-11-30 Thread Rkos Attila
You already posted this question few days ago and I answered it for you. If you did not understand something in the answer or had problems during putting it to practice, let it know and I'm sure you will get further explanation (from me or from somobody else). Attila

Re[2]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread Rkos Attila
MD perhaps I can cotton up with (btw. is this good english?) MD AsBroadcaster, since it is availablefrom flash version 6 and above. AsBroadcaster is quite obsolete, why don't use the event dispatching mechanism introduced in MX 2004 (mx.events.EventDispatcher)? It handles separate callbacks (see

Re[6]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread Rkos Attila
MD So I was on the right track and it was only a syntactical AS1-to-AS2 MD question. ;-) Well, actually the whole AS2 syntax is a shorthand for AS1 syntax :) In fact the AS2 compiler is a preprocessor only, which creates AS1 source from the AS2 one and this AS1 source will be compiled to

Re[2]: [Flashcoders] xml thumbnail gallery reverse order problem

2006-12-01 Thread Rkos Attila
MG Does this help? MG MG for(var i=Array.length; i=0; i--){ MG//loop backwards MG } No, it doesn't help, since the first index is out of range :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re[4]: [Flashcoders] xml thumbnail gallery reverse order problem

2006-12-01 Thread Rkos Attila
write trace(myArray[i]) instead of trace(i) MJ What do you mean? There's nothing wrong with the way they wrote that either - this works for me: MJ MJ myArray = [1,1,1,1,1,1,1,1]; MJ MJ for(var i=myArray.length; i=0; i--){ MJ trace(i) MJ } MJ MJ I don't think they meant the word Array

Re[2]: [Flashcoders] Extracting file details

2006-12-06 Thread Rkos Attila
HG I just found out that the file size that the class outputs is not the same HG filesize that the file size is represented on my computer. The reported size is the size of the uncompressed swf (compression exists since Flash 6 and it is the default option), similar to the value returned by

Re: [Flashcoders] Errors in some cases...

2006-12-07 Thread Rkos Attila
I confirm that it doesn't work on IE6. Propably your pngfix.js is responsible for the problem, because I saved the page to local drive, cut out this pngfix.js line and everything worked perfectly (except the transparent PNG of course :)) Attila ___

Re[2]: [Flashcoders] Errors in some cases...

2006-12-07 Thread Rkos Attila
JMB Crap..i have the IE 7...so..thats the problem...can i have the ie installed JMB as well? for test purposes? Look at this: http://www.microsoft.com/downloads/details.aspx?FamilyID=21EABB90-958F-4B64-B5F1-73D0A413C8EFdisplaylang=en ___

Re: [Flashcoders] Using components in MovieClips

2006-12-19 Thread Rkos Attila
You have to wait while the components are initializing themselves. Usually I place my initialization code accessing the on-stage children components in the onLoad method of the container movieclip/component. private function onLoad():Void { roomShape_btn.toggle = true;

Re: [Flashcoders] ActionScript switch/default syntax and interpretation

2006-12-21 Thread Rkos Attila
Yes, it's a valid script (except switch(var) instead of switch(v)), and the expected result is default, since the documentation states that a default case statement does not have to be last in the list. s Is this valid ActionScript ? s s var v = 1; s switch (var) s { s

Re: [Flashcoders] ActionScript switch/default syntax and interpretation

2006-12-21 Thread Rkos Attila
Oh, I'm sorry, I mistyped the expected result in my last post: it should be 1. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

Re[2]: [Flashcoders] undocumented || usage

2006-12-21 Thread Rkos Attila
SSB a b -- returns true if a and b are both true, false otherwise By my tests a b returns b if a and b are both resolves true. If a and/or b resolves false then it returns that value, which is first resolves false: if a is false and b is false = a if a is false and b is true = a if a is true

Re: [Flashcoders] Encrypt xml

2006-12-22 Thread Rkos Attila
Well, unfortunatelly you cannot encrypt it to be totally secure, since you can use any kind of encryption, by decompiling your swf it can be decrypted, too. However for most of the cases I think there are some solutions, but everything depends on the skills and resolution of those, who are trying

Re[2]: [Flashcoders] Encrypt xml

2006-12-22 Thread Rkos Attila
BU i was thinking of the 3rd one embedding the xml into a BU variable in flash. Or may be better to create a structure of objects and arrays instead of an XML string. Once I developed a level designer for a game and it saved its quite huge output as XML and as an ActionScript source file which

Re[4]: [Flashcoders] Encrypt xml

2006-12-22 Thread Rkos Attila
Base64 should work with any characters since it processes simple byte streams, so doesn't care any character encoding or such things. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Flex + web services Was: Remove elements from Array

2006-12-23 Thread Rkos Attila
(please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS I have a Flex question. I have been considering FLEX 2.0, but when BS I spoke with the guy

Re: [Flashcoders] duplicate movieclip with loading image

2007-01-05 Thread Rkos Attila
No, you cannot duplicate anything that was changed/loaded at runtime (including images, child movieclips, variables, etc). The result of the duplication is always an exact copy of the original movieclip symbol (as it presented in the library). You have two options: - you can load your image

Re: [Flashcoders] MultiLanguage Character support

2007-01-05 Thread Rkos Attila
Arial Unicode MS font covers almost the whole Unicode 2.1 character ranges, but it is more than 20MB. It the size matters then use device fonts. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] String to object

2007-01-09 Thread Rkos Attila
You can do that similarly to AS2, the array notation works in AS3 as well and referring to a variable by its name is possible (as far as it is an object instance's field/property, and not a local variable). However since _root doesn't exist, you have to rethink this part a bit. Attila BA Hi,

Re: [Flashcoders] uploading and sending am messege back

2007-01-10 Thread Rkos Attila
After a completed upload you can get a response by calling a separate request, which returns data stored in a session variable or something similar. Attila d I see that fash dosent have any way of sending back a messge from the server d after upload is doen d d Any ideas? d Can you face a

Re: [Flashcoders] Bitmap data convert luminosity to alpha

2007-01-10 Thread Rkos Attila
MM So I want to to the blacks to alpha's in my bitmap data - the darker it MM is, the more transparent I want it - how do I go about solving this MM problem. MM MM I'm throwing stuff in threshold but so far I'm having no joy at all. ColorMatrixFilter is your friend :) Attila

[Flashcoders] flash.geom package backport to player 6

2007-01-15 Thread Rkos Attila
Hi, I'd like to use some scripts written for Flash Player 8 in an application targeted to player 6. The script uses flash.geom package which doesn't exist in player 6 (and 7), but as far as I see it doesn't contain anything that couldn't be implemented in pure AS, so it can be

Re: [Flashcoders] flash.geom package backport to player 6

2007-01-15 Thread Rkos Attila
e you can use VEGAS my openSource Framework and this library PEGAS and this e package pegas.geom :) Thanks Eka, it seems to be good. e You can use my framework in Flash 7 and Flash8 and you can transform my AS2 e class in AS1 class if you want (my framework is openSource ;)) No, I don't want

Re: [Flashcoders] movieclip size change onRotate?

2007-01-17 Thread Rkos Attila
I tried the following script: for (var i = 0; i 3; i++) { mc = createEmptyMovieClip(mc + i, i); mc.lineStyle(0, 0, 0); mc.beginFill(0xFF (i * 8)); mc.moveTo(-50, -15); mc.lineTo(50, -15); mc.lineTo(50, 15); mc.lineTo(-50, 15);

Re: [Flashcoders] Deploying Standalone Apps with Flex2

2007-01-18 Thread Rkos Attila
In the player folder of your Flex install there is a stand-alone Flash player, which can create projectors (File|Create Projector). And there are some more options including Zinc and Screenweaver HX. Attila ___ Flashcoders@chattyfig.figleaf.com To

Re: [Flashcoders] net.FileReference problem

2007-01-19 Thread Rkos Attila
I don't think that flooding will solve your problem, but reading docs can help much more: http://livedocs.macromedia.com/flash/8/main/2204.html Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re[2]: [Flashcoders] net.FileReference problem

2007-01-19 Thread Rkos Attila
nV I have list with urls from different domains for uploading mp3 files. So I nV nothing can do on other servers. Is it possible to use FileReference for nV that situation? nV System.security.allowDomain(*); also does not help. allowDomain() has nothing to do with this, it is for somewhat

Re[4]: [Flashcoders] net.FileReference problem

2007-01-19 Thread Rkos Attila
nV It is too difficult for me to create server-side programming. As I nV understand even example from documentation for downloading nV http://www.macromedia.com/platform/whitepapers/platform_overview.pdf; nV that explain how to use FileReference can not work correctly without nV additional

Re[6]: [Flashcoders] net.FileReference problem

2007-01-19 Thread Rkos Attila
nV http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2210.html nV I tell about this example This example will work, since in the root of macromedia.com there is a crossdomain.xml (redirected to adobe.com), which allows unrestricted

Re[8]: [Flashcoders] net.FileReference problem

2007-01-19 Thread Rkos Attila
It works for me with one small change: since Flash Player (at least the browser plugin) doesn't accept crossdomain policy files redirected to an other domain (from macromedia.com to adobe.com in this case) I replaced macromedia.com with adobe.com. Attila

Re[2]: [Flashcoders] Q:The case for Functional vs OOP programming

2007-01-22 Thread Rkos Attila
I didn't remember such restriction so tried it with a more than 1000 character long URL, and it is working on IE and FF, Flash Player 9 (movie published to player 8). Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

Re[2]: [Flashcoders] External libraries

2007-01-22 Thread Rkos Attila
AH The main reason I don't want to do that is that I won't have control AH of the 'brand.swf' versions. I just worry someone might put something AH on the canvas in brand.swf by mistake. If I was able to put my stuff AH on root or another MC then I could just hide the uiResources MC, so it AH

Re: [Flashcoders] full-browser flash resizing only a few elements

2007-01-22 Thread Rkos Attila
Probably you refer incorrectly to the video and navigation movieclips. By using this you refer to variables/properties of the listener object itself, but obviously there are no such properties (try to trace them out). And also you may need to set Stage.align, too. Attila

Re[4]: [Flashcoders] External libraries

2007-01-23 Thread Rkos Attila
The mx package is not fully compatible with MTASC, so you have to apply this patch: http://osflash.org/mx_v2_components_patch Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re[4]: [Flashcoders] External libraries

2007-01-23 Thread Rkos Attila
Why don't you set Stage.scaleMode and Stage.align to your preferred values at the beginning of your program? Attila AH There seem to be a couple problems: AH AH 1) when built using the Flash IDE the coordinates (0, 0) on the root AH are at the center. When built using MTASC (0, 0) seems to

Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Rkos Attila
Well, interesting - I just tried out and everything seems to be OK with MTASC: without setting Stage's properties the default behaviour is similar to that of movies compiled with MMC, and after setting scaleMode and align it works as expected, too. Can you provide a minimal script demonstrating

Re[8]: [Flashcoders] External libraries

2007-01-23 Thread Rkos Attila
I tried out your code and get exactly the same result with Flash IDE and MTASC. Did you try it in the stand-alone player? If in the browser, may be you have changed the default scaling and alignment values in the Publish Settings? Anyway, the most secure method is to set Stage options by script

Re: [Flashcoders] Transforming a MovieClip instance to monochrome

2007-01-24 Thread Rkos Attila
ColorMatrixFilter is your friend :) Attila AK Is there a way of transforming a coloured MovieClip instance to AK monochrome (specifically grey scale) at run time? I want it to AK indicate that a control is disabled. AK It seems a fairly elementary thing to do, so possibly I'm AK

Re: [Flashcoders] Quick Question - Static content on Levels?

2007-01-29 Thread Rkos Attila
MovieClip.swapDepths() - if I understand correctly what you mean Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig

Re: [Flashcoders] access movieclip trough a class

2007-01-29 Thread Rkos Attila
Simply define class members with the instance names of your movie clips on the stage: class Holder extends MovieClip { private var mc1: MovieClip; function Holder() { mc1._x = 50; } } n i have a movieClip holder that contains other child movieClips (mc1, mc2, n mc3...) created

Re: [Flashcoders] very basic movie freezing up (???)

2007-01-31 Thread Rkos Attila
It works in the Flash 8 IDE and in the stand-alone player version 8, but in player 9 it crashes (stand-alone) or freezes (browser plug-in). Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Re: very basic movie freezing up (???)

2007-01-31 Thread Rkos Attila
After exporting as AI sequence and importing back again, it works even in player 9 (both stand-alone and plug-in). Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread Rkos Attila
Use one of the delegate solutions (i.e. the built-in mx.utils.Delegate, but there are several others): import mx.utils.Delegate; class Main { var myButton:Button; // placed on stage in authoring time function init() { myButton.onRelease = Delegate.create(this, doSomething); }

Re: [Flashcoders] clearing loaded classes in IDE?

2007-02-04 Thread Rkos Attila
Compiled classes are kept in a subdirectory of Flash's base class folder in ASO files - this folder on Windows: C:\Documents and Settings\username\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\aso The compiler uses these precompiled files if it doesn't detect

Re: [Flashcoders] Weird white box - help

2007-02-04 Thread Rkos Attila
LH Hi there, LH My flash animation should play on a page with a black LH background ...however when the page loads or if you hit refresh a LH big white box displays where the flash animation comes in. I've LH tried everything in the html (div using a black background, table LH using a

Re: [Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread Rkos Attila
SF Which do you prefer:oThis:Object = this;mcClear.onRelease = SF function():Void{ oThis.clearForm();}ormcClear.onRelease = SF Delegate.create(this, clearForm); I prefer Delegate, because it is shorter and clearly shows what is going on (callback assignment), while using more lines and separete

Re: [Flashcoders] SVG format

2007-02-05 Thread Rkos Attila
You can try also this one: http://flash-creations.com/notes/sample_svgtoflash.php Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re[2]: [Flashcoders] SVG format

2007-02-05 Thread Rkos Attila
I'm sorry, it seems that I misunderstood your question. Attila RA You can try also this one: RA RA http://flash-creations.com/notes/sample_svgtoflash.php RA RA Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] Re: extends MovieClip

2007-02-05 Thread Rkos Attila
DC Truthfully, I've never used the AS 2.0 class in the linkage box-- DC this may be what I was looking for! The simplest way is to assing a class to a movie clip symbol. It makes each instance of that symbol (both placed on stage at design time or created at run-time) associated with the given

Re: [Flashcoders] Extending List v2 component

2007-02-06 Thread Rkos Attila
Look into the CellRenderer API: http://livedocs.macromedia.com/flash/8/main/3127.html Attila TL Hello Flashers, TL TL I'd like to have some advice on customizing List v2 component since I have TL no deeper knowledge of v2 components set architecture. TL TL I need to extend the List

Re: [Flashcoders] Tracking User progress through a presentation.

2007-02-06 Thread Rkos Attila
If you are already using Flash, then SharedObject seems to better than cookies. But it can depend on your actual project structure, of course. Attila M Can anyone point me towards a tutorial on tracking and providing feedback to M a user on where they are in the current tutorial/presentation.

Re[2]: [Flashcoders] Identifier expected

2007-02-09 Thread Rkos Attila
MJ That's because you're still not refrencing an object that exists: MJ this._data[a] = new Object(); MJ MJ You're saying, Hey, _data, make your a property an object. But Flash MJ is saying, hold on cowboy, I don't see any property of _data called a. You are not right, it is totally

Re[2]: [Flashcoders] Identifier expected

2007-02-09 Thread Rkos Attila
MJ OK, I see, so then curious why this script returns compiler errors: MJ MJ function createData():Void { MJ this._data = new Object(); MJ this._data[a] = new Object(); MJ this._data[a] = {t1:0, t2:0}; MJ } Because when using the object initializer operator, you cannot use strings

Re: [Flashcoders] Possible ways to solve fps in browser problem(with keyisdown stuff)

2007-02-12 Thread Rkos Attila
I tried both versions in IE 6 and FireFox 2.0. It seems that in IE the opaque version is played at a little bit higher fps (however the navigation doesn't work for me), but the other one (window) runs smooth enough, too, and I didn't feel the lack of performance. On the other hand with FireFox

Re[2]: [Flashcoders] (no subject)

2007-02-12 Thread Rkos Attila
OF lol i was just testing if i receive posts that i do. as i see hotmails does, OF but gmail doesn't I receivied your posts both from gmail and hotmail. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] Strange problem with LoadVars

2007-02-19 Thread Rkos Attila
Are you sure that there are no spaces or linebreaks after the value passed back? Placing a symbol (delimiter) at the end of each value is always a good practice. Attila BM I have this script : BM BM function adauga() { BM error.length = 0; BM verif(); BM if (error.length0) { BM

Re[2]: [Flashcoders] Typing a variable instantiated from a loaded SWF

2007-03-08 Thread Rkos Attila
Is ContextMessageTransferData.as on your classpath? Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Rkos Attila
node.nodeValue = something; Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized

Re[2]: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Rkos Attila
TH This definitely loads the Flash object...I get that part. But it doesn't TH write to my file called setup.xml. I am in the OReilly ActionScript book now TH and this is the first time it has ever failed me. I tried parseXML and TH sendAndLoad but I can't seem to write into the file. A Flash

Re: [Flashcoders] injecting System.security.allowDomain

2007-03-12 Thread Rkos Attila
MTASC will do that for you. Create a simple class with a static entry method, place allowDomain() inside that, compile and inject it into the existing SWFs with MTASC. Attila jv I am trying to use a bunch of image sequences that were exported out of jv ImageReady as swfs. This process has

Re: [Flashcoders] Accessing an Associative Array

2007-03-12 Thread Rkos Attila
Variable identifiers are not string constants, so: showPopup(myarray); However mainMap[popup].gotoAndPlay(on); has no sense in this case, since the array notation excepts a string and not an object. Ans also you don't need to use array notation here at all, the simple dot syntax is enough:

Re: [Flashcoders] correct way to set onRease of an arbitrary button

2007-03-12 Thread Rkos Attila
Well, there are several ways to achieve your goal but I think that the best and most elegant solution is creating a class for your buttons which implements an event dispatching mechanism (e.g. Macromedia's EventDispatcher) and dispatches a click event when the button was pressed by the user. In

Re: [Flashcoders] MovieClip Instance _x and _y

2007-03-12 Thread Rkos Attila
MovieClip.getBounds() Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe

Re: [Flashcoders] Detecting embedded domain?

2007-03-13 Thread Rkos Attila
I think there is no reliable way for determining that. On client side it is not possible if embedding is not under your control (since some JS is needed for obtaining the HTML's URL). On server side you can check referer, but making fake headers is so simple :) Attila PB Building a video

Re[2]: [Flashcoders] Detecting embedded domain?

2007-03-13 Thread Rkos Attila
Correction: since you don't need to know the URL exactly and it is enough to determine whether it is your own or not, use JS (e.g. as mentioned by Dave) and if you get no valid response (no matter if it is a non-matching URL or nothing/error) show the logo. The only deficiency is that users with

Re: [Flashcoders] Component and attachMovie

2007-03-16 Thread Rkos Attila
Symbols exported for AS will not be compiled into the component, since the compiler doesn't know which of them is really required, so place an instance of the required movieclip symbols onto the stage of your component (e.g. on a never reachable frame) to ensure that they will be included into

Re[2]: [Flashcoders] 500 blur filters on 500 MCs

2007-03-20 Thread Rkos Attila
Applying a filter to a movieclip will always turn on bitmap caching automatically. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  1   2   >