[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/jon6662412/temp/cdata.xml

Cdata XML file (This does not low)
http://www.geocities.com/jon6662412/temp/cdata.xml


To see it working just test the move and view the
objects.

Thanks for any help.




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 include the font.
Just make sure ForceShared Library item Link value -  Url is set to  
the .swf file of itself - the Url field will appear to disappear if  
you look at again, but this seems to be the key.

(If anyone wants to explain why that would be great)

Sencillo means Easy, use the example in that folder - just replicate  
the way it works and it works lovely.


I'm very lucky that I am working with a few Spaniards as the site is  
global I am working on =D


   Issue  

There is a small issue with it though.
I have a site which uses lots of fonts - so this is why I am using  
this technique.


However the main .swf contains AvantGarde and a shared font library  
loaded in also has AvantGarde in it.
The AvantGarde in the main movie overrides the shared library brought  
in, so if you only have static text fields generated in the authoring  
environment (on the timeline) in the main movie only the characters  
included in those will appear in any subsequently created dynamic text  
fields.


In my case I have hacked the main movie clip by making one of the  
static text fields dynamic and embedding the characters I need there.


There is a better solution, but for now 14k in a 200k+ file does not  
seem too bad -
especially as we need the app to go live as a Beta sooner rather than  
later - so it starts to make money.




This technique is a massive step forward ( I've tried to do this for  
ages - and was so close )


Regards

gingerman

( flashcoders is brilliance - I am glad to see it back )






On 15 Nov 2005, at 17:08, Martin Baltzer wrote:


Hi All,

I tried to get trough the translated version of www.zarate.tv and I  
didn't understand that much :)


But as far as I understood the following issues where unsolved -  
correct?


- It cannot have in the film created text fields from the IDE (not  
even static) with the same source that the one that is going away to  
load...


- It is not possible to use Bold or Italic styles

I just wonder since I have just found the solution for those  
issues...so I guess the question is if this is common knowledge or do  
people still think its unsolveable?


If anyone is interested in the solution just say so and I'll explain:)

Cheers
Martin Baltzer






Fra: [EMAIL PROTECTED] på vegne af Zárate
Sendt: ti 15-11-2005 14:47
Til: Flashcoders mailing list
Emne: Re: [Flashcoders] get, setTextFormat(),shared fonts and dynamic  
text fields




Hi!

Thanks Cedric! I've to say that Martin Klasson has found some problems
with the hack of one single file per font[1], and i haven't had time
enough to check it. Hope i will soon.

Anyway, i think it still can be usefull.

Bye!

[1] -  
http://chattyfig.figleaf.com/pipermail/flashcoders/2005-November/ 
153136.html


On 11/15/05, Cedric Muller [EMAIL PROTECTED] wrote:

take a look here  mind the wrap! (this is babelfish translated from
spanish to english, so please be imaginative)
http://babelfish.altavista.com/babelfish/trurl_pagecontent?
lp=es_enurl=http%3A%2F%2Fwww.zarate.tv%2Farticulos%2Fshared_fonts%2F 
ind

ex.php
read the small text and look at the ZIP file

Description:
You can share fonts (or other assets) through SWFs *without* ever
linking anything in the FLAs

This is the solution Macromedia should have come up with!
Funny thing is that it is already here, even Macromedia didn't think  
of

it ;)

Thanks again to Zarate!
Cedrci



Hi guys,

I'm trying to solve the shared library, dynamic fonts thing.

I have a shared library with some fonts contained in MovieClips.
Everything has instance names. Everything is set with linkage
identifiers and set to export.

In my other FLA I bring the shared library in and access the text
format of the text brought in.
I then create a text field dynamically and try to set the format
gained earlier onto the new field.

But guess what - it does not work.

Any ideas?

(It works if you use the shared library 'properly' eg using File
Import  Open External Library,
but I do not want to do that - I only want to bring in the fonts as
and when required.)

The text has the rough format apart from the font is incorrect. =(

Here's my code. (I've left in all my other attempts)

I've tried to embed and not to embed

Regards

Steve


/// CODE //


// import a .swf containing movie clips with dynamic text fields in
them with embedded fonts
// the mcs in the Library are set to have;
//  - linkage identifiers
// - export for runtime sharing selected
// - export in first frame seleced



// BASIC LOADING OF EXTERNAL .swf FONT CONTAINING FILE /
var container:MovieClip = createEmptyMovieClip(container,

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:
 class GameoverPanel extends UserInteractionPanel {
public function GameoverPanel(controller:PanelController, panelObj:Object) {
// Call the super() constructor passing it the panel object.
super(controller, panelObj);

// Populate the panel contents.
this.populatePanel();
}
}
 Any other ideas? I seem unable to ever create a project involving AS2
classes without getting syntax errors when error checking. These often don't
stop the classes compiling and the application running properly, but they're
a pain.
 Cheers
Tim

 On 11/17/05, Gregory_GOusable [EMAIL PROTECTED] wrote:


 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.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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.showText(hello from uipanel);//uses function from extended class

// Populate the panel contents.
populatePanel();
super.populatePanel();//uses function from extended class
}
public function populatePanel(){
trace(populated from gameoverpanel);
}
public function test(){
trace(hello);
}



class PanelController{

}



class UserInteractionPanel{
function UserInteractionPanel(cont:Object,panObj:Object){
trace(UIP constructor called);
}
function showText(sText){
trace(show text uip:+sText);
}
function populatePanel(){
trace(populated from uipanel);
}
}


All I can think of is that there may be an error prior to the 'super'
one that flash is airbrushing.

Also try using :
super.constructor.apply(this, arguments);
for the constructor instead.

Neil



On 11/17/05, Tim Stickland [EMAIL PROTECTED] wrote:
 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:
  class GameoverPanel extends UserInteractionPanel {
 public function GameoverPanel(controller:PanelController, panelObj:Object) {
 // Call the super() constructor passing it the panel object.
 super(controller, panelObj);

 // Populate the panel contents.
 this.populatePanel();
 }
 }
  Any other ideas? I seem unable to ever create a project involving AS2
 classes without getting syntax errors when error checking. These often don't
 stop the classes compiling and the application running properly, but they're
 a pain.
  Cheers
 Tim

  On 11/17/05, Gregory_GOusable [EMAIL PROTECTED] wrote:
 
 
  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.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
www.neilhighley.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
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://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


-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
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://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/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 anyone suggest whether it is possible or not?

 

Regards,

Dhiraj.

 

 

Dhiraj Girdhar

Taurus RD

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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, gambling for games of skill - I
assume Backgammon would come under the latter).

I know that to get one of those licenses in the UK (for interactive TV
gaming, which is why I'm being a bit woolly about the website thing) we
needed to buy a much better random number generator. In fact - a hardware
random number generator, with certification that we could show the
authorities.

This Wikipedia entry explains about hardware generators:
http://en.wikipedia.org/wiki/Hardware_random_number_generator

If your game isn't pay-to-play, I _think_ you'd be in the clear and could
use whatever randomness your client was happy with; as essentially your
client would be giving away stuff for free. If it is pay to play, you need
to check it all out with the lawyers, I'm afraid.

Hope that's helpful,
Ian


On 11/17/05, Dimitrios Bendilas [EMAIL PROTECTED] wrote:

 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 the data, so I don't know if that's true)

 I know that Math.random() is not the best random generator
 in the world. I also know that a computer can never produce
 *really* random numbers.

 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?


 Thank you
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 the data first - or record your own. There are plenty of 
tests you can make on frequencies and distribution: it's reasonably easy to 
work out what these should be for, say, 1000 numbers. Psychology plays a 
part here, and people tend to expect fewer clumps than they get.



I know that Math.random() is not the best random generator

in the world. I also know that a computer can never produce
*really* random numbers.

Actually, there are a few places where you can get genuinely random numbers, 
created from quantum events or noise in the world. Try 
http://www.random.org/, for example.



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?

If it's connected to prizes, I wouldn't use random() directly (you'd be 
amazed how seriously people can take this kind of thing). You might want to 
try using bitmapData.noise or bitmapData.perlinNoise as a source of random 
data - you can even use some number like the time of a mousedown event as 
the random seed. I don't think Flash has any way to change the seed for the 
Math.random method.


Danny 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 anyone suggest whether it is possible or not?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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/

System requirements:
OS: Mac OS X 10.4 or later
Memory: 512 MB of RAM or more
Display: 1024 x 768 or lager

We have a plan to port this product to Windows. Currently few Flash
movies has registered in F-ab. Please register your Flash movies to F-
ab. Registration is free.

Best regards,

Jiro Harada
[EMAIL PROTECTED]

Ronri Kobo, Inc.
806, 6-24-2, Nishi-Gotanda, Shinagawa-ku
Tokyo, 141-0031 Japan
IP Phone/Fax. +81 50 3346 0007
[EMAIL PROTECTED]
http://www.ronri-kobo.com/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 always complain about dice rolls even if you use real dice.
Do they have a specific complaint about the rolls - never getting any 
doubles - too many doubles - too many double-sixes,

no rolls with 5 in them, always the same sequence of rolls??

If the complaint is that their opponent is always getting better rolls, 
you can fiddle with Math.random until you die of boredom and not fix the 
problem.


What is the suspected or reported problem?
Play a few games and record all of the rolls, put them in a spreadsheet 
and do some simple tests.
A basic statistics book will tell you how to test the randomness. 
Looking for patterns is harder but if the players claim that there are 
repeated sequences, you should see them pretty easily.


Ron

Ian Thomas wrote:


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, gambling for games of skill - I
assume Backgammon would come under the latter).

I know that to get one of those licenses in the UK (for interactive TV
gaming, which is why I'm being a bit woolly about the website thing) we
needed to buy a much better random number generator. In fact - a hardware
random number generator, with certification that we could show the
authorities.

This Wikipedia entry explains about hardware generators:
http://en.wikipedia.org/wiki/Hardware_random_number_generator

If your game isn't pay-to-play, I _think_ you'd be in the clear and could
use whatever randomness your client was happy with; as essentially your
client would be giving away stuff for free. If it is pay to play, you need
to check it all out with the lawyers, I'm afraid.

Hope that's helpful,
Ian


On 11/17/05, Dimitrios Bendilas [EMAIL PROTECTED] wrote:
 


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 the data, so I don't know if that's true)

I know that Math.random() is not the best random generator
in the world. I also know that a computer can never produce
*really* random numbers.

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?


Thank you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 the begining of the video.  You'd also need some
at the end for Buffer.Empty.  Also - if a buffer underrun occurs
during playback - you need extra conditionals for that.

On 11/16/05, John Giotta [EMAIL PROTECTED] wrote:
 Here is the sequence for Flash Player 8:
 NetStream.Play.Reset
 NetStream.Play.Start
 NetStream.Buffer.Full
 NetStream.Play.Stop
 NetStream.Buffer.Flush
 NetStream.Buffer.Empty

 And sequence for Flash Player 7:
 NetStream.Play.Reset
 NetStream.Play.Start
 NetStream.Buffer.Full
 NetStream.Play.Stop
 NetStream.Buffer.Empty

 Excerpt from LiveDocs:
 NetStream.Buffer.Empty - Data is not being received quickly enough to
 fill the buffer. Data flow will be interrupted until the buffer
 refills, at which time a NetStream.Buffer.Full message will be sent
 and the stream will begin playing again.

 From what LiveDocs says it's not a reliable event.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 frame 1
 theDropDownMenu.addEventListener(change, dropObj);
 var dropObj:Object = new Object();
 dropObj.change = function(eventObject:Object) {
 trace(X);
 }

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-
Lanny McNie
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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.


//  videoMC is mc in library containing Video_Obect with  
instance my_video
this.attachMovie(videoMC, video_mc, this.getNextHighestDepth 
());

// Create a NetConnection object
 var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
// Attach the NetStream video feed to the Video object
video_mc.my_video.attachVideo(my_ns);
// Begin playing the FLV file
 my_ns.play(target);

I can hear the video playing, but it is not visible.. strange
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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() rather than this.method(). I wasn't
aware you could do that, but it certainly makes reading the code more
straightforward.
 Thanks!


 On 11/17/05, NEILHIGHLEY.COM http://NEILHIGHLEY.COM 
[EMAIL PROTECTED] wrote:


 All I can think of is that there may be an error prior to the 'super'
 one that flash is airbrushing.

 Also try using :
 super.constructor.apply(this, arguments);
 for the constructor instead.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
 straightforward.


Not just more readable - consider the case where you're overriding
something:

class A
{
public function doSomething()
{
trace(Something in A);
}
}

class B extends A
{
public function doSomething()
{
super.doSomething();
trace(Something in B);
}
}

In this situation, using super.method() lets you call the parent
implementation of the method you're currently in. If you were limited to
this.method(), then you'd be trapped in an infinitely recursive loop as the
method kept calling itself...

In fact to do exactly this is normally the only time you'd use super.method().
If you're calling super.doSomethingElse() from your doSomething() function,
something is probably wrong with your OOP design...

Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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:


authors
  author id=1 name=author 1
 books
book id=1 title=book 1 year=1999
   chapters
  chapter id =1 title=how to... number=1 /
  ...more chapters here
   /chapters
/book
 ...more books here
 /books
  /author
  ...more authors here
/authors

I need this data to be available for 3 seperate DataGrids that need 
arrays with rows having the following columns:

Authors:   ['id','name','book_count','chapter_count']
Books: ['id','title','year','chapter_count']
Chapters: ['author_id','author_name','book_id','book 
title','book_year','chapter_id','chapter_number','chapter_title']


For extra credit: The Authors and Books DataGrid will be used to filter 
the Chapters DataGrid.  Eventually there will also need to be a text 
search function, and the 'book_count' and 'chapter_count' columns will 
need update to reflect the filtered amounts.


I've been trying to work with components on the stage, the component 
inspector, and external .as classes to manipulate the data, but I've had 
no success so far.  Does anyone have ideas to accomplish this type of 
data manipulation?  Also, are their any good sites out there with 
examples of working with complex data sets like this?


Thanks,
Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Walters wrote:


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/flashcoders

 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 still broken.

- Original Message - 
From: Arian Pasquali [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, November 17, 2005 6:35 AM
Subject: [Flashcoders] re: Flash Player 8 (and 8.5) ActiveX - does 
notwork


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 perfectly???

it seams that firefox and IE doesn´t use the same bridge to the flash
player!
take a look:
Firefox - NPSWF32.dll - c:\program files\Mozilla Firefox\plugins
IE - flash85.ocx - c:\windows\system32\macromed\flash

So I install Flash Player 8.5 and unregister the flash85.ocx and I
register again the flash.ocx the IE stop to work correctly, but firefox
continues working perfectly with flash player 8.5 and my programs that I had
been use flash.ocx (flash player 7) works fine again.

than that´s what I conclude:
* IE plugin use directly the same ActiveX controler that I had use on my
programs.
* Firefox plugin works with a encapsulate Flash ActiveX in a DLL.


Question: Can I make this like Firefox??? Encapsulate the flash.ocx in my
own DLL??
What do you sugest??



Date: Wed, 16 Nov 2005 13:57:45 -0500
From: JesterXL [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Flash Player 8 ActiveX - does not work
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

Have you installed the Flash Player 8.5?

- Original Message -
From: Arian Pasquali [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 16, 2005 1:50 PM
Subject: [Flashcoders] Flash Player 8 ActiveX - does not work


hi guys,

i´m a brazilian , and i ask patiente with my strengthenn english.

so..
Someone knows about flash activeX???

i´m flash , vb , progress 4gl and java devoloper.


I had already maked few works integrating Flash with other programming
languages using Flash ActiveX Controler.
I wrote my programs using Flash MX 2004 and the flash.ocx controler. so
enverything works fine, but when Macromedia released the new version of
flash player the controler does not work anymore!
All my programs are not working since I updated the flash players.

I had tried with a lot of diferents plataforms like Delphi , Microsoft VB
Studio, Progress Appbuilder... and nothing, all of them are not been able to
instaciate Flash Active.
When I added the Flash component onto a VB form, VB crashed giving a memory
reference error.

If I uninstall the Flash Player 8 and reinstall the Flash Player 7 (mx 2004)
everything works again.

I just wann know what´s going on with macromedia

They simply changes the cotroller fogeting about everything the devolopers
thar wrote programs on older versions of flash player

the system can not simply crash!!! it´s nonsense!

someone has any idea??
what´s may I do to fix this?

thaks,

--
by Arian Rodrigo Pasquali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 have to find the .aso files (somewhere in
macromedia directory of userdir - dont know the correct path) which are the
precompiled classes. delete it and recompile your football.swf

so you dont have to made your class-name-change-dance


hope this helps
tobias

ps: sorry about my bad english :)


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Kris Hadlock
 Sent: Thursday, November 17, 2005 7:22 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Cached Class instance
 
 
 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 annoying bug in Flash 8.
 
 It's difficult to accurately re-create but it's realy 
 starting to p**s me off.
 
 I'm creating an app that has a base Application class that 
 loads .swfs into a movie clip instance. Each of these swfs 
 have bunch of stuff it, some of which talk back to the base 
 app class. Nothing new there.
 
 However, lets say on of these .swfs loaded in has an instance 
 of a class, lets call it football. I code a bunch of stuff 
 for this class compile it into the swf, and all works. Then I 
 test loading this football.swf into my base app. It all works 
 fine there also.
 
 So I carry on making a bunch of changes to my football swf, 
 mostly code but some visual changes. I re compile the 
 football .swf, and local I see all the changes. I load it 
 into the base app swf and all works ok.
 
 Lets say I have several rounds of this. Change  Test  
 Change  Test etc etc.
 
 Ok you get the picture.
 
 No at some point, and it's completely in consistent when it 
 occurs, the base app decides it's going to ignore any CODE 
 changes you make to your football class. It just stubbornly 
 ignores any change you make. If I test the football.swf 
 locally, the code changes are displayed and all works. It's 
 just when loaded into the base app it falls over. 
 
 And here's 2 crazy things - I know it is DEFINITELY NOT 
 cacheing the swf as any visual changes in the football.swf 
 are reflected in the swf that's loaded into the app. It's 
 only code that is ignored.
 
 More interestingly, if I go - SOD THIS FOR A LAUGH - a 
 re-code the class verbatim - with a new class name (not 
 instance name but Class name) the new code changes work when 
 loaded into the base app. Truly very weird. And it gets 
 weirder. This has been occurring ALL day - so I've been 
 through about 6 rounds of class name changes - and I've run 
 out of suitable names. So I go back to the ORIGINAL class 
 name, and hey presto
 - code that must be 4 hours suddenly appears when running the 
 base app.
 
 Ok - so I've tried the following.
 
 Re-starting Flash ... Makes dito of a difference
 Copying the Files to a local drive (I recall hearing a 
 problem compiling over a networked drive) Renaming the FLA's
 
 About the only thing I haven't done is restart my machine - 
 but it just aint practical to do that every 40 mins or so.
 
 So question.
 
 Has anybody else seen this behavior before?
 Have I inadverntaly pressed some inadvertently key combination
 (CTRL-SHIFT-ALT-Q-W-E-R-T-Y) that triggers a cache option in 
 the compiler ?
 
 This is a Win2k box - with buckets of ram.
 
 
 Frustradedly
 Pete
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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)

Here's a quick look at a SoundLoop class (beware severely untested and prone
to being written better.. ;) 



class com.bouncedigital.SoundLoop extends Sound
{
private var __secOffset:Number
private var __loops:Number
private var __loopsElapsed:Number = 0

public function SoundLoop(arg)
{
}   
public function start(secOffset, loops)
{
if (__loopsElapsed == 0)
{
__secOffset = secOffset
__loops = loops
__loopsElapsed = 0
}
super.start(__secOffset,1)
}   
private function onSoundComplete()
{
__loopsElapsed ++
onLoopComplete()  
trace(loopsElapsed:  + __loopsElapsed)
if (__loopsElapsed = __loops) 
{
start(0,1)
} else 
{
__loopsElapsed = 0
onAllLoopsComplete()
}   
}   
public function onLoopComplete()
{

}
public function onAllLoopsComplete()
{

}   
}

--
In fla...

import com.bouncedigital.SoundLoop

var mySoundLoop = new SoundLoop(this)

mySoundLoop.attachSound(__bass_lib)
mySoundLoop.start(0,3);

mySoundLoop.onLoopComplete = function ()
{
trace(loopcomplete)
}

mySoundLoop.onAllLoopsComplete = function ()
{
trace(allloopscomplete)
}


HTH

C



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tobias
Fendel [Die ActionScripter]
Sent: 17 November 2005 18:50
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] onLoop event for sound


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) before the next frame events calls your check.


