Re: [Flashcoders] advice needed: textformatting or css?

2006-10-26 Thread GregoryN
Hello,

I had similar problem (space below the text) in one project this year. I ended 
up with the
following:
1) Edges of the text field itself are NOT used to show the space.
You just use no borders, bg etc, so no one can say where are textfield
edges :-)
2) To show padding and other space around text additional elements
are used, mainly  mc's. Say, the screen_mc (containing just one
rectangle) is placed below the textfield.

3) When you update the textfield, measure it's size and resize the
screen_mc accordingly.

4) I've used margin/padding settings as attributes in the XML where
the text itself is stored (or transferred).

The designers are quite happy so far :-).

PS.
As to textformat vs. css - it's a matter of taste, IMO. I like CSS
and try to use them whenever possible. However, there's no affordable
(e.g., quite easy) way to build a WYSIWYG editor for css-formatted
text... Therefore, all depends on your task.

  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.

 === grimmwerks wrote:
 
 Ok - I've got this kiosk application I'm building - there's a playback
 and there's a builder. The builder has a lot of textformatting going
 on. Up to now I've been allowing the client to put in their text into
 a textfiled, select a pulldown and it automatically inserts the
 correct textformatting.
 
 However, since I'm saving all this textformatting to an xml file
 embedded in a CDATA file, if there's a problem with the textformat,
 then I'm screwed.
 
 One of the biggest problems that has been pointed out is that there is
 no way of setting more 'space after a paragraph' that you can do in
 photoshop.
 
 I'm starting to think that I should do it all as CSS, so that if i use
 an external CSS file, and put class around the selected/edited text,
 it's not saved with the xml and I can massage it afterwards.
 
 But is it also possible to do a 'space after paragraph' setting in css
 for flash text?
 
 Thanks for any advice; it's at the tail end and this project is way behind.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Audio Recording Feature Through Flash

2006-10-26 Thread Tom Rhodes

i think red5 can probably do it too

Abhijit Malpani wrote:

You will have to use FMS if you want to save the recorded audio, no other
option for you.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Prashant
Patil
Sent: Wednesday, October 25, 2006 7:06 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Audio Recording Feature Through Flash

Hi,

 


I tried using Microphone class to detect Microphone on my machine and it
even worked as described in Help document.

 


But the real concern is to save that voice/Audio on local machine,

I could not store the stream even during runtime. 

 


Will I be able to do it using only flash? Or I will have to use FMS
(Flash Media Server)?

 

 

 


Warm regards,

Prashant Patil

MM Programmer,

www.techbooks.com http://www.techbooks.com/ 

 

 

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread Paul Steven
Looking for information on how to implement a multi-user type game and would
appreciate any links or book recommendations.

Thanks

Paul

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] advice needed: textformatting or css?

2006-10-26 Thread Merrill, Jason
I went through the whole WSIWYG text editor in Flash programming thing
in Flash 8 recently.  I ended up figuring out that using the TextFormat
class is the only really viable/sane way to go.  It works pretty well,
but some things like fighting with the Selection object were a royal
pain.  But it is do-able, I dun it.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of GregoryN
Sent: Thursday, October 26, 2006 2:41 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advice needed: textformatting or css?

Hello,

I had similar problem (space below the text) in one project this year.
I ended up
with the
following:
1) Edges of the text field itself are NOT used to show the space.
You just use no borders, bg etc, so no one can say where are textfield
edges :-)
2) To show padding and other space around text additional elements
are used, mainly  mc's. Say, the screen_mc (containing just one
rectangle) is placed below the textfield.

3) When you update the textfield, measure it's size and resize the
screen_mc accordingly.

4) I've used margin/padding settings as attributes in the XML where
the text itself is stored (or transferred).

The designers are quite happy so far :-).

PS.
As to textformat vs. css - it's a matter of taste, IMO. I like CSS
and try to use them whenever possible. However, there's no affordable
(e.g., quite easy) way to build a WYSIWYG editor for css-formatted
text... Therefore, all depends on your task.



--
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.

 === grimmwerks wrote:

 Ok - I've got this kiosk application I'm building - there's a
playback
 and there's a builder. The builder has a lot of textformatting going
 on. Up to now I've been allowing the client to put in their text
into
 a textfiled, select a pulldown and it automatically inserts the
 correct textformatting.

 However, since I'm saving all this textformatting to an xml file
 embedded in a CDATA file, if there's a problem with the textformat,
 then I'm screwed.

 One of the biggest problems that has been pointed out is that there
is
 no way of setting more 'space after a paragraph' that you can do in
 photoshop.

 I'm starting to think that I should do it all as CSS, so that if i
use
 an external CSS file, and put class around the selected/edited
text,
 it's not saved with the xml and I can massage it afterwards.

 But is it also possible to do a 'space after paragraph' setting in
css
 for flash text?

 Thanks for any advice; it's at the tail end and this project is way
behind.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash video multiple streams...

2006-10-26 Thread Jason Ross
Thanks for this and the detail you go into. The third option is the most
feasible for me at the moment. I have implemented something very similar
based on this and it works great ... though I'm actually using
netstream.close() once the first frame has loaded. I realised that it's
the multiple open netstreams that cause the slow down :)

Thank you.

Jason.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yehia
Shouman
Sent: 26 October 2006 00:33
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash video multiple streams...

If I think of doing this, I'd do it using the following ways:
1. if I have Flash Media Server (Streaming method)
Use it with server side actionscript to server streaming video, with
server
side actionscript to play the first 10 seconds, and I'd catch with the
progress listener on an unskinned FLV player that the movie has reached
the
first 1 second, thats when I'll pause the video, until I rollover it
thats
when I need to play it again

2.If I dont have flash media server
Using a FLV slicing thumbnail creator, like FLVKnife, with a little
server
side script code to created the shorter videos on upload, and another
tool
to extract an image for a thumbnail, bearing in mind that usually on
users
videos, the first 10 seconds may include titles, or black screens (Mr. X
presents), You know the users love to get cool with their home made
videos, so a progressive load wont be of equal quality to this solution,
Also this solution will help you with the 1 by 1 sequential loading
technique, for you're to load only what you'd show (I recommend this
one)

3. (Progressive loading)
 If I dont have flash media server and I hate to waste my time on server
side scripting but I can bear performance issues, I'd have multiple
unskinned instances of the FLVPlayback, and i'd catch using the
progressive
listener the first frame (frames per second/playHeadTime) and pause, and
when rollover happens play (and create a new listener waiting for the
10th
second to restart video again), and on Rollout restart and pause


Hope if this doesnt help atleast would highlight some other possible
solutions or act as thought provoking to the other list members


Regards
Yehia Shouman
[EMAIL PROTECTED]

---


On 10/25/06, Jason Ross [EMAIL PROTECTED] wrote:

 Hi,

 I have a problem where multiple video streams, which are slowing a
page
 down (download time) ... see here:
 http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B

 The video does load ... eventually, and then works fine on subsequent
 visit due to caching ... my issue is with the loading times on the
first
 visit.

 So, I need to control the way video is streamed to the page. Bearing
in
 mind that the video only needs to show a preview in thumbnail mode and
 stream only when the thumbnails are clicked, I thought the following
 process would be best ... and I was wondering how to achieve step 2 as
I
 am fine with the rest.

 1) Start streaming (progressive) video into a Video symbol (using
 netConnection() etc)
 2) Detect when the first frame has loaded  HOW!?
 3) Once the first frame has loaded, draw the video into a Movie Clip
 (using draw() etc)
 4) Stop streaming the video (until the thumbnail is clicked).

 Any other suggestions are of course welcome!

 Note: I am loading in the images one by one to reduce simultaneous
open
 streams, but the video's will potentially be too big to wait for to
use
 this approach.

 Thanks,

 Jason.

 Legal Disclaimer:
 This email message (including any attachments) is strictly
confidential
 and is intended only for the person(s) or organisation(s) named above.
The
 unauthorised use, disclosure, distribution and/or copying of the email
 message, or any information it contains (including any attachments),
is
 strictly prohibited and could in certain circumstances constitute a
legal
 offence.  If you are not an intended recipient, please contact the
sender
 immediately by return email and delete the email from your system.

 Internet email communications are not always secure and may be
susceptible
 to data corruption, interception and unauthorised amendment, and
therefore
 View does not accept legal responsibility for the contents of this
message
 for any such corruption, interception or amendment or the consequences
 thereof nor any delay in its receipt.

 Although this email message and any attachments are believed to be
free of
 any virus or other defect that might affect any computer system into
which
 it is received and opened, it is the responsibility of the recipient
to
 ensure that it is virus free.  No responsibility is accepted by View
for
 any loss or damage in any way arising from its use.

 Any views expressed by the sender of this message are not necessarily
 those of View.
 _
 This message from View has been checked for all known viruses by the
 MessageLabs Virus Control Centre.
 

RE: [Flashcoders] Flash environment variables?

2006-10-26 Thread Mark Lapasa
A different (and long-term) approach to your problem would be not to use the
variable class path approach. Force your team to use a relative pathing
instead of the variable. Then instead of having your 'classes' or other
dependencies that your team relies on a shared drive on the network, use a
source control system like Visual SourceSafe or Subversion/TortoiseSVN.

It is a time-consuming task to get this setup but I think many here would
testify that having a source control software managing shared project
resources is an investment that will return many times.

-mL
http://knowledge.lapasa.net

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, October 25, 2006 3:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash environment variables?


Hi there,

Just wondering if there is a way to create a new variable to use within the
IDE?
I'm not sure if that is clear enough so I'll explain what I'd like to do...

When setting the ClassPath in Flash 8 I see the default one is:
'$(LocalData)/Classes'

What I'd like to do is create something like '$(ProjectFolder)/Classes' so
every
member of the team can point to one location (most likely on a network).

Is this possible?

Thanks

*.*  Sherri

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread eric dolecki

Look up Jobe Makar on Amazon :)

- e.

On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:


Looking for information on how to implement a multi-user type game and
would
appreciate any links or book recommendations.

Thanks

Paul

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread Paul Steven
Thanks eric, I can look him up on my shelf but there wasn't a lot of info on
the subject in this book. I was looking for something more comprehensive.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: 26 October 2006 14:41
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

Look up Jobe Makar on Amazon :)

- e.

On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:

 Looking for information on how to implement a multi-user type game and
 would
 appreciate any links or book recommendations.

 Thanks

 Paul

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash environment variables?

2006-10-26 Thread Muzak
I'd use a combination of those (gloabl classpath/source control).

Each user has a global classpath, which is on his/her local harddrive.
Files (classes) in the global classpath (on local drive) are 'copies' of files 
on shared drive.
Those are checked in/out using source control.

The problem with using no global classpath is that Flash (IDE) will complain 
(throw an error) when you want to check syntax or 
auto format your code.
You can get around that by setting up a classpath for each fla/project for that 
fla only (through the Publish Settings option), but 
if the fla needs to be shared among different users, that might be a problem as 
the path will probably be different for each user.
With a global classpath, this is not an issue.

As Mark said, using source control takes getting used to but pays off in the 
end.

regards,
Muzak

- Original Message - 
From: Mark Lapasa [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 26, 2006 3:23 PM
Subject: RE: [Flashcoders] Flash environment variables?


A different (and long-term) approach to your problem would be not to use the
 variable class path approach. Force your team to use a relative pathing
 instead of the variable. Then instead of having your 'classes' or other
 dependencies that your team relies on a shared drive on the network, use a
 source control system like Visual SourceSafe or Subversion/TortoiseSVN.

 It is a time-consuming task to get this setup but I think many here would
 testify that having a source control software managing shared project
 resources is an investment that will return many times.

 -mL
 http://knowledge.lapasa.net

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 [EMAIL PROTECTED]
 Sent: Wednesday, October 25, 2006 3:22 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Flash environment variables?


 Hi there,

 Just wondering if there is a way to create a new variable to use within the
 IDE?
 I'm not sure if that is clear enough so I'll explain what I'd like to do...

 When setting the ClassPath in Flash 8 I see the default one is:
 '$(LocalData)/Classes'

 What I'd like to do is create something like '$(ProjectFolder)/Classes' so
 every
 member of the team can point to one location (most likely on a network).

 Is this possible?

 Thanks

 *.*  Sherri



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread eric dolecki

I thought it covered ElectroServer, multi-user gaming, gaming rooms, etc.
What kind of information are you after in more detail?

- e.

On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:


Thanks eric, I can look him up on my shelf but there wasn't a lot of info
on
the subject in this book. I was looking for something more comprehensive.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric
dolecki
Sent: 26 October 2006 14:41
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

Look up Jobe Makar on Amazon :)

- e.

On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:

 Looking for information on how to implement a multi-user type game and
 would
 appreciate any links or book recommendations.

 Thanks

 Paul

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread Paul Steven
Hi Eric, perhaps I have not looked properly then - I thought it was only a
few pages in the appendix. Sorry! I will have a proper look.

However if there are any books devoted to this subject or links to sites,
this info would also be appreciated.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: 26 October 2006 15:08
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

I thought it covered ElectroServer, multi-user gaming, gaming rooms, etc.
What kind of information are you after in more detail?

- e.

On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:

 Thanks eric, I can look him up on my shelf but there wasn't a lot of info
 on
 the subject in this book. I was looking for something more comprehensive.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric
 dolecki
 Sent: 26 October 2006 14:41
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

 Look up Jobe Makar on Amazon :)

 - e.

 On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:
 
  Looking for information on how to implement a multi-user type game and
  would
  appreciate any links or book recommendations.
 
  Thanks
 
  Paul
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] EventDispatcher and Delegate - where am I going wrong...

2006-10-26 Thread Jon Bennett

Hi,

I'm knocking up some simple tests to get EventDispatcher and Delegate
working, but I can't seem to get my rather simple example to work:

