Re: [Flashcoders] AS3 Hide props?

2006-07-10 Thread stacey
Nice! I was looking at the object class for that - coolio.

One thing I noticed is that the exact same code in Flash 8 works fine and
doesn't pass the length of the array where in as3 it slipped it in.


 Hello :)

 It's easy ;) You can use myObject.setPropertyIsEnumerable(myProperty,
 false)

 EKA+ :)




 2006/7/9, Weyert de Boer [EMAIL PROTECTED]:

 Yes, hiding properties of inherited classes would be nice.

 Yours,
 Weyert
 ___
 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] AS3 Hide props/AMFPHP oddity?

2006-07-10 Thread stacey
Okay tried the setEnumberable out and in Flex it traces back false but the
php is still seeing the length property, and Service capture still shows
the length property being available in the array I sent to the php service
according to service capture. This is using the extending net connection
method for amfphp.

Like I said before, the same call in Flash 8 doesn't show the length
property at all being made available. Its fine.

Anyone know the difference between the two?
Obviously the length property isn't exposed during looping within Flex.

Is this a bug of some sort? Is my php not handling something it should be?
Ideas why this is happening?


 Nice! I was looking at the object class for that - coolio.

 One thing I noticed is that the exact same code in Flash 8 works fine
 and doesn't pass the length of the array where in as3 it slipped it in.


 Hello :)

 It's easy ;) You can use
 myObject.setPropertyIsEnumerable(myProperty, false)

 EKA+ :)




 2006/7/9, Weyert de Boer [EMAIL PROTECTED]:

 Yes, hiding properties of inherited classes would be nice.

 Yours,
 Weyert
 ___
 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] AS3 Hide props?

2006-07-09 Thread stacey
This might be a ring ring but I didn't see much in the archives...
Is there anything like ASSetPropFlags in as3?

I haven't even tested that yet?

Basically I am using amfphp and i'm sending an array - and its all good
but in php when you loop you see the length property. I want to hide that
property on my end if it is possible - more of a -can you do this?


___
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] embedFonts vs. setTextFormat

2006-07-05 Thread Stacey Mulcahy
Try setting your textFormat after you apply the text. 
Also, I try to make sure the linkage name of the font is the same as the
actual font for the purpose that its easier to read and self descriptive. 

Order of operation does matter for this kinda thing, you have to embed fonts
before setting the text and set the textFormat after, I believe. For
example,  I know this works:

var myTF=new TextFormat();
myTF.color=0x66;
myTF.font=DINNeuzeitGroteskLight;
myTF.size=10;

this.createTextField(tf, 2, 0, 0, 100, 0);
tf.autoSize = left;
tf.embedFonts=true;
tf.multiline = true;
tf.selectable=false;
tf.wordWrap = true;
tf.text = Testing this out;
tf.setTextFormat(myTF);


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn,
Michael
Sent: Wednesday, July 05, 2006 8:23 AM
To: Flashcoders mailing list
Subject: [Flashcoders] embedFonts vs. setTextFormat

Hi list...

The embedFonts line seems to prevent the setTextFormat line from
working.  What am I missing?  The font univ is in the library, and its
linkage is univ.

Thanks,
- Michael M.

private function createSlideWatcher():Void {
var tf:TextFormat = new TextFormat();
tf.font = univ;
tf.color = 0xFF;
tf.size = 30;
_root.createTextField(slideWatcher,
_root.getNextHighestDepth(), 10, 10, 150, 150);
_root.slideWatcher.background = true;
_root.slideWatcher.backgroundColor = 0x66;
_root.slideWatcher.embedFonts = true;
_root.slideWatcher.setTextFormat(tf);
_root.slideWatcher.text = hi;
}

___
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] weirdness passing string to text field

2006-07-05 Thread Stacey Mulcahy
How are the variables being generated and set? 
Are you getting those values from external source such as xml or text file?

I haven't followed the thread... sorry.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Lecoat
Sent: Wednesday, July 05, 2006 8:23 AM
To: FlashCoders list
Subject: Re: [Flashcoders] weirdness passing string to text field

Back again.

Well, I *thought* it was working...
What do you guys make of a situation where a movie works in Test Movie
but not from the web server? Here's the deal:

variable1:String populates textField1  (initial value =  )
variable2:String populates textField2  (initial value =  )
variable3:String populates textField3  (initial value = Click on a
photo to learn more about the person)

Variables get changed according to button clicks.

When I run Test Movie, the first two fields are blank as expected and
the third one shows the instructional text as set by the variable.

Publish... upload to server... clear browser cache to be sure...
But now:

first two fields say ee
third one says undefined

Clicking buttons, which should rewrite the text fields, also gives the
same results.

For the record, text fields one and two just have uppercase glyphs
embedded, whilst the third one has upper and lower case, numerals, and
punctuation. These choices are appropriate to the text that the button
clicks will enter.

So, why will it work in test but not online?
Hlp!

-- 
Rick Lecoat

--
Original message:
Received from Adrian Park on 5/7/06 at 10:54

Glad to be of help Rick.

On the font embedding thing v. the font being installed on your machine,
I'm
pretty sure that if you specify a font but don't embed any characters then
Flash will use the installed font but if you embed then Flash will only
look
to the embedded characters for display and will ignore the installed
version
of the font. Hope that makes sense!

Good luck with your deadline!

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


___
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] embedFonts vs. setTextFormat

2006-07-05 Thread Stacey Mulcahy
N0 actually it doesn't affect the entire string, if you use the optional
params. setTextFormat takes optional index parameters for the index to start
the format and end the format.

 
You can go mytf.setTextFormat(startIndex,endIndex,textFormat)
I use that all the time to format something bold, smaller, etc and haven't
found a need to use setNewTextFormat.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Wednesday, July 05, 2006 9:34 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] embedFonts vs. setTextFormat

That would affect all the text currently in the field.

Ian

On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
 But couldn´t I just set a new TextFormat using the setTextFormat() method?

 On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote:
 
  Because it allows you to use several different text formats along one
  text string. Especially useful for a chat program, where you'd like the
  user's name to be in a different text style than his chat output.
 
  - 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


___
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] replacing the Library palette?

2006-07-04 Thread Stacey Mulcahy
You could easily write yourself a jfsl command that would find the item in
the library - find out which item is currently selected in the document,
loop through the library items, select the match - etc.

Add a mapping to a key combo and yer golden.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lanny McNie
Sent: Tuesday, July 04, 2006 11:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] replacing the Library palette?

The library panel is not written in JSFL.  JSFL has access to most of the
properties of the library and its symbols, but not the symbol preview.
There are some helper tools, such as ALF which can make your life easier.

On 7/2/06, keitai guy [EMAIL PROTECTED] wrote:

 Is the FlashIDE library palette actually written in JSFL?

 ie, would it be possible to replace this? its the kludgiest part of
 the flash UI...

 btw is there a way to search for a named symbol and goto it? (much
 like eclipse allows you to filter to go to a named resource wtihout
 navigating the directory tree..)

 /dc
 ___
 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] where to put AS 3 classes

2006-06-27 Thread stacey
right click on project
properties
Flex build path  i believe.

 Hi there,

 I'm playing around with AS 3 and Flex 2 at the moment. With AS 2 I used
 to organize my classes in subdirectories e.g.
 com.domain.utilities.SomeClass.

 I found that especially helpful when using classes in different
 projects. I can't really figure out how to do this with flexbuilder 2.0.

 Whenever I want to create a new AS class FlexBuilder asks me for the
 parent folder which has to be either flex- or an action script project
 folder.

 But that's not what I want. I just want to specify a directory on my
 hard drive where I put all my classes. I'm looking for something similar
 to the classpath settings in the Flash IDE.

 How would you do this with Flexbuilder 2?

 Cheers

 Robin



 ___
 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] transparent background in Projector (Screenweaver)

2006-06-26 Thread stacey
Try using SWFStudio - i know the transparent bg feature on theirs doesn't
kill yer cpu.

 Hi all,

 i've made projector (walking insect) with transparent background, and
 it's killing all my CPU. there is 3 pieces of them, i've tried just 3
 squares and it is the same, i can see on my comp redrawing sprites and
 have 50% CPU (dual processor, 2 GHZ) on other computers, redrawing is
 not visible, but 100% CPU (or 50% for dual)

 I think the problem is creating dynamic mask (flash with desktop), but I
 dont know how to fix it.
 Should I use other projector then Screenweaver?

 Btw, i found same problem with some GameHouse game, when it was in
 fullscreen, all was right, but when i switch off fullscreen
 and game was in transparent rectangle (desktop was visible outside the
 game), mouse was flickering, CPU full, i almost cant do anything
 but another games was ok after switching off fullscreen, so this can be
 problem with some settings maybe...
 i dont know, maybe some games was Shockwave, some Flash, really dont
 know, but I think 3 movings squares on desktop should not
 take 100% CPU

 Can someone advice me, what's is the problem?

 Thanks many time...

 --
 -
 Franto

 http://blog.franto.com
 http://www.flashcoders.sk
 ___
 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] What AS edting features do you want in BBEdit?

2006-06-26 Thread stacey
Can the responses be sent to Stephen via his email address to keep the
List slim n'trim ? Pls  thks.

 I use PrimalScript on windows, and the code completion (aka
 Intellisense) is very nice. It works on all the built in classes, as
 well as all my own classes. It's not perfect (occasionally it only finds
 function names, but not paramaters), but it speeds up my coding a lot --
 i don't have to look into the reference to find the exact name of the
 method I want.

 -David R

 On 6/26/06, Steven Loe [EMAIL PROTECTED] wrote:
 Hello all,

 After pleading with BareBones software a couple of times to offer
 native support for ActionScript, I finally seem to have their
 attention...

 They've asked me what specific AS editing features (besides code
 coloring) would be most valuable. I'm just one guy, and my requests
 would be integration with MTASC and Command-Enter to test movie. What
 features do the rest of the Mac ActionScripters want to see in BBEdit?

 I'll compile respones into a feature request list and send it it Bare
 Bones.

 thanks very much!

 -Steven

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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: loadvars vs xml onData

2006-06-26 Thread stacey
Its called first and is faster because its invoked as soon as you have
data, and before you actually parse or process the data. onData is always
gonna be  called first. onLoad is called when the call has totally
completed, there fore at the end of the process, whereas onData is at the
beginning.

 Hi,

 I actually don´t know, but probably make more sense if the onLoad
 method would be faster because it should be easier to parse the
 LoadVars source rather than the xml one. But no idea why the onData
 method is faster...

 Sorry for not helping too much :S

 Bye

 On 6/26/06, Andreas Rønning [EMAIL PROTECTED] wrote:
 Anyone know why loadvars.onData gets results quicker than xml.onData?
 Did a bunch of average tests and xml is noticably slower (5-10 ms)

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



 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 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: loadvars vs xml onData

2006-06-26 Thread stacey
Caught on skimming
Intersting question now, I'm wondering which class has a higher overhead
file size wise...

 Hi Stacey,

 Check out the question:

 Anyone know why loadvars.onData gets results quicker than xml.onData

 He's comparing loadvars.onData with xml.onData - apples and apples, not
 loadvars.onData with xml.onLoad.

 It's a good question!  I'd like to know

 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


Re: [Flashcoders] Loading external SWFs with a different frame rate

2006-06-26 Thread stacey
whatver you load takes its parents frame rate - so I'm gonna say - ain't
gonna happen.
 Does anyone know how to load an external SWF and have it play back at
 its native frame rate if the movie that its being loaded into has a
 different frame rate?

 For example, I have a movie that is set to 30fps (swf1)  and I want to
 load in another movie that's 12fps (swf2).  I want swf2 to play back at
 its intended speed.

 Any suggestions?

 Thanks,

 Derek
 ___
 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] Script running to slow, how to fix?

2006-06-25 Thread stacey
Sounds like you have a loose loop. Yer always best to post code.

 Hello!

 I am currently revising a website so tha tthe pictures will be loaded
 after each other. I am using the QueueLoader-class for this only when I
 am testing my movie in Flash 8 using the Simulate Download and a speed
 of 112K. I sometimes happen to get a  message similar to Script is r
 unning to slow, do you want to abort?

 Does anyone know how this can be fixed? I am not doing a lot things at
 the same time.

 p.s. I am curious if anyone already happen to have made any Tween which
 will move a movieclip from the bottom left corner, to the top right
 corner of a container movieclip.

 Yours,
 Weyert

 ___
 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] Export frame option disabled

2006-06-23 Thread stacey
http://www.gskinner.com/blog/archives/000104.html
Check out the preloading. You could also create a shell and preload in
that swf.



 Are you basing the percentage on the frames loaded (100 * _framesloaded
 / _totalframes) or bytes loaded (100 * getBytesLoaded() /
 getBytesTotal())? You should be doing the latter. If you are then ... um
  *tags someone else*

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Boutin
 Sent: Thursday, June 22, 2006 1:52 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Export frame option disabled

 Hey everyone,

 Im creating a preloader and I notice that it doesnt start until about
 90% done loading the file.  I believe this is because my ui components
 are exported to the first frame.  I tried unchecking export to first
 frame with no difference.  I also tried changing the actionscript
 setting to export it to frame 2 rather than 1, but it is unavailable to
 change (the field is disabled).  Am I missing something here? ;) Thanks!



 Mike
 ___
 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] Best Flash data access way opinions

2006-06-22 Thread stacey
Depends on your knowledge level too

CF is dead easy to pick up - you can easily learn to create a CFC in no
time. The class based structure of PHP when creating a service throws a
couple people off in terms of scope resolution  So depending on your
background if you know neither language, one might be easier to pick up
than the other.

CF costs. Yes.
PHP is free and most hosts support it, Yes.

But unless I am totally wrong, AMFPHP wasn't out of beta until recently.
And it isn't officially supported by Adobe/MM, or if it is, it wasn't
until recently. CF is.

I've used both and frankly they are both dead easy to install, to create
services and the AMFPHP is pretty reliable, I've created some bigger
applications with it no problem and don't have an issue recommending it to
a client now.


___
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] growing animation

2006-06-20 Thread stacey
Check gskinner.com
He has an example of this.Basically its an enterframe to simulate the
camera movement and not sure about the branches - probably another process
for that.



 Hi.everyone


 Here is the link:
 http://www.interone.de/cms/de/

 Anybody can explain how did they do !

 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] The Delegate class ...

2006-06-14 Thread stacey
Do you really need the call bit ? Can you not just do something like:

var host=this;
mc.onRelease=function(){
 host.fireFunction();
}
function fireFunction(){
trace(function called)
}


You can use delegates for more than just components - I use delegate most
often when I want an item/class to have a public no-op function that I can
overwrite outside of it - like a layoutclass that draws items to the
stage, i might want to overwrite what it does when its finished laying
stuff out- a totally made up example might be :



var LM:LayoutManager=new LayoutManager();
LM.onLayoutComplete=Delegate.create(this,layoutChildren);
LM.doLayout(grid,items);

function layoutChildren():Void{
 trace( layout is done);
}

Alot of people complain that you can't pass parameters with delegate. Well
you can, a multiple of ways, and if you structure your code with some
forethought, you can have it pass params if you are delegating a function
structured do so. I would argue that if its not flexible enough for you ,
then maybe you need to revisit your architecure and determine if Delegate
is  what you need or if you're really in need of using something else such
athe dispatch scenerio.  One thing to remember is that Delegate is just a
function, and therefore you can add properties to it and have a reference
to it. I don't know how proper that is, but it works.

var myDelegate:Function =mx.utils.Delegate.create(this,onComplete);
myDelegate.someProperty=foo;

myButton.addEventListener(click,myDelegate);

function onComplete(obj:Object):Void{
  trace(arguments.caller.someProperty)
}




 While not as elegant, you can get around this issue delegate-free with
 the following:

 class SomeClass {

   private var a:Number = 3;

   function SomeClass(mc:MovieClip){

   var thisObj = this;
   // Set a reference to this

   mc.onRelease = function(){

   thisObj.onRelease.call(thisObj);
   }

   }

   function onRelease(){

   trace(this.a: +this.a);

   }
 }

 --

 Joseph

 James Marsden wrote:
 The delegate class is a godsend for so many things...


 // inside a class:

 mc.onEnterFrame = mx.utils.Delegate.create(this, main);

 function main()
 {
// the mc is calling my method, and I can access all my properties
 as
 if I was calling it myself
 }




 Stephen Ford wrote:

 Hello All,

 Can anyone confirm that the Delegate class is only helpful when using
  components ?

 Or should it also be used for events outside the component framework
 ?

 No doubt it depends on what your trying to achieve, but just
 generally  speaking, what do you think.

 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



___
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] Command line compile

2006-06-14 Thread stacey
A couple notes about MTASC -

First off its pretty strict. Your code has to be pretty solid, items have
to be casted properly, variables cannot be redefined in the same scope,
etc, or MTASC bitches at your fierce. Its not a bad thing in the long run,
but something you should think about preparing for if you are going to use
it. I had to refactor an entire codebase which was quite large, and clean
up the casting and variable definitions, in order for MTASC to work with
it. IT was not fun. The code, by no means was incorrect or even sloppy.
MTASC is just super super strict. I personally like that tho.
Having said that, once I got it running through MTASC I went from a four
and half minute compile time to 29 seconds. That made things so much
easier :)

 Oh, sorry about that. Didn't read carefully enough.

 I don't think there is a solution given your contraints...but I'm
 going to offer my two cents. Forget MM's compiler. It might as well be
 unsupported. Tech support will cost a fortune to speak to and I'm
 pretty sure they wouldn''t be able to fix your problems anyway.

 Switch to MTASC. Convince whoever you're working for that it's a good
 idea. Your life will be easier and consequently, so will everyone
 elses. I've been using it for more than a year building major
 libraries (ActionStep -- http://tinyurl.com/lupmv) and at this point
 there is absolutely nothing to worry about. A large and well-versed user
 base will be right at your fingertips. Lots of coders were fed up with
 MMC a long time ago, and are now happily enjoying Flash
 development again.

 Hope you didn't mind the rant, good luck,
 Scott

 On 14/06/06, Sam Thorne [EMAIL PROTECTED] wrote:
 Hi Scott,

 Yeah, I've seen this, but the problem isn't making the compile call,
 it's running Flash while not in a windowing environment.

 All Mike's script really does is build a custom jsfl script on the
 fly, open Flash and run the script.
 It's the 'Open Flash' bit that we're stuck with, as we have no logged
 in user.

 On 14 Jun 2006, at 14:29PM, Scott Hyndman wrote:


  http://weblogs.macromedia.com/mesh/archives/2003/11/
  flashcommand_fl.html
 
  On 14/06/06, Éric Thibault [EMAIL PROTECTED] wrote:
 
  Do your command line from a .bat wrapped with a SU command
 (substitut user with the password).  I don't have an example with
 me but will try
  to get one from home.  I've used that trick a lot but it was over 6
 years ago.
 
  A+
 
  Sam Thorne a écrit :
   Hi List,
  
   I'm working on a project where we're looking at switching to
  nightly builds for the development process, building on MS Windows.
  
   At the moment a cron job attempts to run the compile and gets
  stuck on our Flash compilation.
   This is probably because the build machine isn't running as a
  logged in user, but as a system process. This means when Flash
 tries to throw up a splash screen etc. it is probably falling over.
   We can't run it as a logged in user (and thus get the windowing
  environment), as it breaches company security to have a dummy user
 logged in all the time and the machine will auto logout after a
 couple of minutes.
  
   We can't use mtasc, because of issues with using an unsupported
  compiler for production code.
  
   Is there any way to do a command line compile with pure
  actionscript 2.0 .as and .fla based source files without a
  windowing environment?
   Is this something that Flex can do for us, or would we have to
  rewrite into mxml?
 
 

 Regards,

 Sam Thorne
 Interaction Design

 Web: http://www.native.com/
 Tel: +44 (0)207 588 7970
 Fax: +44 (0)207 588
 7971___
 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] .swf's containing html's location

2006-06-14 Thread stacey
You could also tap into the history of the page with the js history object
- and either embed that via params or use external interface. Not sure how
reliable that is but its an idea.

 I am doing some flash ads and was trying to find out if there is a
 property that I can read the url of the html page that called my current
 .swf file.

 I know that MovieClip._url will tell me where the .swf file's sitting,
 but what do I read for the serving page's location?

 Thx!
 Aaron


 ___
 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] XML problem

2006-05-29 Thread stacey
once you load a movie into another all paths relate to the host movie and
no longer to the child. So make sure you're pathing is right. Test the
onload for the xml and make sure it can't find the xml- you will get a
huge can't find the url error in the output window if that was the case.

In terms of pathing  i mean :

Shell fla
assets/gallery.swf
assets/gallery.xml

Shell loads assets/gallery.swf
now the path to the xml is not gallery.xml as in relative to the gallery
swf, but relative to the shell, being assets/gallery.xml

 Hi all!

 I have a simple XML gallery. Id like to load it to an another movie with
 loadMovie(gallery.swf, container). After of my loading within main
 movie the gallery doesnt work. It seems does not find the XML file or
 does not load the XML file, but the XML is in a same dir. What is the
 problem?

 Thx for your help.

 Robert

 ___
 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] Image and scale Grid

2006-05-25 Thread Stacey Mulcahy
Alrighty, I'll take one for the team and post the stupidest question of the
day - 
I have the following (flex 2b3)

  [Embed(source='assets/header.png',scaleGridTop='20', scaleGridLeft='10',
scaleGridBottom='30', scaleGridRight='20')]
[Bindable]
var headerImage:Class;

and

mx:Image source={headerImage} height=51 width=100%
id=header_mc/mx:Image

Basically it should be a header that expands width wise use the scale grid. 
Its definitely NOT working for me regardless of how I set it up. Does it
need to be within a container ( tried that, didn't get the results I wanted)

Ultimately the left has to be like 200 pixels in rather than those numbers,
but whatever.

Also the docs are inconsistent, some examples show the scale properties
assigned to strings, some show numbers..

Anyone got a simple example of this that I could try using, this is driving
me nuts, just trying to get an expanding header... 


___
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] Image and scale Grid

2006-05-25 Thread Stacey Mulcahy
Damn - sorry wrong list!!!


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stacey
Mulcahy
Sent: Thursday, May 25, 2006 5:46 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Image and scale Grid

Alrighty, I'll take one for the team and post the stupidest question of the
day - 
I have the following (flex 2b3)

  [Embed(source='assets/header.png',scaleGridTop='20', scaleGridLeft='10',
scaleGridBottom='30', scaleGridRight='20')]
[Bindable]
var headerImage:Class;

and

mx:Image source={headerImage} height=51 width=100%
id=header_mc/mx:Image

Basically it should be a header that expands width wise use the scale grid. 
Its definitely NOT working for me regardless of how I set it up. Does it
need to be within a container ( tried that, didn't get the results I wanted)

Ultimately the left has to be like 200 pixels in rather than those numbers,
but whatever.

Also the docs are inconsistent, some examples show the scale properties
assigned to strings, some show numbers..

Anyone got a simple example of this that I could try using, this is driving
me nuts, just trying to get an expanding header... 


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

2006-05-22 Thread stacey
What version of flash are you using? YOu can try delegate to solve scoping
issues but i kinda set it up in two ways as the comments suggest.
Also, avoid references to root if possible.


import mx.util.Delegate;



function buildNav(p_content:Array):Void {
for (var i:Number = 0; inumberOfItems; i++) {
//attach the nav Item
trace(done iteration +i);
var mc:MovieClip= navContainer.attachMovie(navItem, navItem+i,
i);

mc._y =i*15
mc._x = 0
//assign the title
mc.navItemText =p_content[i].navItemText;
// you could do this to correct scope
mc.link=p_content[i].jobURL;
mc.select=Delegate.create(this,onSelect);// this allows you to
pass //params
mc.onRelease=function(){this.select(this.link)}
// or you could do something like :

   // mc.onRelease=function(){
getURL(this.link,_blank);
  }

}

}

function onSelect(p_url:String){
   getURL(p_url,_blank);
}


buildNav(contentItems);// build the nav passing in the data





___
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] Using ARP without Forms?

2006-04-18 Thread Stacey Mulcahy
Just chiming in here late...

Straight up I haven't used ARPX - even tho I've been recommended to do so
many times. I’m interested in checking it out and seeing what it has to
offer. I'd be interested in knowing the benefits, differences from ARP - if
someone has used it extensively, please feel free to png me off list as to
why you like it, use it, etc.

As for me and the type of applications I develop, I find ARP *way* too
structured. There are some things about it I think are great -for one the
commands and service locator. Even tho I typically organize my stuff in this
way, I now have a very structured table of contents idea for all of my
service calls. I tend to dictate the service urls and names in xml and
populate the service locator that way. 

What I find a bit too structured about ARP is the fact that, unless I'm
mistaken which is quite possible, if you don't modify it, it assumes that
you are always going to want the response from a command. So you issue a
command, and because the command is tied to the view, it calls the callback
on the view item when it is complete. You can't just remove the view from
handling the callback, as its *wired* in so to speak.

So you run into this scenario - lets say you have an alphabetical list and
you're clicking through the letters because you want to see all your
contacts by A or B - so forth. Clicking each letter populates the list
underneath it with the results from the database. So you're like me, a mad
clicker, and you hit A , and change your mind and hit H cos maybe you listed
the person under the first name rather than the last name. Then you change
your mind and you click S. Each of those commands get issued and are tied
into that view  - so your list, starts updating with the results of each
command. But once you click a second item, you might not want the results
from the first command anymore, you'd like to ignore it. For me, to achieve
this, I had to return the command when I issued it so I could delete it if I
issued it again. And if you don't have the luxury of using remoting in every
project, then sometimes those command can take a while to complete - sending
the variables, parsing the xml on the return etc. Once again, I might be
showing my ignorance in regards to ARP, my only defense is that I have just
recently explored the framework.

Any insight as always is appreciated - if its not something that would
benefit the entire list, shoot me an email.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
McColl-Sylvester
Sent: Tuesday, April 18, 2006 8:38 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Using ARP without Forms?

That's good.  The issue I have with Flash (at least I used to) was knowing
where all my coding was.  Because of the way Flash is structured, many
developers tend to stuff AS into MovieClips instead of keeping a series of
root clips / classes.  Using ARPX, I can create completely reusable custom
controls, while feeding all core functionality back through to the base
class using events.  It really does make for much cleaner code and makes
management of the application far simpler.

I'm surprised, though, by your usage of an XML Socket server.  Do you have a
need for persistent data that session handling won't provide?  You should
look at OpenAMF for Java remoting.  It's what many of the other remoting
frameworks were developed against.

Regards,
Lee




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Julien
Vignali
Sent: 18 April 2006 12:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Using ARP without Forms?

hey that's cool :-) I don't know much about .NET Fluorine because my 
company is more java-oriented.
I am developping the flash client from scratch (well no MM components, 
but intensive use of several frameworks) with the flash IDE (just for 
fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC 
(-keep power!)
For the socket communication, I use the Offbeat server (Oregano would 
have done the job as well) but just as a proxy between clients and the 
server, which is a custom j2ee webapp...
I don't know about the number of lines I wrote, but as the project 
grows, I think it needs more structure and flexibility (especially when 
it comes to event management) so that's why I was looking to ARP...

Regards,
Julien


Lee McColl-Sylvester a écrit :
 What a coinsidence.  That happens to be my main app, using Flash and .NET.
I was using XML transfers, though I quickly switched to Fluorine once I
realised the possibilities.  The Flash side of my application uses ARPX and
is around 6000 lines of ActionScript now.  I use FlashDevelop, so the actual
asset side is very very minimal.  I find ARPX provides me with a great solid
framework that reflects well in the .NET side of my applications.  What are
you using for the XML Sockets?  Did you develop your own system or are you
using something like Oregano?
 

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread stacey
Try this :

 import mx.utils.Delegate;
 class Ball {
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

public function Ball () {

// initialize EventDispatcher
mx.events.EventDispatcher.initialize(this);

// create a ball MC
var aBall:MovieClip =  _level0.createEmptyMovieClip(  'testBall',
 _level0.getNextHighestDepth()  );

// draw ball
aBall._x = 100;
aBall._y = 100;
aBall.lineStyle(20, 0xff, 100);
aBall.lineTo(0,.2);
declareEventMethods(aBall);//BWC - CHanged this to pass the item
}

// pass the mc in
public function declareEventMethods(p_mc:MovieClip):Void { 
p_mc.onPress =
 Delegate.create(this,onPress);  }4

   private function  onPress () {  dispatchEvent( {type: press,
 target: this} );  }

 }


- you were trying to detect an OnPRESS eventon the ball class yet it
doesn;t extend Movieclip



 Hi Johannes -

 Thank you so much for your suggestions - I really do appreciate the
 help.

 I've removed MovieClip extension from the class, but it's still not
 working - it's still the same as where I started - the Ball object
 renders, but  events don't trigger the handler.

 I've streamlined things slightly - eliminated whitespace mostly, Please
 - I'm so lost here, this seems so simple.

 This is where the code is at:

 -
 timeline.as
 -

 import Ball.as;

 /* create object */
 var myBall:Ball = new Ball();
 myBall.declareEventMethods();

 /* add listener */
 myBall.addEventListener(press, myEventHandler);

 /* define handler */
 function myEventHandler(evt:Object):Void {  trace('evt.type: ' +
 evt.type + ' | evt.target' + evt.target);  }

 -
 Ball.as
 -

 import mx.utils.Delegate;
 class Ball {

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

public function Ball () {

   // initialize EventDispatcher
   mx.events.EventDispatcher.initialize(this);

   // create a ball MC
   var aBall:MovieClip =  _level0.createEmptyMovieClip(  'testBall',
 _level0.getNextHighestDepth()  );

   // draw ball
   aBall._x = 100;
   aBall._y = 100;
   aBall.lineStyle(20, 0xff, 100);
   aBall.lineTo(0,.2);
   declareEventMethods();
}

public function declareEventMethods():Void {  onPress =
 Delegate.create(this,onPress);  }4

private function  onPress () {  dispatchEvent( {type: press,
 target: this} );  }

 }




 ---
 [EMAIL PROTECTED]
 917-750-6398
 AIM: dcardena
 ---




 On Apr 12, 2006, at 8:55 PM, Johannes Nel wrote:

 ok sorry, you are extending movieclip. i thought for soem reason you
 were
 not. there is no reason for you to be extending movieclip, so don't

 once you have gotten rid of the inheritance then it should work. the
 reason
 the onPress function works is due to the fact that you are extending
 movieclip, and then you assign a different refrence for that function.

 anyway i hope you understand what i am tryimg to say
 ___
 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] Need help understanding EventDispatcher

2006-04-12 Thread stacey
J - you're totally right - i just avoid relying on the caller bit overall
as its not as flexible( for how i code ) :)


You often see people use delegates this way as well:
 buttonComponent.addEventListener(click,Delegate.create
 (this,onButtonClick));

 This is handy- but if you have to remove that listener at a point in
 time, you have no reference to it in order to remove it, so clean up
 becomes hard. I usually create a variable to hold the reference and pass
 it in: public var delegateItem:Function;

 not true.

 you can use arguments.caller to remove the listener when adding it like
 that. obviously that is only doable in the handler function.

 On 4/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 My two cents -

 EventDispatcher you use as a mixin, which basically means its a class
 you don't use solely on its own, and its purpose is to dynamically add
 something to object you mix it into. The members or functions of that
 mixin class basically get added to your class (to the prototype object
 - someone feel free to correct me if I am wrong - this is my
 understanding). EventDispatcher affords you 3 primary functions you
 use -
 addEventListener,removeEventListener and dispatchEvent. Mixing in a
 class is an effective way to get additional functionality without
 inheriting - as AS doesn't support multiple inheritance.

 With EventDispatcher you can mix it in- in a couple of ways. You can
 initialize the class itself to be a broadcaster
 (EventDispatcher.initialize(this)), you can utilie composition and
 have an object which will then be the event source ( like adding an
 object in your class that takes care of all the broadcasting
 responsibilities) and there's another way I havent' seen implemented
 too often where you pass the class protoype - in fact the first time I
 saw this approach was on darron schall's blog
 (http://www.darronschall.com/weblog/archives/000100.cfm).

 Delegate is a class that basically delegates/proxies the call. IN the
 past, to do somethign like load in xml and then call a function in the
 class, you would often see people do something like:

 myXML=new XML());
 myXML.host=this;// or myXML[host]=this;
 myXML.onLoad=function(){
this.host.parseLoadedXML();
 }
 myXML.load(file.xml);

 WITH Delegate it takes care of making sure items are called in the
 scope you designate, taking the scope/object and the function it
 should fire. myXML=new XML());
 myXML.onLoad=Delegate.create(this,parseLoadedXML);
 myXML.load(file.xml);

 Delegate returns you a function. You can retain a reference to that
 function by going somethign like:
 var d:Function=Delegate.create(this,onHandleMethod);

 You often see people use delegates this way as well:
 buttonComponent.addEventListener(click,Delegate.create
 (this,onButtonClick));

 This is handy- but if you have to remove that listener at a point in
 time, you have no reference to it in order to remove it, so clean up
 becomes hard. I usually create a variable to hold the reference and
 pass it in: public var delegateItem:Function;

 delegateItem=Delegate.create(this,onButtonClick);
 buttonComponent.addEventListener(click,delegateItem);


 THen when i have to remove:
 buttonComponent.removeEventListener(click,delegateItem);


 I guess I am feeling verbose tonight. Anyone, jump in and correct me
 where I might and possibly be wrong :)









 ___
 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




 --
 j:pn
 http://www.lennel.org
 ___
 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] Using EventDispatcher to update Controls and other Variables?

2006-04-12 Thread stacey
You still have to go through the process of adding the listener and
defining the callback so its up to you. You could a) create an array, push
all the references to the text field, and loop through the array if you
are simply just showing the same value throughout. So that will work okay
if each textfield handles the info in the same way.

But if you have one text field that takes the value and converts it to say
global to local coords, another text field shows the local to global coord
- so they deal with the value differently, then I would say go for the
event dispatching. Thats a definite benefit: multiple items can listen and
handle the event the way they see fit.

 Hello There!

 As long as we are on the topic of EventDispatcher, I have another
 question that could really help me out.

 If I have multiple Controls (and variables) throughout my application,
 that were all tied to a SINGLE variable (that changes several times per
 second), could I use an EventDispatcher method - to dispatch an event
 whenever this specific variable changes, and have ALL those controls
 subscribed to that Event, update themselves with this new value?

 Right now, I have a Mouse position function (which runs every time the
 mouse moves), that updates a TON of TextFields scattered throughout my
 application with the mouse coordinates.  In my function, I have to go
 through Each and Every TextField instance, and update the .text
 properties.

 Is there a better way to accomplish this, like using the Event system?
 Or is this considered such a simple process, that manually setting the
 .text properties for a ton of controls is just the easiest way, rather
 than dispatching events?  (keep in mind, this variable gets updated many
 times per second)

 This topic has been on my mind for a LONG time now - and I would love a
 definitive answer on how to do this.

 Thanks in advance!

 Mike
 ___
 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] Object move

2006-04-01 Thread stacey
Have you traced back the value you are trying to use to change the x pos?

   lap2_mc._x += int ((slidertav_mc.slider_mc._x +
slidertav_mc.width/2)+100);

Shouldn't it be _width?

try going : var amount:Number=(slidertav_mc.slider_mc._x +
(slidertav_mc._width/2)+100);

Also, one thing you could do to optimize this script rather than having
the onEnterFrame running all the time, is to define the onMouseMove event
or the onEnterFrame when the startDrag occurrs and kill it when its done.
That way you don't have something running all the time, when you don't
need it to be.

 Hi all!

 Since this time i was only a reader of your mailing list, but now I have
 a problem which needs help.

 I have 2 rectangles on the sceen. I can scale them with a slider, but i
 would like to move one of them left to right and back also a slider. Ive
 attached the code the last row should move the lap2_mc, but it doesn't
 move. What's the problem?

 Please help.

 Thaks

 Robert

 This is the code:

 /* wake up Sliders */
 slidebar_mc.slider_mc.onPress = function() {
 
 this.startDrag(false,-this._parent._width/2,0,this._parent._width/2,0);
 }
 slidefesz_mc.slider_mc.onPress = function() {
 
 this.startDrag(false,-this._parent._width/2,0,this._parent._width/2,0);
 }
 slidertav_mc.slider_mc.onPress = function() {
 
 this.startDrag(false,-this._parent._width/2,0,this._parent._width/2,0);
 }
 slidebar_mc.slider_mc.onRelease = onReleaseOutside = function() {
 this.stopDrag();
 }
 slidefesz_mc.slider_mc.onRelease = onReleaseOutside = function() {
 this.stopDrag();
 }
 slidefesz_mc.slider_mc.onRelease = onReleaseOutside = function() {
 this.stopDrag();
 }
 slidertav_mc.slider_mc.onRelease = onReleaseOutside = function() {
 this.stopDrag();
 }

 this.onEnterFrame = function() {
 lap_mc._yscale = int ((slidebar_mc.slider_mc._x +
 slidebar_mc._width/2)/258.5*100+100); lap_mc._xscale = int
 (((slidebar_mc.slider_mc._x +
 slidebar_mc._width/2)/258.5*100+100)/2); lap2_mc._yscale = int
 ((slidebar_mc.slider_mc._x +
 slidebar_mc._width/2)/258.5*100+100); lap2_mc._xscale = int
 (((slidebar_mc.slider_mc._x +
 slidebar_mc._width/2)/258.5*100+100)/2);

 lap2_mc._x += int ((slidertav_mc.slider_mc._x +
 slidertav_mc.width/2)+100);
 }



 ___
 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] Recommendation on good AS 2.0 framework code?

2006-03-29 Thread stacey
i'm getting into arp, but I would highly recommend looking up on jesse's
site for his rendition of it, much more flexible. Its good if you are
doing application based work, if not.. its too much.

 ARP: http://www.osflash.org/arp

 Cairngorn:
 http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1_02.html

 William Gibson:
 http://en.wikipedia.org/wiki/William_Gibson_%28novelist%29 - respect!

 Mike
 ___
 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] DINAMIC MENU

2006-03-29 Thread stacey
make the textfield dynamic, make it multilined, wordwrap and make sure it
can autosize.
mytxt.autoSize='left'; (can also be true)


 Hi,

 I'm loading texts from a XML file to be assigned to different
 buttons, but this texts have different amout of characters, and I   need
 the buttons to adjust to the amout of characters, keeping the   same
 widht for all of them, and just changing height and make this   text to
 wrap.
   For example, when text is home this button must have one line,
 but when text is This text is to long for a button I need it to be
 set in 2 or maybe 3 lines.

 Thanks in advance.


 Sebastián Sirvent
 http://www.e-foco.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-03-28 Thread stacey
SWF Studio all the way. The customer support is amazing and the people who
work there are both knowledgable and helpful- rare indeed.

 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] RE: Classes and setInterval ... (Stephen Ford)

2006-03-26 Thread stacey
My version is the alternative way - not sure about the documentation on
it, although I am sure its in there somewhere. Found this:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1662.html


SetInterval returns you a value- a number in fact that is the id of that
particular interval. Capturing that value and storing it makes sure you
have no problems clearing it. The reason you use the this keyword as in
this.intID is to ensure that the interval has access to the class
properties that it might need.

In the case of an fla where you are dumping code, this isn't the case and
you can use your form of the interval.

 Thanks Stacey,

 Yes it seems you need to pass in the parameter of 'this' before the
 function name and time, although I couldn't find reference to this in
 any of the manuals I looked in. Maybe they all just speak of AS1 and not
 class use of setInterval.

 _nInt = setInterval(this, myFunction, 100)  --- works in the class
 nInt = setInterval(myFunction, 100) --- is how the manual describes the
 use of setInterval

 Also, note the use of inverted commas around the function name in the
 first example above, they aren't required in a straight up .fla
 (non-class) like the second example above.

 Thanks again,
 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] Enourmous data Transfer by Flash.

2006-03-26 Thread stacey
Break it apart by process - login, registration, search, enter, edit, etc.
That will then break up the amount of information you are passing back and
forth - remoting would be ideal, but if you could still manage using a
drill down type of approach for retrievals - first you get the top level
info, someone clicks on it, it makes another call to get teh details of
that item.


 Even though Flex is a solid answer, you can still do this directly with
 Flash by breaking up the various pieces into a wizard type app and
 using remoting.

 Cheers,

 !k

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of hidayath
 q Sent: Friday, March 24, 2006 10:15 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Enourmous data Transfer by Flash.

 Hi guyz,

 I have been assigned a Inhouse project to be developed in Flash.Its a
 online registration of resume from the applicant and to searching the
 posted resume in different catogory by the Manager to sort out the
 resume.this project is almost like a application with nearly 20 tables
 and more forms and enormous amount of data to be passes in and out of
 Database.

 Is it feasible to develop a appication like this in flash.if so what
 kind of method i should adopt for the best result to develop the
 application in Flash.

 I really need u r help before i start this project.thank u in advance.

 Regards,
 S.Hidayath.
 ___
 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] bubbling up

2006-03-22 Thread stacey
yep i've gotten that technique to work. I guess key is to make sure all
items are init as event dispatchers.

 Has anyone gotten bubbling up functionality to work?  as2.

 I am sure someone has.

 Dispatching a msg from a buried child class or mc up to a base class.

 check out

 http://www.peterelst.com/blog/2006/01/07/Event-Bubbling/

 for more info on what I am talking about.

 Also is it more trouble than it is worth? But  I am sick of passing
 in pParent or creating a chain of listeners and now I am tempted to use
 a _global function. And then I would be kicked out of the club.

 I see code out there but can't make it work. or maybe I do not fully
 understand what it is meant to do?

 Thanks in advance! I am Cole.



 ___
 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] Problem: Bold, italic, normal text style in a dynamic textfield

2006-03-21 Thread stacey
Html doesn't always render the bold versions of the fonts or italicized. I
think if you are using a non standard font - hence the embedding, I think
you may have better luck converting the html tags to a textFormat object
and apply it.

Someone else might totally disagree, but in the past,that is how I have
managed to get my text to the look the way i want it too. Wrestling with
text, one of the many joys.

 Hey everyone,

 I'm problems with showing italic, bold and normal text in a dynamic
 textfield, behing a mask, all at one time.

 To make things simple:
 I have a textfield (tf) in a movieclip (mc) on the stage, which is
 masked.

 I embedded all characters, for testing purposes.

 mc.tf.htmlText = hello; - works like a charm.
 mc.tf.htmlText = hello iworld/i; - world doesn't come out but
 at least world is italicized.

 Now, if I click on the italic button in the properties of the textfield,
 mc.tf.htmlText = hello iworld/i; hello doesn't come out.

 It's the same story with bold.  Am I doing something wrong?

 Thanks,
 --
 Ramon Miguel M. Tayag
 Managing Director
 Quirkworks
 ___
 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: Re[5]: [Flashcoders] AS2 Vs. AS1

2006-03-21 Thread stacey
You need to copy the code he gave you - put it in an as file, make a
movieclip with the assets he stated and bind it in the library to the
class via the linkage properties (AS2 class).

As for your previous post - what do you mean by traced out okay. What
exactly traced out? Can you trace the variable you are looking for
success?

 Ivan,

 I'm etting an error on the class says it needs to be
 external?


 --- Iv [EMAIL PROTECTED] wrote:

 Hello stone,

 - yes. a little trick needed:

 import mx.utils.Delegate;

 class EmailForm extends MovieClip {

   private var submit_btn:Button;
   private var new_lv : LoadVars;
   private var email : TextField;
   // private var request_url : String =
 emailSubmit.php;
   private var request_url : String =
 emailSubmit.txt;


   private function EmailForm () {
 this.submit_btn.onRelease =
 Delegate.create(this, this.onReleaseHandler);
   }

   private function onReleaseHandler() : Void {
 this.sendEmail();
   }

   private function sendEmail() : Void {
 trace(sendEmail+this);
 var lv:LoadVars = new LoadVars();
 this.new_lv = new LoadVars();
 lv[email] = this.email.text;
 this.new_lv.onData = Delegate.create(this,
 this.getResponse);
 lv.sendAndLoad(this.request_url,
 this.new_lv);
 // , POST
   }

   private function getResponse
 (loaded_data:String):Void {
 if (loaded_data == null) {
   trace(Error);
   return;
 }
 trace(EmailForm.getResponse(+[arguments]+));
 // trick
 var lv:LoadVars = new LoadVars();
 lv.onData(loaded_data);
 for (var i : String in lv) {
   trace(i+=+lv[i]);
 }
   }

 }

 --
 Ivan Dembicki

 
 [EMAIL PROTECTED] |
  | http://www.design.ru

 ___
 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



 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around
 http://mail.yahoo.com

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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] Send to friend....Doesn't make sense.

2006-03-11 Thread stacey
I'm not going to check your email verification but  you could do somethign
like this for loadvars rather than using loadvariables. Also have your php
write back a response so that flash knows whether it worked or not.

Some tidbits of advice - your submit mail button should call a validation
process - it shouldn't hold it in the scope of its onRelease handler -
that might introduce a scoping problem. So create a function that is like
validateEmail(emailString), and have your button call it.
submit_mail_btn.onRelease=Delegate.create(this,validateEmail).


Delegate in Flash 7 and up is your friend. It fies the scope madness.
Also, test your validation bit outside of the onRelease and determine
where its failing.




import mx.utils.Delegate;
lv:LoadVars=new LoadVars();
var validEmail=isEmail(email_txt.text);
lv.vemail=vemail;
lv.onLoad=Delegate.create(this,onEmailResponse);
lv.sendAndLoad(../mailinglist.php,lv,GET)

function onEmailResponse(success){
if(p_success){
  email.text = THANK YOU!;
}else{
  email.text = Problem Dude!;
}
}

function isEmail(str:String):Boolean{
// do your email validation here and return true or false
// By creating a function, you can use it again and again -
// so your submit buttons should call a validation process, not
// hold the validation process in the scope of its onRelease.
return(valid)

}

 Please can Someone take a look at this code and see where I've gone
 wrong. I've used this in Flash 6 a million times, ported it to 7 and am
 having no luck. Ok I'm loading a send to friend MC into a _blank MC on
 the main stage for the actions on this would be, vemail is the variable,
 email is the instance:

 thanks much.

 // restrict email field to upper and lower case letters, numbers, @ and
 . and excludes  (space) email.restrict = A-Z a-z 0-9 @ . \\- _ ^ ;
 //
 submit_mail_btn.onRelease = function() {
 s = new String(email.text);
 lastPointIndex = s.lastIndexOf(.)+1;
 firstPointIndex = s.indexOf(.);
 firstUSIndex = s.indexOf(_);
 firstHyphenIndex = s.indexOf(-);
 emailLength = s.length;
 lettersAfterLastDot = emailLength-lastPointIndex;
 firstAT = s.indexOf(@);
 lastAT = s.lastIndexOf(@);
 dotAfterAT = s.indexOf(., lastAT);
 onlyOneAt = firstAT-lastAT; // should return 0, check for 0 in if
 statement charBeforAt = s.charAt(firstAT-1);
 if (charBeforAt != .  charBeforAt != _  charBeforAt != -)
 {
 charBeforAtValid = true;
 } else {
 charBeforAtValid = false;
 }
 charAfterAt = s.charAt(firstAT+1);
 if (charAfterAt != .  charAfterAt != _  charAfterAt != -)
 {
 charAfterAtValid = true;
 } else {
 charAfterAtValid = false;
 }
 // field check
 if (firstAT != -1  onlyOneAT == 0  firstAT != 0 
 firstPointIndex != 0  firstUSIndex != 0  firstHyphenIndex != 0
 charBeforAtValid == true  charAfterAtValid == true 
 lettersAfterLastDot=2  lettersAfterLastDot=4) {

 stringToSend = ../mailinglist.php?vemail=+vemail;
 trace(stringToSend=+stringToSend);
 loadVariables(stringToSend, this, GET);
 email.text = THANK YOU!;
 action = Send;
 //play();
 } else {
 // display error message
 email.text = INVALID ADDRESS;
 action = ;
 stop();
 }
 };

 --
 The PHP assoc. with the mail prog.
 --

 ?

 // Enter your email address here
 $adminaddress = [EMAIL PROTECTED];
 $adminaddress2 = [EMAIL PROTECTED];

 // Enter the address of your website here MUST include http://www.
 $siteaddress =http://www.sireclothing.com;;

 // Enter your company name or site name here
 $sitename = Sire Clothing;

 // Gets the date and time from your server
 $date = date(m/d/Y H:i:s);

 // Gets the IP Address
 if ($REMOTE_ADDR == ) $ip = no ip;
 else $ip = getHostByAddr($REMOTE_ADDR);


 mail($adminaddress,Sire Clothing Mailing List SUBSCRIBE, $vemail

 --
 Using: $HTTP_USER_AGENT
 Hostname: $ip
 IP address: $REMOTE_ADDR
 Date/Time:  $date,FROM:$vemail);

 // Send confirmation to visitor
 mail($vemail,$sitename mailing list confirmation,
 
 Thank you for joining the Sire Clothing community!
 We look forward to keeping you up to date with updates and news.\r\r

 Sire Clothing\r\r

 You have received this confirmation because you, or someone you know
 elected

 to join. If you feel you have received this message in error, accept our
 apologies. Simply hit ' Reply' and add \Unsubscribe\ to either the
 subject line or message body and you will be immediately
 removedthat's it!
 

 $siteaddress,FROM:$adminaddress2);

 ?


 -
 Yahoo! Mail
 Bring photos to life! New PhotoMail  makes sharing a breeze.
 

Re: [Flashcoders] Fullscreen issues

2006-02-26 Thread stacey
You need to not only set the scale mode to noScale but you need to set the
resize regpoint to Top Lost
Stage.align=TL;

Try that.

 On 2/27/06, slam dunk [EMAIL PROTECTED] wrote:

 try this tag in .html PARAM NAME=scale VALUE=noborder


 It's in a projector...  but at least the noScale property is the one i
 am looking for.  However it resizes everything by moving the center of
 the stage to be in the center of the projector window, thus if you make
 the projector window smaller then your document size, it shifts 0,0 off
 the stage..  i can work around this by doing resize/repos logic in
 Stage.onResize(), unless there is a regpoint for the Stage or something
 ?? (ie i want 0,0 of the Stage to stay at 0,0 of the projector and not
 be uselessly thrown offscreen).
 --
 :: Nik Derewianka ::
 ___
 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] Fullscreen issues

2006-02-26 Thread stacey
hahahah ! major typo  Top Lost
um. Top Left! I've been watching too many Lost season 2 episodes all in a
row.


 You need to not only set the scale mode to noScale but you need to set
 the resize regpoint to Top Lost
 Stage.align=TL;

 Try that.

 On 2/27/06, slam dunk [EMAIL PROTECTED] wrote:

 try this tag in .html PARAM NAME=scale VALUE=noborder


 It's in a projector...  but at least the noScale property is the one i
 am looking for.  However it resizes everything by moving the center of
 the stage to be in the center of the projector window, thus if you
 make the projector window smaller then your document size, it shifts
 0,0 off the stage..  i can work around this by doing resize/repos
 logic in Stage.onResize(), unless there is a regpoint for the Stage or
 something ?? (ie i want 0,0 of the Stage to stay at 0,0 of the
 projector and not be uselessly thrown offscreen).
 --
 :: Nik Derewianka ::
 ___
 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] dragging multiple movieclips

2006-02-22 Thread Stacey Mulcahy
http://www.5etdemi.com/blog/archives/2005/06/careful-with-_rootgetnexthighes
tdepth-and-other-fun-ways-of-breaking-combo-boxes/

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=Flash_MX_2004file=2934.html

http://www.jessewarden.com/archives/2004/08/getnexthighestd_1.html

Just a couple links - depending on what you are doing, you might want to use
getNextHighestDepth at your own risk. ;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of GregoryN
Sent: Wednesday, February 22, 2006 7:37 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] dragging multiple movieclips

Hello Monicque,

  1) As David said, you need diff. depths for your clips. I recommend
  using getNextHighestDepth() .

  2)  While only 1 clip can be dragged at a time with startDrag()
  method, you can simulate dragging by just moving clips by
  onMouseMove event.
  If you have a lot of them, you'd better use a function with their
  parent clip moving children in a loop.


-- 
Best regards,
 GregoryN

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


 From: Monicque Sharman [EMAIL PROTECTED]
 Subject: [Flashcoders] dragging multiple movieclips
 To: flashcoders@chattyfig.figleaf.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: Text/Plain;  charset=iso-8859-1
 
 Hi, I am a newbie, and I have been fiddling with this problem for days
now..
 
 . If anyone could help, I would really appreciate it. 
 I have a comboBox, and when an item from the comboBox is chosen, I'd like
a 
 matching item (movie clip) to show up in an area, and then be able to be 
 dragged to another area. At present, I get the movie clips to show up,
then 
 I can drag them, but they disappear as soon as the next item from the
combo 
 box is shown. I've changed depths of movieClip, names of movie clip 
 instances (including dynamic names), duplicating the clip, etc. I've 
 searched and searched the web, But nothing seems to work. Here is the code

 in the frame where the combo box is located: 
  
  
 _global._count=0; 
  
 form = new Object(); 
 form.change = function (evt){ 
  
 var item=evt.target.value; 
 _count++; 
  
 createEmptyMovieClip(nam,0); 
  
 nam.attachMovie(item,item,_count); 
 nam._x=432; 
 nam._y=194; 
  
 nam.onMouseDown=function() { 
 this.startDrag(); 
 _global.selcom=this; 
 } 
 nam.onMouseUp=function() { 
 this.visible=true; 
 this.stopDrag(); 
 } 
 } 
 chooser.addEventListener(change, form); 
  
  
 Even if someone could point me to a tutorial where it shows how to drag
and 
 drop multiple movieclips that are created when something else occurs (like
a
 
 change on a combo box like I have above)? 
 Thanks heaps, 
 Monicque. 


___
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 stacey
Design Patterns help you solve problems. You need to have many objects
listening to one, dependant on that one - Observer Pattern might help. You
need extend an object without subclassing - Decorator Pattern might help.
You need one instance only of a class, Singleton comes in handy ( often
people have called it the new global - think that was Keith Peters who
said that). MVC isn't a particular pattern per say, it can be a combo of
patterns ( observer, composite...etc)

Its like anything else, you can probably totally overdo them - its a
matter of knowing what to use when and why. They do help in providing
structure and organization. And if you carry it over into your naming
conventions, its super easy for other people to recognize the approach
you're taking.

This subject is just way too broad for this list :)





 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] Enhanced stroke is not supported in this player

2006-02-01 Thread Stacey Mulcahy
You can also just save the file as the lower version and that works to get
rid of the error.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn,
Michael
Sent: Wednesday, February 01, 2006 11:18 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Enhanced stroke is not supported in this player

Thanks everyone for the insight.  But, I just can't figure out how to
change the stroke settings.  Where is that done?  I've tried various
combinations of the cap and join widgets on the prop inspector, but that
isn't working.  Where's the stroke setting in the UI?

- MM




 You need to use the basic version of the stroke I don't have a copy of
flash 8 on this system but have a fliddle with the stroke setting on
your vector objects and this should calm flash's boots

___
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] Dynamic class creation-thoughts?

2006-01-30 Thread stacey
Just a general, - what are people's thoughts on dynamic class
instantiation? I've always been under the impression( and hence, been
told) that one should avoid it at all costs.

Thoughts? Discussion? Benefits? Would it be better to implement a factory
type pattern to create the new instances of classes?

 thank you all, i've already made it!

 var str:String = 'test1.test2.ClassC';
 var arr = str.split('.');
 var variable = _global;

 for (var i=0;iarr.length;i++)
 {
   variable = variable[arr[i]];
   trace(variable);
 }
 new variable();



 On 1/30/06, Serge [EMAIL PROTECTED] wrote:

  import pkg1.pkg2.pkg3.*
 or
 import pkg1.*

   new pkg1.pkg2.pkg3.className(),
 sorry, should be:
 new className()

  make sure pkg1 has classes you would like to be compiled in swf or
 use exclude xml file



 On 1/30/06, franto [EMAIL PROTECTED] wrote:
  Hi all,
 
  maybe it is easy, maybe not, but i cant figure it out now, and i
 need it :)
 
  when i got class e,gpkg1.pkg2.pkg3.className
 
  i can make new instance in this way
  new pkg1.pkg2.pkg3.className()
 
  but i want to make it from string
 
  this dont work of course
  _global['pkg1.pkg2.pkg3.className']();
 
  but this work:
  _global['pkg1']['pkg2']['pkg3']['className']();
 
  can this done automatcally? i want jsut read string from XML and
 create new class instance,
  but i cant do it now.
  Any help is appreciated :)
 
  -
 Franto
 
  http://blog.franto.com
  http://www.flashcoders.sk
  ___
  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



 --
 -
 Franto

 http://blog.franto.com
 http://www.flashcoders.sk
 ___
 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] fscommand('exec', 'myprogram.exe') WITHOUT a projector?

2006-01-28 Thread stacey
it does breach the security sandbox violation and therefore, if you want a
plain ole swf to execute a fscommand - it won't work. The jsfl solution is
for the authoring environment - but otherwise, imagine the havoc you could
create if you could have a swf in a browser or elsewhere execute an
external  app. Hello,virus land.

 Do you mean in a browser? Wouldnt this be a horrible security/sandbox
 violation for the player to be able to execute an app?

 Perhaps you mean the stand alone player that isnt in the browser but
 isnt a projector. If that is the case, I would not expect it to work.
 The fscommand is designed to communicate with the host application. That
 is either the browser or a projector or some parent app. I would imagine
 the flash player just has what is necessary to run flash
 without a full complement of functions that fscommand might try to
 access.

 Regards
 hank

 On 1/28/06, John Grden [EMAIL PROTECTED] wrote:
 Is it possible?  I can't seem to make it work UNLESS I load the swf
 into the FLash player, then do a save as projector.

 any possible way that the player could handle this without the
 projector?

 --
 John Grden - Blitz
 ___
 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] fscommand('exec', 'myprogram.exe') WITHOUT a projector?

2006-01-28 Thread stacey
gotcha. I'm an admittant skimmer at times:)

 You're missing what I'm saying Stacey - In a container OTHER than a
 plugin/activeX control.  The player knows when it's in the local
 FlashPlayer.exe or the IDE (exe) - so, that's nearly the same as having
 the SWF wrapped in a projector.exe (FlashPlayer.exe + SWF) - see my
 point?

 of course - lock down the browser plugins/controls - I totaly agree.
 But if you see what I'm saying above, you can't discount the fact that
 the ONLY difference between a projector and FlashPlayer.exe+SWF is that
 that later is not compiled.  But the reasoning for viewing the content
 is identical (opt-in execution).

 That's all I'm saying.

 John

 On 1/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 it does breach the security sandbox violation and therefore, if you
 want a plain ole swf to execute a fscommand - it won't work. The jsfl
 solution is for the authoring environment - but otherwise, imagine the
 havoc you could create if you could have a swf in a browser or
 elsewhere execute an external  app. Hello,virus land.

  Do you mean in a browser? Wouldnt this be a horrible
 security/sandbox violation for the player to be able to execute an
 app?
 
  Perhaps you mean the stand alone player that isnt in the browser but
 isnt a projector. If that is the case, I would not expect it to
 work. The fscommand is designed to communicate with the host
 application. That is either the browser or a projector or some
 parent app. I would imagine the flash player just has what is
 necessary to run flash
  without a full complement of functions that fscommand might try to
 access.
 
  Regards
  hank
 
  On 1/28/06, John Grden [EMAIL PROTECTED] wrote:
  Is it possible?  I can't seem to make it work UNLESS I load the swf
 into the FLash player, then do a save as projector.
 
  any possible way that the player could handle this without the
 projector?
 
  --
  John Grden - Blitz
  ___
  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




 --
 John Grden - Blitz
 ___
 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] Cellrenderer confirmation

2006-01-25 Thread Stacey Mulcahy
I believe the list components calculate the visible space divided by the row
height and figure out how many rows to render. Visible being the amount of
rows the height and row height of the component will allow - not being total
rows in reference to amount of dataprovider items.

Not sure that is what you were asking. But you know me D, not always there,
but always pretending to be :)



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek
Vadneau
Sent: Wednesday, January 25, 2006 2:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Cellrenderer confirmation

Hi all,

I just want to verify a few things in case I've thought about this 
incorrectly.

I've built three cellrenderer classes for a datagrid.  I've got everything 
working but I'm trying to optimize the classes so things don't get cycled 
when they don't need to be.

Am I correct in assuming that a datagrid (and a list-based component in 
general) only produces X number of instances of a cellrenderer, where X is 
the number of VISIBLE rows, as opposed to TOTAL rows?

When I scroll, it's as if the rows cycle: 0-6 are visible.  Scroll so 7 is 
visible, but the cellrenderer in row 7 traces out data that was kept in 
row 0.

If that's the case, then you can't store row-specific information in a 
cellrenderer instance.  In which case, my optimizations are probably as 
good as they're going to get.

Also, I've searched through the archives and it seems the only way to 
trigger the change event, or any event, in the datagrid from the 
cellrenderer is to have the cellrenderer execute the dispatchEvent method. 
Is that the only way?  It seems a little hackish to me.  It does work, but 
you'd think there would be a mechanism in place to have the cellrenderer 
tell the datagrid that it wants to update the dataProvider.

Any thoughts?


Derek Vadneau


___
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] LoadMovie Problem with JPEGs

2006-01-22 Thread stacey
Pressed SEND too soon and caught an oops!!

it should be :
//
  public function overlay(){
holder_mc=createEmptyMovieClip(holder_mc,1);

}
//

 Not sure the setup but the vars are getting wiped away for sure so its
 some kinda scoping issue.Loading the movieclip into this should wipe
 the variables out. Loading them into an emptymovieclip, shouldn't.





 class ui.overlay extends EventClip{
 // not sure what eventClip is but whatever..

   private var holder_mc:MovieClip;
   private var text:String;

   public function overlay(){
  holder_mc.createEmptyMovieClip(holder_mc,1);
   }

   public function showImage(url:String,text:String){

 holder_mc.loadMovie(url);
 this.text=text;
 trace(TEXT has been set+this.text);
 _delegate = EventDelegate.create(this, onHitDataGrid);
 datagrid.addEventListener(datagrid, _delegate);


   }
   public function onHitDataGrid(obj:Object){
 trace(TEXT has been set+this.text);
   }

 }


 Having a problem loading in an image within an AS2 class and LoadMovie
 with jpegs. It loads the image perfectly but as soon as it does this
 it automatically deletes all existing variables that are running
 within the class. Instead of it losing all information  upon loadMovie
 would like to keep it.



 class ui.overlay extends EventClip {



 .



 public function showImage(url:String, text: String):Void{

 this.loadMovie(url);

 this.text=text;

 _delegate = EventDelegate.create(this, onHitDataGrid);

 datagrid.addEventListener(datagrid, _delegate);

 }



 private function onHitDataGrid(e:Object):Void{

 trace(text); //works when don't load the jpeg.. does not
 work
 when I do load the jpeg.

 ..

 }





 I have tried loading the movie into another movieclip inside of this
 class and still no success. This is a little unusual and really my
 first time loading in Images dynamically.



 Been struggling with this one for a while. Anyone know what might be
 going on?





 -Rob



 ___
 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 8 inside Director MX 2004

2006-01-18 Thread stacey
the flash asset xtra needs to be updated and I'm totally unaware if they
have done that or not.

 Hey List,

 Trying to figure out if it's possible to use Flash 8 with the new built
 in effects within Director mx 2004?  Has anyone gotten this to work or
 is the only solution to just wait and see if Macromedia *feels* like
 updating Director?

 -Ralph

 Choice Internet Home Page http://www.choiceinternet.com
 Choice Internet
17785 Center Court Dr. Suite 280
 Cerritos, CA 90703
 Tel: 562 865 6886 x112   Fax: 562.865.6889
 M:\emailTemplate\arrowLightBlue.gif www.choiceinternet.com
 http://www.choiceinternet.com


   Ralph Caraveo, Senior Programmer   [EMAIL PROTECTED]
 mailto:[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] Public examples of Business RIAs

2006-01-17 Thread Stacey Mulcahy
We did one for the financial sector that deals with business mergers. 
Canned demo is here :
http://63.88.61.59/demo/

You can also check more about on Tony's blog -
http://www.teknision.blogspot.com/
http://teknision.blogspot.com/2005/12/snl-merger-model-demo-update.html



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't
Kruis
Sent: Tuesday, January 17, 2006 11:03 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Public examples of Business RIAs

on a sidenote:

Why are YOU convinced that flash is the way to go for a B2B RIA?

perhaps if you answer that one, you can better convince the client.
(and convince me while you're at it ;) )

On 1/17/06, matt stuehler [EMAIL PROTECTED] wrote:

 All,

 I'm trying to convince a potential client that Flash is the way to go
 for a B2B RIA for a project it's working on, and I'd like to develop a
 showcase of a RIAs developed in Flash.

 I'm sure there are hundreds of great examples, but most of them are
 not public. The few available through Macromedia are OK, but not
 great.

 The ideal apps would meet two main criteria:

 - It should include functionality that's not reproduceable with
 dhtml/ajax (e.g., custom controls or interactivity)

 - It should be a real substantive business-type application (e.g.,
 not a pseudo-app that's really just a fancy web advertisement)

 Many thanks in advance to anyone who can suggest a few great URLs.

 I'll be happy to send a list of all the URLs I receive to anyone who's
 interested - just send me your email address, and I'll forward all the
 great apps I find.

 Cheers,
 Matt Stuehler
 ___
 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] Can't redefine class method

2006-01-16 Thread stacey
You probably have to cast the class - i know mtasc is super strict about
that.

Something like  :

var b:B=B(this);
b.dothis();



 hi Chris,

 mtasc behaves the same.

 i've had a look with flasm, it explicitly calls A.dothis() in A.doit.
 writing this.dothis() isn't possible because it's a static function --
 there is no object this could refer to.
 there is, as far as i know, nothing you can do about it except to work
 around it by either cutting'n'pasting doit from A, or using a
 singleton instead.

 instinctively, i would agree with you and expect B.dothis to get


called when i call B.doit, though.

 mark


 On 1/16/06, Chris Velevitch [EMAIL PROTECTED] wrote:
 I have 2 classes, A and B. B extends A:-

 class A {

 private function A(){};

 public static function doit() {
 dothis();
 }

 private static function dothis() {
 trace(A.dothis);
 }

 }

 import A;

 class B extends A {

 private function B(){};

 private static function dothis() {
 trace(B.dothis);
 }

 }

 and when I call B.doit(), the trace output is:-

  A.dothis

 whereas I'm expecting B.dothis.

 I using Flash Professional v 8.0.

 Has anyone seem this problem before?


 Chris
 --
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 www.flashdev.org.au
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 --
 http://snafoo.org/
 jabber: [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] Components and addEventListener ...

2006-01-14 Thread stacey


Look up eventDispatcher -

addEventListener can be added to any item that dispatches event - you can
make a class a dispatcher via mixins - import EventDispatcher, declare
addEventListener, removeEventListener and dispatchEvent as functions and
you're good to go.

The v2 components broadcast a variety of events. IF you check the docs
under events, you will see what events they dispatch and therefore, what
events you can subscribe to.




True or false (not a trick question, just a straight answer needed):

 The addEventListener method can only ever be called on a component ?
 e.g:

  myButton.addEventListener(click, myFunction);

 ... and if click is one thing you can 'listen' for, what is the
 complete  list ?? (this might help me understand it a little better -
 hope this makes  sense - OOP newb here).

 Thanks,
 Stephen.


 ___
 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] Listener objects vs event handler functions ...

2006-01-14 Thread stacey
Imagine you have an application that is like a contact address book. The
user requests the information for a new contact and the database responds.
Now you might want to have several items listening to a change in what
contact has been selected - for example a text field that displays the
name of the contact, a movieclip that displays the picture of the contact,
a data grid component that displays the particular contact information
such as address, email and url for that contact.

All will want to listen for an update or change in what contact you are
viewing and therefore, all can subscribe to one event that notifies them
of a change in the information they are displaying.




 If this is an example of the listener object approach:

 
 myObj = new Object();
 myObj.onMouseDown = myFunction;
 function myFunction() {
   trace(tracing something);
 }
 Mouse.addListener(myObj);
 

 ... and the listener object approach is favored over the event handler
 function approach, what would the above code look like if it were
 written  with the event handler function approach.

 Where you can use one approach, can you always use the other ? (trying
 to  understand the difference and where to use one instead of the
 other).

 Apparently, the main reason the listener object approach is favored is
 because multiple listener objects can receive events from the same
 component/movieclip/etc. Does anyone have an example of this so I can
 see  the advantage in action.

 Thanks in advance for any assist,
 Stephen.


 ___
 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] Serverside Screensaver Generation

2006-01-14 Thread stacey
Not 100% sure of what technically is involved, but I know that Northcode
has done this before  - www.northcode.com - ( makers of SWFStudio). Sorry
I can't shed light on the actual process.

 Hey Folks,

 Has anyone come up with a solution to generate installable screensavers
 on the server? e.g. user can select from images, and have an installable
 screensaver built for them on the server? Obviously there are several
 options to generate the SWF - but I am wondering how I am going to get
 from the SWF to the EXE.

 All suggestions gratefully appreciated,

 Clark
 ___
 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] Split String

2005-12-03 Thread stacey
string.split(/)?


 Can anyone point me in the right direction on how to split a string
 using a special character(/).  this is my first line / this is my second
 line / etc...


 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] Flash standalone awkwardness

2005-11-03 Thread stacey
Chances are, the exe is unpacking. How big is the exe you are trying to run?
In Director, we used to create a stub exe that really had nothing much but
launched the exe the way we needed with the xtras and then referenced a
file. It was much friendly for the wait time.

 On 11/3/05, Luke Munn [EMAIL PROTECTED] wrote:
 Hi there,

 Googled this and searched the archives but can't really find this
 addressed anywhere online.

 I'm creating an educational CD-ROM in Flash, which will use a Flash
 Projector to ensure everyone can run it.

 The issue is on starting the player up there is an awkward couple of
 seconds where you see the Flash player with it's menus, at a default
 size, before the fscommand kicks in and the whole thing goes
 fullscreen.

 While this isn't a huge problem from a usability or technical
 perspective, it just looks awkward aesthetically and detracts from the
 concept of the CD-ROM. The initial movie being loaded is only 500K, so
 I can't really speed this load up. Ideally I'd like it to be like any
 fullscreen game or software, which loads with a splash screen if
 necessary and then immediately comes up full screen with no awkward
 menus, resizing, etc.


 I don't know if this will help, but try moving all your assets / code to
 frame 2 or 3 or later, and put the fullscreen fscommand on frame 1.

 -David R
 ___
 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