greetings
tobias

ps: sorry about my bad english :)

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Alain Rousseau
 Sent: Thursday, November 17, 2005 7:17 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoop event for sound
 
 
 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 Walters wrote:
 
 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/flashcoders
 
   
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Of Marco van
der Laan
Sent: Thursday, November 17, 2005 11:41 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] XMLConnector to DataSets Question

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. Looked nice
to me. 

2. Try finding other XML - Object things

3. Write your own XML parser. Not to hard to do actually, just a lot of
testwork :)

Goodluck with it,

Marco



-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Jeff
Verzonden: donderdag 17 november 2005 18:26
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: [Flashcoders] XMLConnector to DataSets Question

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:

authors
   author id=1 name=author 1
  books
 book id=1 title=book 1 year=1999
chapters
   chapter id =1 title=how to... number=1 /
   ...more chapters here
/chapters
 /book
  ...more books here
  /books
   /author
   ...more authors here
/authors

I need this data to be available for 3 seperate DataGrids that need arrays
with rows having the following columns:
Authors:   ['id','name','book_count','chapter_count']
Books: ['id','title','year','chapter_count']
Chapters: ['author_id','author_name','book_id','book
title','book_year','chapter_id','chapter_number','chapter_title']

For extra credit: The Authors and Books DataGrid will be used to filter the
Chapters DataGrid.  Eventually there will also need to be a text search
function, and the 'book_count' and 'chapter_count' columns will need update
to reflect the filtered amounts.

I've been trying to work with components on the stage, the component
inspector, and external .as classes to manipulate the data, but I've had no
success so far.  Does anyone have ideas to accomplish this type of data
manipulation?  Also, are their any good sites out there with examples of
working with complex data sets like this?

Thanks,
Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 tiny pause that doesn't seem to be there
when it loops on its own ... basically I wanted to see what ideas
everyone would come up with, and it seems like I'm on the right track.

Thanks a lot,

- markW

On 11/17/05, Chris Wilcox [EMAIL PROTECTED] wrote:
 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)

 Here's a quick look at a SoundLoop class (beware severely untested and prone
 to being written better.. ;)

 

 class com.bouncedigital.SoundLoop extends Sound
 {
 private var __secOffset:Number
 private var __loops:Number
 private var __loopsElapsed:Number = 0

 public function SoundLoop(arg)
 {
 }
 public function start(secOffset, loops)
 {
 if (__loopsElapsed == 0)
 {
 __secOffset = secOffset
 __loops = loops
 __loopsElapsed = 0
 }
 super.start(__secOffset,1)
 }
 private function onSoundComplete()
 {
 __loopsElapsed ++
 onLoopComplete()
 trace(loopsElapsed:  + __loopsElapsed)
 if (__loopsElapsed = __loops)
 {
 start(0,1)
 } else
 {
 __loopsElapsed = 0
 onAllLoopsComplete()
 }
 }
 public function onLoopComplete()
 {

 }
 public function onAllLoopsComplete()
 {

 }
 }

 --
 In fla...

 import com.bouncedigital.SoundLoop

 var mySoundLoop = new SoundLoop(this)

 mySoundLoop.attachSound(__bass_lib)
 mySoundLoop.start(0,3);

 mySoundLoop.onLoopComplete = function ()
 {
 trace(loopcomplete)
 }

 mySoundLoop.onAllLoopsComplete = function ()
 {
 trace(allloopscomplete)
 }


 HTH

 C



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Tobias
 Fendel [Die ActionScripter]
 Sent: 17 November 2005 18:50
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] onLoop event for sound


 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) before the next frame events calls your check.


 greetings
 tobias

 ps: sorry about my bad english :)

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Alain Rousseau
  Sent: Thursday, November 17, 2005 7:17 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] onLoop event for sound
 
 
  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 Walters wrote:
 
  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/flashcoders
  
  
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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:

form method=POST action=_vti_bin/shtml.exe/contact_us.htm 
onSubmit= webbot-action=--WEBBOT-SELF--


So far, I'm using this from Flash (also tried it without the domain path):
//
btnSubmit.onRelease = function() {
	loadVariablesNum(http://www.clientDomain.com/_vti_bin/shtml.exe/contact_us.htm;, 
0, POST);

};
//

but that's not doing it, even when I try to send all variable 
declarations I can find on the html page. There are some checksum 
values being passed and I'm not sure if that's throwing everything 
off. Also not sure how to declare something like webbot-action in 
AS, which doesn't like the hyphen (I tried this[webbot-action]).


Anybody see what I'm doing wrong here, or willing to look at the html 
page to help me? I'm pretty blind when it comes to non-ActionScript 
programming.


thanks,
Marc


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 );
this.start(0,1)
}
mySound.start(0, 1);

but the second part of my answer was correct. if you use something like
that:

mySound.start(0, 100);
this.onEnterFrame   = function() { 
trace(mySound.position+/+mySound.duration);
if(mySound.position==mySound.duration) trace( loop );
}

you will see the second trace is not fired :(
the first script is working, but i think this is not good for real
background loops because of the little break you can hear. so you have to
try to syncronize framerate and loop length.


greetings
tobias


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Chris Wilcox
 Sent: Thursday, November 17, 2005 8:26 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] onLoop event for sound
 
 
 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)
 
 Here's a quick look at a SoundLoop class (beware severely 
 untested and prone to being written better.. ;) 
 
 --
 --
 
 class com.bouncedigital.SoundLoop extends Sound
 {
   private var __secOffset:Number
   private var __loops:Number
   private var __loopsElapsed:Number = 0
 
   public function SoundLoop(arg)
   {
   }   
   public function start(secOffset, loops)
   {
   if (__loopsElapsed == 0)
   {
   __secOffset = secOffset
   __loops = loops
   __loopsElapsed = 0
   }
   super.start(__secOffset,1)
   }   
   private function onSoundComplete()
   {
   __loopsElapsed ++
   onLoopComplete()  
   trace(loopsElapsed:  + __loopsElapsed)
   if (__loopsElapsed = __loops) 
   {
   start(0,1)
   } else 
   {
   __loopsElapsed = 0
   onAllLoopsComplete()
   }   
   }   
   public function onLoopComplete()
   {
   
   }
   public function onAllLoopsComplete()
   {
   
   }   
 }
 
 --
 In fla...
 
 import com.bouncedigital.SoundLoop
 
 var mySoundLoop = new SoundLoop(this)
 
 mySoundLoop.attachSound(__bass_lib)
 mySoundLoop.start(0,3);
 
 mySoundLoop.onLoopComplete = function ()
 {
   trace(loopcomplete)
 }
 
 mySoundLoop.onAllLoopsComplete = function ()
 {
   trace(allloopscomplete)
 }
 
 
 HTH
 
 C
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Tobias Fendel [Die ActionScripter]
 Sent: 17 November 2005 18:50
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] onLoop event for sound
 
 
 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) before the next frame events calls your check.
 
 
 greetings
 tobias
 
 ps: sorry about my bad english :)
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf 
  Of Alain Rousseau
  Sent: Thursday, November 17, 2005 7:17 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] onLoop event for sound
  
  
  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 Walters wrote:
  
  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/flashcoders
  

  
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
 
 ___
 

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.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) before the next frame events calls your check.


greetings
tobias

ps: sorry about my bad english :)

 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Alain Rousseau

Sent: Thursday, November 17, 2005 7:17 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] onLoop event for sound


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 Walters wrote:

   

 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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: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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 if fscommand works on Mac ?)

Thanks a lot
Tony

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 you know if fscommand works on Mac ?)

Thanks a lot
Tony

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
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 AS 1.0 version as a stand-alone example of
our problem. (you'll note that the setInterval() and
clearInterval() calls are commented to prove that they are not the
problem)

The FLA file with the code (below) can be downloaded at:
http://www.leifwells.com/zip/dg_problem.zip

THE PROBLEM: when you roll over the text in the cell a itemRollOut
event is getting fired a itemRollOver is also fired -- that's when
the cursor changes to the i-beam cursor.

For instance, if you test the FLA file and you move your cursor over
the area to the right of the price column, you'll see the tool tip
pop up just fine. But then try moving your cursor over the price or
the name. Keep moving it across the text. What a mess!

If anyone has experience with this issue or has issues with the way
that we are trying to accomplish this, feel free to shout.

//code
dataGrid_dg.setSize(300, 100);
dataGrid_dg.move(5, 5);

trace_ta.setSize(300, 200);
trace_ta.move(5, 110);

clear_pb.move(5, 320);

var clickListener:Object = new Object();
clickListener.click = function()
{
trace_ta.text = ;
}
clear_pb.addEventListener(click, clickListener);

var dgNameColumn:mx.controls.gridclasses.DataGridColumn= new
mx.controls.gridclasses.DataGridColumn(name);
dataGrid_dg.addColumn(dgNameColumn);

var dgPriceColumn:mx.controls.gridclasses.DataGridColumn = new
mx.controls.gridclasses.DataGridColumn(price);
dataGrid_dg.addColumn(dgPriceColumn);

dataGrid_dg.getColumnAt(0).width = 200;
dataGrid_dg.getColumnAt(1).width = 100;

dp = new Array();
for(var i:Number = 0; i 25; i++){
//_root.dp.push({name: MM, price: $9.99})
dp.addItem({name: i +  M M M M M M M M M M M M M M M M M M M,
price: $9.99});
}

dataGrid_dg.dataProvider = dp;

var rowRollOver = new Object();
rowRollOver.itemRollOver = function(event_obj:Object)
{
//clearInterval(_root.toolTipInterval);
var name:String = event_obj.target.getItemAt(event_obj.index).name;
traceText(itemRollOver: name:  + name);
if(name != undefined){
trace(rollOver);

var xvar:Number = event_obj.target._x + 10;
var yvar:Number = event_obj.target._y + ((event_obj.index + 1) 
* 20);

var tt_fmt:TextFormat = new TextFormat();
tt_fmt.font = Arial

if(!_root.toolTip_tf){
_root.createTextField(toolTip_tf, 1, xvar, yvar, 
20, 20);
toolTip_tf = _root.toolTip_tf;

toolTip_tf.border = true;
toolTip_tf.background = true;
toolTip_tf.backgroundColor = 0xF9FCEC;
toolTip_tf.autoSize = true;

}else{
toolTip_tf._x = xvar;
toolTip_tf._y = yvar;   
}
toolTip_tf.text = name;
//toolTip_tf.embedFonts = true;

toolTip_tf.setTextFormat(tt_fmt);

toolTip_tf._visible = false;

showToolTip(_root.toolTip_tf);
//_root.toolTipInterval = setInterval(showToolTip, 2000, 
_root.toolTip_tf);
}
}

dataGrid_dg.addEventListener(itemRollOver, rowRollOver);

rowRollOut = new Object();
rowRollOut.itemRollOut = function(event_obj:Object)
{
var name:String = event_obj.target.getItemAt(event_obj.index).name;
if(name != undefined){
traceText(rollOUT:  +
event_obj.target.getItemAt(event_obj.index).getName());
removeToolTip();
}else{
//clearInterval(_root.toolTipInterval);
}
}

dataGrid_dg.addEventListener(itemRollOut, rowRollOut);


function showToolTip(tt)
{
traceText(showing ToolTip);
tt._visible = true
//clearInterval(_root.toolTipInterval);
}

function removeToolTip()
{
traceText(removing ToolTip);
toolTip_tf._y = -100;
toolTip_tf.text = ;
toolTip_tf._visible = false;
//destroyObject(toolTip_tf);
}

function traceText(str:String)
{
trace_ta.text += \r + str;
trace_ta.vPosition = trace_ta.maxVPosition;
trace(str);
}

stop();
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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] 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 random positions.

Any suggestions?

---

Application class:

[code]

import com.application.StreamedSound;
import com.application.Logo;

class com.application.Application {

private var _mcRoot:MovieClip;


function Application(mcRoot:MovieClip){

_mcRoot = mcRoot;

createLogo();
createSound();

}

private function createLogo():Void{
new Logo(_mcRoot.mcLogo);
}

private function createSound():Void{

var streamedsoundTest:StreamedSound = new StreamedSound(_mcRoot);

}
}

[/code]

---

StreamedSound class:

[code]

class com.application.StreamedSound {

private var _mcRoot:MovieClip;

private var _soundTest:Sound;

function StreamedSound(mcRoot:MovieClip){

_mcRoot = mcRoot;

loadSound();
}

private function loadSound():Void{

var mcSoundContainer:MovieClip =
_mcRoot.createEmptyMovieClip(mcSoundContainer,10);

_soundTest = new Sound();

_soundTest.loadSound(media/mp3/test.mp3,true);

}
}

[/code]

---

Logo class:

[code]

import com.movement.tween.easing.*;
import com.movement.tween.Tween;

class com.application.Logo {

// instance properties
private var _mcLogo:MovieClip;

function Logo(mcLogo:MovieClip){

_mcLogo = mcLogo;

createLoadingTween();
}

private function createLoadingTween():Void{

var objLoadingListener:Object = new Object();
objLoadingListener.onMotionFinished = function():Void{
tweenLoading.yoyo();
}

var tweenLoading:Tween = new
Tween(_mcLogo,_alpha,Quad.easeInOut,45,10,20);
tweenLoading.addEventListener(onMotionFinished,objLoadingListener);

}

}

[/code]


Thanks.
Tony
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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, doubt 
it's too different).  Then, if some component has added itself to be a 
Tooltip listener, and the LowLevelEvents knows it's over that particaular 
component, it can show the tooltip.

The only issue I could see with this is that in Flex, they use onMouseMove, 
which is CPU intensive.  Secondly, they actually use mixins with UIComponent 
to it has a tooltip property, whereas you may have to use a mixin or some 
other base class.

Just ideas.

- Original Message - 
From: Leif Wells [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, November 17, 2005 3:17 PM
Subject: [Flashcoders] Tool Tip with Flash MX 2004 DataGrid


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 AS 1.0 version as a stand-alone example of
our problem. (you'll note that the setInterval() and
clearInterval() calls are commented to prove that they are not the
problem)

The FLA file with the code (below) can be downloaded at:
http://www.leifwells.com/zip/dg_problem.zip

THE PROBLEM: when you roll over the text in the cell a itemRollOut
event is getting fired a itemRollOver is also fired -- that's when
the cursor changes to the i-beam cursor.

For instance, if you test the FLA file and you move your cursor over
the area to the right of the price column, you'll see the tool tip
pop up just fine. But then try moving your cursor over the price or
the name. Keep moving it across the text. What a mess!

If anyone has experience with this issue or has issues with the way
that we are trying to accomplish this, feel free to shout.

//code
dataGrid_dg.setSize(300, 100);
dataGrid_dg.move(5, 5);

trace_ta.setSize(300, 200);
trace_ta.move(5, 110);

clear_pb.move(5, 320);

var clickListener:Object = new Object();
clickListener.click = function()
{
trace_ta.text = ;
}
clear_pb.addEventListener(click, clickListener);

var dgNameColumn:mx.controls.gridclasses.DataGridColumn= new
mx.controls.gridclasses.DataGridColumn(name);
dataGrid_dg.addColumn(dgNameColumn);

var dgPriceColumn:mx.controls.gridclasses.DataGridColumn = new
mx.controls.gridclasses.DataGridColumn(price);
dataGrid_dg.addColumn(dgPriceColumn);

dataGrid_dg.getColumnAt(0).width = 200;
dataGrid_dg.getColumnAt(1).width = 100;

dp = new Array();
for(var i:Number = 0; i 25; i++){
//_root.dp.push({name: MM, price: $9.99})
dp.addItem({name: i +  M M M M M M M M M M M M M M M M M M M,
price: $9.99});
}

dataGrid_dg.dataProvider = dp;

var rowRollOver = new Object();
rowRollOver.itemRollOver = function(event_obj:Object)
{
//clearInterval(_root.toolTipInterval);
var name:String = event_obj.target.getItemAt(event_obj.index).name;
traceText(itemRollOver: name:  + name);
if(name != undefined){
trace(rollOver);

var xvar:Number = event_obj.target._x + 10;
var yvar:Number = event_obj.target._y + ((event_obj.index + 1) * 20);

var tt_fmt:TextFormat = new TextFormat();
tt_fmt.font = Arial

if(!_root.toolTip_tf){
_root.createTextField(toolTip_tf, 1, xvar, yvar, 20, 20);
toolTip_tf = _root.toolTip_tf;

toolTip_tf.border = true;
toolTip_tf.background = true;
toolTip_tf.backgroundColor = 0xF9FCEC;
toolTip_tf.autoSize = true;

}else{
toolTip_tf._x = xvar;
toolTip_tf._y = yvar;
}
toolTip_tf.text = name;
//toolTip_tf.embedFonts = true;

toolTip_tf.setTextFormat(tt_fmt);

toolTip_tf._visible = false;

showToolTip(_root.toolTip_tf);
//_root.toolTipInterval = setInterval(showToolTip, 2000, _root.toolTip_tf);
}
}

dataGrid_dg.addEventListener(itemRollOver, rowRollOver);

rowRollOut = new Object();
rowRollOut.itemRollOut = function(event_obj:Object)
{
var name:String = event_obj.target.getItemAt(event_obj.index).name;
if(name != undefined){
traceText(rollOUT:  +
event_obj.target.getItemAt(event_obj.index).getName());
removeToolTip();
}else{
//clearInterval(_root.toolTipInterval);
}
}

dataGrid_dg.addEventListener(itemRollOut, rowRollOut);


function showToolTip(tt)
{
traceText(showing ToolTip);
tt._visible = true
//clearInterval(_root.toolTipInterval);
}

function removeToolTip()
{
traceText(removing ToolTip);
toolTip_tf._y = -100;
toolTip_tf.text = ;
toolTip_tf._visible = false;
//destroyObject(toolTip_tf);
}

function traceText(str:String)
{
trace_ta.text += \r + str;
trace_ta.vPosition = trace_ta.maxVPosition;
trace(str);
}

stop();
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


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 case. Your 
client could be easily replaced by a version of your client that lets 
the player chose his own rolls which makes Backgammon not fun for the 
opponent but a really lucrative way to pass an afternoon for the guy 
choosing his rolls. You probably only need to chose 3 or 4 rolls 
during a game to win almost every time. (An interesting test on a real 
board for someone with time to kill and a friend who does not mind 
losing.)


Ron


Actually, part of the roll work can be done client-side. The issue is 
with the seed to any particular random number generator. One needs a 
secure hash of two generated keys from the server, then using a 
client-side random number algorithm with this key as the state input, 
this is completely possible.


Check out my conversion of the mersenne twister algorithm for things 
like this (minus the crypto part with a server). The secure hash part 
is fairly easy to implement. Aside to this thread - never use 
Math.random() because it's inherently insecure.


http://magicsnacks.com/shiftedpixels/?p=8


Jon Bradley
Visual Effects / Interactive / Animation
Post Central, Inc.
[EMAIL PROTECTED]

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 out new release. Changes to touch ToolTip class too.
Better wait changes;)

*  This example works 

?xml version=1.0?
mx:Application
mx:DataGrid toolTip='message' width=285 height=196 
   mx:dataProvider
Array
item second='World' first='Hello' /
item second='World' first='Hello' /
/Array
   /mx:dataProvider 
/mx:DataGrid 
/mx:Application

**

-- 
Best regards,
Igormailto:[EMAIL PROTECTED]



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 about hacking the random number generator since if you 
want a double five it is going to be easier to specify that than to go 
to the trouble of specifying a random number that is going to generate a 
double six roll.


I think that you want all play that should not be under control of the 
player to be done on the server. That way, there is no chance of a rogue 
client beating the system.


Ron


Jon Bradley wrote:


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 case. Your 
client could be easily replaced by a version of your client that lets 
the player chose his own rolls which makes Backgammon not fun for the 
opponent but a really lucrative way to pass an afternoon for the guy 
choosing his rolls. You probably only need to chose 3 or 4 rolls 
during a game to win almost every time. (An interesting test on a 
real board for someone with time to kill and a friend who does not 
mind losing.)


Ron



Actually, part of the roll work can be done client-side. The issue is 
with the seed to any particular random number generator. One needs a 
secure hash of two generated keys from the server, then using a 
client-side random number algorithm with this key as the state input, 
this is completely possible.


Check out my conversion of the mersenne twister algorithm for things 
like this (minus the crypto part with a server). The secure hash part 
is fairly easy to implement. Aside to this thread - never use 
Math.random() because it's inherently insecure.


http://magicsnacks.com/shiftedpixels/?p=8


Jon Bradley
Visual Effects / Interactive / Animation
Post Central, Inc.
[EMAIL PROTECTED]

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 - consider the case where you're overriding
 something:

 class A
 {
 public function doSomething()
 {
 trace(Something in A);
 }
 }

 class B extends A
 {
 public function doSomething()
 {
 super.doSomething();
 trace(Something in B);
 }
 }

 In this situation, using super.method() lets you call the parent
 implementation of the method you're currently in. If you were limited to
 this.method(), then you'd be trapped in an infinitely recursive loop as
 the
 method kept calling itself...

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 generates an error dialog for me when I click on the 'Quitter'
button)

Firefox on the PC
The window won't cover the toolbar, and it also keeps it's status bar
visible on the lower edge, so the height is shorter
the 'Quitter' doesn't work


on the MAC ...

tested: Mozilla, Netscape, Firefox, Opera, Camino, Safari
(didn't use IE - it always crashes on startup on my machine)



'quitter button'
---
The 'Quitter' button does nothing an ALL tested browsers


window size
---
Mozilla, Netscape, Firefox:
All produce a window that is higher than the Available screen (hangs off the
bottom of the screen)
on firefox, the statusbar is still there too - but you can't see it, because
it's offscreen
(the menubar of a mac is always visible)


Camino, Opera, Safari:
All have the window filling the available space.


ALSO
Netscape and Opera, place a 'collapsed' location bar at the top of the
window


Content
--
Opera
The first time the window launched, the flash was displayed
any subsequent launch produced a white screen, with three extended/foreign
character in the top-left
rightclick/reloading the page displays the flash


In all Mac browsers the navigation items on the bottom are at least
partially hidden.
(completely hidden in a couple - visible grey line only)

Firefox on the PC also has the navigation hidden.


Position
--
All ok except Firefox (Mac) which wants to place the window a titlebar's
height from the top on the available space

---


What does it all mean ???
cross platform/browser scripting sucks! yeah, we knew that already :(

maybe it's something as simple as trying to
get the available size versus the screen size
and also the inner widow area rather than the window dimensions



anyway,
maybe this helps, or at least points out that it's not quite right :)



cheers,
glenn







- Original Message - 
From: af a [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, November 18, 2005 6:41 AM
Subject: [Flashcoders] Working in macintosh browser ?


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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 movieclip vs a  movieclip with component 
definition set?  It seems like both  behave like a regular mc anyways...except 
that one you can compile into  SWC.
  
  Another question I have is that component can also be associated with  AS 2 
as well, what's the effects of setting AS2 there alongside with  AS2 in linkage 
property?

David Rorex [EMAIL PROTECTED] wrote:  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;
}

NOTE: Passed in variables will not be availabe until 1 frame after the
component loads (I think), so either don't use them in the
constructor, or put a 1 frame delay.

-David R

On 11/17/05, Boon Chew  wrote:
 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  component in order to pass init 
 params?

   Thanks!


 -
  Yahoo! FareChase - Search multiple travel sites in one click.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-
 Yahoo! FareChase - Search multiple travel sites in one click.  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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.mosessupposes.com/archive/ancient/3d.htm
Moses


On Oct 20, 2005, at 8:46 AM, JesterXL wrote:

I'm looking for some OOd Flash files.  Basically, there was  
this menu
done in Flash that had a shorter stint in fame vs. the scrolling  
boxes one.
It was basically a bunch of lines originating from the center.   
They had
circles on the end of the lines that were clickable buttons.  They  
rotated
in 3D as you moved your mouse, and you had to rotate these buttons  
into the

foreground so you could click them.

Anyone know where I can find this menu with source code?  AS1 is ok!

Thanks if you can help.

--JesterXL

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2005-11-17 Thread JesterXL
Nice!

- Original Message - 
From: Moses Gunesch [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
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 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.mosessupposes.com/archive/ancient/3d.htm
Moses


On Oct 20, 2005, at 8:46 AM, JesterXL wrote:

 I'm looking for some OOd Flash files.  Basically, there was  
 this menu
 done in Flash that had a shorter stint in fame vs. the scrolling  
 boxes one.
 It was basically a bunch of lines originating from the center.   
 They had
 circles on the end of the lines that were clickable buttons.  They  
 rotated
 in 3D as you moved your mouse, and you had to rotate these buttons  
 into the
 foreground so you could click them.

 Anyone know where I can find this menu with source code?  AS1 is ok!

 Thanks if you can help.

 --JesterXL

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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 the 
code I just cut and pasted from MM's livedocs, changing a couple of 
variable names. So I have the .load and .onLoad methods, yet never success 
- always the Styles failed to load message.


Do I have to place styles.css on the web server alongside the scripts which 
feed data to the movie and fetch it from there?


Suggestions and guidance, as always, will be welcome, code fragment is below.

Thanks for looking at this - Miles Thompson



Here's the code, much of it will look familiar ...

var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
var cssURL:String = styles.css;

myCSS.onLoad = function(success:Boolean) {
if (success) {
trace(Styles loaded:);
var styles_array:Array = myCSS.getStyleNames();
trace(styles_array.join(newline));

txtNews.styleSheet = myCSS;
txtHead.styleSheet = myCSS;
} else {
trace(Styles failed to load.);
}
};

myCSS.load(cssURL);


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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;
 text-decoration: none;
}

.headline {
 color: #FF;
 font-family: Arial,Helvetica,sans-serif;
 font-size: 18px;
 font-weight: bold;
 display: block;
}

.byline {
 color: #00;
 font-style: italic;
 font-weight: bold;
 display: inline;
}


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 the code I just cut and pasted from MM's livedocs, changing a 
couple of variable names. So I have the .load and .onLoad methods, yet 
never success - always the Styles failed to load message.


Do I have to place styles.css on the web server alongside the scripts 
which feed data to the movie and fetch it from there?


Suggestions and guidance, as always, will be welcome, code fragment is 
below.


Thanks for looking at this - Miles Thompson



Here's the code, much of it will look familiar ...

var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
var cssURL:String = styles.css;

myCSS.onLoad = function(success:Boolean) {
if (success) {
trace(Styles loaded:);
  var styles_array:Array = myCSS.getStyleNames();
  trace(styles_array.join(newline));
   
txtNews.styleSheet = myCSS;

txtHead.styleSheet = myCSS;
} else {
trace(Styles failed to load.);
}
};

myCSS.load(cssURL);


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 PROTECTED] wrote:

 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
 the
 code I just cut and pasted from MM's livedocs, changing a couple of
 variable names. So I have the .load and .onLoad methods, yet never success
 - always the Styles failed to load message.

 Do I have to place styles.css on the web server alongside the scripts
 which
 feed data to the movie and fetch it from there?

 Suggestions and guidance, as always, will be welcome, code fragment is
 below.

 Thanks for looking at this - Miles Thompson



 Here's the code, much of it will look familiar ...

 var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
 var cssURL:String = styles.css;

 myCSS.onLoad = function(success:Boolean) {
 if (success) {
 trace(Styles loaded:);
 var styles_array:Array = myCSS.getStyleNames();
 trace(styles_array.join(newline));

 txtNews.styleSheet = myCSS;
 txtHead.styleSheet = myCSS;
 } else {
 trace(Styles failed to load.);
 }
 };

 myCSS.load(cssURL);


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
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 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 UltraEdit, and I had only a half-dozen styles to 
check!!


Regards, and thanks again - Miles Thompson

At 10:12 PM 11/17/2005, you wrote:

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;
 text-decoration: none;
}

.headline {
 color: #FF;
 font-family: Arial,Helvetica,sans-serif;
 font-size: 18px;
 font-weight: bold;
 display: block;
}

.byline {
 color: #00;
 font-style: italic;
 font-weight: bold;
 display: inline;
}


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 
the code I just cut and pasted from MM's livedocs, changing a couple of 
variable names. So I have the .load and .onLoad methods, yet never 
success - always the Styles failed to load message.


Do I have to place styles.css on the web server alongside the scripts 
which feed data to the movie and fetch it from there?


Suggestions and guidance, as always, will be welcome, code fragment is below.

Thanks for looking at this - Miles Thompson



Here's the code, much of it will look familiar ...

var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
var cssURL:String = styles.css;

myCSS.onLoad = function(success:Boolean) {
if (success) {
trace(Styles loaded:);
  var styles_array:Array = myCSS.getStyleNames();
  trace(styles_array.join(newline));

txtNews.styleSheet = myCSS;
txtHead.styleSheet = myCSS;
} else {
trace(Styles failed to load.);
}
};

myCSS.load(cssURL);


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
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.

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 UltraEdit, and I had only a 
half-dozen styles to check!!


Regards, and thanks again - Miles Thompson

At 10:12 PM 11/17/2005, you wrote:


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;
 text-decoration: none;
}

.headline {
 color: #FF;
 font-family: Arial,Helvetica,sans-serif;
 font-size: 18px;
 font-weight: bold;
 display: block;
}

.byline {
 color: #00;
 font-style: italic;
 font-weight: bold;
 display: inline;
}


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 the code I just cut and pasted from MM's livedocs, changing a 
couple of variable names. So I have the .load and .onLoad methods, 
yet never success - always the Styles failed to load message.


Do I have to place styles.css on the web server alongside the 
scripts which feed data to the movie and fetch it from there?


Suggestions and guidance, as always, will be welcome, code fragment 
is below.


Thanks for looking at this - Miles Thompson



Here's the code, much of it will look familiar ...

var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
var cssURL:String = styles.css;

myCSS.onLoad = function(success:Boolean) {
if (success) {
trace(Styles loaded:);
  var styles_array:Array = myCSS.getStyleNames();
  trace(styles_array.join(newline));

txtNews.styleSheet = myCSS;
txtHead.styleSheet = myCSS;
} else {
trace(Styles failed to load.);
}
};

myCSS.load(cssURL);


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
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] 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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!

 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 flashcoders@chattyfig.figleaf.com
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

-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!

 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 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 list flashcoders@chattyfig.figleaf.com
  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
 
  -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!
 
  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 mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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:


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!

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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
 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:

  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!
 
  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 mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 http://dev.jessewarden.com/captivate/flashcomponents/-
I think you might need to disable tabbing to the external component
(containing).

Mani

On 11/17/05, Christian Giordano [EMAIL PROTECTED] wrote:

 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 tab the focus goes out from the textfield but there is no
 way to make it come back in another. I presume it is because the
 textfields are inside a UIComponent but since I don't usually work with
 them I can't be sure. I googled around and didn't find anything a part

 http://blog.madebyderek.com/archives/2005/10/20/no_tabbing_for_list_datagrid_and_tree/

 but that doesn't help.


 Does anyone have an idea on how to handle it?


 Thanks a lot, chr
 --
 ___
 { Christian Giordano's site and blog @ http://cgws.nuthinking.com }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Definition instead 
of  the Linkage property?  It seems like Component definition has the  added 
niceties that allows you to set the parameters in the IDE.
  
  - boon

Muzak [EMAIL PROTECTED] wrote: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, avoiding the 1 frame 
delay that otherwise occurs.

Check out the docs for more info on Metadata:
Using Components  Creating Components  Creating the AS class file  Adding 
component metadata

regards,
Muzak


- Original Message - 
From: Boon Chew 
To: Flashcoders mailing list 
Sent: Friday, November 18, 2005 12:41 AM
Subject: Re: [Flashcoders] How to pass init param from movieclip to 
itsassociating AS2 class


 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 movieclip vs 
 a  movieclip with component definition set? It seems like both behave like  a 
 regular mc anyways...except that one you can 
 compile into  SWC.

  Another question I have is that component can also be associated with  AS 2 
 as well, what's the effects of setting AS2 there 
 alongside with  AS2 in linkage property?

 David Rorex  wrote:  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;
 }

 NOTE: Passed in variables will not be availabe until 1 frame after the
 component loads (I think), so either don't use them in the
 constructor, or put a 1 frame delay.

 -David R

 On 11/17/05, Boon Chew  wrote:
 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  component in order to pass init params?

   Thanks!


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-
 Yahoo! FareChase - Search multiple travel sites in one click.  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders