Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-22 Thread Anthony Lee

Hi Jason,

I'm just guessing here but how about:

addChild(hw);

Anthony

On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote:


Getting my feet wet with AS3, I just bought the AS3 cookbook and have
learned a lot already - great book.  I feel like an idiot asking this as
I'm pretty good in AS2, but with AS3, I'm not getting a simple script
working. I have the Flash 9 AS3 preview, trying to write a simple
HelloWorld class (based on an example in the book) to show a TextField:

//MyPackage.as
package MyPackage
{
//do I actually need this one?:
import flash.display.DisplayObjectContainer;

import flash.display.Sprite;
import flash.text.TextField;

public class HelloWorld extends Sprite
{
public function HelloWorld()
{
var message_txt:TextField = new TextField();
message_txt.text = Hello World;
addChild(message_txt);  //does not show!
trace(constructor runs)//traces fine
}
}
}

Then in the .fla, I put:

import MyPackage.*
var hw:HelloWorld = new HelloWorld();

The constructor traces fine in the output window, but the TextField does
not show.  What have I done wrong?  My Export settings in F9 As3 preview
are for AS 3.0 and FP9.  In later scripts, I tried moving the textfield,
changing the color, changing the stage color to be sure it wasn't
matching the textfield and this invisible, etc...(but it should show as
black Times New Roman text by default anyway...)

Thanks,

Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set
to AS3, but have notices code hinting doesn't always work or is
sometimes incomplete - has anyone else noticed that?  Maybe I just need
to update it.

Jason Merrill
Bank of America
GTO Learning  Leadership Development
eTools  Multimedia Team



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] wordpress and flash integration

2007-03-20 Thread Anthony Lee

Take a look at AWI.

The blog is in Spanish but the code is clear enough.

http://code.google.com/p/awi/source
http://klr20mg.com/awi/

Anthony

On 3/20/07, Kerem İŞERİ [EMAIL PROTECTED] wrote:


hi Joe, Im trying to use wordpress as source.. ofcourse some php will
run inside to generate the content but i am searching the ways of
getting them out from wp. i have used flash remoting before in some
other projects with serversiders. I am not much experienced in php
personally, so its kind of hard for me to manipulate wp too much but I
am trying it out anywas. Im still looking for something to make work
amfphp inside wp. i like wp's admin panel and content management looks
good and optimized. i will search more on this. and if I can figure out
something I will share here.

http://tvwonline.net/flash/#page_id=44article=35 is really cool example
on my subject.

thanx all for answers

kerem.


Joe Wheeler wrote:
 Hi Kerem,

 If you don't use the wordpress php files you're not using wordpress -
all
 you'd have left is a complicated data base structure and a bunch of raw
 data.

 If you really want to use flash and wordpress you need to look at ways
of
 getting the wordpress php files to talk to flash - you can't use flash
 instead of the wordpress php files, you'd need both.

 You might want to have look at writing a plug-in for wordpress (wp
plug-ins
 are also written in php btw). The alternative is to hack wordpress, but
 you'll never be able upgrade when a new version of wordpress comes out
and,
 again, other plugins will be a problem. If you go the hacky way, the php
 files in the admin folder or wordpress\wp-includes\wp-db.php are
probably as
 good a place as any to start with.

 In theory, you could write a plug-in (in php and actionscript) which
enables
 you to create a Flash admin layer over the top of the php application.
It
 would be quite a big job and very hard to make extensible for other
plug-ins
 (most require html forms and JavaScript on the client). You'd probably
be
 better of by just replacing a small bit of the admin interface - pick
the
 bit that annoys you most.

 Try a Google search for wordpress admin hooks or wordpress plugin
api -
 it's not very well documented but you might find something useful.

 Good luck
 J

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
 Sent: 17 March 2007 13:54
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] wordpress and flash integration

 Hi Kerem.

 It depends what you want to parse.

 You could use the RSS feed as a way of getting data into Flash as it
is
 XML, which Flash can deal with very easily.

 If you want to talk to the database more directly, you will have to
 consider using Flash Remoting - have a look to see if anyone has created
an
 AMFPHP - server side code for Flash Remoting in PHP - plugin for
Wordpress.

 http://amfphp.org/



http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchmet
 a=
 
http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchme
 ta=

 HTH

 Glen

 Kerem İşeri wrote:

 Hi everyone...



 I am starting a new project, it will be my first trial on the
 subject.. I thought that I could use wordpress as a database for
 contents and pictures for my site.

 It will be so cool if I can make it, because I will get rid of the
 coding on php and admin panel of this project, wordpress has a very
 userfriendly admin interface it self built in. Anyways,

 Anybody tried this before ? or does anybody know how can I parse
 wordpress pages for the flash?



 Thanks a lot.



 Kerem.

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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

Re: [Flashcoders] flash.media.Camera.setMode Freeze SWF

2007-03-14 Thread Anthony Lee

Hi Luciano,

It sets the pixel width, pixel height and framerate for the camera
it's called on. ie. What the data is grabbed at. How you choose to
preset it is something else.

For example:

var cam:Camera = Camera.get();
cam.setMode(320, 240, 20);

But it's a bit more complicated than that because the camera generally
has preset modes so Flash attempts to find the one closest to your
request, giving preference to the framerate.

Does it freeze your machine? What are your specs?

Anthony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Inheritance issue with simplified MVC

2006-11-08 Thread Anthony Lee

Hi Jim,

Don't think you can get around listening to for the event unless you 
want to get into callbacks...

How's this though? Requires GDispatcher in the Model.

---
class AbstractWidget {

   var localData:Array;
   var provider:Model;
   var build:Function; //--child method
  
   function AbstractWidget(){

   provider = Model.getInstance();

   if (provider.ready == true){
   build();
   } else {
   provider.addEventListener(ready, this, onDataLoad);
   }
   }

   function onDataLoad():Void
   {
   build();
   provider.removeEventListener(ready, this, onDataLoad);
   }
}

class ConcreteWidget extends AbstractWidget {

   function ConcreteWidget() {
   super();
   }

   function build():Void
   {  
localData = provider.getGenericWidgetInfo();

//initialize
   }
}
-

Of course if all the widgets share the same data till death then 
localData needs to be static.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Chopping an FLV

2006-11-06 Thread Anthony Lee

You might want to try FLV Knife while you're at it:
http://soenkerohde.com/software/flv-knife/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 add eventListners in UIComponent classes?

2006-11-06 Thread Anthony Lee
This seems to work reliably for simple decoration and composition into 
homemade widgets. Don't know if it will help you with building Adobe 
style 'components'...


function makeBtn():Void
{
   btnV2 = Button(btn_mc.attachMovie(Button, btnV2, 0));
   if (btnV2.initializing == true){
   btnV2.watch(initializing, handleWatch, this);
   } else {
   onInt();
   }
}

private static function handleWatch(prop, oldVal, newVal, instance):Boolean
{
   if (newVal == false) instance.onInt();
   return newVal;
}

private function onInt():Void
{
   btnV2.addEventListener('click', doStuff);
   btnV2.setSize(WIDTH, HEIGHT);
   btnV2.enabled = true;
   ...
   btnV2.unwatch(initializing);
}

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 frameworks, Caringorn vs ARP vs PixLib vs GuggaFF

2006-11-05 Thread Anthony Lee

Hi Jim,

You might find this article interesting:
http://weblogs.macromedia.com/swebster/archives/2006/08/why_i_think_you.cfm

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Any success with using ExternalInterface with SCORM2004 API?

2006-11-03 Thread Anthony Lee

Hi Craig  Andrei,

Hopefully when this project [http://edumatic.net] starts moving again it 
will help to centralize this kind of information.


There's already a lot in the archive.

I worked with the scripts written by Alan Schultz.
Originally, they worked with fscommand(), but I ported it to use
ExternalInterface. I don't remember very well (I haven't worked with
e-learning stuff in last months) but maybe the code is useful. I am 
going to

send you in a private message.
I'm sure the Edumatic mailing list would like to hear it too, if you 
wouldn't mind posting...

http://osflash.org/mailman/listinfo/edumatic_osflash.org

Regards,
Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Delegates and performance

2006-10-20 Thread Anthony Lee

By the way Dimitrios,

Your Delegate Class wouldn't compile with MTASC.

...com/zefxis/utils/Delegate.as:18: characters 3-12 : type error Local 
variable redefinition : _func


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 synchronization

2006-10-20 Thread Anthony Lee

Wei Xiaobin,

I think you'd do well to start here: 
http://www.adobe.com/devnet/captivate/articles/cpvideo.html


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Delegates and performance

2006-10-16 Thread Anthony Lee



I thought this would interest quite a few people, so I wrote an article on this.
I found your post to be a good practical example of implementing 
Timothee Groleau's article. Thank you.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Classes and Preloading ...

2006-10-15 Thread Anthony Lee

Stephen,

Don't know about the Flash IDE, but MTASC can do this for you. I posted 
a similar question to osflash.org, here's the thread:

http://www.osflash.org/pipermail/osflash_osflash.org/2006-July/009853.html

The short answer is compile your main Classes into a later frame of a 
SWF that already contains you preloader Class on frame one.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Google Adsense in Flash ...

2006-09-27 Thread Anthony Lee

Hi Geoff,

Have you heard anything that would invalidate your article on Flash SEO?
http://blog.deconcept.com/2006/03/

Great article! SWFObject's the duck's nuts, and you'd have to be a hell 
of a great guy yourself by the way.


But I keep wondering when it's going to fall through, Google states 
pretty clearly that presenting different content to the viewer and the 
bot will put your site in the sin bin. Anyway, if your approach still 
works--and it appears to with my sites--then slangeberg's suggestion to 
float the Adsense stuff in front of flash would work too. No need to 
parse the content into Flash, just open a space in your layout for it to 
sit in front. Super easy when you have giants like SWFObject and the 
JavaScriptFlashGateway beneath you.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Scrubber for streamed flv

2006-09-01 Thread Anthony Lee

greg,

You might want to repost this question over on the FlashComm list:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Is it working? I've never been able to load the page or subscribe.

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 assets from external SWF

2006-08-29 Thread Anthony Lee

Marcelo de Moraes Serpa wrote:
No you can´t unless it´s a RSL and you're using the sharepoint trick 
(if you

don´t know what it is just do a quick search on google about rsl and
sharepoint). 

Hi Marcelo,

I did that and was not able to turn it up.

Do you have a link to anything on the 'sharepoint' trick.

Thanks,
Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] working with dynamic images using mysql database

2006-08-24 Thread Anthony Lee

neo,

Try replicating a few million files to 200 sites using a file system.
  
Since this was basically a hi hello how do I make a multi-player game 
in flash its got to have

lasers question, I doubt that's was what bhasker had in mind.

Never the less, thanks for your informed advice.

Tony

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Word processor in Flash

2006-08-23 Thread Anthony Lee

GregoryN wrote:

Tony,

I've just tried your test page - it works OK. Firefox 1.5, win2k.
However, after submit it is waiting for noen.org forever... :-)
  
Sorry Gregory noen.org's DNS provider was unreliable so I changed the 
service domain. I figured the test was over... I'll take it down.


Anyway, I guess that makes 7 for 23 now.

Tony

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] working with dynamic images using mysql database

2006-08-23 Thread Anthony Lee

Hi Ron,

 Put a thousand files in a Windows directory and watch the fun.

Hmm... well yes that won't be your only problem with that choice of web 
server.


I disagree on the rest but don't have the inclination to argue the point.

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tab, tab, tab ...

2006-08-22 Thread Anthony Lee



The problem I am having is tabbing between the textfields within these 
movieclips and I don't know what the problem is.


You've looked at tabEnabled, tabOrder, tabChildren?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] working with dynamic images using mysql database

2006-08-22 Thread Anthony Lee



iam interested to *load images from databse* using mysql.
Don't keep blob data in a database. Store a reference to it's location 
in the file system.


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

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


Re: [Flashcoders] getting my info into flash

2006-08-22 Thread Anthony Lee



And maybe change your name to something else...
Stick with what you got. I for one looking forward to see what lame 
question you'll ask next, Guru. ;-)


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Word processor in Flash

2006-08-22 Thread Anthony Lee

Gregory,

Just out of interest have either you or Jason noticed that there's a 
problem pasting text into flash on Firefox?


I posted a thread on this recently and found that 6 out of 22 people 
with the latest install of FF where experiencing it.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Best way to learn OO Analysis and Design with ActionScript

2006-08-20 Thread Anthony Lee


also, I came to Flash recently (as in about 6 weeks ago) and I found 
it very useful to get all the information in one place, i.e. does AS2 
have abstract interfaces?,  is there try...catch construct for unit 
testing with assertions?, are classnames treated as types, can you 
override the constructor of a superclass in the subclass? This book 
collects this information together in the context of OO principles, 
rather than in some alphabetical AS2 dictionary. 

Hi James,

I was not trying to hose your review, but if you're not a hobbyist then 
there are better books out there. I've read a lot of flash books over 
the years, the only ones that really stuck with me where green and white 
with an animal on the front. ie. O'Reilly. The only exception was Robert 
Penner's first book:

http://www.amazon.com/gp/product/0072223561/sr=8-1/qid=1156120988/ref=pd_bbs_1/103-4690969-4407040?ie=UTF8

I battled furiously to get my head around Object-Oriented Programming 
with Actionscript

http://www.amazon.com/gp/product/0735711836/sr=8-2/qid=1156121055/ref=sr_1_2/103-4690969-4407040?ie=UTF8
only to find that looking back a lot of the explanations largely added 
to my confusion.


IMHO your recommendation wasn't hard to follow but it did lack depth.

The Head First books are excellent. The Java book is not a waste of time 
either. If you're trying to get your head around OOP it helps enormously 
to get the information first hand and the best references will always 
give Java and/or C++ examples.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Best way to learn OO Analysis and Design with ActionScript

2006-08-19 Thread Anthony Lee


http://www.amazon.com/gp/product/0596007124/sr=8-1/qid=1155996611/ref=pd_bbs_1/104-7942318-0256721?ie=UTF8 


Good book. Read it at Aral's recommendation.
http://www.amazon.com/gp/product/0735713804/104-7942318-0256721?v=glancen=283155 

Sorry authors... but I found this book to be a waste of space. Too much 
sucking up, too little content.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LoadMovie library

2006-08-10 Thread Anthony Lee



I want this because I want to separate code from viewing assets, and import
different templates. 
  

I feel your pain Bart. Unfortunately it's a no can do:

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

Do a text search for library and scan the page,  you should get the idea.

I want for example to put my video object on the scope of my imported assets
so I can mask my video object. I want to use a mask of the imported assets
and I want to put some imported assets like a shadow border on top of my
video. This is only possible if I get my video object on the same scope as
the imported assets or if I get the assets that I want on top of the video
object in a different movieclip (duplicatemovieclip).
  
I see what you mean. I think it'd take some serious monkey business to 
make that work.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-10 Thread Anthony Lee

Hi Aaron,

There is an issue that occurs when users with smaller monitors (13
macbooks) accessing 100% flash content. Say you do not want to scale the
content down to 13. 
Agreed. I overcame this within Flash. It's just a mater of wrapping 
Stage in a class that has min values set. In my applications the UI 
elements ask the custom Canvas class how big the stage is and place 
themselves accordingly.

You also do not want to write a flash scroller, because
the browser has excellent support and performance for this, and Flash might
have a harder time.
  
The site you posted looks very professional but there is not window 
scroller.


I was interested in how this is done:
http://amnesia.com.au/site/index.html

Starts normally, then when the content panel gets larger than the 
viewable area the browser scroll bars appear.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - redrawing interface elements after destruction

2006-08-10 Thread Anthony Lee


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. 
Now I did a bunch of tracing tests to see if:

Hi dnk,

This may not be a proper answer to your question, but when faced with 
this kind of headache I stick all the problem buttons, thumbnails etc in 
a single movieclip, delete that clip to clear them, and redraw the whole 
thing from scratch. Bad for the processor, good for my sanity.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-09 Thread Anthony Lee



use javascript to resize the swf's object
height attribute, so that when your user opens a section that will increase
your stage height beyond the window height, 

Hi Aaron,

I noticed a site doing that just this morning. Switching the swf 
attributes from Javascript doesn't mess with the application's state? 
Does anyone have any sample code they could point at?


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

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


Re: [Flashcoders] flash and sessions

2006-08-09 Thread Anthony Lee


does anyone have any experience using flash and sessions? specifically, i'm trying to get flash to read the jsession id from the http header. 
  
You can just push it into flash from the object tag when the page is 
written:


myFlash.swf?jsession_id=woof

Turns up in Flash at:

_root.jsession

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LoadMovie library

2006-08-09 Thread Anthony Lee

Bart,

I don't find a
solution where I can get my movieclips away of the library container to some
movieclip on the main.swf.
  

I think if you look at the technotes you'll find that it can't be done.

That doesn't mean you can't use loaded movie library assets. You just 
have to access them from the scope they where born to.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] png load queue

2006-08-09 Thread Anthony Lee

How are you loading them? What queue are you using?

Tony

player is performing very very slowly
  
I am loading in sequence up to 100 png files - if that makes a difference.


Any idea why this may be happenening?
  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-09 Thread Anthony Lee

Hi Bjorn,

There's a better way to do it.
Have you seen swfObject?
  

Seen it. Use it. Love it.

Insert the swf into the html with noscale and showall, then you are not
limited to a stage size.
  

noScale  showAll? They are not mutually exclusive?

Have a listener set up in js for onResize and pass it into flash via
swfObject.
What will this do for me? If you're using showAll then Stage.height etc. 
is lost? Is that why you have to get the values from the browser?


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Lite - what's happening

2006-08-07 Thread Anthony Lee
 You literally can't buy a new handset in Japan that doesn't support Flash
 Lite.

1.1 and you have to register with the carrier to be a content provider.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: : RE: [Flashcoders] Flash Lite - what's happening

2006-08-07 Thread Anthony Lee
1.1 and you have to register with the carrier to be a content provider.

 thats not true - you have to register to be part of their official
 portal

Happy to be corrected! I only know what I read on Japanese developer's
blogs, and from that I'd formed the opinion that it wasn't worth looking
further.

I am still a little perplexed that the exact model of Nokia phone that's
running FL2 in the States is known to not run it here. All I could gather
was that it was a 'business decision'.

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: how to hide your AS 2.0 from flash leech software

2006-08-05 Thread Anthony Lee
 nom-de-plumes

noms-de-plume

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

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


RE: [Flashcoders] Copy Paste into Firefox

2006-07-18 Thread Anthony Lee
Of the 22 people that took the Quiz

http://dozo.jp/paste_test?result=true

6 reported paste problems. ie. 1/3.

I guess I have to watch for key code:
17,86,86,17 then offer an alternate input method for these people.

HTML floating in front of Flash, wmode=opaque, Javascript bridge. Yuck!

Thanks for the feedback.

Tony






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Copy Paste into Firefox

2006-07-17 Thread Anthony Lee
Hi Jim, All,

 No worries, If it works in one version and not in another - it's up to
 you/theclient/company to decide which browsers you support.

I'm the client, the end users are my clients, and I say not being able to
copy and paste into Firefox bites!!

 This is obviously very important to my company and others considering this
 is an important part of many forms-based flash applications.

Agreed 100%. Ajax starts looking a lot more attractive when this kind of
thing comes up.

I've posted a SWF to collect input here:
http://dozo.jp/paste_test.php

The source is here:
http://dozo.jp/PasteTest.zip

Thanks

Tony


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Does your next RIA work in Firefox?

2006-07-17 Thread Anthony Lee
Hi,

Sorry for starting a new thread on this but it seems important.

Rich Internet Application development review
1) Get information for the punters
2) Do something sexy with it in Flash

It's not all pushing buttons and typing. There's the clipboard... If your
not building something to get data from the users clipboard now your next
project might, and the bad news appears to be that Firefox is not coming
to the party.

I've noticed that Ctrl-v, pasting from the clipboard to flash, doesn't
work in all versions of Firefox. In fact nothing related to the clipboard
does.

A similar thread from 2001:
http://chattyfig.figleaf.com/pipermail/flashcoders/2001-November/016166.html
...didn't post an answer.

Please visit this URL:
http://dozo.jp/paste_test.php

Then try to paste something in on Firefox and and register how it went.

The test results are available at:
http://dozo.jp/paste_test.php?result=true

I've managed to figure out that pressing Ctrl and V _really_ fast
sometimes works. In that case I get the following output:

UP -   Code: 17Key:
UP -   Code: 86Key: v
DOWN - Code: 86Key: v
DOWN - Code: 17Key:

As opposed to:

UP -   Code: 86Key: v
UP -   Code: 17Key:
DOWN - Code: 86Key: v
DOWN - Code: 17Key:

Which is the key sequence flash reads when the operation fails.

IE reads the keys in this order:

DOWN - Code: 17Key:
UP -   Code: 86Key: v
UP -   Code: 17Key:

Hacking something to get the info from Javascript doesn't seem like a
practical option, Firefox won't read the clipboard by default:
http://www.mozilla.org/editor/midasdemo/securityprefs.html

Any input appreciated.

Thanks for reading this far!

Tony


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] amf-php, AS2, mysql, and multilanguage website

2006-07-17 Thread Anthony Lee
 Hi all, can someone put a step by step guide about what are the correct
 steps to have a front(in flash) that connects to a MySql with AMFPHP

Lots of good information at:
http://www.sephiroth.it
http://www.5etdemi.com/blog/
http://amfphp.org

Flash player uses UTF-8 so you shouldn't have character issues.

One gotcha, if you're storing UTF-8 strings in MySQL you will want to use
4+, and you'll need to call the following before running select where
queries from your service.

mysql_query(SET NAMES 'utf8');

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

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