// MyButton.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class MyButton
{
public var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;
public var dispatchQueue:Function;

private var mcButton:MovieClip;

function MyButton (mcButton)
{
EventDispatcher.initialize (this);
this.mcButton = mcButton;
this.init ();
}

function init ()
{
this.mcButton.objRef = this;

this.mcButton.onRelease = function ()
{
Delegate.create(this.objRef, onClick)
}
// clearInterval(timeInt);
}

function onClick ()
{
dispatchEvent ({type:'click', target:this, message:'Hey dude the
button was clicked'});
}

};


// ButtonListener.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class ButtonListener {

public var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;
public var dispatchQueue:Function;

private var myButton:MyButton;

function ButtonListener ()
{
myButton = new MyButton(_root.mcButton);

myButton.addEventListener('click', Delegate.create(this, 
onClick));
}

function onClick (eventObj)
{
   trace(eventObj.target);
   trace(eventObj.type);
   trace(eventObj.message);
   trace(eventObj.time);
}
};


// Timeline
import MyButton;
import ButtonListener;
var myButtonListener = new ButtonListener();


I'm sure it's something blindingly obvious, but how do I get my
ButtonListener class to hear the 'click' event ?

Thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] EventDispatcher and Delegate - where am I going wrong...

2006-10-26 Thread Hans Wichman

Hi,
it seems you are mixing two approaches.

approach 1)
this.mcButton.onRelease =  Delegate.create(this, this.onClick)

approach 2)
this.mcButton.objRef = this;
this.mcButton.onRelease = function ()
  {
  this.objRef.onClick();
  }

greetz
JC



On 10/26/06, Jon Bennett [EMAIL PROTECTED] wrote:


Hi,

I'm knocking up some simple tests to get EventDispatcher and Delegate
working, but I can't seem to get my rather simple example to work:

// MyButton.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class MyButton
{
   public var dispatchEvent:Function;
   public var addEventListener:Function;
   public var removeEventListener:Function;
   public var dispatchQueue:Function;

   private var mcButton:MovieClip;

   function MyButton (mcButton)
   {
   EventDispatcher.initialize (this);
   this.mcButton = mcButton;
   this.init ();
   }

   function init ()
   {
   this.mcButton.objRef = this;

   this.mcButton.onRelease = function ()
   {
   Delegate.create(this.objRef, onClick)
   }
   // clearInterval(timeInt);
   }

   function onClick ()
   {
   dispatchEvent ({type:'click', target:this, message:'Hey
dude the
button was clicked'});
   }

};


// ButtonListener.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class ButtonListener {

   public var dispatchEvent:Function;
   public var addEventListener:Function;
   public var removeEventListener:Function;
   public var dispatchQueue:Function;

   private var myButton:MyButton;

   function ButtonListener ()
   {
   myButton = new MyButton(_root.mcButton);

   myButton.addEventListener('click', Delegate.create(this,
onClick));
   }

   function onClick (eventObj)
   {
   trace(eventObj.target);
   trace(eventObj.type);
   trace(eventObj.message);
   trace(eventObj.time);
   }
};


// Timeline
import MyButton;
import ButtonListener;
var myButtonListener = new ButtonListener();


I'm sure it's something blindingly obvious, but how do I get my
ButtonListener class to hear the 'click' event ?

Thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread Paul Steven
Thanks Jobe and great book by the way. I have the MX version of the book -
is the MX 2004 version more comprehensive?

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jobe Makar
Sent: 26 October 2006 15:20
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

Hi Paul,

My game book is not comprehensive on multipalyer stuff, but gives a decent 
intro. There are 2 chapters, one on a chat and one on multiplayer chess.

You can find tons of source files on this site:
http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: Paul Steven [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 26, 2006 10:14 AM
Subject: RE: [Flashcoders] Book recommendation for multiuser games / apps


 Hi Eric, perhaps I have not looked properly then - I thought it was only a
 few pages in the appendix. Sorry! I will have a proper look.

 However if there are any books devoted to this subject or links to sites,
 this info would also be appreciated.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric 
 dolecki
 Sent: 26 October 2006 15:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

 I thought it covered ElectroServer, multi-user gaming, gaming rooms, etc.
 What kind of information are you after in more detail?

 - e.

 On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:

 Thanks eric, I can look him up on my shelf but there wasn't a lot of info
 on
 the subject in this book. I was looking for something more comprehensive.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric
 dolecki
 Sent: 26 October 2006 14:41
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

 Look up Jobe Makar on Amazon :)

 - e.

 On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:
 
  Looking for information on how to implement a multi-user type game and
  would
  appreciate any links or book recommendations.
 
  Thanks
 
  Paul
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] buttons not active on mac

2006-10-26 Thread Trevor Burton
I have a site at http://venues.or-media.com http://venues.or-media.com/
that doesn't work on a mac, you're supposed to be able to click on one those
logos and the site loads the relevant xml document to build itself.

 

You can drill straight to the main site by going to
http://venues.or-media.com?venue=savoy
http://venues.or-media.com/?venue=savoy  and still no joy - none of the
buttons are clickable on mac, yet it works perfectly on PC

 

Has anyone seen this before? Does anyone have any ideas.. I've racked my
brains and now they're melting!

 

Any suggestions would be gratefully appreciated.

 

T

 

 

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] File updating in moved FLAs

2006-10-26 Thread Andreas R
I have a bunch of animations that need updating. Their frames need to be 
rerendered from Maya, but both the FLAs and the location of the frames 
have migrated from one machine to another, and now the Flash update 
dialog shows ? when i attempt to update (logically). Is there a way to 
simply update the locations of the imported images?


- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong...

2006-10-26 Thread Pete Miller
Pressing your button causes the code to create the delegate function,
not execute it.  You want the result of Delegate() to be stored as the
onRelease function.  Do this:

  this.mcButton.onRelease = Delegate.create(this.objRef,
onClick)


P.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Jon Bennett
 Sent: Thursday, October 26, 2006 10:32 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] EventDispatcher and Delegate - where am I
 goingwrong...
 
 Hi,
 
 I'm knocking up some simple tests to get EventDispatcher and Delegate
 working, but I can't seem to get my rather simple example to work:
 
 // MyButton.as
 
 // EventDispatcher
 import mx.events.EventDispatcher;
 // Delegate
 import mx.utils.Delegate;
 
 class MyButton
 {
  public var dispatchEvent:Function;
  public var addEventListener:Function;
  public var removeEventListener:Function;
  public var dispatchQueue:Function;
 
  private var mcButton:MovieClip;
 
  function MyButton (mcButton)
  {
  EventDispatcher.initialize (this);
  this.mcButton = mcButton;
  this.init ();
  }
 
  function init ()
  {
  this.mcButton.objRef = this;
 
  this.mcButton.onRelease = function ()
  {
  Delegate.create(this.objRef, onClick)
  }
  // clearInterval(timeInt);
  }
 
  function onClick ()
  {
  dispatchEvent ({type:'click', target:this, message:'Hey
dude
 the
 button was clicked'});
  }
 
 };
 
 
 // ButtonListener.as
 
 // EventDispatcher
 import mx.events.EventDispatcher;
 // Delegate
 import mx.utils.Delegate;
 
 class ButtonListener {
 
  public var dispatchEvent:Function;
  public var addEventListener:Function;
  public var removeEventListener:Function;
  public var dispatchQueue:Function;
 
  private var myButton:MyButton;
 
  function ButtonListener ()
  {
  myButton = new MyButton(_root.mcButton);
 
  myButton.addEventListener('click', Delegate.create(this,
 onClick));
  }
 
  function onClick (eventObj)
  {
 trace(eventObj.target);
 trace(eventObj.type);
 trace(eventObj.message);
 trace(eventObj.time);
  }
 };
 
 
 // Timeline
 import MyButton;
 import ButtonListener;
 var myButtonListener = new ButtonListener();
 
 
 I'm sure it's something blindingly obvious, but how do I get my
 ButtonListener class to hear the 'click' event ?
 
 Thanks,
 
 Jon
 
 --
 
 
 jon bennett
 t: +44 (0) 1225 341 039 w: http://www.jben.net/
 iChat (AIM): jbendotnet Skype: jon-bennett
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] EventDispatcher and Delegate - where am I going wrong...

2006-10-26 Thread Jon Bennett

it seems you are mixing two approaches.



approach 1)
this.mcButton.onRelease =  Delegate.create(this, this.onClick)

approach 2)
this.mcButton.objRef = this;
this.mcButton.onRelease = function ()
 {
this.objRef.onClick();
}


yep, certainly was!

thanks, option 2 it was, as I need to set some vars in the class

many thanks!

jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread slangeberg

Have people had any experience with the Red5 server (http://osflash.org/red5)?
If so, how does it compare to other products such as ElectroServer? I've
downloaded Red5, but haven't had time to try it out.

Thanks,

Scott

On 10/26/06, Jobe Makar [EMAIL PROTECTED] wrote:


Hi Paul,

My game book is not comprehensive on multipalyer stuff, but gives a decent
intro. There are 2 chapters, one on a chat and one on multiplayer chess.

You can find tons of source files on this site:
http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message -
From: Paul Steven [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 26, 2006 10:14 AM
Subject: RE: [Flashcoders] Book recommendation for multiuser games / apps


 Hi Eric, perhaps I have not looked properly then - I thought it was only
a
 few pages in the appendix. Sorry! I will have a proper look.

 However if there are any books devoted to this subject or links to
sites,
 this info would also be appreciated.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric
 dolecki
 Sent: 26 October 2006 15:08
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Book recommendation for multiuser games /
apps

 I thought it covered ElectroServer, multi-user gaming, gaming rooms,
etc.
 What kind of information are you after in more detail?

 - e.

 On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:

 Thanks eric, I can look him up on my shelf but there wasn't a lot of
info
 on
 the subject in this book. I was looking for something more
comprehensive.

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric
 dolecki
 Sent: 26 October 2006 14:41
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Book recommendation for multiuser games /
apps

 Look up Jobe Makar on Amazon :)

 - e.

 On 10/26/06, Paul Steven [EMAIL PROTECTED] wrote:
 
  Looking for information on how to implement a multi-user type game
and
  would
  appreciate any links or book recommendations.
 
  Thanks
 
  Paul
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] accessing events within nested clips

2006-10-26 Thread Doug Tangren
Hi.  My question is how do you access events of clips that are nested  
inside of other clips with event handlers attached.  Lets say you  
have clip A that has an onRollOver event handled.  Within clip A, you  
have clip B and clip C both of which you want onRollOver/onRelease/ 
ect events handled.  Since the onRollOver state of clip A is being  
fired, it blocks the event of clip B or C's events from ever being  
fired.  How do you get around this?


example

clipA.onRollOver = function(){
doSomething();
}

clipA.clipB.onRollOver = function(){
doSomethingElse();
}

Doug Tangren
[EMAIL PROTECTED]



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] advice needed: textformatting or css?

2006-10-26 Thread GregoryN
Hello Jason,

You're right.
If you remember, I was trying to make an editor for css-based text.
Now I've ended up with transferring the text+css+html thing back and
forth - into and out from TextFormat.
While it requires several times more code, it seems to work without
dirty tricks (not finished yet :-).
  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.

 === Merrill, Jason wrote:
 
 I went through the whole WSIWYG text editor in Flash programming thing
 in Flash 8 recently.  I ended up figuring out that using the TextFormat
 class is the only really viable/sane way to go.  It works pretty well,
 but some things like fighting with the Selection object were a royal
 pain.  But it is do-able, I dun it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] There is no method with the name 'super'

2006-10-26 Thread Quinten [ :: MediaMonks :: ]
I have 2 classes: 'Tester' wich extends a linked movie on the stage. And 
RectangleExtender wich is called in Tester


class Tester extends MovieClip
{
   public function Tester()
   {
   var objRectangleExtender:RectangleExtender = new 
RectangleExtender();

   }
}

and:

import flash.geom.Rectangle;

class RectangleExtender extends Rectangle
{
   public function RectangleExtender()
   {
   super();
   }
}

Everything works fine until i put actionscript on a frame. (just a 
simple stop(); on the first frame)


then i get this error:

**Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There 
is no method with the name 'super'.

super();

Total ActionScript Errors: 1  Reported Errors: 1


I really have no idea why flash suddenly throws this error. does anyone 
has experience with this kind of error?


I put the source files here: 
http://stuff.mediamonks.net/quinten/SuperError.rar


just remove the stop() command in the 'mcLinker' movieclip and you will 
see that it works fine.


--
regards,

Quinten

==\\
Quinten Beek ; Game Monk
MediaMonks BV ; Interactive Art
Schapenkamp 2 | 1211 PA, Hilversum
The Netherlands | Europe
email : [EMAIL PROTECTED]
internet address : http://www.mediamonks.com
||
* Member of the Creative Brotherhood.
||
* Please quote all replies in correspondence.
||

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong...

2006-10-26 Thread Muzak
Actually, option 1 is what you should aim for and option 2 is what you should 
avoid.
Or in other words, approach 1 was introduced to avoid/get around approach 2.

regards,
Muzak

- Original Message - 
From: Jon Bennett [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 26, 2006 5:03 PM
Subject: Re: [Flashcoders] EventDispatcher and Delegate - where am I 
goingwrong...


 it seems you are mixing two approaches.

 approach 1)
 this.mcButton.onRelease =  Delegate.create(this, this.onClick)

 approach 2)
 this.mcButton.objRef = this;
 this.mcButton.onRelease = function ()
  {
 this.objRef.onClick();
 }

 yep, certainly was!

 thanks, option 2 it was, as I need to set some vars in the class

 many thanks!

 jon


 -- 


 jon bennett


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] There is no method with the name 'super'

2006-10-26 Thread Hans Wichman

Hi,
there is no constructor Rectangle() in Rectangle.as, only function
Rectangle( x : Number, y : Number, w : Number, h : Number );

so you cannot call it. You could call super(0,0,0,0);

greetz
JC


On 10/26/06, Quinten [ :: MediaMonks :: ] [EMAIL PROTECTED] wrote:


I have 2 classes: 'Tester' wich extends a linked movie on the stage. And
RectangleExtender wich is called in Tester

class Tester extends MovieClip
{
   public function Tester()
   {
   var objRectangleExtender:RectangleExtender = new
RectangleExtender();
   }
}

and:

import flash.geom.Rectangle;

class RectangleExtender extends Rectangle
{
   public function RectangleExtender()
   {
   super();
   }
}

Everything works fine until i put actionscript on a frame. (just a
simple stop(); on the first frame)

then i get this error:

**Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There
is no method with the name 'super'.
super();

Total ActionScript Errors: 1  Reported Errors: 1


I really have no idea why flash suddenly throws this error. does anyone
has experience with this kind of error?

I put the source files here:
http://stuff.mediamonks.net/quinten/SuperError.rar

just remove the stop() command in the 'mcLinker' movieclip and you will
see that it works fine.

--
regards,

Quinten

==\\
Quinten Beek ; Game Monk
MediaMonks BV ; Interactive Art
Schapenkamp 2 | 1211 PA, Hilversum
The Netherlands | Europe
email : [EMAIL PROTECTED]
internet address : http://www.mediamonks.com
||
* Member of the Creative Brotherhood.
||
* Please quote all replies in correspondence.
||

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] There is no method with the name 'super'

2006-10-26 Thread Jim Kremens

Seems weird, as your code looks ok.  If it's any comfort, 'super()' is
called automatically, whether you explicitly call it or not... If you want
to override methods of Rectangle, just override them in your new class.

Jim Kremens


On 10/26/06, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
there is no constructor Rectangle() in Rectangle.as, only function
Rectangle( x : Number, y : Number, w : Number, h : Number );

so you cannot call it. You could call super(0,0,0,0);

greetz
JC


On 10/26/06, Quinten [ :: MediaMonks :: ] [EMAIL PROTECTED] wrote:

 I have 2 classes: 'Tester' wich extends a linked movie on the stage. And
 RectangleExtender wich is called in Tester

 class Tester extends MovieClip
 {
public function Tester()
{
var objRectangleExtender:RectangleExtender = new
 RectangleExtender();
}
 }

 and:

 import flash.geom.Rectangle;

 class RectangleExtender extends Rectangle
 {
public function RectangleExtender()
{
super();
}
 }

 Everything works fine until i put actionscript on a frame. (just a
 simple stop(); on the first frame)

 then i get this error:

 **Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There
 is no method with the name 'super'.
 super();

 Total ActionScript Errors: 1  Reported Errors: 1


 I really have no idea why flash suddenly throws this error. does anyone
 has experience with this kind of error?

 I put the source files here:
 http://stuff.mediamonks.net/quinten/SuperError.rar

 just remove the stop() command in the 'mcLinker' movieclip and you will
 see that it works fine.

 --
 regards,

 Quinten

 ==\\
 Quinten Beek ; Game Monk
 MediaMonks BV ; Interactive Art
 Schapenkamp 2 | 1211 PA, Hilversum
 The Netherlands | Europe
 email : [EMAIL PROTECTED]
 internet address : http://www.mediamonks.com
 ||
 * Member of the Creative Brotherhood.
 ||
 * Please quote all replies in correspondence.
 ||

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash environment variables?

2006-10-26 Thread webgurl

Thanks Mark,

We are using a source control system (perforce) and I originally wanted to set
it up so everyone pointed to the classpath within their own workspaces
(absolute path)... for some reason this did not go over well with the team?
Perhaps I'll need to explain it to them a bit better. I have also added
document relative classpaths for each fla so atleast for now, as long as
they're working within the file structure laid out in source control, they can
find the classes.

I guess I just wanted an easier or recommended way for us all to share the
classes.

*.*   Sherri
Quoting Mark Lapasa [EMAIL PROTECTED]:


A different (and long-term) approach to your problem would be not to use the
variable class path approach. Force your team to use a relative pathing
instead of the variable. Then instead of having your 'classes' or other
dependencies that your team relies on a shared drive on the network, use a
source control system like Visual SourceSafe or Subversion/TortoiseSVN.

It is a time-consuming task to get this setup but I think many here would
testify that having a source control software managing shared project
resources is an investment that will return many times.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] accessing events within nested clips

2006-10-26 Thread Joseph Balderson
The simple answer is, you can't. Parent button events always override 
child button events. What you're looking for is event bubbling, which is 
not natively supported in AS2.


Here are some links to get you started on that:
http://www.helpqlodhelp.com/blog/archives/000144.html
http://www.helpqlodhelp.com/blog/archives/000145.html
http://www.helpqlodhelp.com/blog/archives/000146.html
http://www.peterelst.com/blog/2006/01/07/Event-Bubbling/

__

Joseph Balderson, Flash Platform Developer
http://www.joeflash.ca | 416-768-0987
Writing partner, Community MX | http://www.communitymx.com
Consultant, New Toronto Group | http://www.newyyz.com

Doug Tangren wrote:
Hi.  My question is how do you access events of clips that are nested 
inside of other clips with event handlers attached.  Lets say you have 
clip A that has an onRollOver event handled.  Within clip A, you have 
clip B and clip C both of which you want onRollOver/onRelease/ect events 
handled.  Since the onRollOver state of clip A is being fired, it blocks 
the event of clip B or C's events from ever being fired.  How do you get 
around this?


example

clipA.onRollOver = function(){
doSomething();
}

clipA.clipB.onRollOver = function(){
doSomethingElse();
}

Doug Tangren
[EMAIL PROTECTED]



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] buttons not active on mac

2006-10-26 Thread Éric Thibault
On my PC (FireFox) I have two errors... maybe a symptome... it's a long 
shot!


Erreur : invalid flag after regular expression
Fichier source : http://venues.or-media.com/?venue=savoy
Ligne : 45, Colonne : 10
Code source :
bNotice/b:  Undefined variable:  currVenue in 
bE:\Inetpub\ietvenues\index.php/b on line b78/bbr /


AND

Erreur : init is not defined
Fichier source : http://venues.or-media.com/?venue=savoy
Ligne : 1

A+

Trevor Burton a écrit :

I have a site at http://venues.or-media.com http://venues.or-media.com/
that doesn't work on a mac, you're supposed to be able to click on one those
logos and the site loads the relevant xml document to build itself.

 


You can drill straight to the main site by going to
http://venues.or-media.com?venue=savoy
http://venues.or-media.com/?venue=savoy  and still no joy - none of the
buttons are clickable on mac, yet it works perfectly on PC

 


Has anyone seen this before? Does anyone have any ideas.. I've racked my
brains and now they're melting!

 


Any suggestions would be gratefully appreciated.

 


T

 

 

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] accessing events within nested clips

2006-10-26 Thread Jason Lutes
 Since the onRollOver state of clip A is being
 fired, it blocks
 the event of clip B or C's events from ever being fired.

 How do you get around this?

Your solution is to nest two child instances within your outer movie
clip (clipA), and define event handlers for them (but not for the outer
clip). Instead of assigning handler script to the movie clip itself,
assign it to a nested clip called something like hotSpot whose depth
is lower than that of your button (clipB). Note this hot spot clip may
need to be invisible or a custom shape and size. If you need one
handler's code to execute from the other handler, just invoke it
directly (example: hotSpot.onRollOver();). If you need identical code to
execute from both handlers, create a separate function and invoke it
from each handler when the proper event is detected.


-
Jason
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OT - JOB Posting for Mutant Media, NYC

2006-10-26 Thread Evan Adelman

Flash Animator
Mutant Media is seeking a motion graphics artist with expertise in
creating Flash animations. Storyboard art may be supplied in Photoshop
or Illustrator, though skills in developing storyboards as well will
also be considered. The expertise we seek for this position is in
bringing these static designs to life, and imbibing the animation with
character through the use of motion, tempo and transition. Ability to
manage one's time and meet deadlines crucial. Proficiency with Flash,
Photoshop and Illustrator required; expertise with video design and
editing also desired.

This position is offered on a freelance basis, optimally leading to
full time employment. Compensation negotiable, based on experience.
Mutant Media is an integrated marketing firm, executing branding and
marketing messages across a range of media. For further detail on who
we are and what we do, see www.mutantmedia.com.

To be considered for this position, please email
[EMAIL PROTECTED] with a pdf copy of your resume and/or link to
online portfolio.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] There is no method with the name 'super'

2006-10-26 Thread Mark Lapasa
Your code looks good to me. Mighty weird but it just might be the case
intrinsic classes like Rectangle cannot be extended.

http://www.kirupa.com/developer/oop2/AS2OOPClassStructure8.htm


-mL
http://knowledge.lapasa.net

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jim
Kremens
Sent: Thursday, October 26, 2006 12:40 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] There is no method with the name 'super'


Seems weird, as your code looks ok.  If it's any comfort, 'super()' is
called automatically, whether you explicitly call it or not... If you want
to override methods of Rectangle, just override them in your new class.

Jim Kremens


On 10/26/06, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,
 there is no constructor Rectangle() in Rectangle.as, only function
 Rectangle( x : Number, y : Number, w : Number, h : Number );

 so you cannot call it. You could call super(0,0,0,0);

 greetz
 JC


 On 10/26/06, Quinten [ :: MediaMonks :: ] [EMAIL PROTECTED] wrote:
 
  I have 2 classes: 'Tester' wich extends a linked movie on the stage. And
  RectangleExtender wich is called in Tester
 
  class Tester extends MovieClip
  {
 public function Tester()
 {
 var objRectangleExtender:RectangleExtender = new
  RectangleExtender();
 }
  }
 
  and:
 
  import flash.geom.Rectangle;
 
  class RectangleExtender extends Rectangle
  {
 public function RectangleExtender()
 {
 super();
 }
  }
 
  Everything works fine until i put actionscript on a frame. (just a
  simple stop(); on the first frame)
 
  then i get this error:
 
  **Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There
  is no method with the name 'super'.
  super();
 
  Total ActionScript Errors: 1  Reported Errors: 1
 
 
  I really have no idea why flash suddenly throws this error. does anyone
  has experience with this kind of error?
 
  I put the source files here:
  http://stuff.mediamonks.net/quinten/SuperError.rar
 
  just remove the stop() command in the 'mcLinker' movieclip and you will
  see that it works fine.
 
  --
  regards,
 
  Quinten
 
  ==\\
  Quinten Beek ; Game Monk
  MediaMonks BV ; Interactive Art
  Schapenkamp 2 | 1211 PA, Hilversum
  The Netherlands | Europe
  email : [EMAIL PROTECTED]
  internet address : http://www.mediamonks.com
  ||
  * Member of the Creative Brotherhood.
  ||
  * Please quote all replies in correspondence.
  ||
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Grownups w/ flash

2006-10-26 Thread slangeberg

My apologies if this doesn't belong on the list, but I just get excited to
see a large organization embracing exciting (flash) technology!

In this case, it's actually a major news organization:

http://www.stateoftheworld.reuters.com/poll.html

Smaller examples - Click on one of three showcases towards bottom:

http://photos.reuters.com/Pictures/default.aspx?WTmodLoc=HP_L1_LeftNav-14

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] HELP! Zinc projector saving to xml file - 50k limit?

2006-10-26 Thread grimmwerks

I've got a list of items that have a lot of stylized text and I'm
saving the items to an xml/text file: is there a 50k limit or
something?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FlashDevelop settings

2006-10-26 Thread Merrill, Jason
Slightly offtopic, but does anyone know how to turn code
hinting/completion back on in FlashDevelop?  I have the latest version,
but can't figure out what I did to turn it off.

Also, is the only way to change the default font and color highlighting
by messing with the XML files in the application folder?  

I loooe this tool, except for the difficulty in changing user
preferences.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash environment variables?

2006-10-26 Thread slangeberg


everyone pointed to the classpath within their own workspaces
(absolute path)... for some reason this did not go over well with the
team?



This may not apply, but what I've done before is have all members on the
team use the same directory structure, eg:

c:/data/flash/classes

Or whatever you want to call it. Then, flash docs shared all point to same
location, even though it's on local drive. Combine this with source control
and your staff will never look back, once they've made the adjustment!

Scott

On 10/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Thanks Mark,

We are using a source control system (perforce) and I originally wanted to
set
it up so everyone pointed to the classpath within their own workspaces
(absolute path)... for some reason this did not go over well with the
team?
Perhaps I'll need to explain it to them a bit better. I have also added
document relative classpaths for each fla so atleast for now, as long as
they're working within the file structure laid out in source control, they
can
find the classes.

I guess I just wanted an easier or recommended way for us all to share the
classes.

*.*   Sherri
Quoting Mark Lapasa [EMAIL PROTECTED]:

 A different (and long-term) approach to your problem would be not to use
the
 variable class path approach. Force your team to use a relative pathing
 instead of the variable. Then instead of having your 'classes' or other
 dependencies that your team relies on a shared drive on the network, use
a
 source control system like Visual SourceSafe or Subversion/TortoiseSVN.

 It is a time-consuming task to get this setup but I think many here
would
 testify that having a source control software managing shared project
 resources is an investment that will return many times.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FlashDevelop settings

2006-10-26 Thread Austin Kottke
Yea, code colorization is in the fdinstalldir/Settings/Languages folder. Each
xml file represents the colorization for the language, As2.xml, as3.xml.

You'll have to change the hex codes to represent a color.

The code completion - no idea, probably the class paths
are messed up?

Best, Austin

-- Original Message ---
From: Merrill, Jason [EMAIL PROTECTED] 
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com 
Sent: Thu, 26 Oct 2006 14:31:43 -0400 
Subject: [Flashcoders] FlashDevelop settings

 Slightly offtopic, but does anyone know how to turn code 
 hinting/completion back on in FlashDevelop?  I have the latest version, 
 but can't figure out what I did to turn it off. 
 
 Also, is the only way to change the default font and color highlighting 
 by messing with the XML files in the application folder?   
 
 I loooe this tool, except for the difficulty in changing user 
 preferences. 
 
 Jason Merrill 
 Bank of America 
 Learning  Organization Effectiveness - Technology Solutions 
 
 ___ 
 Flashcoders@chattyfig.figleaf.com 
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 
 Brought to you by Fig Leaf Software 
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com 
 http://training.figleaf.com 
--- End of Original Message ---
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] There is no method with the name 'super'

2006-10-26 Thread Muzak
Change the name of the classs RectangleExtender to something else and the error 
will go away.

import flash.geom.Rectangle;
class RectangleExt extends Rectangle {
 function RectangleExt() {
  super();
  trace(RectangleExt);
 }
}

As soon as I change RectangleExt to RectangleExtender, I get the same error 
(code or no code in timeline).
Must be a naming conflict with some internal/hidden class.

regards,
Muzak

- Original Message - 
From: Quinten [ :: MediaMonks :: ] [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 26, 2006 6:03 PM
Subject: [Flashcoders] There is no method with the name 'super'


I have 2 classes: 'Tester' wich extends a linked movie on the stage. And 
RectangleExtender wich is called in Tester

 class Tester extends MovieClip
 {
public function Tester()
{
var objRectangleExtender:RectangleExtender = new RectangleExtender();
}
 }

 and:

 import flash.geom.Rectangle;

 class RectangleExtender extends Rectangle
 {
public function RectangleExtender()
{
super();
}
 }

 Everything works fine until i put actionscript on a frame. (just a simple 
 stop(); on the first frame)

 then i get this error:

 **Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There is no 
 method with the name 'super'.
 super();

 Total ActionScript Errors: 1  Reported Errors: 1


 I really have no idea why flash suddenly throws this error. does anyone has 
 experience with this kind of error?

 I put the source files here: 
 http://stuff.mediamonks.net/quinten/SuperError.rar

 just remove the stop() command in the 'mcLinker' movieclip and you will see 
 that it works fine.

 -- 
 regards,

 Quinten



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Fever FvAsWing update is available

2006-10-26 Thread Romain Ecarnot

Hi all ;)

Don't know if you already know about Fever project ?

For a quick summary...

*Fever* is an OpenSource (MPL1.1) framework targeted for Flash Player
version = 8.
Project is composed in 2 parts :
- The logic *Fever Framework* : which defines useful tools to create rich
application or web site ( data validation, history managment, visual effect,
keyboard managment, I/O and more )
- *FvAsWing extensions* framework : which gives extensions to existing AsWing
http://www.aswing.org/display/AsWing/Home GUI Framework.

*Fever* is fully compliant with MTASC http://www.mtasc.org/ Compiler.
*Fever* profits from the power of the Pixlib
http://www.osflash.org/pixlibFramework.


A new big update is available now ! ( rev 90 )
Please, take a look at my blog ticket for detail :
http://www.customactions.net/webblog/index.php/2006/10/26/55-fever-fvaswing-update-rev-90-big-update

An english translation will be available in few dayssorry for delay ;)

More info to come if you're interesting
Bye.

Romain Ecarnot.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Book recommendation for multiuser games / apps

2006-10-26 Thread Chris Allen

On 10/26/06, slangeberg [EMAIL PROTECTED] wrote:

Have people had any experience with the Red5 server (http://osflash.org/red5)?
If so, how does it compare to other products such as ElectroServer? I've
downloaded Red5, but haven't had time to try it out.


Hi Scott,

I have experience with it as I'm part of the Red5 team developing the
product. The main difference between Red5 and a server like Electro
server is that Red5 supports many types of protocols (RTMP, AMF,
XML-RPC, XMLSocket (soon to come)), where as ElectroServer only uses
the XMLSocket connection built into Flash. RTMP allows you to steam
video and audio to and from the Flash player making video chat
applications possible. You can't do that with XMLSocket.

The other nice thing about Red5 is its ability to tap into other
server-side APIs very easily, so one example might be an existing MMO
game server engine could be used with Flash using Red5 as a sort of
proxy.

At any rate I'm not too familiar with ElectroServer, so I'm not
comfortable comparing them feature by feature. ElectroServer certainly
looks like it has a nice client side API though (just based on what I
saw on their website). Something like that for Red5 doesn't exists at
the moment, but there's no reason why someone couldn't easily create
one and wrap the NetConnection stuff like they have with XMLSocket.

I hope that helps a little. If you have more questions please ask and
I suggest that you sign up on the Red5 mailing list as there are many
more experienced people that will help you there.

-Chris
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] SharedObject and Load Balanced Server

2006-10-26 Thread [EMAIL PROTECTED]
* I apologize if this ends up being a duplicate post, but I think my first
attempt to send this didn't go through - 

If I have a flash module which uses SharedObject in a page on a website which is
load balanced, what implications might that have for how data is stored on the
client's machine?

I'm asking because I know SharedObjects write .sol files to the client's machine
using the domain from which the .swf was loaded, so if that .swf was served
through a load balanced server, would the flash module have access to the same
SharedObject the next time the user hits the site?

I am worried that the originating domain for the .swf might be different from 
the
site's domain due to load balancing, thus it would write a SharedObject using 
the
domain of its origin which could be different the next time the user visits the 
site.

thanks



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] IDE Question / annoyance

2006-10-26 Thread Glen Pike

Hi,

  Apologies if this is OT for the list - could someone point me in the 
right direction if it is.

Does anyone else ever share symbols across FLA files?

  Using the Flash 8 Pro IDE, I have been trying to do share some of my 
symbols to share with a main FLA.  I thought I would tick the Export 
for runtime sharing option, but then change my mind and unticked the box.
Then I saved my FLA file as a new file to create a /similar/ set of 
symbols to share, again, with the same main FLA.
The problem is that I keep getting conflicts in my main FLA with 
things disappearing from the main movie, and compiler errors 
complaining about missing SWF's etc.  I checked the properties of some 
of my symbols that have been shared from other FLA's and the ones that 
cause problems all have the Import for runtime sharing option ticked 
with the name of the first SWF that I created.


  If I go back to my source FLA's, the Export for runtime sharing is 
not ticked, but the name of the original SWF shows up in the disabled 
box, when I update these symbols in the main FLA, the settings revert 
back to import the symbols from a SWF - which I don't want...


  Is this a quirk or am I missing something?

  Glen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] HELP! Zinc projector saving to xml file - 50k limit?

2006-10-26 Thread grimmwerks

Trouble is with the appendFile in a loop, there's no return whether
it's successful or not, so I'm going on to the next append while the
previous one is still running.

Someone from the director list gave me this:

you could just save the xml as a couple of temporary files that are
all under 50 k, e.g. as chunk1.txt, chunk2.txt, ..., chunkn.txt, and
then in second step, use
  mdm.System.execStdOut(copy chunk1.txt +chunk3.txt ... +chunkn.txt new.xml)
to assemble the chunks to one large xml-file. mdm.System.execStdOut()
doesn't return before the command was really executed, so no problems
here. afterwards you can use
  mdm.System.execStdOut(del chunk*.txt)
to delete all temporary chunks at once.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] scrollPane :: issues

2006-10-26 Thread :: joshua

hey all.

having some issues with loading a swf into a scrollPane from a  
different domain. if swf lives locally it works fine.


my brain is shriveling...

cheers.

joshua forstot

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] scrollPane :: issues

2006-10-26 Thread Smart, Steve J. (US - Hermitage)
Sounds like a security issue with loading SWF files from a remote domain.

Try a search for allowdomains.xml

Sent by GoodLink (www.good.com)


 -Original Message-
From:   :: joshua [mailto:[EMAIL PROTECTED]
Sent:   Thursday, October 26, 2006 07:44 PM Central Standard Time
To: Flashcoders@chattyfig.figleaf.com
Subject:[Flashcoders] scrollPane :: issues

hey all.

having some issues with loading a swf into a scrollPane from a  
different domain. if swf lives locally it works fine.

my brain is shriveling...

cheers.

joshua forstot

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] xml parsing problem

2006-10-26 Thread Bill Pelon
I'm having trouble grabbing the right value from a node any help would be 
awesome.. I can't figure out where to increment as I'm going through my loop 
for the sub items.


node structure below 
NetworkLeftnav


mainItem name=main item name goes here url=url goes here window=_self 
open=true



subItem

textsub item name goes here/text

urlsub item URL goes here/url

window_self/window

/subItem


subItem

textsub item name goes here # 2/text

urlsub item URL # 2/url

window_self/window

/subItem


/mainItem


mainItem name=main item 2 url=main item url #2 window=_self 
open=false



/mainItem


/NetworkLeftnav

AS below 

onClipEvent(load){
function ExpandData(turbo){
var turboItem = turbo.firstChild.childNodes;
var subItem = turbo.firstChild.firstChild.childNodes;
trace(number of main section nodes + turbo.firstChild.childNodes.length); 
// main section count

for (var i = 0; i  turboItem.length; i++){
 var turbo = turboItem[i];
// running through main nodes
 mainNavName = turbo.attributes.name;
 mainNavUrl = turbo.attributes.url;
 mainNavWindow = turbo.attributes.window;
 mainNavOn = turbo.attributes.open; // set to true or false

trace(mainNaveName =  + mainNavName);
trace(mainNaveURL =  + mainNavURL);
trace(mainNaveWindow =  + mainNavWindow);
trace(mainNaveOn =  + mainNavOn);

 if( turbo.childNodes.length =1){
  trace(this node has subcontent);
  trace(number of subcontent nodes = + turbo.childNodes.length);

   turboChild = turbo.firstChild.firstChild;
   trace( );
   trace(total times to loop =  + turbo.childNodes.length);


  for (var n = 0; n  turbo.childNodes.length; n++){
   trace(Subcounter incremental value =  + n);

/ THESE NEED TO BE INCRIMENTED

   trace(turboChild.firstChild.nodeValue); // returns sub item name
   trace(turboChild.nextSibling.firstChild.nodeValue); // returns sub item 
URL
   trace(turboChild.nextSibling.nextSibling.firstChild.nodeValue); // 
returns sub itemWindow

  }
}
trace( );
 }


}

var turbo = new XML();
turbo.ignoreWhite = true;
turbo.onLoad = function(success){
if (success) ExpandData(this);
else trace(Error loading XML file);
}
turbo.load(netnav.xml);  // what my xml is called that is posted above
stop();
} 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] mc loads, has a global....

2006-10-26 Thread grimmwerks

ok -  still with this app.

I have a map that I'm loading externally - map.swf. In it I'm setting
all kinds of stuff using

_global.gMap(all kinds of functions)

The main swf that loads in this clip, once it's loaded with a
moviecliploader -- I try to trigger one of the functions via
gMap.showMap() - but the loaded movieclip doesn't trigger anything,
though it IS loaded.

I thought globals were globals - if a loaded clip creates a new
_global object, that the parent clip could trigger it as well?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] mc loads, has a global....

2006-10-26 Thread Keith Reinfeld
A quick test shows that what you want is do-able. :) 

This works: 
 
In a child swf (to be loaded) I used: 
 
function mapThis(){ 
trace(mapThis() called); 
} 
 
function mapThat(){ 
trace(mapThat() called); 
} 

_global.mapage = {};// new Object 
_global.mapage.mapThis = mapThis;
_global.mapage.mapThat = mapThat;
 
Then in a parent swf (to load child) I used: 
  
loadee.loadMovie(Child.swf); 
 
aButton.onRelease = function(){ 
mapage.mapThis(); 
mapage.mapThat(); 
} 

I suspect you may be overwriting your functions such that _global.gMap is
left with only the last one you assigned to it. 
 
HTH 

-Keith 
http://home.mn.rr.com/keithreinfeld 
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: Thursday, October 26, 2006 10:41 PM
To: Flashcoders mailing list
Subject: [Flashcoders] mc loads, has a global

ok -  still with this app.

I have a map that I'm loading externally - map.swf. In it I'm setting
all kinds of stuff using

_global.gMap(all kinds of functions)

The main swf that loads in this clip, once it's loaded with a
moviecliploader -- I try to trigger one of the functions via
gMap.showMap() - but the loaded movieclip doesn't trigger anything,
though it IS loaded.

I thought globals were globals - if a loaded clip creates a new
_global object, that the parent clip could trigger it as well?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] LocalConnection and Media Components?

2006-10-26 Thread Martin Scott Goldberg
Martin,


Sorry I'm just getting back to you, was out of town for a wedding.



You have things a bit in a weird order in the receiving swf.
Also, receiving_lc outside and inside the initialize function are 2 
differenct variables/instances.
receiving_lc in the initialize function is local to the function, because of 
the var keyword.

And nested functions are a 'no no'..

If you're coding in the main timeline, try this:


Yes, I'm coding in the main timeline.  I have the following code now
(after modding yours) and I still can't get it to work:

import mx.utils.Delegate;

my_display.associateController(my_controller);
my_controller.controllerPolicy = on;

function setMedia(file:String, type:String){
 this.my_display.setMedia(file, type);
}

var receiving_lc:LocalConnection = new LocalConnection();
this.receiving_lc.setMedia = Delegate.create(this, this.setMedia);
this.receiving_lc.connect(myConnections);



In the button movie I have the following code in the main timeline:

var sending_lc:LocalConnection = new LocalConnection();
sending_lc.connect(myConnections);

play_button.onRelease = function() 
{
sending_lc.send(myConnections, setMedia, inmylife.mp3,
MP3);
}



For the test HTML, I have following code (created by merging the two
html's created by publishing:


html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleplayer/title
/head
body bgcolor=#ff
!--url's used in the movie--
!--text used in the movie--
!-- saved from url=(0013)about:internet --
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0;
width=700 height=200 id=player align=middle
param name=allowScriptAccess value=sameDomain /
param name=movie value=player.swf /param name=quality
value=high /param name=bgcolor value=#ff /embed
src=player.swf quality=high bgcolor=#ff width=700 height=200
name=player align=middle allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.macromedia.com/go/getflashplayer; /
/object
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
width=30 height=32 id=play align=middle
param name=allowScriptAccess value=sameDomain /
param name=movie value=play.swf /param name=quality value=high
/param name=bgcolor value=#ff /embed src=play.swf
quality=high bgcolor=#ff width=30 height=32 name=play
align=middle allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.macromedia.com/go/getflashplayer; /
/object
/body
/html


Could it be I have to allow connections from this domain?  (I saw another
recent topic on that here).


Marty
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com