Re: [Flashcoders] Best Flash data access way opinions

2006-06-21 Thread bryan.rice


On Jun 21, 2006, at 3:11 PM, Jim Robson wrote:

I really don't think anything is faster to implement than CFCs and  
Remoting.
You just build the CFC, set access=remote, and you're done on the  
server

side.



I completely agree - especially when you are doing authentication and  
serving content with role-based permissins.  Plus if you are doing  
simple database work, you can use SSAS with ColdFuion as well.


Thanks to the lessons of my ColdFusion mentor Kevin Aebig, I find  
ColdFusion and Remoting much more rewarding for the time I put into  
it than working with PHP (when Flash is involved).


blue skies,
bryan
___
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] Cross domain policy file issues

2006-06-01 Thread bryan.rice


On Jun 1, 2006, at 11:56 AM, Merrill, Jason wrote:


How do you deal with cross domain linkin issues? In the Flash 7 and 8
security model, a cross domain policy XMl file is required to use  
getURL

to access other domains outside the domain the .swf is on.



What do you mean?  When is getURL failing for you?  The only security  
situation with getURL is cross domain scripting attacks - like the  
myspace worm - but this is resolved with the AllowScriptAccess  
parameter/attribute in the Object/Embed tags of your html.  Are you  
sure that you don't have yours set to never?  That is the only way  
that getURL fails that I know of - in order to prevent malicious swfs  
from calling javascript with getURL.


If you are trying to access a webservice that does not have a  
crossdomain.xml file that will work for you, then you have to use a  
proxy server to interact with the 3rd party domain and shuttle the  
data back to flash.


blue skies,
bryan
___
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] Loadvars and www prefixed in web address

2006-05-17 Thread bryan.rice


On May 17, 2006, at 8:42 AM, Johnny Zen wrote:


www.example.com = loadvars worked

example.com = loadvars failed.


This is a sandbox issue.  From Flash Player 7 on (I think it was 7 -  
it is all such a blur now) your data (loadvars, xml, etc.) has to be  
loaded from the exact same domain and subdomain  that the swf was  
loaded from by default.


You can fix this with a crossdomain policy file:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213

blue skies,
bryan
___
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] ScrollPain

2006-05-10 Thread bryan.rice


On May 10, 2006, at 12:24 PM, Mike Levy wrote:


Thanks for any explanations!  I think it has something to do with the
movieClip not loading by the time I call attachMovie, but I read on  
another
thread that if everything is in class files that there is no timing  
issues

with attachMovie.



You have to wait a frame for the scrollpane to init before before you  
can attach movies to it.  Then redraw(true);


You might want to create a method in the movieclip you are attaching  
that you call, which in turns waits an onEnterFrame and then sets the  
contentPath for you.


That is why it works the second time you call it.

blue skies,
bryan
___
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] Q: Flash Object vs UFO for flash detection and as eolas workaround

2006-04-15 Thread bryan.rice


On Apr 15, 2006, at 3:46 AM, elibol wrote:


I think
you've taken someone elses opinion far too personally, otherwise I  
believe
your question would be generally presented rather than personally  
scolding

someone.



WTF are you talking about?  You obviously don't know me and obviously  
think you are something you are not.  I was really interested in  
Jim's opinion (because unlike yours, I respect it) and I don't have  
any personal stake in any of this.  I could not care less - I was  
just curious.


I did not scold anyone - what conversation are you having?  Maybe you  
are that rude and obnoxious so you assume everyone else is, but  
seriously - you sound like an idiot.


blue skies,
bryan
___
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: Q: Flash Object vs UFO for flash detection and as eolas workaround

2006-04-15 Thread bryan.rice


On Apr 15, 2006, at 8:19 AM, Jim Kremens wrote:


IMHO, the code is very procedural, not object oriented.  The  cues for
this are the endless conditional statements.  A good, encapsulated
architecture can greatly minimize these...



I can see part of your point, but to me Javascript (and Actionscript)  
is a prototype language, not a class-based language and I don't  
really find his code very difficult (it looks like the AS 1 that I  
have been writing for years).  I would have a hard time understanding  
how to write a detection script that was any less procedural, and I  
would love to see an example.


