[Flashcoders] php proxy

2009-02-06 Thread Hans Wichman
Hi list, I'm looking for a good proxy solution to circumvent flash cross domain policies. Fact is I'm not a php geek and can't discern whether the google results I've found open up major security holes in my server. I;m looking for something that will allow me to proxy files from remote server,

Re: [Flashcoders] php proxy

2009-02-08 Thread Hans Wichman
...@engineeredarts.co.uk wrote: http://xmlrpcflash.mattism.com/proxy_info.php Hans Wichman wrote: Hi list, I'm looking for a good proxy solution to circumvent flash cross domain policies. Fact is I'm not a php geek and can't discern whether the google results I've found open up major

Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Hans Wichman
and for as2: http://objectpainters.com/blog/2008/10/12/finding-character-positions/ On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.comwrote: Is this AS3? you can use TextField.getCharBoundaries() I used it in an experiment a while back here to pretty good effect:

Re: [Flashcoders] Duplicate Bitmap and scale question

2009-03-04 Thread Hans Wichman
Hi, you create a clip based on mc's width, called img. then you scale image, so its width is half of what it used to be. Then you draw img into img2. Img2's size is based on half the height and width, but the draw method ignores those transformation, so it draws an unscaled version of img in

Re: [Flashcoders] OOP AS3 learning

2009-03-05 Thread Hans Wichman
Hey Pedro, i think with as3 the remark that OOP is only for big projects is not strictly true anymore (and it wasn't with as2 either). The thing is though that as3 forces your hand more than as2 did, it terms that every movieclip can be a class as well etc, so if you create one clip in the

Re: [Flashcoders] Duplicate Bitmap and scale question

2009-03-05 Thread Hans Wichman
/100); visuals.draw(from, m); target.attachBitmap(visuals, 1,auto,true); } On Thu, Mar 5, 2009 at 12:54 PM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: How to create img2 correctly? 2009/3/4 Hans Wichman j.c.wich...@objectpainters.com: Hi, you create a clip based

Re: [Flashcoders] OOP AS3 learning

2009-03-05 Thread Hans Wichman
lmao erm yes definately:) On Thu, Mar 5, 2009 at 2:04 PM, Paul Andrews p...@ipauland.com wrote: - Original Message - From: Hans Wichman j.c.wich...@objectpainters.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, March 05, 2009 12:08 PM Subject: Re

Re: [Flashcoders] Duplicate Bitmap and scale question

2009-03-05 Thread Hans Wichman
To: Flash Coders List Subject: Re: [Flashcoders] Duplicate Bitmap and scale question How to create img2 correctly? 2009/3/4 Hans Wichman j.c.wich...@objectpainters.com: Hi, you create a clip based on mc's width, called img. then you scale image, so its width is half of what

Re: [Flashcoders] Check for Full Screen Availability

2009-03-11 Thread Hans Wichman
Hi, how about switching to full screen and back, and catching any security exceptions? If you can switch and back it is allowed, if a security exception occurs, it isn't greetz JC On Wed, Mar 11, 2009 at 6:34 PM, Glen Pike g...@engineeredarts.co.ukwrote: Aha, I see - don't think you can read

Re: [Flashcoders] using applyFilter with a BitmapData object (AS2)

2009-03-11 Thread Hans Wichman
Hi, yes it is destructive, but as you can read here: http://www.adobe.com/devnet/flash/articles/image_api_05.html you can find out the size of the bitmap after filtering (imagine a big blur), create a new bitmap and specify a source bitmap to the applyfilter call. If you don't want it to be

Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender

2009-03-18 Thread Hans Wichman
awesome:) On Wed, Mar 18, 2009 at 12:45 PM, mike cann mike.c...@gmail.com wrote: Hey List, I have been playing around with particles again... I have just released my latest little saunter into the world of particles and shaders in flash 10. It started off as and idea to use the new pixel

[Flashcoders] swfobject 2.1

2009-03-20 Thread Hans Wichman
Hi list, I reinstalled my pc recently and I only installed the latest flash 10 player. I opened my site and it tells me I don't have flash installed (using swfobject 2.1). So just for fun, I installed player version 6, and now it tells me I have version 10 installed. Can anyone tell me what is

[Flashcoders] setBufferTime on stream locks up flashplayer

2009-03-20 Thread Hans Wichman
Hi list, when setting the buffertime on a stream thats played through http, setting the buffertime completely locks up my interface for a few seconds. has anyone seen this before? regards, Hans ___ Flashcoders mailing list

Re: [Flashcoders] setBufferTime on stream locks up flashplayer

2009-03-21 Thread Hans Wichman
Im getting it on 8, 9 and 10 :( On Fri, Mar 20, 2009 at 3:47 PM, Glen Pike g...@engineeredarts.co.ukwrote: I had a problem with FP9 connecting to a http stream which went with FP10... Hans Wichman wrote: Hi list, when setting the buffertime on a stream thats played through http, setting

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
the transparancy for testing walkable or not. So i dont use compressed image format, just raw bitmap data. Or am i missing something? Jiri Hans Wichman wrote: yup exactly, only thing is that I'm not sure how detailed this info can be when using compressed image formats... On Mon, Mar 30, 2009 at 1:13

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
. Cheers. Jiri Hans Wichman wrote: Hi, why not use an image? Eg use an image that represents your area, lookup the pixel values, AND them and decide what you can or cannot do in that area. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri jiriheitla...@googlemail.com wrote: I have

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
Hi, why not use an image? Eg use an image that represents your area, lookup the pixel values, AND them and decide what you can or cannot do in that area. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri jiriheitla...@googlemail.com wrote: I have a byte question. I have to store a walkable

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Hans Wichman
Hi, isn't the absence of break statements messing things up? greetz JC On Thu, Apr 2, 2009 at 12:08 PM, Jiri jiriheitla...@googlemail.com wrote: I am new to bitwise operators, so I am trying to learn it. I have the following code and it works half. I am using a switch case to get the

Re: [Flashcoders] Loading MC

2009-04-05 Thread Hans Wichman
Hi Karl, your best bet is probably to checkout the imageloader source from martijn de visser that you are using, and adapt that to be able to get at the values you want. Maybe this works: target._width = target._width / 3; target._height = target._height / 3; _root.stage_mc[LargePic +

Re: [Flashcoders] Creating Dynamic addEventListeners with AS3

2009-04-05 Thread Hans Wichman
Might it be possible to only add a single listener to the parent for all buttons? On Mon, Apr 6, 2009 at 3:10 AM, Rob Romanek robli...@manibus.com wrote: You can try something along the lines of var stateButton = getChildByName(State_ + rs[i]); stateButton.addEventListener(MouseEvent.CLICK,

Re: [Flashcoders] Loading MC

2009-04-05 Thread Hans Wichman
take the code out of the class and put it directly in my fla? Karl Sent from losPhone On Apr 5, 2009, at 10:20 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi Karl, your best bet is probably to checkout the imageloader source from martijn de visser that you are using

[Flashcoders] flash ocx on c++ form

2009-04-06 Thread Hans Wichman
Hi list, I'm adapting an existing c++ application, but I'm not well versed in it. I have a flash ocx on a form, which loads a movie fine the first time, but not the 2nd time. It seems timeline based flash files are no problem, but my class based swf is. It is initialized and loaded, but things

Re: [Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Hans Wichman
pages.page1.width :) On Thu, Apr 9, 2009 at 12:35 PM, Dav d...@funkdaweb.com wrote: Hi all, Wondering if anyone can help me with a problem that's left me scratching my head! Basically I have a main movieclip (group) and then several other movieclips inside it (page[1-6]). I was

[Flashcoders] arguments.caller.name in AS 3

2009-04-10 Thread Hans Wichman
Hi Lists, I was looking for a way to trace the name of the current function or the calling function and I came up with a hackish bit of code. Don't know if anyone already came up with something like this but anyway, I thought it was pretty cool so I'd like to share it with you. I'm still working

Re: [Flashcoders] UK time clock

2009-04-22 Thread Hans Wichman
or use something like this: *http://www.earthtools.org/timezone-1.1/39.96/5.6250*http://www.earthtools.org/timezone-1.1/39.96/5.6250 On Wed, Apr 22, 2009 at 10:29 PM, Weyert de Boer w...@innerfuse.biz wrote: You can check if the locale takes DST into account by compare the offsets of a

Re: [Flashcoders] Video reflection with masked video

2009-04-28 Thread Hans Wichman
Hi Natalia, I recently wrote a reflection class that takes masking into account, it takes masks into account, hope it helps: http://objectpainters.com/blog/2008/11/23/visual-reflections-in-as2/ Gots lots of samples in the zip including video. greetz JC On Tue, Apr 28, 2009 at 10:26 AM, natalia

Re: [Flashcoders] Video reflection with masked video

2009-04-28 Thread Hans Wichman
On Tue, Apr 28, 2009 at 11:55 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Yes, I saw these excellent examples and learned a lot. But it does not help with this situation. Do you have example where you have masked video? 2009/4/28 Hans Wichman j.c.wich...@objectpainters.com: that takes

Re: [Flashcoders] Video reflection with masked video

2009-04-28 Thread Hans Wichman
that takes masking into account, it takes masks into account - some days I'm like a broken record lol On Tue, Apr 28, 2009 at 11:28 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi Natalia, I recently wrote a reflection class that takes masking into account, it takes masks

Re: [Flashcoders] Video reflection with masked video

2009-04-28 Thread Hans Wichman
of some sort. regards, JC On Tue, Apr 28, 2009 at 1:05 PM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Yes I could not get correct rusult with masked video using neither your code nor my code. 2009/4/28 Hans Wichman j.c.wich...@objectpainters.com: Hi, no don't think so

Re: [Flashcoders] Video reflection with masked video

2009-04-28 Thread Hans Wichman
); myVideo_mc.setMask(videoMaska); Result is wrong http://www.natavi.co.uk/test/video_perspective_wrong.html 2009/4/28 Hans Wichman j.c.wich...@objectpainters.com: Hmmm, might be that some values end up negative while they shouldn't or as floats while they should be integers. To be honest, I don't

Re: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Hans Wichman
Hi, there is probably a better way, but one solution is to do: x* state1Matrix + (x-1)*state2Matrix and tween x over 0..1 greetz JC On Fri, May 1, 2009 at 4:31 PM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Hi list... I'm trying to think of the best way to tween a sprite

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread Hans Wichman
Hi, mask out the r,g, b and tween them individually. eg write a class: RGBTween.getRGB (source, dest, 0..1); The getRGB should mask out the r,g,b values, calculate the result r,g,b based on source, dest and a 0..1 factor and combine the parts into a new rgb value. It will do the trick, but Im

Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread Hans Wichman
yes you can accomplish that with one loop. On Fri, May 1, 2009 at 6:10 PM, zu...@zadesigns.com wrote: Is there a better way to write Event Listeners for a large number of buttons that increment the names by 1? example: solution_button1.addEventListener(MouseEvent.MOUSE_DOWN, s_btn1_down);

RE: [Flashcoders] ClassPath madness

2009-05-03 Thread Hans Wichman
Hi, shouldnt your classpath be: Macintosh HD:Users:gingerman:Sites:project:ACC:flash:src instead of Macintosh HD:Users:gingerman:Sites:project:ACC:flash:src:com ? And then your classes will have a package statement com.YourClass ? regards JC -Original Message- From:

Re: [Flashcoders] Try... catch......

2009-05-09 Thread Hans Wichman
Hi, yup either public function myBall( value:int ):Ball { var ball:Ball try{ //my code goes here. return ball; } catch (e:TypeError ){ trace(Whoops); } return null;

Re: [Flashcoders] Rounded Polygons; rounded triangles

2009-05-17 Thread Hans Wichman
Hi, nope not really, but I do know polymercode http://www.polymercode.com/code/index.php has a nice set of drawing tools for as2. If you combine that with the knowledge of how to draw a curve through a controlpoint:

Re: [Flashcoders] inserting object into swf

2009-05-23 Thread Hans Wichman
Hi, by far the easiest way, if you don't have the original source and don't want to decompile the original movie is doing something like this: 1. create a new movie with same size as the old movie 2. put this on frame one of the timeline: import [new version of old class goes here]; var

Re: [Flashcoders] inserting object into swf

2009-05-23 Thread Hans Wichman
. Hans Wichman wrote: Hi, by far the easiest way, if you don't have the original source and don't want to decompile the original movie is doing something like this: 1. create a new movie with same size as the old movie 2. put this on frame one of the timeline: import [new version of old

[Flashcoders] flv can seek to end yes/no

2009-05-25 Thread Hans Wichman
Hi list, I'm still struggling with blocking video now and then (video that locks up my complete flash player). I have a couple of flv's now that play fluently, and one of the differences I'm noticing is that these videos have 'can seek to end' set to no. What does 'can seek to end' actually do,

Re: [Flashcoders] flv can seek to end yes/no

2009-05-27 Thread Hans Wichman
Hi Karl, it's as2. The buffertime is set to 5. The biggest problem is that the sysadmins seem incapable of setting up a stable test environment:). regards JC On Tue, May 26, 2009 at 12:25 AM, Karl DeSaulniers k...@designdrumm.comwrote: AS2 or AS3? On May 25, 2009, at 6:26 AM, Hans

Re: [Flashcoders] Papervision Help

2009-05-27 Thread Hans Wichman
nice tuts: http://papervision2.com/ http://papervision2.com/ http://pv3d.org/ On Tue, May 26, 2009 at 4:10 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Have you tried the Papervision list? I think these questions specific to Papervision are more appropriate there. Jason

Re: [Flashcoders] Papervision Help

2009-05-28 Thread Hans Wichman
: Thanks buddies, I've switched to Away3D, which is (in my opinion) better explained, supported and more straightforward in terms of API, than Papervision3D. Thanks for the supports guys! On Wed, May 27, 2009 at 1:54 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: nice tuts: http

Re: [Flashcoders] how to reload swf in Flash IDE Player

2009-05-28 Thread Hans Wichman
Hi, one option is loadMovieNum (_root._url, 0); Possibly attach some keyhandler to it, so you can press space to reload it, or set up a timer to reload it. Why do you need it? Editing data ? regards JC On Thu, May 28, 2009 at 5:40 PM, Andrew Sinning and...@learningware.comwrote: To compile

[Flashcoders] ie 8 flash crashes

2009-05-29 Thread Hans Wichman
Hi list, we're getting reports some of our flash sites are crashing in ie8, mostly player 10 it seems. Anyone experiencing this, it seems to come from BtwVdpCapFilter.dll. Both content in both as2 and as3 is crashing. Any insights would be appreciated. This is content that has run fine for

Re: [Flashcoders] ie 8 flash crashes

2009-06-01 Thread Hans Wichman
of the default windows or ie8 installation. Rename the dll and things should be fine. Hans Wichman wrote: Hi list, we're getting reports some of our flash sites are crashing in ie8, mostly player 10 it seems. Anyone experiencing this, it seems to come from BtwVdpCapFilter.dll. Both content

Re: [Flashcoders] Re: Runtime Align Panel package AS3

2009-06-09 Thread Hans Wichman
Hi Ktu, seems great, but havent had time to really dive into it, don't take the lack of response the wrong way it happens now and then, but has nothing to do with whether or not you're building something great;) regards, JC On Sun, Jun 7, 2009 at 5:54 AM, Ktu ktu_fl...@cataclysmicrewind.com

Re: [Flashcoders] Projector, loaded SWFs and audio files

2009-06-11 Thread Hans Wichman
i just read that post again and boy is that thing old... anyway the basic idea is still the same, but the execution can be improved:) On Thu, Jun 11, 2009 at 8:11 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi Eric, are you using as2 or as3? The basic solution is to look

Re: [Flashcoders] Projector, loaded SWFs and audio files

2009-06-11 Thread Hans Wichman
Hi Eric, are you using as2 or as3? The basic solution is to look at the url of the loading swf, and make your paths relative to that. If you make it a little more complex (but usually some splitting and joining will be enough) you can use something like this:

[Flashcoders] flash stops redrawing the stage

2009-06-26 Thread Hans Wichman
Hi list, I have an app in AS2, which I run in flash player 10. If I use fscommand (fullscreen, true) and mouseover the stage a lot, flash simply stops redrawing the stage. I can click on stuff, I hear sounds from a video thats playing, but I don't see anything, UNTIL I press escape, at which

Re: [Flashcoders] flash stops redrawing the stage

2009-06-28 Thread Hans Wichman
DeSaulniers k...@designdrumm.comwrote: Have you tried wrapping in an onEnterFrame? May make it slow though. Karl Sent from losPhone On Jun 26, 2009, at 7:15 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi list, I have an app in AS2, which I run in flash player 10. If I use

[Flashcoders] difference in player 10 and player 8 while playing the same 8 content

2009-06-28 Thread Hans Wichman
Hi List, most of you probably already know, but there are some differences between player 10 and 8 when playing 8 content. One was the performance of the same content, running notably better in player 10, that appeared to be the (buggy on my pc) hardware accelaration amongst other things. But

Re: [Flashcoders] flash stops redrawing the stage

2009-06-29 Thread Hans Wichman
in an onEnterFrame, it would keep it in Full Screen when you had it in-frame per say, or something to that effect. Sorry I didn't get a chance to see your code, so I apologize, I was more so just guessing. Hope you fine the solution. Best, Karl On Jun 28, 2009, at 1:22 AM, Hans Wichman wrote: Hi Karl

[Flashcoders] [OT] generate serial for onlinepayment

2009-07-02 Thread Hans Wichman
Hi List, this is a bit off topic, but I need to generate a serial for an online payment. Basic process is: * customer pays * mail with invoice and serial should be generated including account data * customer logs into account with data from email, downloads game * installs game using given

Re: [Flashcoders] rendering 3d model of a car for use in flash as an image sequence (360)

2009-07-02 Thread Hans Wichman
Hi, if you are rendering it to jpg's what does the polygon count matter? Crank it up until it looks so good you're pc is on its knees:) We've been doing like wise things, which required about 180 jpg's, but you might be able to skip a lot of those using some nice effects. In addition in our setup

[Flashcoders] papervision as2 mouse projection

2009-07-24 Thread Hans Wichman
Hi list, I need to find the coordinates of a mouseclick within a plane in actionscript 2 papervision and I can't figure out how to do it. Has anyone got any pointers for me, my 3d math skills are vry rusty? regards, JC ___ Flashcoders mailing list

Re: [Flashcoders] papervision as2 mouse projection

2009-07-24 Thread Hans Wichman
On Fri, Jul 24, 2009 at 2:35 PM, Glen Pike g...@engineeredarts.co.ukwrote: Hi, I thought that PaperVision provided that information for you - check the docs... Glen Hans Wichman wrote: Hi list, I need to find the coordinates of a mouseclick within a plane in actionscript 2 papervision

Re: [Flashcoders] papervision as2 mouse projection

2009-07-28 Thread Hans Wichman
as you mouse over them in 3d space, and that all in as2 :). So I'm looking for the documentation that provides me with the knowledge on how cubic panorama's work... yes grasping at straws here:), any pointers pretty plz... regards, JC On Fri, Jul 24, 2009 at 3:37 PM, Hans Wichman j.c.wich

Re: [Flashcoders] dynamically capture and display the name of the currently executing function in the Output panel

2009-07-29 Thread Hans Wichman
Yep only in debug player. Annoying as this was perfectly possible in as 2 (and easy as well). No good way in as3 though. Here is one method beside throwing an error and parsing the stack, but it has to be improved, just show the basic idea (which is kinda the same as in as2): private var

[Flashcoders] palet of an index based image

2009-07-29 Thread Hans Wichman
Hi folks, the subject is probably incorrect english, but what I meant was: is it possible when saving an indexed coloured image from say photoshop, to load it in flash (as2) and access and modify the underlying palette directly? As far as my tests have shown, the image data is completely

Re: [Flashcoders] ExternalInterface.call not working on desktop...??

2009-07-31 Thread Hans Wichman
Hi, html on the desktop is not going work, but you might have some luck when updating the security settings. I have the following batch file in most of my projects: @echo off rem echo %APPDATA% rem echo %CD% echo [Enter name for security file inserted into %APPDATA%]: echo (use a single keyword,

Re: [Flashcoders] LocalConnection: call functions on passed object

2009-08-03 Thread Hans Wichman
Hi, nope, but wouldn't it be nice:) greetz JC On Sun, Aug 2, 2009 at 4:16 PM, Andrew Sinning and...@learningware.comwrote: Using the LocalConnection object, is it be possible to pass a reference to an object from one movie to another, and hence forth call functions within the passed object

Re: [Flashcoders] Preloading FLV with NetStream

2009-08-07 Thread Hans Wichman
Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the

Re: [Flashcoders] Preloading FLV with NetStream

2009-08-07 Thread Hans Wichman
Hmm Jack is there an as3 version of that cool PreloadManager as well:)? greetz JC On Fri, Aug 7, 2009 at 10:13 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should

Re: [Flashcoders] Interface for displayObjects

2009-08-07 Thread Hans Wichman
Hi, when you declare them like this: var myObj1:MyInterface addChild (myObj1) wont work if you do var myObj1:Sprite = ... addChild (myObj1) it probably will. The thing is that you essentially provide two different interfaces for your object. By extending Sprite you satisfy the DisplayObject

Re: [Flashcoders] Preloading FLV with NetStream

2009-08-07 Thread Hans Wichman
background, the arrows will become persons walking to and fro, the line will become a microphone allowing you to interview people. And yes its a prototype and looks like crap ;) player 10 required btw tia! Hans On Fri, Aug 7, 2009 at 11:42 AM, Paul Andrews p...@ipauland.com wrote: Hans Wichman

Re: [Flashcoders] Preloading FLV with NetStream

2009-08-07 Thread Hans Wichman
lol it's the vanishing point actually:) but thanks for checking and the tip about the feet! On Fri, Aug 7, 2009 at 1:22 PM, Paul Andrews p...@ipauland.com wrote: Hans Wichman wrote: Hi Paul, ok thanks cool. Meanwhile I've whipped up a sample using flv's but I might have to switch

Re: [Flashcoders] How to Exit/Close the Web Browser from Flash Applications?

2009-08-07 Thread Hans Wichman
The timeout is a good idea, I realized I stopped doing that somewhere along the way, but especially macs as well had a knack for crashing if the calling object was destroyed in the process of the call. On Fri, Aug 7, 2009 at 4:15 PM, Jer Brand thejhe...@gmail.com wrote: Here's a simple example.

[Flashcoders] actionscript 3 block rationale

2009-08-18 Thread Hans Wichman
Hey list, does anyone know the cool rationale behind the fact that the compiler won't allow me to execute a completely sane piece of code such as: private function _demo():void { for (var i:Number = 0; i 10;i++) { //evil stuff here } for (var i:Number = 0; i 10;i++) { //evil stuff here }

Re: [Flashcoders] actionscript 3 block rationale

2009-08-18 Thread Hans Wichman
ok thanks, as i expected then. Glad we agree it's counterintuitive, and although mtasc \^^\ oo /^^/ ROCKS, i like as3 too much to go back though:)) thanks Ian On Tue, Aug 18, 2009 at 10:43 AM, Ian Thomas i...@eirias.net wrote: JC, AS3 has no block scope. Whenever you write 'var x'

[Flashcoders] using flash components in flashdevelop

2009-08-21 Thread Hans Wichman
Hi list, I'm trying to use flashcomponents directly without going through the loop of creating an intermediate fla with the components in it. I've added all the cs4 swc files as libraries in flashdevelop, but it still cannot find the components. Starting to wonder if it is even possible any

[Flashcoders] Re: using flash components in flashdevelop

2009-08-21 Thread Hans Wichman
21, 2009 at 9:38 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi list, I'm trying to use flashcomponents directly without going through the loop of creating an intermediate fla with the components in it. I've added all the cs4 swc files as libraries in flashdevelop, but it still

Re: [Flashcoders] add string to a function

2009-08-28 Thread Hans Wichman
Hi, you are looking for: this[createSubNav+page](); HTH JC On Fri, Aug 28, 2009 at 11:20 AM, thomas horner tho...@megawattmedia.co.ukwrote: this is possibly a very basic problem, I'm still building my dynamic global sub nav, slooowly. what I want to know if can I add a string to a

Re: [Flashcoders] add string to a function

2009-08-28 Thread Hans Wichman
ps a better option might be a parameter and a switchstatement On Fri, Aug 28, 2009 at 11:20 AM, thomas horner tho...@megawattmedia.co.ukwrote: this is possibly a very basic problem, I'm still building my dynamic global sub nav, slooowly. what I want to know if can I add a string to a

Re: [Flashcoders] debugging events

2009-09-04 Thread Hans Wichman
Hi, you can check willTrigger(youreventtype), assuming its as3. Can you post the event constants here so we can take a look at them and the dispatching and listener code? regards JC On Thu, Sep 3, 2009 at 10:30 PM, Joel Stransky j...@stranskydesign.comwrote: I have some custom event classes

[Flashcoders] disable mouse on transparent part of alpha video

2009-09-10 Thread Hans Wichman
Hi list, I need to create a couple of talking persons on a square, using transparent flv's for that. But it seems the whole of the video is clickable, even the transparent part (which is logical), is there any way to disable that? One other option I have is copying the persons to a bitmap and

Re: [Flashcoders] disable mouse on transparent part of alpha video

2009-09-10 Thread Hans Wichman
Hi, nope thats true, but I'm more concerned about the usability side of things, I don want to show a cursor when you cant click, so I would have to perform the check much more often. regards Hans On Thu, Sep 10, 2009 at 1:34 PM, Glen Pike g...@engineeredarts.co.ukwrote: Hi, Hans Wichman

Re: [Flashcoders] disable mouse on transparent part of alpha video

2009-09-10 Thread Hans Wichman
Hi, ok that might work, I'll try to mask out the shapes that have to be clickable. thanks folks! Hans On Thu, Sep 10, 2009 at 3:12 PM, Glen Pike g...@engineeredarts.co.ukwrote: Steven Sacks wrote: Cover the video with an alpha 0 shape. Problem solved.

Re: [Flashcoders] fisheye dislpacement

2009-09-11 Thread Hans Wichman
Hi, maybe this will help; http://www.unitzeroone.com/blog/2005/10/26/2-new-flash-8-examples-displace-smoke-displacement-spheres-source/ it's as2 but the id is the same. hth JC On Thu, Sep 10, 2009 at 4:58 PM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Hi list... I'm trying

Re: [Flashcoders] bitwise question

2009-09-15 Thread Hans Wichman
Hey, not sure if it's faster, but this would work as well: var i:Number = 32; trace (Math.log(i)/Math.LN2); returns bit number 5. Lookuptable might be faster in this case. greetz JC On Tue, Sep 15, 2009 at 10:04 AM, Jiri jiriheitla...@googlemail.com wrote: When i have a 8 bit int where only

[Flashcoders] localconnection in as2

2009-09-19 Thread Hans Wichman
Hi list, as I understand it, there is a send/receive limit of 40k to the localconnection object in actionscript2. Mostly the objects passed in my application will probably be under 40k, but the question is: how can you tell? Is there some way to grab the actual AMF object flash is going to try

Re: [Flashcoders] localconnection in as2

2009-09-21 Thread Hans Wichman
the poster is dividing the length of the String sent by the limit. http://www.ultrashock.com/forums/actionscript/40k-byte-size-limit-on-localconnection-56395.html ...hope that leads you in the way you want to go. -- Keith H -- www.keith-hair.net Hans Wichman wrote: Hi list, as I

Re: [Flashcoders] instantiate symbol linked to parent movie's library

2009-09-22 Thread Hans Wichman
Hi, I don't remember the exact details, but if I remember correctly there are 2 ways: 1. let the child attach the clip at the root, copy its bitmap data and use that to create a clip in its own root, but this will result in static bitmaps only 2. -declare an empty clip with linkage id in the

Re: [Flashcoders] instantiate symbol linked to parent movie's library

2009-09-22 Thread Hans Wichman
. AS3 -jonathan On Tue, Sep 22, 2009 at 2:54 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, I don't remember the exact details, but if I remember correctly there are 2 ways: 1. let the child attach the clip at the root, copy its bitmap data and use

Re: [Flashcoders] instantiate symbol linked to parent movie's library

2009-09-22 Thread Hans Wichman
it, you're on the safe side - i've never ever used this hack in a real project, so there is some risk involved in using it (but ain't it spiffy ;)). regards, JC On Tue, Sep 22, 2009 at 7:43 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, calling a function in the root that would

Re: [Flashcoders] instantiate symbol linked to parent movie's library

2009-09-22 Thread Hans Wichman
, Andrew Sinning and...@learningware.comwrote: That's super cool. So the sub only has to have a _single_ library item from the shared library in order to have access to the whole library. That's not very intuitive, but I'm really glad it works! Hans Wichman wrote: Hi Andrew, i've put

Re: [Flashcoders] basic mtasc question

2009-09-23 Thread Hans Wichman
Hi, framescripts wont be hurt (if you mean timeline code). regards JC On Wed, Sep 23, 2009 at 5:51 PM, Andrew Sinning and...@learningware.comwrote: I'm getting really impatient with the FDE compiler. Probably my fault for piling on so many classes, but I need to keep moving forward. When

Re: [Flashcoders] RE: swf behaving differently in different domain and other issues loading swf (Isaac Alves)

2009-09-23 Thread Hans Wichman
I fear this might be the 4th, I feel your pain:) On Wed, Sep 23, 2009 at 8:54 PM, Keith Reinfeld keithreinf...@comcast.netwrote: That's the third time you've ignored me... I'm done. ___ Flashcoders mailing list

Re: [Flashcoders] RE: Pricing a Freelance Project

2009-10-12 Thread Hans Wichman
Hi Steven, excuse my ignorance, but as a non native English person what is TM NET 15/30? Couldn't find it on google. regards, Hans On Mon, Oct 12, 2009 at 8:23 AM, Steven Sacks flash...@stevensacks.netwrote: I do not do fixed bid projects. I always do TM NET 15/30, and don't have an issue

[Flashcoders] image upload from flex to .net

2009-10-12 Thread Hans Wichman
Hi list, I need to upload an image from flex to .net. That in addition to a lot of other stuff that I need to do to it. I'd like to consolidate all those operations including the upload into some kind of remoting gateway. My question is: - is remoting a good option for uploading an image in

[Flashcoders] Re: image upload from flex to .net

2009-10-12 Thread Hans Wichman
ps i'm leaning toward weborb btw On Mon, Oct 12, 2009 at 4:05 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi list, I need to upload an image from flex to .net. That in addition to a lot of other stuff that I need to do to it. I'd like to consolidate all those operations

[Flashcoders] Re: image upload from flex to .net

2009-10-14 Thread Hans Wichman
Hi, no takers on this one? Noone any experience with this kind of thing through remoting? regards JC On Mon, Oct 12, 2009 at 4:05 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi list, I need to upload an image from flex to .net. That in addition to a lot of other stuff that I

Re: [Flashcoders] image upload from flex to .net

2009-10-15 Thread Hans Wichman
Hi Dave, Jason ok thanks, will try out the different options. @jason: doesn't an upload through a webservice generate a lot of overhead? Anything special going on in using a FileReference to do so (I didn't even know it was possible;)). regards JC On Thu, Oct 15, 2009 at 1:13 AM, Dave Watts

Re: [Flashcoders] Vista-like glossy SimpleButton - please help with the final touch

2009-10-18 Thread Hans Wichman
Cool alex, I was trying to find my old aqua code, but can't locate it, it was as2 anyway, so I'll have rewrite it for as3. Not quite vista, but still acceptable I think: http://www.objectpainters.com/flashExamples/aqua/ As said, I'll have to rewrite it for as3 and I made an error in the

Re: [Flashcoders] Movieclip in a remote shared object

2009-10-18 Thread Hans Wichman
Hi, as far as I'm aware, stored objects lose all type info except the basic types objects, strings, number etc. So no no storing of movieclips I think, but you can always try;) regards, Hans On Sun, Oct 18, 2009 at 12:53 AM, ktt kestuti...@yahoo.com wrote: Hello, Is it possible to store

Re: [Flashcoders] Setting a property in a class from another class

2009-10-20 Thread Hans Wichman
Hi, your class B instance will need a reference to an instance of Class A, unless your nextPrev property is static. If nextPrev is static, Class B can do ClassA.nextPrev (assuming the property is public). If nextPrev is not static, you'll need to do new ClassB (myClassAInstance) and access the

[Flashcoders] localconnection speed in relation to movieframerate

2009-10-24 Thread Hans Wichman
Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends back an acknowledge signal. If I set the movies framerate to 1 fps, this takes about 50ms for a simple msg to get an ack signal, if I set the framerate to 30 it takes about 5ms. Erm... my

Re: [Flashcoders] RE: Inheritance and Static properties

2009-10-24 Thread Hans Wichman
Helmut, I might be missing the point here, but doesn't a MyButtonEvent class with the constants defined in there solve your problem? And what is event.target.NAME? Tried event.target.name? regards JC On Sat, Oct 24, 2009 at 3:25 AM, Brett Artrahn brtrah...@yahoo.com.auwrote: Helmut, Grant

Re: [Flashcoders] localconnection speed in relation to movieframerate

2009-10-24 Thread Hans Wichman
flash...@stevensacks.netwrote: Framerate directly affects Flash's code execution response time. Is there a reason why you would find this odd or surprising? Hans Wichman wrote: Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends

Re: [Flashcoders] Changing angle for better arrangement in circle

2010-04-22 Thread Hans Wichman
Hi, aside from the fact that the illusion of perspective depends on the items being scaled and the spacing not being equal, i see two options, a) limit the maximum scale, dirty but might be a quick trick. Either by multiplying it by some root or a hard limit. b) sum the (scaled) width of all

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread Hans Wichman
Hi John, I've just been dabbling in the same sort of thing, but basically just using bitmapfill, it's very simple, check this out: http://www.innerdrivestudios.com/blog/articles/actionscript-3/gfx-actionscript-3-articles/wrapping-bitmapdata-in-actionscript-3 And an application of the principle:

<    1   2   3   4   5   6   7   >