SV: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Johan Karlsson
You must set the ASP-charset to utf-8 as well. Add this at the beginning of the ASP file: Response.CodePage = 65001 /Johan --- I hope somebody can help with this one... I'm working on a flash application, where the

SV: [Flashcoders] Flash and levels

2007-03-29 Thread Johan Karlsson
The main timeline (_root) is a movieclip like any other. Levels are _root movieclips stacked at a given depth (-16384 + levelnumber). You can use swapDepths() on levels to change their stacking orderb just like any other movieclip. And just like with "ordinary" movieclips you can't put a level

SV: [Flashcoders] AS 2.0 variable declaration

2006-10-11 Thread Johan Karlsson
The "var" keyword can only be used when declaring a variable in the code's own scope. Meaning that if you use a path don't use the "var" keyword. So this will work: var foo:MovieClip = createEmptyMovieClip("foo",1) foo.myVar:String = "fooVar" /Johan -Ursprungligt meddelande- Från: [EMAI

SV: [Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Johan Karlsson
: [Flashcoders] Allow smoothing on imported jpeg:s use the BitmapData Object to draw the jpg - Original Message - From: "Johan Karlsson" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, October 10, 2006 4:54 PM Subject: SV: [Flashcoders] Allow smoothin

SV: [Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Johan Karlsson
Not sure if there is any other way but the only way I know to make transformations of external pictures to look good is to keep the main timeline of the level only a single frame long. However since a main timeline with a single frame doesn't wor that well with preloaders this requires you to h

SV: [Flashcoders] Rollover states for sub-items

2006-10-08 Thread Johan Karlsson
When a movieclip has a buttonevent placed on it anything inside it will not be able to get any buttonevents. What you need to do is use a mouseMove event and a hitTest to simulate a rollover/rollout event either for the nav or the subitems. E.g: Nav.onMouseMove = function() { if(this.h

SV: [Flashcoders] Creating a SWF to dynamically create SWF';s

2006-10-05 Thread Johan Karlsson
Simple put: it can't! It can't create anything outside the running player on its own. It needs a 3rd party projector generator like Zinc or some kind of serverside technology to create new files... /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Pe

SV: [Flashcoders] Creating a SWF to dynamically create SWF';s

2006-10-05 Thread Johan Karlsson
If you load external images when they are to be displayed the will not put "weight" on the until that is current. And if someone chooses to end the course prematurely images used later in the course won't hit the bandwidth at all. And finally when an image is loaded once, it should be in the bro

RE: [Flashcoders] _url

2006-05-26 Thread Johan Karlsson
I don't think you can. Not in a reliable way that is. You could make a get url that runs some javascript that looks up the window.location.href and sends it to a variable inside flash using setVariable() method (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15683) But I'm not sure tha

RE: [Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Johan Karlsson
If you can get your hands on older trial versions of flash you should get the standalone player along with it. I did a quick "google" and found MX 2004 trial here: http://download.macromedia.com/pub/flash/esd/flashmx_trial_en.exe /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:

RE: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Johan Karlsson
If I remember correctly using onRelease or even onPress is to late and the selection is already gone. To store the selection indexes you need to use the onMouseDown event. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnus Askenbäck Sent: den 12 april 200

RE: [Flashcoders] Access DropShadow filter via AS?

2006-01-24 Thread Johan Karlsson
1.) because the property does not return a reference to the true filters-array of the movieclip. Just a copy of it. So you need to assign it back to the movieclip after you've edited it. 2.) you can't if it's not the only filter applied. If not you should loop through the array looking for an inst

RE: [Flashcoders] Frame or duration limit on FLV

2006-01-18 Thread Johan Karlsson
Don't think there's any such limitations. Just try convert your files. If there is any limitations the converter should warn you about it. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of JP Sent: den 18 januari 2006 03:56 To: 'Flashcoders mailing list

RE: [Flashcoders] flash 8 security hint

2006-01-12 Thread Johan Karlsson
As far as I know Player 8 security restrictions while loading applies to movies of all versions. IT could also be a script error like an incorrect casing. Since it works in version 6 and not 7 or 8. Can you post the script associated with loading the php files? /Johan -Original Message-

RE: [Flashcoders] windows flash standalone able to export standalonefile?

2006-01-08 Thread Johan Karlsson
It's not possible with flash alone. Since it won't even let you save a textfile, besides from shared objects, localy. So you would need either Director or a 3rd party app like ZSinc (http://www.multidmedia.com). But I'm not sure if Zinc allows you to save exe files though. But you could probably m

RE: [Flashcoders] OT: Windows XP Level2 Cache mostly incorrect

2006-01-05 Thread Johan Karlsson
It's "Blue Screen Of Death" http://en.wikipedia.org/wiki/Blue_screen_of_death -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sent: den 5 januari 2006 10:30 To: Flashcoders mailing list Subject: Re: [Flashcoders] OT: Windows XP Level2 Cache mostly incorrect

RE: [Flashcoders] Change layer/path of a MovieClip

2006-01-03 Thread Johan Karlsson
Methods 1 and 2 is not possible. A movieclip can only be attached to a timeline inside the "owning" swf. One dirty fix would be to do the second load emidiatly after the "module" has loaded. Since that usually would mean it loading from the cache it would load to the next frame. And don't conside

RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread Johan Karlsson
looking at the source of your HTML(fpi_swap.js) code I find that the "wmode" of the movie is set as transparent. And to my experience that usually gives a huge performance hit on Mac. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kurt Dommermuth Sent: den 2

RE: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Johan Karlsson
TED] Ph: 09 577-2277 Mob: 021 221-2277 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Karlsson Sent: Saturday, 17 December 2005 11:07 p.m. To: Flashcoders mailing list Subject: RE: [Flashcoders] Scaling text using ActionScript The simplest solution

RE: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Johan Karlsson
The simplest solution I can think of is to put the textfield into a movieclip and then change the movieclip's _width property to math the width of the label. /Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Gaelic Sent: den 17 december 2005 06:10