Re: [Flashcoders] How to pass init param from movieclip to itsassociated AS2 class

2005-11-17 Thread Muzak
You have to do both. Link the class to the movieclip *and* define the class in the Component Definition. regards, Muzak - Original Message - From: "Boon Chew" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, November 18, 2005 8:25 AM Subject: Re: [Flashcoders] How to pa

Re: [Flashcoders] How to pass init param from movieclip to its associated AS2 class

2005-11-17 Thread Boon Chew
Thank you Muzak. I remember reading it, I will read the whole thing again so it sticks. Is there any reason why we shouldn't do this to every class that we associate an AS2.0 class with? That is, is there any downside if I just associate all my mc with the AS2.0 class in the Component Def

Re: [Flashcoders] Tabbing inside AS2 UIComponent

2005-11-17 Thread Manuel Saint-Victor
If you're having the problem that I think it is it is mentioned in Jesse's component tutorial - I think you might need to disable tabbing to the external component (containing). Mani On 11/17/05, Christian Giordano <[EMAIL PROTECTED]> wrote:

Re: [Flashcoders] Apple using Flash for their new retailstore reservation system

2005-11-17 Thread eric dolecki
you can get to the apps from the retail pages on apple.com... On 11/17/05, Gerry Creighton <[EMAIL PROTECTED]> wrote: > Probably doesn't need to since it looks like a kiosk app for the > "Genius Bar" at The Grove in the LA area. > So it's probably built to be run on a widescreen imac and not > del

[Flashcoders] recursive function that returns an array

2005-11-17 Thread Robin Burrer
Hi everybody, I try to build a recursive function that searches an xml node for a particular attribute name. Each Node of my xml document has an attribute called "transition". So basically what I want to do is pass an xml node to my function and the name of the transition and in return I want to

Re: [Flashcoders] How to pass init param from movieclip to itsassociating AS2 class

2005-11-17 Thread Muzak
When setting the AS2.0 class in the Component Definition window, you'll be able to add [Inspectable] MetaData to the class, which will then show up in the Properties Panel (parameters). Parameters defined in the properties panel will be set *before* the constructor of the class is exectuted, avo

Re: [Flashcoders] Apple using Flash for their new retailstore reservation system

2005-11-17 Thread Gerry Creighton
Probably doesn't need to since it looks like a kiosk app for the "Genius Bar" at The Grove in the LA area. So it's probably built to be run on a widescreen imac and not delivered on the web. Look at the source code of the html page. Gerry On Nov 17, 2005, at 9:50 PM, Hindman, Jeff wrote: S

Re: [Flashcoders] convert mail form from HTML to Flash

2005-11-17 Thread Wade Arnold
Can you send me the URL to the form. I can have it for you in a couple seconds. Go get this bookmarklet! http://t8design.com/weblogs/?p=6 On Nov 17, 2005, at 1:45 PM, Marc Hoffman wrote: I need to convert a currently-working webmail form from html to Flash. I've created Flash webmail fo

Re: [Flashcoders] Apple using Flash for their newretailstore reservation system

2005-11-17 Thread Mick Gow
and did it really NEED to be done in flash? I guess "why not" but also, "why" ;) On 11/18/05, Wade Arnold <[EMAIL PROTECTED]> wrote: > > It lacks the "apple" touch. It looks like the programmers got their > hands on Illustrator and Photoshop and forgot to invite the designers. > Still good to see

Re: [Flashcoders] Apple using Flash for their newretailstore reservation system

2005-11-17 Thread Wade Arnold
It lacks the "apple" touch. It looks like the programmers got their hands on Illustrator and Photoshop and forgot to invite the designers. Still good to see apple using flash rather than quicktime! wade On Nov 17, 2005, at 9:22 PM, eric dolecki wrote: No offense to who put it together, but

Re: [Flashcoders] Apple using Flash for their newretailstore reservation system

2005-11-17 Thread eric dolecki
No offense to who put it together, but it doesn't feel... like its really done? I mean it may work, but it lacks polish. On 11/17/05, JesterXL <[EMAIL PROTECTED]> wrote: > My first thought too. > > - Original Message - > From: "Hindman, Jeff" <[EMAIL PROTECTED]> > To: "Flashcoders mailing

Re: [Flashcoders] Apple using Flash for their newretailstore reservation system

2005-11-17 Thread JesterXL
My first thought too. - Original Message - From: "Hindman, Jeff" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, November 17, 2005 9:50 PM Subject: RE: [Flashcoders] Apple using Flash for their newretailstore reservation system Silly app ... doesn't resize. --Jake

RE: [Flashcoders] Apple using Flash for their new retailstore reservation system

2005-11-17 Thread Hindman, Jeff
Silly app ... doesn't resize. --Jake -Original Message- From: Andy Johnston [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 6:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Apple using Flash for their new retailstore reservation system mmm flex > Check it out

Re: [Flashcoders] Apple using Flash for their new retail store reservation system

2005-11-17 Thread Andy Johnston
mmm flex Check it out! http://genius.apple.com/customer/?store=R050 Any news behind the developers? -Carlos- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___

[Flashcoders] Apple using Flash for their new retail store reservation system

2005-11-17 Thread Carlos Saenz
Check it out! http://genius.apple.com/customer/?store=R050 Any news behind the developers? -Carlos- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Style sheet does not load - SOLVED

2005-11-17 Thread Andy Johnston
No worries miles, whenever im stuck on a bug I just can't figure it's usually something easily overlooked... Fresh eyes minds can make all the difference, helps to come at the blighters from a different perspective. Andy, Thank you - cut and pasted your styles into styles.css, and it worked.

Re: [Flashcoders] Style sheet does not load - SOLVED

2005-11-17 Thread Miles Thompson
Andy, Thank you - cut and pasted your styles into styles.css, and it worked. Hmmm. Looked VERY CAREFULLY at my definitions. Sure enough, in one style definition I had a "(" instead of "{". They look v. different here, but that pathetic parenthetic error looked like a bodacious brace in Ultra

Re: [Flashcoders] Style sheet does not load - puzzled.