More specifically, what is that you want to do that you are not  
able?  I am just wondering on a practical level, because sometimes  
people stress over OOP in a dogmatic way, but lose the forest  
through the trees.  OOP just for the sake of OOP creates a lot of  
overhead sometimes that is not necessary - especially when scripting.


What did you want to do with it that you couldn't?  Do you think the  
runtime performance/speed of the script is adversely affected?  Are  
you talking theoretically, or are there really methods that you  
wanted to add to FlashObject but couldn't do it?


 Did you want to build a class that inherits from FlashObject, but  
was prevented?


I am really just curious - I have no vested interest one way or  
another, just trying to understand other people's point of view.


blue skies,
bryan
___
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] Q: Flash Object vs UFO for flash detection and as eolas workaround

2006-04-14 Thread bryan.rice


On Apr 14, 2006, at 12:44 PM, elibol wrote:


I don't much like FlashObject



What don't you like about it?  I have deployed many sites with it  
(using express install) and have never had an issue.  I quite like  
it, (I used to use Colin's Moock FPI), so I am curious as to why you  
don't.


blue skies,
bryan
___
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] Q: Flash Object vs UFO for flash detection and as eolas workaround

2006-04-14 Thread bryan.rice


On Apr 14, 2006, at 5:05 PM, Jim Kremens wrote:


Did you ever look at the code?


 I have taken a look at the javascript and I find it pretty straight  
forward (though not commented)...what is that you don't like about  
it?  Just curious.  How would you write it differently?


blue skies,
bryan
___
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] Flex 2 SDK Sample Files crash 8.5 Player on OSX

2006-04-06 Thread bryan.rice

Hi All,

I guess the subject pretty much covers it.  I downloaded the Flex 2  
SDK (FlexSDK2_B2_03-16) and (after having to re-save the shell script  
as a unix file to get rid of window line returns) I compiled the  
sample files.  Although it took a while, it seemed to work and now I  
have a bunch of new swfs in the sample directories.


The problem is that when I try to run the sample files in the 8.5  
player it crashes the player.  Other people's Flex-created swfs  
available on the web have NOT crashed the player.  SWFs I create with  
the Flash 8 IDE do NOT seem to crash the player.


When I try to view a swf that is compiled on my machine - it crashes  
the entire browser (both Safari and Firefox).


Can anyone point me to solutions or help with this issue?  Since this  
is the only way I can learn Flex on my Mac, I would really like to  
figure out why the hell it is not working.


This whole 'you-suck-cause-you're-on-a-mac-and-can't-really-use-Flex  
2' thing has me just about ready to throw in the towel - seriously.


Anyone run into this problem?

blue skies,
bryan
___
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] Water transition

2006-03-09 Thread bryan.rice

There is a great water ripple effect linked to in Andre Michelle's blog:
http://blog.andre-michelle.com/2005/flash8-sourcecodes/

You could adapt that.

blue skies,
bryan
___
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] Fire/Flame Effect Tutorials/Strategies/Help?

2006-02-27 Thread bryan.rice

Hi  All,

I am trying to understand how to create fire/flame effects with the  
Flash 8 filters and bitmap class, but I don't really know where to  
start.  I have found at least one code sample out there, but I don't  
want to simply copy and paste code.  I want to understand what I am  
trying to create.


I know it involves perlin noise, displacement and blur filters, but I  
that's about it.  I don't *really* understand perlin noise except  
that it is often used to create random and natural behaving/looking  
objects via code.


My first goal is to create flaming dynamic text with an embedded  
font.   Can I get a some pointers/urls that will start me down the path?


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

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


Re: [Flashcoders] flash.net.FileReference: no way to return selected path after browse?

2006-02-23 Thread bryan.rice
Nope - security violation.  You can only get a pointer to the file  
and upload it.  That is it.


blue skies,
bryan

On Feb 23, 2006, at 9:09 AM, lars wrote:


is it me, or is it impossible to return the selected path after
a browse? for me it returns the selected filename but i cant find
the path anywhere? thanks: lars


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

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread bryan.rice


On Feb 22, 2006, at 9:02 AM, Michael Stuhr wrote:

i'm in a somewhat similar situation right now, i guess you have to  
remove the Columns in your dataProvider and than set this data as  
your grid's dataProvider.


All you have to do is set the DataGrid.columnNames prop of the data  
grid.  For further customization you further have DataGrid.getColumnAt 
(index).headerText to create a human readable column name.


blue skies,
bryan
___
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] MovieclipTween120.mxp from http://laco.wz.cz/tween/

2006-02-21 Thread bryan.rice


On Feb 9, 2006, at 12:15 PM, Philippe wrote:


And I would add that it's a good idea to stop extending the MovieClip
prototype ;)



Why is it a good idea?  I would not completely agree.

blue skies,
bryan
___
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] assigning properties to Number vs Objects

2006-02-18 Thread bryan.rice


On Feb 18, 2006, at 1:54 PM, keith wrote:

 Why can I assign a property to number value created with Number  
constructor,
 but CANNOT assign a property to a number value create with just a  
number value?



When you use the new operator it returns an object (an instance of  
the Number class) complete with methods and other properties - a  
Compex Data Type.  If you just assign a number value to a var then  
you are assigning a Primitive Data Type.


var a = new Number(5);
var b = 5;

trace(typeof(a));
trace(typeof(b));

//traces:
//object
//number

From the manual:
[new] Creates a new, initially anonymous, object and calls the  
function identified by the constructor parameter



blue skies,
bryan

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

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


[Flashcoders] XML Namespace Explanation in Simple Terms?

2006-01-29 Thread bryan.rice

Hi All,

I need to explain XML namespaces to several marketing people and I  
having trouble coming up with a layman's definition that is not too  
technical.  I realize that it has to be at least a little technical,  
but it was challenging to get them to literally understand what XML  
was and then conceptually understand the extensible part.


Can you point me to any good explanations/tutorials about XML  
namespaces?  Also, can anyone point me to explanations of how  
namespaces are an important addition to AS 3.0?  I am trying to lay  
the groundwork for an AS3 research project that I want them to fund.


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML Namespace Explanation in Simple Terms?

2006-01-29 Thread bryan.rice


On Jan 29, 2006, at 12:20 PM, JesterXL wrote:


Hope that helps.



Word.  Helps a bunch.  Thanx.

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference, file location

2006-01-17 Thread bryan.rice


On Jan 17, 2006, at 9:50 AM, Kamyar Nazeri wrote:

Ain't it possible to get location of the browsed file using browse  
method of FileReference class?



Nope.  That would violate the security sandbox.  You are going to  
have to upload first and then display it.


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Obfuscation

2006-01-15 Thread bryan.rice


On Jan 15, 2006, at 8:26 AM, Sam Wootton wrote:

Is it possible to send additional variables along with the  
FileReference

object?



I have not found a way to do it through the file POST itself, but you  
can add a query string to the URL of your file upload script.


fileupload.php?yourVar=yourValue

And then access it from that location with your script.  Not perfect,  
but gets you part way there.


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Obfuscation

2006-01-14 Thread bryan.rice


On Jan 14, 2006, at 9:06 AM, will g wrote:


But what i'd like to know is how to add these logical
impossibilities manually.



Try Flasm.

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread bryan.rice

You have to return the value of message:

private function displayGreeting()
{
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
return message;
}

blue skies,
bryan




On Jan 12, 2006, at 5:46 PM, Chris Kennon wrote:


private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
}


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


Re: [Flashcoders] Locale class problem

2006-01-07 Thread bryan.rice
You have to access static methods and properties via the full class  
path:
this.sizeTitle_txt.text = mx.lang.Locale.setXMLLang.loadString 
(IDS_SIZETITLE)


blue skies,
bryan

On Jan 7, 2006, at 11:19 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]  
wrote:



import mx.lang.Locale
var defLang:String = en;
Locale.setDefaultLang(defLang);
Locale.loadLanguageXML(Locale.getDefaultLang());

Everything works fine as long as I try to assign the content of my  
strings from the same level where I wrote the code above (root),  
but if I try to retrieve a value from a movieclip on a lower level  
like this:


this.sizeTitle_txt.text = this._parent.Locale.loadString 
(IDS_SIZETITLE)

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


Re: [Flashcoders] Locale class problem

2006-01-07 Thread bryan.rice

Typo, it should read:

this.sizeTitle_txt.text = mx.lang.Locale.loadString(IDS_SIZETITLE)

blue skies,
bryan

On Jan 7, 2006, at 12:05 PM, bryan.rice wrote:

You have to access static methods and properties via the full class  
path:
this.sizeTitle_txt.text = mx.lang.Locale.setXMLLang.loadString 
(IDS_SIZETITLE)


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


Re: [Flashcoders] what happens to exceptions i throw inasyncfunctions.

2006-01-06 Thread bryan.rice


On Jan 6, 2006, at 10:41 AM, Johannes Nel wrote:


i have however
thought of a sollution to this and am currently working on that :)



I would love to see what you thought of!

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


Re: [Flashcoders] Flash equivalent of a Java class loader

2006-01-05 Thread bryan.rice


On Jan 5, 2006, at 1:44 PM, Jim Kremens wrote:


__proto__



The Rebel Alliance Live On.  : )

In these days of the Flash Fracturization,  I find that to be a very  
comforting thought.


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread bryan.rice


On Jan 5, 2006, at 4:26 PM, Johannes Nel wrote:

has anybody have any idea of how to handle asynchranous exception  
handeling

in flash?


You need to do something more like this:

function handleXmlLoad(success:Boolean)
{
if (success) {
trace(Load successful.);
} else {
trace(Load NOT successful.);
//var error =  new CustomError();
}
}
function meth2()
{
var x:XML = new XML();
//
x.ignoreWhite = true;
x.onLoad = mx.utils.Delegate.create(this, handleXmlLoad);
x.load(somefile.xml);
}
meth2();


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread bryan.rice


On Jan 5, 2006, at 6:26 PM, Johannes Nel wrote:


no mate you are missing what i am trying to acheive.


Sorry - misread your email.  I don't think you can do it.   
Try...Catch and Xml.onLoad are like oil and water as far as I can tell.
You will have to wait to load your xml before you start your  
try...catch block I think.


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash 8 file reference upload on macs

2006-01-03 Thread bryan.rice


On Jan 3, 2006, at 5:31 PM, Ryan Matsikas wrote:

We've expeirenced this problem on a few occasions, the easy work  
around is

to monitor the onProgress event and manually fire the complete event.


Oddly enough, I have experienced the opposite and in found you can't  
rely on the onProgress event on all Macs:
File upload progress cannot be determined on Macintosh platforms  
earlier than OS X 10.3. The onProgress event is called during the  
upload operation, but the value of the bytesLoaded parameter is -1,  
indicating that the progress cannot be determined.


Weird.  Were you able to figure out a pattern as to what files under  
what circumstances did not fire the onComplete event?  What server- 
side processor are you using (I have only ever used it with ColdFusion)?


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Difference keying

2005-12-30 Thread bryan.rice


On Dec 30, 2005, at 2:00 PM, Weyert de Boer wrote:

 My question is does anyone here already happen to have such a  
example working in Flash 8?


Check out Grant's Dynamic Keying example on http://incomplet.org/
.  No source code, but it shows the possibility.

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Who wants MIDI in the Flash Player?

2005-12-07 Thread bryan.rice


On Dec 7, 2005, at 8:43 AM, hank williams wrote:


But I am really curious about this loader thing. I am not really aware
of it. It sounds like a huge deal.



It is a very cool AS3 feature:
http://www.flashguru.co.uk/actionscript-3-new-capabilities/#more-606

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload - Filedata

2005-11-03 Thread bryan.rice


On Nov 3, 2005, at 9:19 PM, David Rorex wrote:


Is there a reason you need to change it?



No - just curious.  Thanx.

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders