Re: [Flashcoders] Net Debugger not working

2006-08-16 Thread Grant Cox
I had something similar at the beginning of the year, when first using 
Flash 8.


http://chattyfig.figleaf.com/pipermail/flashcoders/2006-January/158090.html
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-January/158265.html

Perhaps it's a similar issue?

Regards,
Grant Cox


Elena Blanco wrote:

No, and I never had to do it to use the netdebugger in the past.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: Wednesday, August 16, 2006 3:27 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Net Debugger not working

Did you put the remoting components on the stage?
___
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] diff between var == value VS var eq value

2006-08-14 Thread Grant Cox
eq has been deprecated in favour of == for many years now.  While they 
should be equivalent, you should not use eq unless you are targeting 
Flash Player 4/5.


Is the code where == didn't work for Flash lite?


dnk wrote:

Is there a difference?

I have had some code that will not work using the == and then does 
using the eq.



Any issues?

Just curious what the difference is.

d



___
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] AS2 and Singleton woes ...

2006-06-29 Thread Grant Cox
I had that with my last post too, I got a bounce around 5-10 minutes 
later.  However, I received my message through the mailing list before 
the bounce arrived, so I assumed it had worked.



Stephen Ford wrote:

Sorry if you've read the same message from me three times.
 
I keep getting a reply from flashcoders@chattyfig.figleaf.com saying my email has

been bounced, but checking the archives shows that all three messages got 
through.
 
Can anyone read this (or my last 3, very similar posts) post?
 
Thanks,

Stephen.
 ___
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] Where to politely and appropriately discuss pricing issues

2006-06-01 Thread Grant Cox
Yeah,  I totally agree with Claus about pricing.  There are just too 
many bad clients out there, where at the end of the day the associated 
stress and pain of completing a project with them means you end up with 
a net loss.  Offering cheap prices (below market rate), or any kind of 
incentive to get their business (how many times have you heard Do us a 
good price on this one, and there will be heaps more work later!), is 
just like holding up a red flag to the bad-client-bull.


Generally our process is to have an initial meeting with the prospective 
client to find out exactly what the project will entail, what the 
deadlines are, and how prepared they actually are.  If possible (ie you 
are confident in your quoting skills) we usually give a rough cost 
estimate (ie roughly how many thousand $), otherwise do this a day or so 
later.  If any of the first attributes (project scope, deadlines, 
preparation) are looking flakey, then this cost estimate will be 
substantially higher than what it should actually cost to develop.  
Remember, what looks bad at the first meeting will be at least 10x worse 
by the end of the project.  If they baulk at this cost estimate, good - 
you've just saved yourself a world of pain :)  And wasting a few hours 
on a meeting and a cost estimate to find your client is an unorganised 
cheap-skate is better than finding that after signing any kind of contract.


Of course, this can only work if the client actually wants YOU to work 
on their project - you aren't just another name in the yellow pages.  
All I can say about that is that it's 80% marketing (not advertising), 
and 20% portfolio.


I also agree with Claus about making yourself indispensible.  While 
doing so may stop them from going elsewhere (or make it difficult), it 
also makes it very difficult for you to move on if you so decide.  I 
have found a number of clients who initially looked like they would be 
keepers, but after a few months it turns out to be a lot of overhead to 
do the same old boring, low paid work.  Do you really want to lock 
yourself into this, and not be able to recommend another freelancer?


Regards,
Grant Cox


Claus Wahlers wrote:

That's interesting.. i usually do the exact opposite (of course, this
is me, and probably doesn't apply to everyone and everything).

I usually offer new clients my regular rate and offer discounts when i
feel that my relationship to the client is good and of a potentially
long term nature. Most of the time, the client continues to pay me my
regular rate for follow up projects though.

Also, apart from trying to do a good job and making the client happy
of course, i never ever do anything to make myself indispensible. To
the contrary actually. For a long term, good client relationship imho
it's absolutely necessary to give the client assurance that if for
whatever reason i might not be available to continue working on a
project (e.g. i get ill), he can continue without much hassle with
another similarly skilled developer.

cheers,
Claus.
___
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] Fwd: Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Grant Cox
Are all files in the same folder?  When it reports that the file cannot 
be found, it should give a path in the trace statement - make sure this 
is where the file actually is.  The load call will be from the location 
of the holder movie, not the ticker.swf.


Regards,
Grant Cox


Craig Stanford wrote:

still need some help with this please. I am depserate!

Cheers
Craig.


Hi everyone,

I have 2 swfs, and I want to load them both into one holder movie. Im
loading them in as follows:

tickerHolder.loadMovie(ticker.swf);
clockHolder.loadMovie(clock.swf);

The ticker.swf uses a text file. The file works fine by itself, but as 
soon
as I load it into the holder movie, it tells me that the text file 
couldnt

be loaded.

Any help would be greatly appreciated.

Cheers,
Craig.
___
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] Fwd: Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Grant Cox
Perhaps it's the Flash security settings then.  I personally find flash 
security to be a grey area, but things to check would be:


- That you have a crossdomain.xml file on your server, allowing flash 
files to load data from that domain
- That your local flash security settings (from 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html#117502 
) have Always Allow ticked, and you add c:\ to your trusted locations.


Hope that helps.

Regards,
Grant Cox


Craig Stanford wrote:

Yeah all the files are in the same folder. Its strange cos it works fine
when published inside Flash, but when I try and run it stand alone, or 
in a

browser i get nothing.

On 6/2/06, Grant Cox [EMAIL PROTECTED] wrote:


Are all files in the same folder?  When it reports that the file cannot
be found, it should give a path in the trace statement - make sure this
is where the file actually is.  The load call will be from the location
of the holder movie, not the ticker.swf.

Regards,
Grant Cox


Craig Stanford wrote:
 still need some help with this please. I am depserate!

 Cheers
 Craig.
 

 Hi everyone,

 I have 2 swfs, and I want to load them both into one holder movie. Im
 loading them in as follows:

 tickerHolder.loadMovie(ticker.swf);
 clockHolder.loadMovie(clock.swf);

 The ticker.swf uses a text file. The file works fine by itself, but as
 soon
 as I load it into the holder movie, it tells me that the text file
 couldnt
 be loaded.

 Any help would be greatly appreciated.

 Cheers,
 Craig.
 ___
 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] Re: Timeline coding

2006-04-18 Thread Grant Cox
For your first question - you will not be able to access clip_mc unless 
the playhead is on a frame where that movieclip exists.  You should be 
able to access the mc and all child mcs immediately after going to the 
correct frame, however you will not be able to execute any script 
defined inside the movieclip until a frame has passed.