2005-11-17 Thread Mick Gow
If you have your SWF's in different directories than your HTML pages you may need to check/add the BASE attrib in your object/embed. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_04157 Trace your CSS and check it's actually being loaded. On 11/18/05, Miles Thompson <[EMAIL PRO

Re: [Flashcoders] Style sheet does not load - puzzled.

2005-11-17 Thread Andy Johnston
I copied that into a test fla and all works fine for me... is your css valid? Heres some simple test rules: p { color: #00; font-family: Arial,Helvetica,sans-serif; font-size: 12px; display: inline; } a:link { color: #FF00FF; text-decoration: underline; } a:hover{ color: #99; t

[Flashcoders] Style sheet does not load - puzzled.

2005-11-17 Thread Miles Thompson
Following examples from livedocs, help and a couple of tutorials, I've tried to load a style sheet into my movie. Nothing radical, the style sheet is named "styles.css" and is located in the same directory as the .swf. A new TextField.StyleSheet() object has been created. (Actually, all of th

Re: [Flashcoders] Spline 3D Atom Menu thing?

2005-11-17 Thread JesterXL
Nice! - Original Message - From: "Moses Gunesch" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, November 17, 2005 7:00 PM Subject: Re: [Flashcoders] Spline 3D Atom Menu thing? sorry Jester, I did not see that my mail bounced way back when so i'm sure you found som

Re: [Flashcoders] Spline 3D Atom Menu thing?

2005-11-17 Thread Moses Gunesch
sorry Jester, I did not see that my mail bounced way back when so i'm sure you found something - here is the old rag I did years ago that fits your description, it is a 3d molecule that shapeshifts when you click on a node. I think it was flash5, this was ages ago. http://www.mosessuppose

Re: [Flashcoders] How to pass init param from movieclip to its associating AS2 class

2005-11-17 Thread Boon Chew
Thanks David for the tip. I would like the artist to set certain values, so ideally, a method that doesn't require them to mess with the script window is the best. Would it be ok if I add parameters to the Component Definition? Behind the scene what is the difference between a moviec

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread pixelassembly
Ah, the pop-up window Ummm, everyone seems to want to say that it works but it doesn't REALLY work! (well not enough to have smiling clients) ok, it opens a window - but you could probably assume that already I'm assuming that you want it to work the way it does on PC IE ? (even this generat

RE: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Scott Hyndman
Yes, that is correct. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Tim Stickland Sent: Thu 11/17/2005 5:27 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] AS2, compiler errors... Absolutely, but I'd never have been trapped as I didn't un

Re: [Flashcoders] How to pass init param from movieclip to its associating AS2 class

2005-11-17 Thread David Rorex
In your class, define the variable you want to pass in, like: class Test extends MovieClip { var passedIn; //... } Then, on the stage, select your movieclip instance, and bring up the actionscript window (press F9), and enter the code: onClipEvent(load) { passedIn = 123; }

Re: [Flashcoders] Math.random()

2005-11-17 Thread Andreas Rønning
Man have i hopped through some bizarre loops with Math.random to get some true random numbers. I think the stupidest thing i did was a nested loop to build a grid of Math.random() results, and then pick one of them diagonally from the top right with another Math.random(). Guess what. I still go

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
Absolutely, but I'd never have been trapped as I didn't understand overriding properly ;) I wasn't aware that when a subclass overrides a superclass method it leaves the superclass method intact. Is that correct? On 11/17/05, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Not just more readable - co

Re: [Flashcoders] Tool Tip with Flash MX 2004 DataGrid

2005-11-17 Thread eric dolecki
I have used Sam Robbin's tooltip class with a MX2004 grid to wonderful results. I am doing the auto-truncation of the text inside the grid cells if needed (adding "..." - even works with resizing the grid), rows / cells can get their own tooltips, etc. I'll have to dig it up out of my archive. Its

Re: [Flashcoders] Math.random()

2005-11-17 Thread Ron Wheeler
You would not worry about someone being able to hack the client and modify the roll generation to allow the player to choose the desired roll and then send it (or the play result - move) to the server or just substitute the client with a client that lets rolls be specified? I am less worried a

Re: [Flashcoders] Tool Tip with Flash MX 2004 DataGrid

2005-11-17 Thread Igor Ageyev
Hello Leif, LW> We are trying to get a tool tip to work with a DataGrid component. And failing. You can try ageyev.tools.ToolTip class from my project MXML2UI (http://ageyev.ru/mxml2ui). But it works with the whole component DataGrid, instead of with its separate elements. Soon I should let ou

Re: [Flashcoders] Math.random()

2005-11-17 Thread Jon Bradley
On Nov 17, 2005, at 2:56 PM, Ron Wheeler wrote: If the game is for money and the client side code can be hacked for profit, you need to move more of the game engine onto the server and only present results and table state on the client side. Dice rolls can not be generated by the client in that

[Flashcoders] How to pass init param from movieclip to its associating AS2 class

2005-11-17 Thread Boon Chew
Hi all, I have created a movieclip and associated it to an AS2 class in the linkage property. I have different instances of this movieclip on stage and I would like to pass different init params to the AS2 class. Is there a way to do it in the IDE? Must I turn the movieclip to a comp

Re: [Flashcoders] Tool Tip with Flash MX 2004 DataGrid

2005-11-17 Thread JesterXL
Not sure exactly how Flex handles it, but for all mouseDowns and mouseUps (yes, that's all), they use a movieclip on _root, and use it's droptarget to know what you clicked on. As such, you could create a class to get info from mx.events.LowLevelEvents (not sure if exactly the same in Flash, do

[Flashcoders] Sound object issue / OnEnterFrameBeacon?

2005-11-17 Thread Flash Coder
Hi, I have run into a strange problem (developing in Flash Studio 8). I have a class that starts streaming a mp3 file in a Sound object. When I do this alone, it works perfectly. But as soon as I also animate something with the Tween class (using OnEnterFrameBeacon), the mp3 stops playing at rand

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread erixtekila
Could you tell me please if it works on Mac Yep it does. --- erixtekila http://blog.v-i-a.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Tool Tip with Flash MX 2004 DataGrid

2005-11-17 Thread Leif Wells
I posted this on my blog (http://www.leifwells.com), but I thought I'd try giving the Flashcoders list a shot at this, too. We are trying to get a tool tip to work with a DataGrid component. And failing. The project we are doing is a rather complex AS 2.0 project, so I created this rather simple

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread Matthew Gaiser
The "Quitter" button isn't working however... Best Regards, Matthew On Nov 17, 2005, at 2:41 PM, af a wrote: Hello, Could you tell me please if it works on Mac http://www.fastvideho.com/pop7.html when clicking on the yellow box to have fullscreen page. (by the way, do y

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread Matthew Gaiser
Yes it works for me in Tiger/Safari Best Regards, Matthew On Nov 17, 2005, at 2:41 PM, af a wrote: Hello, Could you tell me please if it works on Mac http://www.fastvideho.com/pop7.html when clicking on the yellow box to have fullscreen page. (by the way, do you know i

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread Chad Mefferd
WORKING On Nov 17, 2005, at 1:41 PM, af a wrote: Hello, Could you tell me please if it works on Mac http://www.fastvideho.com/pop7.html when clicking on the yellow box to have fullscreen page. (by the way, do you know if "fscommand" works on Mac ?) Thanks a lot Tony __

Re: [Flashcoders] Working in macintosh browser ?

2005-11-17 Thread Mike West
Works here.. Safari and Fire Fox Mac OS 10.4.3 Screen resolution 1920x1200 The browser window is full-screen and the swf appears to go edge to edge... the graphics do not scale though (not sure if that's what your asking), the right side of the screen is white. -Mike On Nov 17, 2005, at 12

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
doh ! :) I don't know what's wrong with my brain these days, it's working in strange ways of course use onSoundComplete ! I actually had another problem in mind ... sorry 'bout that ! A Tobias Fendel [Die ActionScripter] wrote: hi, imho a better solution is to use the sound.onSound

Re: [Flashcoders] Math.random()

2005-11-17 Thread Ron Wheeler
Too many for him or for his opponent? Did he complain that they came at the wrong time as well? (One 4-4 after the first few rolls is usually too many.) Kidding aside It is nice that he is at least specific. You can easily test that now by seeing what a the history of rolls. If someone has a bit

RE: [Flashcoders] onLoop event for sound

2005-11-17 Thread Tobias Fendel [Die ActionScripter]
oh yes - you are right. i used it in an old project like i explained before. but i also used onSoundComplete to restart the sound. something like that. loopcount = 0; mySound = new Sound(); mySound.attachSound("test"); mySound.onSoundComplete = function() { trace( ++loopcount );

[Flashcoders] convert mail form from HTML to Flash

2005-11-17 Thread Marc Hoffman
I need to convert a currently-working webmail form from html to Flash. I've created Flash webmail forms sending to ASP, but I'm not able to figure it out in this case. Maybe in part because it was built in FrontPage :) The current html page uses this, which works: onSubmit="" webbot-action="-

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Mark Walters
Hey Chris, you're right that onSoundComplete only gets fired when the sound has completely finished playing. The Class you wrote is handling it the way I currently am, which is great ... the only thing I'm noticing is that on some slower machines, when you start each loop onSoundComplete there is a

[Flashcoders] Working in macintosh browser ?

2005-11-17 Thread af a
Hello, Could you tell me please if it works on Mac http://www.fastvideho.com/pop7.html when clicking on the yellow box to have fullscreen page. (by the way, do you know if "fscommand" works on Mac ?) Thanks a lot Tony ___ Flashc

RE: [Flashcoders] XMLConnector to DataSets Question

2005-11-17 Thread greg
Xpcomponents has an xml datasource that will do just that. You would create 4 different datasources, set the document and a path. You can event set a relationship between them and it will auto filter for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf O

RE: [Flashcoders] onLoop event for sound

2005-11-17 Thread Chris Wilcox
Isn't onSoundComplete called when the sound has stopped playing, not when it loops?? In which case you could create a SoundLoop class which uses onSoundComplete to increment the loopCount and fire next loop. Not sure how it being called on next frame affects this (seemed fine to me in the past) H

RE: [Flashcoders] onLoop event for sound

2005-11-17 Thread Tobias Fendel [Die ActionScripter]
hi, imho a better solution is to use the sound.onSoundComplete event: mySound.onSoundComplete = function() { loopCount++ } it is fired next frame after the sound ends. if you start your sound using a script like mySound.start(0,) it may be your sound restarts (and resets sound.position) bef

RE: [Flashcoders] Cached Class instance

2005-11-17 Thread Tobias Fendel [Die ActionScripter]
hi, this is an old bug of flash 7 and in flash 8 the fix is a new feature ... add a new project and put all used files in it (.fla and .as) then use the new very improved and genious feature of flash: "delete aso files and test movie" while your main .fla is active. if you dont use flash 8 you h

Re: [Flashcoders] re: Flash Player 8 (and 8.5) ActiveX - does notwork!!!!

2005-11-17 Thread JesterXL
Not sure; I'm having a problem where both 7 and 7 debug work on IE, but I cannot install the Flash Player 8 debug player; 8 works sometimes, either via installation manually or through Macromedia's site. This only happened after I uninstalled 8.5 on IE, though, so don't know.. my machine is sti

RE: [Flashcoders] Math.random()

2005-11-17 Thread Jayson K Hanes
You should be using random(ness) from the server side of things, and not relying on flash (especially not clientside)... Otherwise.. on a pay site.. its not too unreasonable to bet someone sooner or later will decompile your client swf (the game) and modify it to improve their odds of winning more

Re: [Flashcoders] Math.random()

2005-11-17 Thread Danny Kodicek
Hey Ron, Thanks for the input. Actually, what that member said is that there are too many 4-4 among the doubles. I *very* much doubt that he/she has enough data to get a statistically significant result of that kind. If you're looking for some pattern, any pattern, you're bound to find som

RE: [Flashcoders] Cached Class instance

2005-11-17 Thread Kris Hadlock
Did you happen to get this fixed? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Pete Hotchkiss Sent: Monday, November 14, 2005 4:36 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Cached Class instance I've stumbled across something of an annoyin

Re: [Flashcoders] tracing every 10% of loading files

2005-11-17 Thread Matt Ganz
hi. thanks for your responses. i tried out the first idea and it works 98% of the time. here's the code ( notice that i'm doing this in the 'onLoadProgress' handler of a MovieClipLoader instance ): mclListener.onLoadProgress = function( targetMC, loadedBytes, totalBytes ) { var currentPer

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
Hi Mark, you could monitor the position of the sound comparred to it's duration, that way you know when it arrives at the end of the sound. if (sound.position == sound.duration) { loopCount++; } In this case, the loop count will be made at the end of the sound. HTH Alain Mark

Re: [Flashcoders] Math.random()

2005-11-17 Thread Dimitrios Bendilas
Hey Ron, Thanks for the input. Actually, what that member said is that there are too many 4-4 among the doubles. But I haven't seen the data, so I don't know. Regards, Dimitrios - Original Message - From: "Ron Wheeler" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursd

[Flashcoders] onLoop event for sound

2005-11-17 Thread Mark Walters
Does anyone know of a good way to create an onLoop event that gets fired everytime a sound loops. I need to keep track of how many loops are left. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo

RE: [Flashcoders] XMLConnector to DataSets Question

2005-11-17 Thread Marco van der Laan
Hi, this struggle will soon be over with E4X. For now you can do a few things I guess: 1. Use a class of someone else that transforms XML into an object. On Spark there was a speaker that wrote the open source project 'pixlib'. In this toolset there was a function called XML2Object If I'm correct

[Flashcoders] XMLConnector to DataSets Question

2005-11-17 Thread Jeff
I'm building a Flash 8 application with a complicated data model. I'm importing data into the movie using an XMLConnector object and a schema like so: ...more chapters here ...more books here .

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Ian Thomas
On 11/17/05, Tim Stickland <[EMAIL PROTECTED]> wrote: > One thing that I noticed in your example code was that you called methods > of the parent class using super.method() rather than this.method(). I > wasn't > aware you could do that, but it certainly makes reading the code more > straightforwa

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
True to form (in my experience anyway), I've just gone in to the classes to amend them using some of your suggestions and they're now not throwing any errors... I just don't get it. One thing that I noticed in your example code was that you called methods of the parent class using super.method() r

[Flashcoders] Dynamically attach MC with Video_Object?

2005-11-17 Thread Matthew Gaiser
Does anyone know a way to dynamically create or attach a Video_Object? (flash 8) I have made a movieclip in the library containing a Video_Object, attaching that MC and doing the netstream/flv load on it. What is happening is I can hear the audio of the flv playing, but cannot see it.

Re: [Flashcoders] comboBox not working after upgrading to 8

2005-11-17 Thread Lanny McNie
I believe they made some code updates to the components shipped with Flash 8 for compatibility. Try swapping the one in your library with the one in the Flash 8 components panel... On 11/17/05, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote: > > Hi list... > > Has the comboBox component changed in

[Flashcoders] comboBox not working after upgrading to 8

2005-11-17 Thread Mendelsohn, Michael
Hi list... Has the comboBox component changed in Studio 8? My MX2004 fla file comboBox isn't working once I upgraded. What's changed? There seems not to be a changeHandler parameter, and so far, the code below isn't working for me. Any hints are appreciated. Thanks, - Michael M. // all on fr

Re: [Flashcoders] Math.random()

2005-11-17 Thread Jim Armstrong
At 10:21 AM 11/17/2005 -0500, you wrote: what you do with the random number to produce a dice roll is more important. It is easy to make a simple mistake in the mapping of a random number to an integer between 1 and 6 that results in a skewed distribution. Here is a link to get you started,

[Flashcoders] AS1 to AS2

2005-11-17 Thread Felipe Fernandez
Hi all, I'm reading documentation about creating components in AS2 in order to translate Draggable Macromedia Component. Could anybody show me best way to do that or any clue? Is there any other draggablepane AS2 component? Thanks and regards. ___ Flashc

Re: [Flashcoders] End of flv playback event

2005-11-17 Thread Marlon Harrison
The primary issue is the these NetStream Status Reports do not fire reliably. "Buffer.Full" is reported after playback has begun so if, for instance, you have a placeholder graphic over your video, and you tie it's fade to when Buffer.Full is sent, you need to give yourself some black padding at t

Re: [Flashcoders] Math.random()

2005-11-17 Thread Ron Wheeler
The randomness of Math.random is one possible source of concern but what you do with the random number to produce a dice roll is more important. It is easy to make a simple mistake in the mapping of a random number to an integer between 1 and 6 that results in a skewed distribution. Gamblers

[Flashcoders] [ANN] F-ab is now available for downloading

2005-11-17 Thread Jiro Harada
Hello, "F-ab" is now available for downloading. F-ab is a browser for Flash movies. Flash movies are switched by changing the channel like TV programs in it. You can see 1 Flash movies by changing the channel from "" to "". This product is a freeware. Download: http://www.f-ab.net/

Re: [Flashcoders] Math.random()

2005-11-17 Thread Dimitrios Bendilas
Everyone who replied, thank you very much! I guess I'll replace Math.random() with something more sophisticated. The page you suggested Jim looks quite promising. Thanks again guys! Regards, Dimitrios - Original Message - From: "Jim Armstrong" <[EMAIL PROTECTED]> To: "Flashcoders ma

Re: [Flashcoders] Math.random()

2005-11-17 Thread Jim Armstrong
At 03:28 PM 11/17/2005 +0200, you wrote: So, my question is this: Should I use some other algorithms for generating the value of the dice? Or Math.random() is really good enough? What if this game was connected to prizes, tournaments etc? Would I have to find something better then? Do not use F

[Flashcoders] Tabbing inside AS2 UIComponent

2005-11-17 Thread Christian Giordano
In a project I'm supporting a form has been build inside a class that extends UIComponent (so in AS2, in Flash8, but I had the same problem in Flash7). I tried in very different ways on implementing the tabbing inside (using tabIndex, setFocus on killFocus, also with a delay) but everytime I ta

Re: [Flashcoders] Stopping sounds inside the loaded SWF.

2005-11-17 Thread Ian Thomas
>From memory... Assuming myClip was a reference to the loaded MovieClip: new Sound(myClip).stop(); HTH, Ian On 11/17/05, Dhiraj Girdhar <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a SWF file which contains sound (whether in the form of sound > object or streaming). > > I loaded that SWF in

Re: [Flashcoders] Math.random()

2005-11-17 Thread Danny Kodicek
He is starting to ask questions about the randomness of the dice, because a registered member of the game said he's recorded the stats of about 100 backgammon games and found that the numbers generated are not so random. (I haven't seen the data, so I don't know if that's true) I'd ask to see th

Re: [Flashcoders] Math.random()

2005-11-17 Thread Ian Thomas
If this was connected to prizes/tournaments, from what I remember it depends on whether the user pays to play or not; and the laws of the country that your site is hosted in. >From a UK perspective, if the user paid to play you'd need a gaming and/or gambling license (gaming for fixed-odds, gambli

Re: [Flashcoders] End of flv playback event

2005-11-17 Thread John Giotta
"Is it better to cut your video to whole seconds?" Well, that may not be as easy as it sounds. Specially in my case, I have to deal with 3 dozen production staff members all producing video each day across the south-eastern united states. ___ Flashcoders

[Flashcoders] Stopping sounds inside the loaded SWF.

2005-11-17 Thread Dhiraj Girdhar
Hello, I have a SWF file which contains sound (whether in the form of sound object or streaming). I loaded that SWF in another movie clip using LoadMovie. Now, I want to stop the sounds of that SWF, how to do it? There is a way of stopAllSounds, but it also stops the sounds in main SWF. Can

[Flashcoders] Math.random()

2005-11-17 Thread Dimitrios Bendilas
Hello, I have built a Backgammon game in Flash for a client. He is starting to ask questions about the randomness of the dice, because a registered member of the game said he's recorded the stats of about 100 backgammon games and found that the numbers generated are not so random. (I haven't seen

Re: [Flashcoders] Duplicate an object, a Date

2005-11-17 Thread PR Durand
Ok !!! thanks a lot Scott I tried with a simple clone:Date = new Date(orig) and received a type error, so I thought there were nothing else thanks once more Scott ++ PR Scott Hyndman a écrit : var orig:Date = new Date(2001, 04, 21); var clone:Date = new Date(orig.getTime()); Scott -Ori

[Flashcoders] re: Flash Player 8 (and 8.5) ActiveX - does not work!!!!

2005-11-17 Thread Arian Pasquali
Hi JesterXL, I had installed Flash Player 8.5 either, but the problem continues. what internet browser do you use??? Firefox? Internet Explorer?? so, you see that firefox and IE works diferently with Flash Player??? Why sometimes IE dot not work corretly with flash player 8.5 and firefox work perf

RE: [Flashcoders] Duplicate an object, a Date

2005-11-17 Thread Scott Hyndman
var orig:Date = new Date(2001, 04, 21); var clone:Date = new Date(orig.getTime()); Scott -Original Message- From: [EMAIL PROTECTED] on behalf of PR Durand Sent: Thu 11/17/2005 4:46 AM To: Flashcoders mailing list Cc: Subject:[Flashcoders] Duplicate an object, a Date

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread NEILHIGHLEY.COM
Example .as files: class GameoverPanel extends UserInteractionPanel { function GameoverPanel(controller:PanelController, panelObj:Object) { // Call the super() constructor passing it the panel object. super(controller,panelObj);//calls the constructor for the base calss UserInteractionPanel super.

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
Hi Greg Thanks for the reply, but I don't think either of these are the issues. This is the constructor of UserInteractionPanel: public function UserInteractionPanel (controller:PanelController, panelObj:Object) {} And here's a version of GameoverPanel with all but the constructor removed: cla

Re: [Flashcoders] tracing every 10% of loading files

2005-11-17 Thread [EMAIL PROTECTED]
What if percentage doesn't increase with 1 every frame? That if statement will then miss sometimes. You could do something like: var oldPercentage = 0; //then in update loop if (Math.floor(percentage/10) != oldPercentage) { trace("Another 10% loaded"); oldPercentage = Math.floor(perce

[Flashcoders] Duplicate an object, a Date

2005-11-17 Thread PR Durand
Hi List! Is there a way to duplicate a Date object, to have another object that I can modify independently,without creating new Date and duplicating all properties? thanks a lot PR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http:/

[Flashcoders] Sound object issue / OnEnterFrameBeacon?

2005-11-17 Thread Flash Coder
Hi, I have run into a strange problem (I work in Flash Studio 8). I have a class that starts streaming a mp3 file in a Sound object. When I do this alone, it works perfectly. But as soon as I also animate something with the Tween class (using OnEnterFrameBeacon), the mp3 stops playing at random p

[Flashcoders] Uninstalling Flash Player

2005-11-17 Thread Jorge Rego
Hi all, I used the macromedia "uninstall_flash_player.exe" app for windows on a xp sp2 machine. After, on FireFox 1.0.6 i get the "Missing Plugins Info" and "Click here to download pluging" message, but on iE 6 i don't get anything and the flash content loads normally. So, is flash player be

Re: SV: [Flashcoders] get, setTextFormat(), shared fonts and dynamic text fields

2005-11-17 Thread Cedric Muller
and I repeat myself: Macromedia should have come up with such solution ... no new thing, just the same as the inventor but on the smart side ... Cedric I managed to roughly understand it and am using it successfully - so cheers for that =D I don't really understand how it is forced to incl

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Gregory_GOusable
Check the following: 1) class GameoverPanel extends UserInteractionPanel ... Make sure you have "extends" word 2) To use super(controller, panelObj); , you must have 2 parameters in the construstor of UserInteractionPanel class. -- Best regards, Gregory_GOusable

[Flashcoders] dynamic movieclip naming

2005-11-17 Thread Radley Marx
Hello coders, I've been having mixed results with dynamic movieclip naming. For some reason, using the same code doesn't work each time and I don't know why. I used to use "eval", but since it's going to be phased out I've been trying more accepted approaches using "this" (instead of

[Flashcoders] Want to use XML CData and an Array

2005-11-17 Thread Jim Bob
Hello, Does anyone mind taking a look at this .fla frame 1 and see what it would take to load the cdata.xml file? I can get the non-cdata.xml file to load no problem. Source FLA file http://www.geocities.com/jon6662412/temp/non-cdata.fla Non-Cdata XML file (This loads) http://www.geocities.com/j