With your second question, the scoping is not necessarily what you would 
expect.  The scoping of the function is wherever you define it, for 
example having


blah = 1;
clip_mc.btn1_btn = 2;

clip_mc.btn1_btn.onRelease = function(){
 trace( this );
 trace( blah );
}

will trace

_level0.clip_mc.btn1_btn
1

when you click.  Of course, you don't have to worry about the scope of 
_root.variableName, as you are providing the absolute path to the variable.


Regards,
Grant Cox.


Jonathan Berry wrote:


I just had a thought on this. Perhaps I just need _root.variableName inside
the getURL since we are using a variable returned from FlashVars. Are
anonymous functions such as clip_mc.btn1_btn.onRelease = function(){}
subject to scoping issues?

On 4/17/06, Jonathan Berry [EMAIL PROTECTED] wrote:
 


Hello all, I know this is really basic, but I wanted to know something
about timeline code. Everything I have read about placing your code says you
should place it in a central location, so I set my code in the timeline
first frame, actions layer - as recommended. However, I am finding that
sometimes buttons do not react unless the onRelease event handler is in the
same frame as where the movie stops. Is this correct? Do actions have to be
in same frame as where the movie stops and you want the interactivity?
Though I wanted to get the answer to this general question, what I have
specifically is a movieclip with buttons inside of it. I have tried putting
the code for these buttons in the first frame of the main timeline or in the
last frame of the main timeline, where this movieclip is instantiated. But
neither method works.

I use something like this: clip_mc.btn1_btn.onRelease =
function(){getURL(etcetcetc.);};
Where should one place this code? Are actions present in the first frame
of the main timeline applicable to all subsequent frames, unless
overwritten? In case you wish to know, the buttons and movieclips do have
instance names.

Thanks in advance.

--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---

   





--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---
___
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 file to recognize SESSION or REQUEST variables?

2006-04-10 Thread Grant Cox
To get data into your swf, you will want to use the FlashVars embed 
tag.  This can be done very easily with FlashObject ( 
http://blog.deconcept.com/flashobject/ ), in fact it appears that 
FlashObject will automatically pass your request parameters (the 
attributes on the end of the URL) into your flash movie.


Now, I don't quite follow what your client means in their first URL, 
where they have some PHP code.  If that is meant to be PHP, then that's 
fine, and FlashObject will ensure that your SWF has variables p, m, 
dcwid and udfo2 available on the root timeline.  If he's just saying you 
need extra URL parameters passed to the server, well, that's nothing to 
do with flash.


Regards,
Grant Cox


Sunnrunner wrote:


A client asked me this question. Does anyone know what it means or can
someone explain and give me an answer. 


Thanks. T

How can we get the link in the URL of the flash file to recognize SESSION or
REQUEST variables? You know like GET or POST? I need to do something like.

url =
https://secure.store.com/HousewivesUnleashed.306/buy.cfm?p=1000141m=306dc
wid=$_REQUEST['aid']udfo2=$_REQUEST['sid'];

as opposed to what we currently have.

url = https://secure.
store.com/HousewivesUnleashed.306/buy.cfm?p=1000141m=306;

Thoughts?

___
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] allowing slow animation

2006-04-09 Thread Grant Cox
Oops, looks like I forgot to ensure the font outlines were included in 
my dynamic text field :)  I tested as both a plain textfield, and inside 
a MC.


I don't have time to investigate further, but I believe it will snap to 
pixels in Flash 7 when:

- You use a dynamic textfield without embedding fonts
- You set the font to appear aliased
- You are using a pixel font (unless flash fudges the anti-aliasing...)

But as you mentioned, it would be great to have a .fla of the exact 
circumstances to test ourselves.


Regards,
Grant Cox


elibol wrote:


I tested it Grant, however, my dynamic textfield doesn't appear to snap to
pixels at all, even if I use device fonts. Is your textfield contained in a
Graphic or MovieClip?

M.

On 4/6/06, Grant Cox [EMAIL PROTECTED] wrote:
 


I just gave this a go, and I see exactly the same behaviour on F7 and
F8.  If the text is a dynamic textfield then it snaps to pixels, if it's
static it moves smoothly.  But this is the same in F7 and F8.

I animated the textfield to move 10 pixels in 100 frames, with just a
linear motion tween.

Regards,
Grant Cox


PR Durand wrote:

   


Snap to pixel ???
Thanks for your answer but I thought it was just for the flash IDE, to
place the object... however I can't see any difference in the
animation with or without the pixel snaping enabled.
Till there, the only difference from the same .fla is the player
version. f7 : smooth, f8 : broken

PiR

Mike Mountain a écrit :

 


I think you have snap to pixels enabled:

View/snapping/snap to pixels

M



   


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR
Durand
Sent: 04 April 2006 14:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] allowing slow animation

thanks too for your answer, Zeh,
but we've talked about this case with Ian Thomas, so I've made tests
with all different aliasig parameters, and also with a drawn shape
instead of text. the problem remains the same I've made a html page
holding 2 swf, one in flash 7 and the other in flash 8 in each swf,
the content was the same:
3 100 pixel animations on _x in 10 frames, one with a flash ide
motion tween, one with a onEnterFrame and the last one with the
Tween class.
all 3 methods are still smoothed in the flash 7 animation, not in
the 8 version...

PiR



 


___
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


Re: [Flashcoders] allowing slow animation

2006-04-06 Thread Grant Cox
I just gave this a go, and I see exactly the same behaviour on F7 and 
F8.  If the text is a dynamic textfield then it snaps to pixels, if it's 
static it moves smoothly.  But this is the same in F7 and F8.


I animated the textfield to move 10 pixels in 100 frames, with just a 
linear motion tween.


Regards,
Grant Cox


PR Durand wrote:


Snap to pixel ???
Thanks for your answer but I thought it was just for the flash IDE, to 
place the object... however I can't see any difference in the 
animation with or without the pixel snaping enabled.
Till there, the only difference from the same .fla is the player 
version. f7 : smooth, f8 : broken


PiR

Mike Mountain a écrit :


I think you have snap to pixels enabled:

View/snapping/snap to pixels

M

 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of PR 
Durand

Sent: 04 April 2006 14:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] allowing slow animation

thanks too for your answer, Zeh,
but we've talked about this case with Ian Thomas, so I've made tests 
with all different aliasig parameters, and also with a drawn shape 
instead of text. the problem remains the same I've made a html page 
holding 2 swf, one in flash 7 and the other in flash 8 in each swf, 
the content was the same:
3 100 pixel animations on _x in 10 frames, one with a flash ide 
motion tween, one with a onEnterFrame and the last one with the 
Tween class.
all 3 methods are still smoothed in the flash 7 animation, not in 
the 8 version...


PiR





___
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] If not Zinc, then what?

2006-04-03 Thread Grant Cox
Well, I was probably being too harsh with major bugs, as I can't 
remember exactly what they were now (it was about 6 months ago I used 
it).  I believe we had the same issue with building - having to reload 
SW first, but often when reloading it would fail because the process was 
still running in the background.  Also, we had some issues with system 
dialog boxes, that they displayed multiple times.


Anyway, I was somewhat naive as to what to expect of Projector 
applications, and as SW was quite new to Open Source, had a very small 
developer and user base, we thought it best to go to a third party.


Regards,
Grant Cox


Darren Cook wrote:


Support I can live without but I wondered what the major bugs were that
you found?

I've started using it on a project and was pleased with it. But my
current usage is relatively simple.
 


___
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 and input type=file....

2006-04-03 Thread Grant Cox

Except that only works in Flash 8, as the OP mentioned.

Unfortunately there is no way to do this in Flash 7, except for iframe 
hacks or similar.  I saw a link a year or so ago where someone placed a 
transparent HTML iframe over the top of the flash SWF, so the HTML form 
looked as though it was part of the flash.  It was fairly hacky, and I 
don't think it was cross-browser compatible.


Regards,
Grant Cox


Manuel Saint-Victor wrote:


Do you mean like a filebrowser window?

import flash.net.FileReference;
var myFileReference:FileReference=new FileReference();
myFileReference.browse();





On 3/31/06, Felipe Fernandez [EMAIL PROTECTED] wrote:
 


Hi, is it possible show in a flash (Flash 2004 MX) a input type file form
in
order to catch user file selection?

Basically, I need to show an html form inside a flash movie. Is there any
flash component to show that?

I know Flash 8 has upload files capabilities but Flash Mx 2004 is
requiered
in my project.

Thanks and regards
___
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] lil' help with amfphp... works locally, not uploaded...

2006-03-29 Thread Grant Cox
Make sure you have a crossdomain.xml file in the root of your server, 
otherwise the security model in Flash will refuse connections to that 
server.


The simplest version (allow all connections from any flash files) would be:

?xml version=1.0?
!DOCTYPE cross-domain-policy
 SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
 allow-access-from domain=* /
/cross-domain-policy


Regards,
Grant Cox


Count Schemula wrote:


http://www.flash-creations.com/notes/servercomm_remoting_amfphp.php

I have the above file working well on a local test server. Flash 8,
amfphp, mySQL.

Then I try to make this file work on my hosted sever:

http://www.thelargeglass.com/highscores2/index.html

The file works when I do a Test Movie and play it locally. According
to NetConnectionDebugger I'm connecting to my remote/online host and
it's getting the data from tha db. I can even add and delete records.

When I upload this file, it does not work.

On my computer, it says Waiting for localhost down in the bottom web
browser status window. ??? It should not be looking for any localhost?

So, in conclusion, files works EVERYWHERE, except where I need to
work. Any ideas?

===

I think I'm gonna like amfphp remoting a lot... I never got remoting
to work with CFMX.
___
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] If not Zinc, then what?

2006-03-28 Thread Grant Cox
We just did our first application with a projector app like this.  
Thankfully the target was only for Windows 2000 and XP, but it needed to 
support nice transparency with non-rectangular windows.


First I gave Screenweaver OS a go, but it has some major bugs, and 
almost no development (well, not on the version 3, apparently they are 
working hard on the beta version 4).  After a couple of days we decided 
that we needed an application that could provide support.


We looked at them all, and decided on Zinc, as it seemed to have the 
most active forums and developers (ie they respond to bug reports 
quickly), it was cross platform (thinking about future projects), and 
had a lot of features.  Unfortunately we found that CPU usage was 
extreme - with an application approximately 800x600 it would use 65% of 
a 3.0GHz cpu just sitting there, and 100% cpu when there was any 
animation inside the window.  This is due to the transparency - it was 
much better with a regular rectangular window.


As our client found this unacceptable we moved to mProjector (at their 
recommendation).  We found mProjector to make the smallest file size, 
and have the best CPU usage.  Unfortunately their support is much slower 
- the forums are much less busy and the devs will take some days to 
respond to emails.  They were in the process of releasing their new 
version at this time, so this may explain it (they are a much smaller 
operation than Zinc).  Unfortunately we found there was a bug that would 
cause the application to crash sporadically (when loading external 
movies/data), and some two months after reporting this as a bug it was 
still on their todo list.  Also transparency was fine in the Flash 7 
build, but in Flash 8 was very patchy (I believe this has been fixed since).


So, we had to move to Northcode SWF Studio.  This was our last option, 
as we couldn't find any other Projector applications that had 
synchronous commands (and switching to asynchronous would be far too 
much work this late in the project).  Northcode has fairly quiet forums, 
but their devs replied to every post at least once a day, and responded 
to emails within a day (with the timezone difference from Aus to Canada 
I thought that was pretty good).  The downside is that their 
transparency support was fairly poor - the only reliable method for 
non-rectangular windows was to have 1bit transparency.  They did provide 
me with a pre-release version with better transparency (which I believe 
has been released now), however this did have pretty much the same CPU 
issue as Zinc.


So, overall:
- Northcode (which we ended up going with) had the best support and 
least bugs.  But did make the largest filesize.
- Zinc has the most features, and the CPU issue appeared to just be 
Flash 8 - all three had ver poor CPU usage when using nice transparency 
in Flash 8.  Medium filesize
- mProjector had the smallest filesize, and with Flash 7 had the best 
CPU performance.  The app/libraries had the least features (ie no cross 
platform, no screensavers, no support for standard rectangular windows).


And at the end of it all, I have vowed to avoid working on any Projector 
applications like this again.  They all seem like patchy solutions, and 
I guess that's why Macromedia never added more than basic fscommands to 
the standard Flash projectors.


Regards,
Grant Cox


Chris Velevitch wrote:


On 3/29/06, Gene Jannece [EMAIL PROTECTED] wrote:
 


I've been reading pros and cons of using Zinc, I started to wonder what are the 
pros and cons of other projectors?
   



Flash Magazine did a comparison of projectors.

http://www.flashmagazine.com/1095
http://www.flashmagazine.com/1097

It's a little old now, but is a good starting point.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
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] Simple date comparison bug?

2006-03-23 Thread Grant Cox
Well, it depends how the comparisons work. When you check equivalence 
== it is checking whether the two Date instances are the same object, 
which of course they aren't. When you check greater than or less than, 
it can only check their value, and that is the same.


So it comes down to how the Date class handles comparisons. I'm honestly 
not sure how you overwrite these in Actionscript (I guess there must be 
something in Object that you can overwrite). But checking equivalence 
with complex variables will always be checking if they are actually 
references to the same object, not if the two objects have the same 
attributes.


Oh, and Ryan, is your fourth line meant to be

trace( d1 = d2 );

or

trace( d1 == d2 );

?

Regards,
Grant Cox

Ryan Matsikas wrote:


var d1:Date = new Date( 1970, 0 );
var d2:Date = new Date( 1970, 0 );
trace( d1.toString() == d2.toString() ); // true
trace( d1 = d2 ); // Thu Jan 1 00:00:00 GMT-0700 1970

On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 


Don't know why I haven't come across this before, but can anyone confirm
this for me (and maybe give an explanation)?

code
var d1:Date = new Date( 1970, 0 );
var d2:Date = new Date( 1970, 0 );
trace( d1 == d2 ); // false
trace( d1 = d2 ); // true
trace( d1 = d2 ); // TRUE?!
/code

Umm… If something is both = *and* = the only possibly is that it is
equal. So… WTF?


dave myron
principal, technical director

contentfree
⊡ 206.855.5580 phone | 206.774.2767 fax
⊠ [EMAIL PROTECTED]
⊟ 337 1st ave ne. suite 100, issaquah, wa 98027


___
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



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.0/290 - Release Date: 3/23/2006
   


___
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] DataGrid Component Performance

2006-03-15 Thread Grant Cox
What do you mean by expand rows?  But I think the answer is no - all 
grid rows need to be the same height (this height is adjustable, but 
applies to all rows).


The datagrid component can handle many thousand rows, but becomes very 
unresponsive with a number of columns.  In an application which does 
display a lot of data we limit the grids to a maximum of 15 columns, and 
this can display 20,000 rows ok.  However, whenever the grid needs to do 
a full redraw (ie sorting a column, resizing a column) it can pause for 
a couple of seconds.  Also, intensive CellRenderers should be avoided, 
as should any kind of manual row highlighting (ie alternate row colours).


Regards,
Grant Cox


varfoo wrote:


Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
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] Encrypting data

2006-03-14 Thread Grant Cox
This is true.  However, if someone is prepared to submit fake post 
requests to hack your high scores, are they not going to decompile your 
SWF to see how you encrypt the high scores?


My recommendation is to submit the level reached and the score, and have 
the server validate these (ie that the score achieved was possible for 
the level reached).  Also, make the client inform the server every time 
a new level is reached, and validate that these are not occuring too 
fast (ie at least 20 seconds apart).  And encrypt any important data 
sent to/from the server, but use some stupid algorithm you made up, do 
it inline (don't use a encrypt/decrypt function), and then obfuscate 
your actionscript.  Oh, and if any of these server side checks fail, 
just ignore any high scores from that IP address.


Or, just admit that faking high scores is nigh impossible when the 
client is so easily modified, and don't worry about it :)


Regards,
Grant Cox


Dave Mennenoh wrote:

MD5 isn't going to help encrypting a high score is it? It's a one way 
hash...



Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/

___
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] how to make single cell in the grid non editable?

2006-02-23 Thread Grant Cox
The only way I've done it is by making the entire datagrid non-editable, 
and listening for a double click on a single cell.  When this happens, 
if that cell can edited that column is set to editable, and the 
appropriate cell is selected.  On a mouse deselect (onBlur?) the column 
is set back to non-editable.


Generally I've found that double clicking to edit a field works quite 
well, as I never liked that just selecting a row would start to edit the 
actual cell clicked.



Oleg Filipchuk wrote:


I hope it would be better. It's nothing else left. :(

So does anyone know any smart solution about making individual cell
non/editable?
___
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] Re: Installing Custom Ant Tasks in Eclipse

2006-02-23 Thread Grant Cox
I messed around with a few preprocessors a week or so ago, and just had 
so many problems (due to ignorance - I'm a noob when it comes to 
java/ant etc).  However, finally I got FMPP to work ( 
http://fmpp.sourceforge.net/ ), and while the preprocessing directives 
aren't the prettiest (they look like html tags), once I got it working I 
was beyond caring about that :)


This is the appropriate part from my build.xml:

!-- PreProcess all the Actionscript with FMPP, output to build 
directory --
taskdef name=fmpp classname=fmpp.tools.AntTask 
classpath=${dependencies_dir}/fmpp/lib/fmpp.jar /

fmpp
   sourceRoot=${src_dir} outputRoot=${build_dir}
   modes=ignore(server/**/*, lib/**/*, dependencies/**/*), 
execute(**/*.as), copy(**/*.swf), ignore(**/*)

   quiet=false 
   data
   antProperties(svn_version)
   debug: true
   /data
/fmpp

Actually, so that modes line makes sense, my folder structure is:

/build
/deploy
/src
  /com
  /dependencies
  /lib
  /server

And I only want it to preprocess .as files from the /src and /src/com 
(not dependencies, lib or server), copy any .swf files (in case MTASC 
needs them as base files) and ignores the rest.


Regards,
Grant Cox


John Mark Hawley wrote:


UPDATE: After a lot of flailing and forcing Ant to specifically include the 
jars for Prebob, I actually got it to run. However, all it does it copy things 
from one directory to another, and no amount of manual flogging and guesswork 
can get it to actually preprocess anything. Has anyone tried Prebop and gotten 
it working, or does anyone have an IDE-friendly preprocessing solution 
themselves?

--

Mark Hawley said:

There doesn't seem to be a simple tutorial for actually getting custom Ant 
tasks installed and running. Even as2Ant leaves you out to dry when it comes to 
actually getting it to work the first time. Any help?


Has anyone else on the list experimented with the Prebob preprocessing Ant 
task, or custom Ant tasks in general in Eclipse? I can't seem to get mine to 
work...I have a feeling it's because I don't have the java SDK installed, and 
no one else is running into this because mot of the Flash devs fooling around 
with Ant and Eclipse in the first place are also developing Java occasionally. 
(UPDATE: well, installing the SDK, and making sure Ant could see tools.jar did 
squat.)


In Eclipse-Preferences-Ant I can see the preprocessor task is defined.

Vanilla Ant builds are working 100%, but ant tasks installed as Eclipse plugins 
don't work when built, they just croak and give a massive, unhelpful Ant 
error.


--snip from build.xml---

!-- adding this does nothing
taskdef name=preprocess classname=com.objfac.prebop.ant.PreprocessorTask/
--

target name=preprocess description=Run preprocessor
   !-- perform preprocessing steps here --
   echo message=Allegedly running preprocessor/
   preprocess indir=${src_dir} outdir=${targetdir} out=merge 
except=${skip}

  !-- testing junk --
  var name=smell value=rose/
  filetype commentend=*/ commentbegin=/* extensions=as/--
   /preprocess
/target

--end snip---

--partial output---

preprocess:
[echo] Allegedly running cpp or equivalent

BUILD FAILED
C:\PATH_HIDDEN_TO_PROTECT_THE_INNOCENT\buildPreprocess.xml:24: Could not create 
task or type of type: preprocess.


Ant could not find the task or a class this task relies upon.

(GIANT ERROR MESSAGE SNIPPED)


Any suggestions?

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] getting the actual width of a scaled child clip

2006-02-22 Thread Grant Cox

If you use localToGlobal you can find the dimensions in root coordinates.

///
var topleft = {x: inner._x, y: inner._y};
var bottomright = {x: inner._x + inner._width, y: inner._y + inner._height};

inner._parent.localToGlobal(topleft);
inner._parent.localToGlobal(bottomright);

trace(inner from:  + topleft.x + , + topleft.y +
  to:  + bottomright.x + , + bottomright.y );
///


Rich Rodecker wrote:


wierd that i've never hit this before, but I'm running into an issue with
getting the width of a clip's children after the parent clip has been scaled
down.

So, I say parent clip name holder_mc.  I create 4 movieclips inside
holder_mc and load movie into them.  Each of the loaded clips are 600 x600.
If i scale holder_mc down 50%, each of the loaded clips still reports their
size as 600x600.

Somebody's HAD to have dealt with this one already...any suggestions?
___
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] getting the actual width of a scaled child clip

2006-02-22 Thread Grant Cox
Except you would have to iterate through every _parent level until you 
hit the _root anyway, in case any ancestor clip is scaled...  I've done 
that before for visibility ( parent was _visible=false, grandchild was 
_visible=true but of course not seen).



Lanny McNie wrote:


Also, you could just multiply the width/height by the scale..

var w = subClip._width * subClip._parent._xscale / 100;
var h = subClip._height * subClip._parent._yscale / 100;

Sorry for the psuedo code.

On 2/22/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 


ah, nice one.

On 2/22/06, Grant Cox [EMAIL PROTECTED] wrote:
   


If you use localToGlobal you can find the dimensions in root
 


coordinates.
   


///
var topleft = {x: inner._x, y: inner._y};
var bottomright = {x: inner._x + inner._width, y: inner._y +
inner._height};

inner._parent.localToGlobal(topleft);
inner._parent.localToGlobal(bottomright);

trace(inner from:  + topleft.x + , + topleft.y +
  to:  + bottomright.x + , + bottomright.y );
///


Rich Rodecker wrote:

 


wierd that i've never hit this before, but I'm running into an issue
   


with
   


getting the width of a clip's children after the parent clip has been
   


scaled
 


down.

So, I say parent clip name holder_mc.  I create 4 movieclips inside
holder_mc and load movie into them.  Each of the loaded clips are 600
   


x600.
 


If i scale holder_mc down 50%, each of the loaded clips still reports
   


their
 


size as 600x600.

Somebody's HAD to have dealt with this one already...any suggestions?
___
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

   





--
-
Lanny McNie
___
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] OT: Design patterns

2006-02-22 Thread Grant Cox
Wouldn't it be great to have a project like that - that actually stays 
on track and doesn't have last minute changes :)


It is never necessary to use design patterns, but they can make your 
project more structured.  More structured usually means easier to 
understand, and easier to modify (as it is more obvious what else will 
be affected by any change).  I would suggest spending time on less 
critical projects to explore using some design patterns, to see how you 
feel about them, and if you find they are useful then keep using them.


When I first started using design patterns (when FAMES kicked off) I 
thought it was important to use pure patterns, and got quite stressed 
trying to understand wtf all the patterns actually are and why I should 
be using them.  Now that I have made a few projects (~6) in this fashion 
I am much more laid back - I use the patterns that I understand, 
bastardise others to something I like, and ignore the rest.  We're not 
making works of art here - as long as the project is done to time and 
budget and isn't a complete dog's breakfast then it's fine :)


Regards,
Grant Cox


Anggie Bratadinata wrote:

If I don't plan to extend my app. nor there is late requirements to 
meet then using DP is not necessary?


Thanks Troy,
--
Anggie Bratadinata
Web|Graphic|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
http://design.ibshastautama.com


Troy Rollins wrote:



On Feb 22, 2006, at 11:11 PM, Anggie Bratadinata wrote:


What is the advantage(s) and disadvantage(s) of design patterns?
I've been studying MVC and Singleton patterns but so far I'm not sure
how those can make my software better.




They don't necessarily make your software any better.

They can probably make your software easier to extend and or maintain.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
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] Strange actionscript vs tweening problem Flash8

2006-02-16 Thread Grant Cox
I'm not sure what is happening in your case, but previously I have found 
similar issues (with code / timeline based effects conflicting) when:


- The symbol (movieclip/button) does not have the same instance name 
across all keyframes (ie doesn't have an instance name on a keyframe).
- When the code changes any attribute of a tweened symbol.  If you have 
code that changes a clip's position, the tween becomes invalid until the 
next keyframe (which then overwrites whatever code change you made).  I 
assume this applies to all other clip attributes (not just position), as 
a key is on a whole layer...


Regards,
Grant Cox


T. van Zantvoort wrote:


I just simply use

for (i=1; i10; i++) {
this[b+i].onRelease = function() {
play();
};
}

This is for button 1 through 9 and then on the timeline there's a tween with
all the buttons that go to an other location themselfs. But when I click on
a button, that button stays on it's place until the tween is done and then
finally flips to the position it supposed to tween to.


Met vriendelijke groeten,


Tayfun van Zantvoort
WebSculptor
---
MonTay WebArchitects
T: 040-2300898
F: 040-2954071
I: www.montay.nl
---
Check ook eens andere
onderdelen van ons uit.
---
www.vsnet.nl (je eigen webshop)
www.mlife.nl (aug '05, digi-lifestyle)
===

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Karthik
Verzonden: donderdag 16 februari 2006 9:24
Aan: Flashcoders mailing list
Onderwerp: Re: [Flashcoders] Strange actionscript vs tweening problem Flash8

 

At this point it goes strangely, the tween is actually happening but 
the button clicked stays on the same place until the tween stops and 
then flips to the location it supposed to tween to.
   



How are you tweening this? You might want to show us some code.

-K
___
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] Issue with two instances on a timeline

2006-02-16 Thread Grant Cox
I agree, this is perhaps the most irritating thing about animating 
inside the Flash timeline.


Unfortunately I believe it is just a limitation of Flash, and the only 
way to get around it is to avoid keyframes on objects you need to use 
code with.  So, either avoid all keyframes and do animation with code, 
or just avoid keyframes on the specific objects you want to modify with 
code.  In your example for changing text or colour, the object you are 
changing (textfield or movieclip) needs to be inside another movieclip.  
Now you can apply code to the inner movieclip and timeline effects to 
the outer movieclip (or vice versa), and it should work ok.


But unfortunately it is still a pain.  But then, that's animating in 
Flash for you :)


Regards,
Grant Cox


Meinte van't Kruis wrote:


Hi folks,

I've had this problem for a long time and it keeps on coming back once in a
while, and allthough
I've allways found ways to work around it, I never got to a real solution,
so perhaps some of you know the
answer.

The problem is, simply put:

make a textfield, called tfield
place it inside a movieclip called mc

now we'll animate mc, one keyframe on frame 1, one keyframe on frame 10, put
a motion tween in there.
now the problem is, i have two keyframes, thus two instances of, basically,
the same thing (same instance name)
this, somehow, always brings up alot of problems, giving unexpected results.
when i, say, change the color of the movieclip, or the text of the field
inside the movieclip, it usually doesn't work at all

it seems like flash only likes to change the color or text on the first
frame and not during the animation, or on the last frame

Does anyone know a good solution to this problem, because i feel there must
be an easy solution to this (besides tweening with actionscript alone)

thanks,

Meinte
___
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] redraw/update DataGrid to reflect change of data?

2006-02-16 Thread Grant Cox
If all you want is for the datagrid to refresh from the data already in 
it's dataProvider (ie, each grid row updates to what you want when you 
rollover), then try:


var current_vpos = myGrid.vPosition;
myGrid.dataProvider = myGrid.dataProvider;
myGrid.vPosition = current_vpos;

Regards,
Grant Cox


Chuck Hoffman wrote:

I'd like to get a DataGrid (or better yet, one of its columns) to 
redraw itself, so as to reflect a change made to item(s) in its 
dataProvider.


Specifically, I have a field called 'select', and for its column in 
the DataGrid I use a CellRenderer containing a CheckBox, which 
responds to clicks to the CheckBox by setting the select field of the 
given item appropriately.


However, I'd also like to add a select all checkbox.  I have no 
problem responding to clicks on the CheckBox with a quick 
looping-through of the dataProvider setting the select fields on each 
item to true or false, as the case may be.


But I can't seem to get the DataGrid to redraw right away to reflect 
the change.  The CheckBoxes will redraw correctly only when I mouse 
over the rows.


I should note that a co-worker of mine got this functionality working 
using code on the timeline, whereas I'm trying to do it within a class 
to which the MovieClip containing the DataGrid is linked and having 
considerably less luck with it.


I've tried calling invalidate(), redraw(), draw(), and refresh(), on 
the DataGrid, and a few combinations of two or more of these, all to 
no avail (do any of those functions actually *do* anything??)


Many thanks
--ch--


___
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] vardump an object in ActionScript?

2006-02-12 Thread Grant Cox

Yeah, a for...in loop is what you want in Actionscript too.

However, to save you a few minutes, below is the function I use.

static function printr( object, depth ){
   if ( depth == undefined ) depth = 3;
   var depth_spacing:String = ;
  
   var string_rep:String = ;
  
   for ( var attrib in object ){

   var attrib_value:String = ;

   if ( depth  0  ( typeof( object[attrib] ) == object || 
typeof( object[attrib] ) == movieclip) ){

   attrib_value = printr( object[attrib], depth-1 );
  
   if ( attrib_value ==  ){

   attrib_value = [];
   if (object[attrib] instanceof Array){
   attrib_value = [empty Array];
   }
   }
  
   } else {

   attrib_value =  + object[attrib];
   }
  
   string_rep += \n + depth_spacing.substr(depth*2) + [  + 
attrib +  ]: + typeof(object[attrib]) +  =  + attrib_value;

   }
  
   return string_rep;

}


Josh McDonald wrote:


Hi, I'm wondering if there's any way to just dump out all there is to
know about an object in ActionScript similar to PHP's vardump()? It's
easily done with for(foo in bar) in JS, but that doesn't seem to work.

Any pointers much appreciated :)

Cheers,
-Josh

 


___
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] pagepeel

2006-02-09 Thread Grant Cox
I've previously used Macc/Iparigrafika's page turner, and found it to be 
very good.


http://www.iparigrafika.hu/pageflip/


Latcho wrote:


anybody got a link to a resource of a (doublepaged) page-peel effect?
like browsing a book, but nonfake.
preferably working with bitmapdata.
my Math skills aren't just sufficient :(

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@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] plz suggest.....urgent

2006-02-07 Thread Grant Cox
Well, not really - it's part of a larger application, and I have certain 
business obligations not to just give it all away.  However, if you are 
stuck with something specific then I don't mind helping out (although it 
is almost 7pm here - I will be heading home soon).


Basically what we did was had a controller to manage the list of Fields 
(our data type for a grid column).  The popup window had a datagrid that 
displayed all of the Field objects from the controller, displaying only 
the title and visible attributes.  We had a Checkbox CellRenderer 
used for the visible column, so ticking / unticking would change this 
attribute.  Once the popup window is hidden, then the main datagrid 
columns are recreated, by looping through all the Field objects from the 
controller, and creating a DataGridColumn for each Field whose visible 
is set to true.


Macromedia have some sample CellRenderers, one of which is for a 
checkbox.  You can download this from

http://www.macromedia.com/support/documentation/en/flash/fl8/samples.html

Regards,
Grant Cox


[EMAIL PROTECTED] wrote:


Hi Grant,
 Can u plz send me ur code for the same...the way u 
implemented...

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-06 Thread Grant Cox
Just to throw my 2c in, I personally only use getNextHighestDepth(), and 
as yet haven't had any problems with it.  The majority of our screens 
are already placed in the Flash timeline, I use attachMovie almost only 
to populate scrollpanes, and loadMovie only into graphic components.


To keep our code separated from the design, we will use placeholders / 
components in the Flash file to define where external elements are 
loaded.  This lets the designers fiddle with what they like, without 
having to bother me :)


Regards,
Grant Cox

Nathan Derksen wrote:



Nonsense, this is a great debate IMHO, and I would love to hear more  
from others as well. This is something that everyone has to deal  
with, and I genuinely thought that others would make more use of  
getNextHighestDepth() and was surprised that you and others avoid it.  
What are the situations that you have come across where only manual  
depth management would work? Do you have other ways of managing depth?


Nathan
http://www.nathanderksen.com


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


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread Grant Cox
Please explain what you mean by checkboxes in a scrollbar.  Do you 
mean a list component (scrollable), where each row contains a checkbox?  
If so, you want to use a CellRenderer.


Or do you mean just two checkboxes, in a bounding area that can have 
scrollbars?  If so, you probably want a ScrollPane, with the content 
being a movieclip containing the checkboxes.


Regards,
Grant Cox


[EMAIL PROTECTED] wrote:

how can i add 2 checkboxes in a scrollbar..is it using 
contentpath?? 
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [EMAIL PROTECTED]

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

 


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


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread Grant Cox
Then yes, contentPath is what you want.  The contentPath can be either a 
Linkage Id, or a url of an external SWF.



[EMAIL PROTECTED] wrote:

I want a ScrollPane, with the content 
being  movieclip containing 2 checkboxes and labels next to 
them.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


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


Re: [Flashcoders] select columns-datagrid

2006-02-05 Thread Grant Cox
How is your edit button embedded in the column, are you using a Cell 
Renderer?  When I have done something similar using a CellRenderer I 
made the CellRenderer dispatch an event (actually from the Datagrid), 
which contained the cell's row and column.  This way in my class 
containing the Datagrid, I could just listen for my event just like any 
other (like cellEdit, headerRelease etc).


Below is the appropriate line from my CellRenderer.  I believe the 
template for this CellRenderer was just from the Macromedia multiline 
textfield sample.


listOwner.dispatchEvent({type:myCustomEvent,
   itemIndex: getCellIndex().itemIndex,
   columnIndex: getCellIndex().columnIndex,
   newValue: somethingGoesHere});

Regards,
Grant Cox


[EMAIL PROTECTED] wrote:


hi,
I have a datagrid that I'm using to display records. One 
of  the columns has an edit button. When the user clicks 
edit,  the window pops up.  What I'd like to do is when a 
user clicks edit, one of the  columns is set to selected. 
I mean to ask that how can i select the whole column for 
display,so that rest of the columns i can make invisible.
Does anyone know if this is possible and how to do this. 
Greatly appreciate any help... 
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [EMAIL PROTECTED]

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

 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-02 Thread Grant Cox
I personally use Eclipse / MTASC, so all code is class based.  In my 
Flash file all symbols that need functionality have a linkage id, and 
almost all of my symbols are only a single frame (unless shape tweening 
is needed).  To make the Flash compile faster, none of these symbols are 
linked to Classes in the Library, this is all done in the external code 
using Object.registerClass.


I find it a lot cleaner to have all of my code in a nice external 
structure, in a decent IDE.  My code is all right where I need it, I can 
control all animation simply (using an animation / tweening library like 
Fuse), and I can let the designers do almost whatever they like to the 
Flash file without worrying about them stuffing code up.  And, of 
course, I get decent version control on the source files.


After using this for a few months, I just wouldn't code inside the Flash 
IDE any more.  Movieclip spaghetti is a bitter dish.


Regards,
Grant Cox


Anggie Bratadinata wrote:


Hi expert coders,

Just a simple question,
How do you develop your Flash applications? How do you write clean,
readable, and reusable codes?

The reason I'm asking this is because, so often, I got lost in
MovieClips spaghetti. Different depth/levels/timelines drive me nuts
and in the end, after reviewing my codes, I can't help re-writing
everything from scratch in order to make it much cleaner. So, on the
same project, I always work twice. :(

What I do so far is write-then-test every single function in my
codes;if it works then I'll write another function. And I tend to
write everything in a single frame.

I'd be more than happy if you, experts, can tell me the right way to
code/develop Flash applications.

TIA,
--
Anggie Bratadinata
Graphic|Web|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
www.ibshastautama.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-02 Thread Grant Cox
Are you actually deploying Flex 2 applications?  Doesn't it still 
require the alpha/beta Flash 8.5 player?



Bjorn Schultheiss wrote:


The enlightened Lemming would also like to add some comments.
/* 
* Begin
* 
* Flex 2 kicks ass. Any app dev I will work with flex.

* Any GUI component / animation works I'll use Flash
*
* Thank you
*
* The end
*/


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grant Cox
Sent: Friday, 3 February 2006 1:44 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How do you code your Flash applications?

Don't feel bad Anggie, I think it is an interesting topic that is worthy 
of discussion.  The problem is that best practices are quite 
subjective, and as such some people feel the need to be offended at 
alternative suggestions :)


Of course, the method I use (Eclipse/MTASC) really is The Best Practice, 
as in my infinite wisdom and experience have found that every other 
method is simply inferior, and only suitable for ignorant lemmings.  
You're all lemmings, you hear me!!  ;)


Regards,
Grant Cox


Anggie Bratadinata wrote:

 


On 2/3/06, Mark Winterhalder [EMAIL PROTECTED] wrote:


   


(to open) a can of worms, idiom: to ask for general stylistic advice
on a professional mailing list, often resulting in contradicting
advises that turn into flame wars, ending with somebody crying and
repeated demands for the thread to be discontinued.
  

 


Ugh, I didn't mean to start another flame war. I just wanna learn from
you, folks
I'm sorry if my question was considered a can of worms. If there's
any Indonesian Flash mailing list that is as good as this one, I'd
turn to them instead, keeping the worms in Indonesia.

--
Anggie Bratadinata
Graphic|Web|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
www.ibshastautama.com
www.nextrand.co.id
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



   


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

 


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


Re: [Flashcoders] quick array question

2006-02-01 Thread Grant Cox

Use Array.splice() to remove an element.

randomPos = random(total);
rfcClip = rfcsArray[randomPos];
imgID = imgArray[randomPos];

rfcsArray.splice(randomPos, 1);
imgArray.splice(randomPos, 1);

total--;



Corban Baxter wrote:


Ok one quick array question...

randomPos = random(total);
rfcClip = rfcsArray[randomPos];
imgID = imgArray[randomPos];
total--;
//now how can I delete those two records from my two arrays and
recompile the arrays for use next time? I want to slowing delete the
entire array so that I never use one twice... thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


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


Re: [Flashcoders] NetConnection Debugger not working in Flash 8?

2006-01-22 Thread Grant Cox
Yes and no.  On my main machine I have both installed, but on a 
secondary machine I uninstalled Flash MX2004 before installing Flash 8, 
and it exhibits the same problems.


Very odd indeed.


Gavin Lilley wrote:


I have exactly the same problem. I have installed a fresh version of 8 and
then remoting and components.

Do you have Flash 7 and Flash 8 on the same pc?

Im wondering if it is possible to install 7 first and then install 8 'over
the top of 7' to solve this problem.

I read about copying old library files across but as far as I can see I am
missing nothing.

--
Gavin Lilley.


On 1/20/06, Grant Cox [EMAIL PROTECTED] wrote:
 


I have just upgraded my workflow to Flash 8 and the latest MTASC today,
and found that while my Remoting calls were working, nothing was
printing in the NetConnection Debugger.  After some debugging I have
found that I cannot get anything to print to the NetConnection Debugger
even from within the Flash 8 IDE, and this is with a clean reinstall of
Flash 8 (no previous version of Flash installed) and the Remoting
components.  I have set the Flash 8 security settings to Always Allow,
and to trust anything in C:\.

The follow code, when applied to the first frame of an empty movie with
just the RemotingConnector Component on the stage, works in Flash 7, but
does not work in Flash 8.  The log messages work fine (and the remoting
connection is created and works), but nothing appears in the
NetConnection Debugger.

Can anyone see a problem with this, or even replicate the error?

Regards,
Grant Cox


///
import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

var myLogger:Log = new Log(Log.DEBUG, logger1);
myLogger.onLog = function(message:String) {
   trace(NetConnection LOG:  + message);
};

var gatewayURL:String = http://localhost/myproject/gateway.php;;

var userService:Service = new Service ( gatewayURL, myLogger, Users,
null, null );
trace(gateway at:  + gatewayURL +  user service:  + userService );
NetDebug.trace(testing testing testing);

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

   


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

 


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


Re: [Flashcoders] Flash Remoting

2006-01-22 Thread Grant Cox
If you are using AS2, then you want to use import, not #include (which 
is AS1).


import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

Regards,
Grant Cox


JP wrote:


I'm running into very odd issues with the installation of Flash remoting
components for AS2 on both Windows and OSX using Flash MX 2004.

1. In both cases, using #include NetServices.as or NetDebug.as produces
a 'file not found' compiler error.
2. After reading through a bunch of Tec notes, I discovered that those two
files needed to be placed into the include directory. After that, Flash
found the files, but...
3. Suddenly the compiler spit out 20+ warnings about improper import paths
defined in these files.

import mx.remoting.degug. -- place filename here


I started madly shuffling files around to their correct paths (on the OSX
version), but now I'm getting 20+ messages from within the component files
when including NetDebug or NetServices:

**Error** Volume:Users:jpowers:Library:Application Support:Macromedia:
Flash MX 2004:en:Configuration:Include:NetDebug.as: Line 10: Classes may
only be defined 
in external ActionScript 2.0 class scripts.

intrinsic class mx.remoting.debug.NetDebug extends Object

or

[snip] Syntax error. import mx.remoting.debug.events.NetDebugTrace;
[snip] Syntax error. static public function
getNetDebug():mx.remoting.debug.NetDebug

Can anyone tell me how I can sort this out? I'm stumped.

-jp

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

 


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


[Flashcoders] NetConnection Debugger not working in Flash 8?

2006-01-19 Thread Grant Cox
I have just upgraded my workflow to Flash 8 and the latest MTASC today, 
and found that while my Remoting calls were working, nothing was 
printing in the NetConnection Debugger.  After some debugging I have 
found that I cannot get anything to print to the NetConnection Debugger 
even from within the Flash 8 IDE, and this is with a clean reinstall of 
Flash 8 (no previous version of Flash installed) and the Remoting 
components.  I have set the Flash 8 security settings to Always Allow, 
and to trust anything in C:\.


The follow code, when applied to the first frame of an empty movie with 
just the RemotingConnector Component on the stage, works in Flash 7, but 
does not work in Flash 8.  The log messages work fine (and the remoting 
connection is created and works), but nothing appears in the 
NetConnection Debugger.


Can anyone see a problem with this, or even replicate the error?

Regards,
Grant Cox


///
import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

var myLogger:Log = new Log(Log.DEBUG, logger1);
myLogger.onLog = function(message:String) {
   trace(NetConnection LOG:  + message);
};

var gatewayURL:String = http://localhost/myproject/gateway.php;;
  
var userService:Service = new Service ( gatewayURL, myLogger, Users, 
null, null );

trace(gateway at:  + gatewayURL +  user service:  + userService );
NetDebug.trace(testing testing testing);

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


Re: [Flashcoders] NetConnection Debugger not working in Flash 8?

2006-01-19 Thread Grant Cox

Yes, yes, and yes.

And in Flash 7 it works, but not Flash 8.


Steven Sacks wrote:


Did you install Remoting for Flash 8?

Did you put the remoting components on the stage of your movie?

Did you try manually tracing?

NetDebug.trace(Hello world);



 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Grant Cox

Sent: Thursday, January 19, 2006 9:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] NetConnection Debugger not working in Flash 8?

I have just upgraded my workflow to Flash 8 and the latest 
MTASC today, 
and found that while my Remoting calls were working, nothing was 
printing in the NetConnection Debugger.  After some debugging I have 
found that I cannot get anything to print to the 
NetConnection Debugger 
even from within the Flash 8 IDE, and this is with a clean 
reinstall of 
Flash 8 (no previous version of Flash installed) and the Remoting 
components.  I have set the Flash 8 security settings to 
Always Allow, 
and to trust anything in C:\.


The follow code, when applied to the first frame of an empty 
movie with 
just the RemotingConnector Component on the stage, works in 
Flash 7, but 
does not work in Flash 8.  The log messages work fine (and 
the remoting 
connection is created and works), but nothing appears in the 
NetConnection Debugger.


Can anyone see a problem with this, or even replicate the error?

Regards,
Grant Cox


///
import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

var myLogger:Log = new Log(Log.DEBUG, logger1);
myLogger.onLog = function(message:String) {
   trace(NetConnection LOG:  + message);
};

var gatewayURL:String = http://localhost/myproject/gateway.php;;
  
var userService:Service = new Service ( gatewayURL, myLogger, 
Users, 
null, null );

trace(gateway at:  + gatewayURL +  user service:  + userService );
NetDebug.trace(testing testing testing);

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



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

 


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