Re: [Flashcoders] getURL and javascript not working in flash 8

2005-12-27 Thread Arul Prasad
Thats because of the new Security policies implemented in Flash Player 8.

Check this article :
http://www.macromedia.com/devnet/flash/articles/fplayer8_security_03.html

~Arul Prasad.



On 12/27/05, Sumeet Kumar <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I m using the getURL method to call a function in the javascript in i.e
> but it is not working i.e I m not able to call the javascript function
> through getURL.
>
> Any suggestion ?
>
> Thanks and Regards
> Sumeet Kumar
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How can I display a tall document?

2006-02-27 Thread Arul Prasad
1. set Stage.scalemode="noScale';

2. set  textBox.autoSize= true and then textBox.width = num;
This will make the textBox stretch heightwise, and fix the width to a
particular value (num).

3. After you set the text to the textfield, pass that height to the
javascript code in the container html page.
4. Resize your flash Object size accordingly using JS. (getItemByID will
help u get the object)

This should work.


On 2/23/06, Phil Glatz <[EMAIL PROTECTED]> wrote:
>
> I have a Flash (8) movie that has a dynamic text field whose contents
> may vary - it may be between a few lines of text, to as many as a
> thousand.  I would like to have it scale vertically e size of the
> contents, but always maintain the same width and font size.  If it
> gets too tall to be shown in the HTML page containing it, the HTML
> pages should be scrolled to see the entire contents.  I don't want to
> use a scroll bar with the text field; the entire contents should be
> visible at all times.
>
> To further complicate things, the content of the dynamic text box is
> set via a FlashVar at display time.  Also, the font used may be
> changed via a FlashVar parameter.
>
> What I think I need is a way to change the height of the stage, based
> on the rendered height of the content at display time.  Can this be
> done with ActionScript?  How do I indicate in the object/embed tags
> in the HTML the height of the SWF, since it won't be known at display
> time?
>
> thanks - any ideas or references would be appreciated
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Stage.width and varying HTML size?

2006-03-16 Thread Arul Prasad
Use
Stage.align = "TL" ;

along with ur

Stage.scaleMode= "noScale";

Should help.

~Arul Prasad


On 3/16/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How does Stage.width relate to the size of the flash window set via HTML?
>
> I'm trying to create a simple slideshow movie that can take any size
> images
> as a parameter, and will display them as their actualy size. It's simple
> to do
> when dealing with a fixed size movie, but when doing it with a movie that
> changes size causes me trouble. I want the images to be loacked to the top
> left of the movie, no matter what size is defined in the HTML.
>
> I've got scaleMode = "noScale" set, but when the HTML sets the page wider
> the
> 0,0 point moves around strangely. It doesn't seem to be an obvious way to
> make
> it work.
>
> Any tips to get my head around it?
>
> Thanks,
>
> - Kevin
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Flex demos

2006-03-21 Thread Arul Prasad
http://weblogs.macromedia.com/flex_samples/


On 3/21/06, Jim Kremens <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm trying to sell a client on Flex.  I want to be able to show him some
> examples.
>
> I've seen this page:
>
> http://www.macromedia.com/cfusion/showcase/index.cfm
> ?event=finderresults&contenttype=casestudy&productID=26724&loc=en_us
>
> but even using the links provided there, it's pretty hard to find the Flex
> app.  These are all RIAs of course, but they require login, and so don't
> make the best demos.
>
>
> Is there a page with links to some demo-type, completely public apps?
>
> --
> 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] >> While and Var

2006-03-21 Thread Arul Prasad
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
   dtd = "var"+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _root[dtd].text=spa1;
   _root[dtd].border=true;
   _root[dtd].selectable=false;
   dt++;
}

note: var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
   dtd = "var"+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _root[dtd].text=spa1;
   _root[dtd].border=true;
   _root[dtd].selectable=false;
   dt++;
}

~Arul Prasad


On 3/21/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:
>
> Good morning,
>
> 1) I  create dynamic textfield with while option
> I try to create dynamic border and content without success
>
> Have you got a tips to done it
>
> Thank you
>
> /
> var dtd;
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
> dtd = "var"+dt;
> spa = dt*5;
> spa1 = (dt*15)+45;
> _root.createTextField(dtd, dt, 0, spa1, 100, 15);
> dtd.text=spa1;
> dtd.border=true;
> dtd.selectable=false;
> dt++;
> }
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] >> While and Var

2006-03-21 Thread Arul Prasad
Dunno why I copy pasted 2 times!

The only changes were in the three lines where I replaced dtd with
_root[dtd]

You could use _root. dtd as well.

Of course you will have to optimize the code.


var dtd;
var spa;
var spa1;
var _txt:TextField;
var dt = 0;
while (dt<=99) {
   dtd = "var"+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _txt = _root[dtd];
   _txt.text=spa1;
   _txt.border=true;
   _txt.selectable=false;
   dt++;
}

Reason why it didnt work in your case - when you said "dtd.text" you were
actually trying to access a text property of the string dtd. And it silently
failed ( coz dtd was not strictly typed)

You would've caught these kinda issues if you had used strict data typing :)

~Arul Prasad.




On 3/21/06, Arul Prasad <[EMAIL PROTECTED]> wrote:
>
> var dtd;
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
>dtd = "var"+dt;
>spa = dt*5;
>spa1 = (dt*15)+45;
>_root.createTextField(dtd, dt, 0, spa1, 100, 15);
>_root[dtd].text=spa1;
>_root[dtd].border=true;
>_root[dtd].selectable=false;
>dt++;
> }
>
> note: var dtd;
>
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
>dtd = "var"+dt;
>spa = dt*5;
>spa1 = (dt*15)+45;
>_root.createTextField(dtd, dt, 0, spa1, 100, 15);
>_root[dtd].text=spa1;
>_root[dtd].border=true;
>_root[dtd].selectable=false;
>dt++;
> }
>
> ~Arul Prasad
>
>
>
> On 3/21/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:
> >
> > Good morning,
> >
> > 1) I  create dynamic textfield with while option
> > I try to create dynamic border and content without success
> >
> > Have you got a tips to done it
> >
> > Thank you
> >
> > /
> > var dtd;
> > var spa;
> > var spa1;
> > var dt = 0;
> > while (dt<=99) {
> > dtd = "var"+dt;
> > spa = dt*5;
> > spa1 = (dt*15)+45;
> > _root.createTextField(dtd, dt, 0, spa1, 100, 15);
> > dtd.text=spa1 ;
> > dtd.border=true;
> > dtd.selectable=false;
> > dt++;
> > }
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] writing a xml file directly from flash 8

2006-03-22 Thread Arul Prasad
Well, how would u create a CDATA node? I've once had a requirement to do
that, but couldnt see any solutions...

~Arul Prasad

On 3/22/06, Eskil Janson <[EMAIL PROTECTED]> wrote:
>
> Yes,
>
> If you have Flash, check  XML.createTextNode() section of your Flash
> help (Actionscript  classes) , else
> yes it is possible, and often used.
>
> Regards
>
> /Eskil
>
> Matt Muller skrev:
> > Is this possible, or can someone suggest a solution here?
> >
> > Thanks
> >
> > MaTT
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] >> Link and setTextfield with vars

2006-03-26 Thread Arul Prasad
Set your textFormat to a textField, not to a string.

Change the last block to

texteCliquable_inst.text = pre1+pre2;
texteCliquable_inst.setTextFormat(0,pre1.length-1,style1);
texteCliquable_inst.setTextFormat(pre1.length
,texteCliquable_inst.text.length,style2);
delete style1;
delete style2;

Check the documentation for setTextFormat for details.

~Arul Prasad


On 3/27/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:
>
> Good morning,
>
> I need to get multiple link with a dynamic text
> There is 2 var : var1 and var2, 2 styles : style1 and style2
>
>
> Why this syntax doesn't work, have you got an idea ??
>
> Thank you
>
> Laurent
>
>
> var pre1="Click here ";
> var style1 = new TextFormat();
> style1.url = "http://www.macromedia.com";;
> style1.font = "Verdana";
> style1.italic = true;
> style1.size = 17;
>
>
> var pre2="or Click here";
> var style2 = new TextFormat();
> style2.url = "http://www.flash.com";;
> style2.font = "arial";
> style2.size = 12;
> style2.bold = true;
>
>
> pre1.setTextFormat(style1);
> pre2.setTextFormat(style2);
> texteCliquable_inst.text = pre1+pre2;
> delete style1;
> delete style2;
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] >> Textfield LINE RETURN

2006-03-27 Thread Arul Prasad
Add a "\n" where you need a newline,

text1_txt.text = "Morning john,\n Your site is beautiful.\n Have a good
day"; will show the text in 3 lines.

~Arul Prasad

Remember to

On 3/27/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:
>
> Good morning,
>
> I need o put a return or enter to go to next line, have an Idea how to do
> in
> a Var ??
>
> Thank you
>
>
> Need :
>
> Morning John,
> Your site is beautiful
>
> Have a good day
>
>
> AS2
> text1_txt.text = "Morning john, Your site is beautiful. Have a good day";
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] looking for some .NET to Flash tools

2006-04-03 Thread Arul Prasad
Haven't read this mail thread completely, so may be this isn't what you
want. But check out NeoSWIF <http://www.globfx.com/products/neoswiff/>. You
can create Flash SWFs by writing code in a .NET language.
I have some more info I wrote once in a post abt NeoSWIFF  here:

http://arulprasad.blogspot.com/2005_12_11_arulprasad_archive.html

Cheers!
Arul Prasad.


On 4/3/06, Gavin Lilley <[EMAIL PROTECTED]> wrote:
>
> I do not fully understand what you mean by .net database?
>
> if this is an online project with a budget and php is an option then I
> recomend amfphp. or remoting for .net is good.
>
> if this is an offline project then it is possible to connect to .net
> facilities via the ExternalInterface.
>
> --
> Gavin Lilley.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Assigning actions to dynamic movieclips

2006-04-07 Thread Arul Prasad
i tried picking up the for loop from ur code and trying it out, and am am
able to see the rollOver fn being triggered. Not sure why it isnt working
for u. If your mcs are not getting attached at all, probably u have to check
if ur _root.depth variable  has been initialized.

~Arul Prasad.


On 4/7/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Trying to figure this out.
>
> I want to create dynamic movieclips within a for loop and assign
> actions to each created movieclip.
>
> When I try to do it this way, it does not seem to work:
>
> if (screen_Name == "Tab") {
> _root.depth++;
> var Tab_Int_MC = mainMC.createEmptyMovieClip("TabMenu_Int",
> _root.depth);
> for (var i = 0; i<3; i++) {
> _root.depth++;
>
> 
> Tab_Int_MC.attachMovie("GR_BG_TAB_icon_unselect_theme1",
> "GR_BG_TAB_icon_unselect_theme1_"+i, _root.depth);
> this["Tab"+i] =
> Tab_Int_MC["GR_BG_TAB_icon_unselect_theme1_"+i];
> this["Tab"+i]._x = 35*i;
> this["Tab"+i]._y = 19;
> _root.depth++;
>
> Tab_Int_MC.attachMovie("GR_BG_TAB_icon_select_Theme1",
> "GR_BG_TAB_icon_select_Theme1_"+i, _root.depth);
> this["TT_hlt"+i] =
> Tab_Int_MC["GR_BG_TAB_icon_select_Theme1_"+i];
> this["TT_hlt"+i]._x = 35*i;
> this["TT_hlt"+i]._y = 19;
> this["TT_hlt"+i]._visible = false;
> this["Tab"+i].onRollOver = function() {
> this["TT_hlt"+i]._visible = true;
> drawOutline(this["Tab"+i], "TL");
> };
> this["Tab"+i].onRollOut = function() {
> this["TT_hlt"+i]._visible = false;
>
> 
> removeOutline(this["Tab"+i]._parent.Highlight);
> };
> this["Tab"+i].onRelease = function() {
> DisplayData(this["Tab"+i], xPos, yPos,
> width, height, "left");
> };
> }
>
> So I tried it this way also and it didnt work:
>
> if (screen_Name == "Tab") {
> _root.depth++;
> var Tab_Int_MC = mainMC.createEmptyMovieClip("TabMenu_Int",
> _root.depth);
> for (var i = 0; i<3; i++) {
> _root.depth++;
>
> 
> Tab_Int_MC.attachMovie("GR_BG_TAB_icon_unselect_theme1",
> "GR_BG_TAB_icon_unselect_theme1_"+i, _root.depth);
> TT = this["Tab"+i];
> TT =
> Tab_Int_MC["GR_BG_TAB_icon_unselect_theme1_"+i];
> TT._x = 35*i;
> TT._y = 19;
> _root.depth++;
>
> Tab_Int_MC.attachMovie("GR_BG_TAB_icon_select_Theme1",
> "GR_BG_TAB_icon_select_Theme1_"+i, _root.depth);
> TT_hlt = this["TT_hlt"+i];
> TT_hlt =
> Tab_Int_MC["GR_BG_TAB_icon_select_Theme1_"+i];
> TT_hlt._x = 35*i;
> TT_hlt._y = 19;
> TT_hlt._visible = false;
> TT.onRollOver = function() {
> TT_hlt._visible = true;
> drawOutline(TT, "TL");
> };
> TT.onRollOut = function() {
> TT_hlt._visible = false;
> removeOutline(TT._parent.Highlight);
> };
> TT.onRelease = function() {
> DisplayData(TT, xPos, yPos, width, height,
> "left");
> };
> }
>
> Can someone help me debug this?
>
> 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] jpg in flash 7 and 8

2006-04-10 Thread Arul Prasad
Check out this:
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html

Now thats a info straight from the source, for Tinic is the one who
implemented this feature :)

~Arul Prasad.

On 4/10/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>
> thanks, and what with dynamically loaded jpgs?
>
> MW
>
>
> - Original Message -
> From: "Zeh Fernando" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Monday, April 10, 2006 2:27 PM
> Subject: Re: [Flashcoders] jpg in flash 7 and 8
>
>
> >> i got problem with jpg image in flash, when publishing to 7 it looks
> >> better (if scale is lower then 100) then when published to 8,
> >> does anyone have the same experience?
> >
> > It's because, when publishing to Flash 8, the flash player properly
> > respects the smoothing property of each image, instead of either
> applying
> > it to them all or to none at all (depending on the _quality).
> >
> > To turn it on for some specific image, go to the library, open up the
> > image properties, and check the "Allow smoothing" option.
> >
> >
> > - Zeh
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] Installing Flash 8 pro on a fresh OSX 10.4.6 crash on launch

2006-05-18 Thread Arul Prasad

try clearing off the Flash folder, in ur Users folder. I dont have a Mac
right now, so forgot cant give u the exactpath.

it should be somewhere in Users::library:Application data (?)
:Macromeda:Flash:...
as I said, I'm not very sure about the path, just check it out.

~Arul Prasad.

On 5/19/06, erix tekila <[EMAIL PROTECTED]> wrote:


Hi,



I went to install Flash IDE 8 pro.
Everything goes well, but after actvating, the software crashes.
Anyone already get this issue on OSX 10.4.6 running on PPC ?

Even if I desinstall and reinstall.
Any idea ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Overflowing dynamic text fields

2006-05-24 Thread Arul Prasad

Sajid,

how about this:

Keep adding text in parts into the textfield, and everytime check its scroll
property. The moment value of scroll property changes, stop and put the rest
into the next textfield.

what say ?

~Arul Prasad.

On 5/24/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote:


Hi,
Was wondering if anyone has tried tis defore.

Most of the magazine layouts are multi-column. LIke two column
vertical or three column vertical.

Is there a way in Flash to create two vertical dynamic text fields and
get content from external file and when the text reaches the end of
the first box, it gets cropped and overflows to the secont text field.

Looking for some hints to achieve this.

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] Getting the class name?

2006-05-25 Thread Arul Prasad

instanceof does not return anything - It is not a method, but an operator.
You can use instanceof only to compare - like this:

var xx:XML  = new XML();
trace (xx instanceof XML);

// output will be true.

~Arul Prasad.


On 5/25/06, mike cann <[EMAIL PROTECTED]> wrote:


im not entirely sure but can you use "instanceof" against a switch
statement
to check if its of a particular class?

On 25/05/06, eka <[EMAIL PROTECTED]> wrote:
>
> Hello :)
>
> you can use my ContructorUtil class with the statics getName, getPackage
> and
> getPath methods :
>
>
>
http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
>
> More precision in http://osflash.org/vegas to install VEGAS with SVN :)
> you
> can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
>
> now for the custom object's serialization you can use EDEN :
> http://live.burrrn.com/wiki/eden
>
> EKA+ :)
>
> 2006/5/25, Merrill, Jason <[EMAIL PROTECTED]>:
> >
> > You mean the Class type then - for a custom class, I think you would
> > have to create a property to hold that.
> >
> > class MyClass extends MovieClip{
> > public var type:String = "MyClass"
> > }
> >
> > class MyOtherClass extends MovieClip{
> > public var type:String = "MyOtherClass"
> > }
> >
> > In Flash:
> >
> > var a:MyClass = new MyClass();
> > var b:MyClass = new MyOtherClass();
> > trace(a.type)
> > trace(b.type)
> >
> > Name usually refers to the instance name.
> >
> > Jason Merrill
> > Bank of America
> > Learning Technology Solutions
> >
> >
> >
> >
> >
> >
> >
> >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] On Behalf
> > >>Of David Skoglund
> > >>Sent: Thursday, May 25, 2006 9:17 AM
> > >>To: Flashcoders mailing list
> > >>Subject: Re: [Flashcoders] Getting the class name?
> > >>
> > >>Yes, i know that the class name is MyClass when writing the
> > >>code, but does the object know what class it is constucted
> > >>from at runtime?
> > >>
> > >>I want to save out scene objects to a XML-file and need to
> > >>save what class the objects are constructed from (or their
> > >>linkage ID in set in the Flash IDE).
> > >>
> > >>/David
> > >>
> > >>
> > >>- Original Message -
> > >>From: "Merrill, Jason" <[EMAIL PROTECTED]>
> > >>To: "Flashcoders mailing list" 
> > >>Sent: Thursday, May 25, 2006 2:56 PM
> > >>Subject: RE: [Flashcoders] Getting the class name?
> > >>
> > >>
> > >>> Given:
> > >>>
> > >>>>>class MyClass extends MovieClip {
> > >>>>>
> > >>>>> function MyClass (){
> > >>>>>  trace (this.className)
> > >>>>> }
> > >>>
> > >>> The name of the class is "MyClass" - or do you mean the
> > >>instance name?
> > >>>
> > >>> Jason Merrill
> > >>> Bank of America
> > >>> Learning Technology Solutions
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> ___
> > >>> Flashcoders@chattyfig.figleaf.com
> > >>> To change your subscription options or search the archive:
> > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>>
> > >>> Brought to you by Fig Leaf Software
> > >>> Premier Authorized Adobe Consulting and Training
> > >>> http://www.figleaf.com
> > >>> http://training.figleaf.com
> > >>>
> > >>
> > >>___
> > >>Flashcoders@chattyfig.figleaf.com
> > >>To change your subscription options or search the archive:
> > >>http://chattyfig.figleaf.com/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] FLV Playback problems.

2006-05-25 Thread Arul Prasad

You should be able to change the contentPath property and  change the
currently playing video.

You can have more than one video load into the FLVPlayback component by
adding more videoPlayers inside the same component. You can achieve this
using the  activeVideoPlayerIndex  and the visibleVideoPlayerIndexproperties.

Now that you have said you are picking up the FLV's path from a XML, if I
can take a wild guess, here, check this too:
before assigning the FLV file's path to the contentPath property, check if
you are actually passing a proper string value (trace out the type of the
value). Since you are picking it up from a XML, you might be assigning a
XMLNode instead of its nodeValue.

Hope it helps.

Regards,
~Arul Prasad.

On 5/25/06, Aasim Momin <[EMAIL PROTECTED]> wrote:


Hi,

I am using an FLV Playback component inn my file for streaming videos
from FMS. I need to changes the videos on the click of a button. This I
have achieved by changing the contentPath parameter dynamically. The
contentPath values are coming from an XML file.
If I place the FLV Playback component on the stage, it shows the first
video but when I try to move to the next video on clicking Next, The
video does not play.
Currently I have made it work by using the attachMovie() function and
not keeping the FLV Playback component on the stage.
I am using Flash 8 Professional and FMS 2.

Could I be missing something?

Regards,
Aasim Momin



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

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


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

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


Re: [Flashcoders] Getting the class name?

2006-05-25 Thread Arul Prasad

:)

that will work - but won't be feasible, unless you are checking against a
selected set of classes.

If they are classes that you write, the best thing to do would be have a
variable inside ur class right away called 'ClassName' and use it. ( like
how macromedia did in V2 component classes ;-) )

~Arul Prasad.

On 5/25/06, mike cann <[EMAIL PROTECTED]> wrote:


so you could do:

var myClassName:String;
var xx= new myClass();

if (xx instanceof myClass){myClassName="myClass";}
else if (xx instanceof someOtherClass){myClassName="someOtherClass";}

maybe?

On 25/05/06, Arul Prasad <[EMAIL PROTECTED]> wrote:
>
> instanceof does not return anything - It is not a method, but an
operator.
> You can use instanceof only to compare - like this:
>
> var xx:XML  = new XML();
> trace (xx instanceof XML);
>
> // output will be true.
>
> ~Arul Prasad.
>
>
> On 5/25/06, mike cann <[EMAIL PROTECTED]> wrote:
> >
> > im not entirely sure but can you use "instanceof" against a switch
> > statement
> > to check if its of a particular class?
> >
> > On 25/05/06, eka <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello :)
> > >
> > > you can use my ContructorUtil class with the statics getName,
> getPackage
> > > and
> > > getPath methods :
> > >
> > >
> > >
> >
>
http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
> > >
> > > More precision in http://osflash.org/vegas to install VEGAS with SVN
> :)
> > > you
> > > can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
> > >
> > > now for the custom object's serialization you can use EDEN :
> > > http://live.burrrn.com/wiki/eden
> > >
> > > EKA+ :)
> > >
> > > 2006/5/25, Merrill, Jason <[EMAIL PROTECTED]>:
> > > >
> > > > You mean the Class type then - for a custom class, I think you
would
> > > > have to create a property to hold that.
> > > >
> > > > class MyClass extends MovieClip{
> > > > public var type:String = "MyClass"
> > > > }
> > > >
> > > > class MyOtherClass extends MovieClip{
> > > > public var type:String = "MyOtherClass"
> > > > }
> > > >
> > > > In Flash:
> > > >
> > > > var a:MyClass = new MyClass();
> > > > var b:MyClass = new MyOtherClass();
> > > > trace(a.type)
> > > > trace(b.type)
> > > >
> > > > Name usually refers to the instance name.
> > > >
> > > > Jason Merrill
> > > > Bank of America
> > > > Learning Technology Solutions
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > >>-Original Message-
> > > > >>From: [EMAIL PROTECTED]
> > > > >>[mailto:[EMAIL PROTECTED] On Behalf
> > > > >>Of David Skoglund
> > > > >>Sent: Thursday, May 25, 2006 9:17 AM
> > > > >>To: Flashcoders mailing list
> > > > >>Subject: Re: [Flashcoders] Getting the class name?
> > > > >>
> > > > >>Yes, i know that the class name is MyClass when writing the
> > > > >>code, but does the object know what class it is constucted
> > > > >>from at runtime?
> > > > >>
> > > > >>I want to save out scene objects to a XML-file and need to
> > > > >>save what class the objects are constructed from (or their
> > > > >>linkage ID in set in the Flash IDE).
> > > > >>
> > > > >>/David
> > > > >>
> > > > >>
> > > > >>- Original Message -
> > > > >>From: "Merrill, Jason" <[EMAIL PROTECTED]>
> > > > >>To: "Flashcoders mailing list" <
flashcoders@chattyfig.figleaf.com>
> > > > >>Sent: Thursday, May 25, 2006 2:56 PM
> > > > >>Subject: RE: [Flashcoders] Getting the class name?
> > > > >>
> > > > >>
> > > > >>> Given:
> > > > >>>
> > > > >>>>>class MyClass extends MovieClip {
> > > > >>>>>
> > > > >>>>> function MyClass (){
> > > > >>>>

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Arul Prasad

import in AS2, is to help you avoid typing in the complete package name
everytime u reference a class.

The following code

import mx.controls.Button;
var playBtn:Button;
...
var stopBtn:Button;

var pauseBtn:Button;

will look like this:

var playBtn:mx.controls.Button;
...
var stopBtn:mx.controls.Button;

var pauseBtn:mx.controls.Button;

if you don't use an import.

Please refer flash help for more details..

:)
~Arul Prasad

On 5/25/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote:


Flashcoders,

So this is one of those things I wonder about.  If I type a var to a
custom
type, doesn't the compiler automatically import the associated class
files?
When or why would I need to explicitly need to use the import directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] by

2006-05-31 Thread Arul Prasad

bye dude,

this list will miss u!

hehe

~Arul Prasad.

On 5/31/06, khodam khodesh <[EMAIL PROTECTED]> wrote:


b



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
rates starting at 1¢/min.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] timeline control of flv video?

2006-12-18 Thread Arul Prasad M L

looks like all you need is a FLVPlayback component. (in Flash8) or Media
Playback component (in Flash MX 2004)

Open up the components panel - Window menu > components. And its right
there.

~Arul Prasad.

On 12/18/06, John DuQuette <[EMAIL PROTECTED]> wrote:


Is it possible to dynamically load flv video files from a server into
a video object that is inside a movie clip, and then control that flv
video via the Movie Clip that holds it... making use of goto play
stop and _currentframe.

I am trying to figure out how hard to convert our convert video
application, which loads .swf formatted flash video using
movieclip.loadmovie() and manipulates them at the frame level using
MovieClip commands... if it's possible to load .flv files into the
same movieclips dynamically and control these .flv videos with
commands the same, or slighlty modified, as we know use to control
dynamically loaded .swf video and audio files.

i know this is possible if loading the .flv directly into the .fla
before publishing it, but what about when bringing in the flv
dynamically from the server?

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

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





--
Arul Prasad
http://arulprasad.blogspot.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] [OT] Intermediate level Actionscript developer needed at Singapore

2007-01-05 Thread Arul Prasad M L

Hi,

There is a requirement for an intermediate level Actionscript developer ( 2
- 3 yrs of development exp) in our team at my current work place.

Skillset expected:

  - AS2.0 development experience
  - Good knowledge of OO development methodologies
  - Experience in XML parsing, Flash V2 components, XMLSockets
  - Knowledge about expressiveness features in Flash 8, Bitmap API,
  development for FlashLite, open source actionscript libraries etc. are
  highly desired.

We are developing a Flash based RIA. The Actionscript Developer will be
tasked to develop front-end applications in AS2.0. The developer is expected
to work with several other software engineers to integrate Flash based front
end to applications written in Java, C++, Javascript and HTML. I can't
expose more details in here 'coz the product is still under development, but
I can assure that it will be quiet a challenging job :)

Interested candidates (local candidates, and others willing to relocate to
Singapore), please forward your CVs to [EMAIL PROTECTED] .

Regards,
Arul Prasad.
http://arulprasad.blogspot.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] FLV issue within IE7?

2007-02-19 Thread Arul Prasad M L

Is the HTML in the same folder as the SWF too? If not, are you using
relative path(just the FLV file name) to target the FLVs from the SWF?

On 2/20/07, Charles Parcell < [EMAIL PROTECTED]> wrote:


Anyone have suggestions on what I could possibly do to correct my FLVs not

appearing in IE7?

I have a project which loads in an FLV at runtime (same domain and folder
even). When run in IE6, Flash Player 9, SWF version 8, it works as
expected.  In IE7, Flash Player 9, SWF version 8, the FLVs never appear.

Thoughts?

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

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





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

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


Re: [Flashcoders] Flash chat and Smiley

2007-02-23 Thread Arul Prasad M L

*Jolan SmileyTextField v1.3
*<http://flashcomponents.net/components/preview/preview.php?id=372>
(http://flashcomponents.net/components/preview/preview.php?id=372)
Its in AS1 though. Haven't seen anything better yet. I had to tweak it a lil
to get it to work for FP 7+ ...


--
Arul Prasad
http://arulprasad.blogspot.com

On 2/23/07, Amandeep Singh <[EMAIL PROTECTED]> wrote:


Hi All,

Can anyone help me in adding the Smiley feature in a Flash Chat
application?
Or give me a link where I can find the same.

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

2007-03-26 Thread Arul Prasad M L

createClassObject and createObject (and a few more) methods are defined in
the mx.core.ext.UIObjectExtensions class, and are added to MovieClip's
prototype when UIObjectExtensions gets 'initialized'. This happens, if you
have a UIComponent in your library. So createClassObject  method will work,
ONLY if you got a UIComponent based on macromedia's V2 architecture in your
library.

createClassObject essentially boils down to a attachMovie internall. I think
the createClassObject ( and subsequently createObject) implement a
'enhanced' depthTable,  which basically helps the components like ComboBox
work properly.

Its bedtime for me ( its singapore standard time here!), (and thanks to the
beer :P ), so I can't write any more. Hope all the above info helps you.

regards,
Arul Prasad.


On 3/26/07, Andy Herrman <[EMAIL PROTECTED]> wrote:


I think the root movie clip does extend UIObject, as createClassObject
works for me.  And the objects I'm creating aren't custom ones, but
things like mx.controls.ComboBox, so I don't have to worry about
symbol* variables.

I may have to look into UIObject a bit more.  I've been making some of
my own controls, but doing it using Composition, with the class that
handles the control creating (or being passed) an movie clip to use.
Maybe extending UIObject would make more sense.

   -Andy

On 3/24/07, Yehia Shouman <[EMAIL PROTECTED]> wrote:
> createClassObject is defined in UIObject core object. I don't think it
can
> be called as a method of any movieclip. It also requires that you define
>
> static var symbolName : String = "linkageID";
> static var symbolOwner : Object = com.myclass;
>
>
> and at the end of the day It calls createObject which basically uses
> attachMovie passing on the symbolName. Use it if your host mc is a
UIObject
> (inheriting from mx.core.UIComponent or mx.core.UIObject).
>
> I use
> var myInstance:ClassType=ClassType(mc.attachMovie(ClassType.symbolName
> ,"instanceName",depth))
>
> Sometimes, if there is any pending code in the draw method of the
created
> class instance, I wait for a frame using doLater.
>
> I hope this helps
> Yehia Shouman
>
> On 3/23/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> >
> > Just to amend my previous comment, in the case where I said
> > `createClassObject()` failed but `attachMovie()` didn't, that ended up
> > to be not quite true.  `createClassObject()` didn't do anything, but
> > `attachMovie()` created the visual portions of the clip, but it looks
> > like none of the component's code was actually loaded, so while it
> > appeared to be working it really wasn't.
> >
> > But in the cases where one works the other seems to work as well, so
> > I'm still wondering what the difference is.
> >
> >-Andy
> >
> > On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> > > I'm wondering if there are any significant differences between using
> > > `attachMovie()` and `createClassObject()` for creating components
(I'm
> > > targeting for Flash 7).  I just ran into a weird issue creating a
> > > ComboBox where I was using `createClassObject()` to instantiate it,
> > > but saw that elsewhere in the code it was using `attachMovie()` to
> > > create one, and both were working.
> > >
> > > Specifically, both this:
> > > mc.attachMovie("ComboBox", "myComboBox", mc.getNextHighestDepth());
> > > and this:
> > > mc.createClassObject(ComboBox, "myComboBox", mc.getNextHighestDepth
());
> > >
> > > seems to give the same results in most cases.  Is there any benefit
to
> > > using `createClassObject()` over `attachMovie()` for components?
> > >
> > > The one situation I ran into where it gives different results is
when
> > > using multiple SWFs from different places.  I have a main movie
which
> > > loads another movie that contains all the UI resources (makes
branding
> > > easier).  The UI resources movie contains the ComboBox in its
library.
> > >  If both the movies are on the local filesystem then it works fine,
> > > but if the resources SWF is on a remote web server the
> > > `createClassObject()` call fails.  However, if I change it to use
> > > `attachMovie()` it works fine.  So I'm leaning towards using
> > > `attachMovie()`, just to make my life easier for testing (don't have
> > > to upload the main movie every time I want to test it), but I'm
> > > wondering if that will cause issues later.
> > >
> > >-Andy
> > >
> > ___

Re: [Flashcoders] empty textfield of type "input" and embedded font

2007-03-26 Thread Arul Prasad M L

try moving your
setText(__text);

call from constructor to the onLoad method ?

like

private function onLoad()
{
   setText(__text);
}



On 3/26/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote:


Hello list,

I have a dynamic textfield like this in the constructor of a class
extending MovieClip:



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

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


Re: [Flashcoders] Flash & drop down menu problem

2006-06-05 Thread Arul Prasad M L

If it wont be a problem, make wmode = transparent for the swf. Will help.

But there are a few bugs with flash plugin player (FF, Mozilla etc), related
to wmode. I've made a few posts about it in my blog before. Check out
http://weblogs.macromedia.com/mxna/index.cfm?query=byFeed&feedId=847&feedName=Flash%2C%20AS%20and%20Me<http://weblogs.macromedia.com/mxna/index.cfm?query=byFeed&feedId=847&feedName=Flash%252C%2520AS%2520and%2520Me>

~Arul Prasad.

On 6/5/06, Lee McColl-Sylvester <[EMAIL PROTECTED]> wrote:


That won't work either.  Flash "ALWAYS" stays on top.  The only way
round it is to do the drop down in Flash.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Mountain
Sent: 05 June 2006 14:31
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash & drop down menu problem

Yup, I'd agree with Lee on this, I've never seen it work before. You may
be able to make a Javascript version of a drop down menu with DIV's and
use that instead

M


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Lee McColl-Sylvester
> Sent: 05 June 2006 14:32
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Flash & drop down menu problem
>
> Hi Danya,
>
> Sorry, from all my experiences, I'd say you're out of luck.
> Its easy to display html behind flash (in some browsers), but
> getting a control to actually work behind flash has never
> worked for me, and I'm 99% sure it can't work.
>
> Sorry,
> Lee
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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


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

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


Re: [Flashcoders] Flash & drop down menu problem

2006-06-05 Thread Arul Prasad M L

http://arulprasad.googlepages.com/divOverFlash.rar

That rar archive has a html which shows a SWF and clicking on the first
circular button shows a DIV on top of the SWF. clickign the button below tat
hides it.

I confirmed it works on Flash player 7, 8, and 9.

check it out.

~Arul Prasad.

On 6/5/06, danya masadeh <[EMAIL PROTECTED]> wrote:


Dear Arul,
it will be always over the flash, if it window,transparent or opaque ...
I tested before


Thnaks
>
>
>
>
> - Original Message -
> From: Flashcoders mailing list "flashcoders@chattyfig.figleaf.com"
> To: Flashcoders mailing list "flashcoders@chattyfig.figleaf.com"
> Date: 02:41 PM
> Subject: Re: [Flashcoders] Flash & drop down menu problem
>
> If it wont be a problem, make wmode = transparent for the swf. Will
help.
>
>
>
> But there are a few bugs with flash plugin player (FF, Mozilla etc),
related
> to wmode. I've made a few posts about it in my blog before. Check out
>
>
http://weblogs.macromedia.com/mxna/index.cfm?query=byFeed&feedId=847&feedName=Flash%2C%20AS%20and%20Me
>
>
> ~Arul Prasad.
>
>
>
> On 6/5/06, Lee McColl-Sylvester  wrote:
> >
>
> >  That won't work either.  Flash "ALWAYS" stays on top.  The only
> way
>
> >  round it is to do the drop down in Flash.
>
> >
>
> >  Lee
>
> >
>
> >
>
> >
>
> >  -Original Message-
>
> >  From: [EMAIL PROTECTED]
>
> >  [mailto:[EMAIL PROTECTED] On Behalf Of Mike
> >  Mountain
>
> >  Sent: 05 June 2006 14:31
>
> >  To: Flashcoders mailing list
>
> >  Subject: RE: [Flashcoders] Flash & drop down menu problem
>
> >
>
> >  Yup, I'd agree with Lee on this, I've never seen it work before. You
> may
>
> >  be able to make a Javascript version of a drop down menu with DIV's
and
> >  use that instead
>
> >
>
> >  M
>
> >
>
> >
>
> > >  -Original Message-
>
> > >  From: [EMAIL PROTECTED]
>
> > >  [mailto:[EMAIL PROTECTED] On Behalf
>
> > >  Of Lee McColl-Sylvester
>
> > >  Sent: 05 June 2006 14:32
>
> > >  To: Flashcoders mailing list
>
> > >  Subject: RE: [Flashcoders] Flash & drop down menu problem
>
> > >
>
> > >  Hi Danya,
>
> > >
>
> > >  Sorry, from all my experiences, I'd say you're out of luck.
>
> > >  Its easy to display html behind flash (in some browsers), but
>
> > >  getting a control to actually work behind flash has never
>
> > >  worked for me, and I'm 99% sure it can't work.
>
> > >
>
> > >  Sorry,
>
> > >  Lee
>
> > >
>
> > >
>
> >  ___
>
> >  Flashcoders@chattyfig.figleaf.com
>
> >  To change your subscription options or search the archive:
>
> >  http://chattyfig.figleaf.com/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



_
Find Friends who are sharing you the same interests! Maktoob Friends the
right place for the right friends!
http://www.maktoob.com/friends
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Have you been working with Flash all day?

2006-06-06 Thread Arul Prasad M L

:))

reminds me of the animations on http://www.xiaoxiaomovie.com/...

~Arul Prasad.

On 6/6/06, Mendizabal <[EMAIL PROTECTED]> wrote:


ah. I see.

On 05/06/06, ::: curdiss <[EMAIL PROTECTED]> wrote:
>
> very cool.. i love it dude!
>
>
>
> On 6/5/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:
> > That's pretty good! Haha
> >
> > On 6/6/06, Paul Neave <[EMAIL PROTECTED]> wrote:
> > > It could be worse...
> > >
> > > http://abum.com/file/shadow/animations/17632.swf
> > >
> > > (props to pixelsurgeon).
> > > Paul.
> >
> >
> > --
> > 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
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


Fwd: [Flashcoders] XML load and Draw line problem

2006-06-12 Thread Arul Prasad M L

in your code, make the following change:

for (var k = 0; k
Date: Jun 12, 2006 3:30 PM
Subject: Re: [Flashcoders] XML load and Draw line problem
To: flashcoders@chattyfig.figleaf.com

Hi,
I figured out that if I hardcode the values things work, but if I use
values from variables, nothing works.

When I trace the variable values, they trace properly, then why cant I
use them dynamically???

Thanks for any help.

Sajid

On 6/12/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote:

Ok,
I had forgotten ingoreWhite, but still the code is not drawing anything
 :(
Sajid

On 6/12/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote:
> Hi Abdul,
> Thanks for your reply.
>
> I am still stuck because after trying your suggestion, if I do:
>
> layout_xml.firstChild.childNodes.length
>
> I get 5 instead of 2.
>
> Here is my revised code:
> ///
>
> RootNodes = [];
> SubRootNodes = [];
> tempArray = [];
> LoadXML("layout.xml");
> var layout_xml:XML = new XML();
> layout_xml.onLoad = mx.utils.Delegate.create (this, onXMLLoad);
> layout_xml.load("layout.xml");
> function onXMLLoad (success:Boolean) {
> trace(layout_xml.firstChild.childNodes[0]);
>
> nodeLen =

layout_xml.firstChild.childNodes.length;

> trace("nodeLen : "+nodeLen);
> for (var i = 0; i RootNodes.push

(layout_xml.firstChild.childNodes[i].nodeName);

> var node_xml =

layout_xml.firstChild.childNodes[i].childNodes;

>
> rootnodeLen = node_xml.length;
> for (var j = 0; j tempValues = [];
>
> for (var k = 0;

k
>
> tempValues.push

(node_xml[j].childNodes[k].firstChild);

> }
> tempArray.push(tempValues);
> trace("");
>
> }
>
> }
> tracer();
>
>
> }
>
> function tracer() {
>
> num = 0;
> for (var i = 0; i trace("SAJID: "+tempArray[i]);
> Name = tempArray[i][0];
> Width = tempArray[i][1];
> Height = tempArray[i][2];
> XPos = tempArray[i][3];
> YPos = tempArray[i][4];
> num++;
> _root.createEmptyMovieClip("box"+num,

_root.getNextHighestDepth());

> if (num == 1) {
> trace("SAJSA: "+_root["box"+num]);
> _root["box"+num].lineStyle(5, 0xFF00FF, 100);
> _root["box"+num].moveTo(XPos, YPos);
> _root["box"+num].lineTo(Width, YPos);
> _root["box"+num].lineTo(Width, Height);
> _root["box"+num].lineTo(XPos, Height);
> _root["box"+num].lineTo(XPos, YPos);
> }
> }
>
> }
>
> 
>
> Thanks
> Sajid
>
> On 6/12/06, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> > It's scope issue? I guess, tracer () is not found or executed in wrong
> > scope.
> >
> > Use Delegate to fix this:-
> >
> >
> > layout_xml.onLoad = mx.utils.Delegate.create (this, onXMLLoad);
> >
> > function onXMLLoad (success:Boolean) {
> >
> > ...
> >
> > }
> >
> >
> > Check, if that fixes the problem.
> >
> > -abdul
> >
> >
> >
> > On 6/12/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi All,
> > >
> > > I am faced with a strange problem.
> > >
> > > I have a XML which I am loading into the Flash movie and then

iterate

> > > through it and store values in an array.
> > >
> > > Then I run through the array and want to drag BOXES using the

drawing api.

> > >
> > > Here is my Flash Code:
> > > -
> > >
> > > //-- CODE START -- //
> > > RootNodes = [];
> > > SubRootNodes = [];
> > > tempArray = [];
> > > LoadXML("layout.xml");
> > > function LoadXML(myXMLPath) {
> > >var layout_xml:XML = new XML();
> > >layout_xml.ignoreWhite = true;
> > >layout_xml.onLoad = function(success:Boolean) {
> > > trace("success: "+success);
> > > trace("loaded:  "+layout_xml.loaded);
> > > trace("status:  "+layout_xml.status);
> > >
> > >if (success) {
> > >nodeLen =

layout_xml.firstChild.childNodes.length;

> > >trace("nodeLen : "+nodeLen);
> > >for (var i = 0; i > >RootNodes.push
> > > (layout_xml.firstChild.childNodes[i].nodeName);
> > >var node_xml =
> > > layout_xml.firstChild.childNodes[i].childNodes;
> > >  

Re: [Flashcoders] Player question

2006-06-12 Thread Arul Prasad M L

What do I need to have him do (other than drag the file to your bowser

window)?

publish the FLA as a flash projector. It will embed the SWF into a flash
player and create a EXE out of it. (File > Publish Settings > Windows
Projector

I DON'T think (well, am pretty sure) you can distribute the StandAlone Flash
Player to ur client.

~Arul Prasad

On 6/12/06, 8ball Developer <[EMAIL PROTECTED]> wrote:


Hi fellows,

I'm very much confused about this matter so maybe you guys can help out.
Which player allows me to open a swf from my desktop, is it the flash
standalone player or a file type relation to the plugin? If it's the flash
stand alone player, where do I get it from?

I'm sending my client swf files but he can't open it. What do I need to
have
him do (other than drag the file to your bowser window)?

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

2006-06-12 Thread Arul Prasad M L

In general, what do people need in order to play swf on their desktop?


In general, people create EXEs ;o)

~Arul Prasad

On 6/12/06, 8ball Developer <[EMAIL PROTECTED]> wrote:


Thanks, but: 1. I don't want to send and executable, 2. In general, what
do
people need in order to play swf on their desktop?

On 6/12/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> In your publish settings, it's Windows Projector (.exe) for Windows or
> Macintosh projector (.hqx).
>
> Jason Merrill
> Bank of America
> Learning Technology Solutions
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of 8ball Developer
> >>Sent: Monday, June 12, 2006 8:57 AM
> >>To: Flashcoders mailing list
> >>Subject: [Flashcoders] Player question
> >>
> >>Hi fellows,
> >>
> >>I'm very much confused about this matter so maybe you guys can help
> out.
> >>Which player allows me to open a swf from my desktop, is it the flash
> >>standalone player or a file type relation to the plugin? If it's the
> flash
> >>stand alone player, where do I get it from?
> >>
> >>I'm sending my client swf files but he can't open it. What do I need
> to have
> >>him do (other than drag the file to your bowser window)?
> >>
> >>Thanks for your help
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Arul Prasad M L

use mx.utils.Delegate class to solve the scope problem. simple!

On 6/16/06, Michael Stuhr <[EMAIL PROTECTED]> wrote:


Scott Hyndman schrieb:
> Yeah, sure.
>
> Use setInterval. If the user interacts before the time expires, call
> clearInterval.
>
>
jupp, and beware of the scope. this can be deadly with setInterval.

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] width of a component in livePreview

2006-06-16 Thread Arul Prasad M L

if you are extending the V2 component architecture, dont use the _width and
_height properties; use 'width' and 'height' instead.

~Arul Prasad

On 6/16/06, John laPlante <[EMAIL PROTECTED]> wrote:


I have a component that doesn't size properly in livePreview.  When I
reference the width and height of the component in my class, the values
are always the default which is essentially the size of the
boundingbox_mc.  When I initally drag the component onto the stage, it
is 300x200. If I size it to 300x100, the component gets physically
smaller but the the contents don't resize.  I've thought I might need to
write my own setSize method but it seems fruitless because the width
properties haven't updated.

---
John laPlante
Carnegie Mellon University

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

2006-06-20 Thread Arul Prasad M L

for..in usually loops thru the elements in 'reverse' order; though, the
for..in loop's output is supposed to be in a unpredictable
<http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1250.html>order.
If you want the elements to be in a predictable order, you will have to loop
thru the indices of the array.

If you can push them into the array in reverse order wont be a prob, try
tat. But as I already said, for..in loop is supposed to return elements in
an unpredictable order ;o)

~Arul Prasad.

On 6/20/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Hi list...

>From the help on "for...in":

You can also iterate through the elements of an array:

var myArray:Array = ["one", "two", "three"];
for (var i:String in myArray) {
trace(myArray[i]);
}


This code outputs the following in the Output panel:

three
two
One


Why is the data output in reverse order and is there any way of ordering
it one,two,three?

Thanks,
- Michael M.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [Ann] The world's largest Flex Application

2006-06-21 Thread Arul Prasad M L

sorry, if am being ignorant, but what is this "world's largest Flex (1.5)
application" that you are talking about?
Is there some place I can see this?

Am not in sydney, so if you dont reply, I'll probably never know about it at
all!!

Thanks!
Arul Prasad.


On 6/21/06, Chris Velevitch <[EMAIL PROTECTED]> wrote:


Robin Hilliard of Rocketboots (www.rocketboots.com.au) will talk about
the lessons learnt from the world's largest Flex (1.5) application.

Mon 3rd July at the Sydney Flash Platform Developers Group
(www.flashdev.org.au) at 6:30 pm for 7pm start at the NSW Sports Club
(www.flashdev.org.au/venue).

Please RSVP (www/flashdev.org.au/rsvp) for catering purposes.


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] [Ann] The world's largest Flex Application

2006-06-22 Thread Arul Prasad M L

thanks Chris.

~Arul Prasad

On 6/22/06, Chris Velevitch <[EMAIL PROTECTED]> wrote:


FlexDaddy (
http://www.flexdaddy.info/2006/06/19/afr-access-one-of-the-largest-public-flex-apps-to-date/
)
ttalks about it. Unfortunately, no recording will be made.

On 6/21/06, Arul Prasad M L <[EMAIL PROTECTED]> wrote:
> sorry, if am being ignorant, but what is this "world's largest Flex (1.5
)
> application" that you are talking about?
> Is there some place I can see this?
>
> Am not in sydney, so if you dont reply, I'll probably never know about
it at
> all!!
>
> Thanks!
> Arul Prasad.
>
>
> On 6/21/06, Chris Velevitch <[EMAIL PROTECTED]> wrote:
> >
> > Robin Hilliard of Rocketboots (www.rocketboots.com.au) will talk about
> > the lessons learnt from the world's largest Flex (1.5) application.
> >
> > Mon 3rd July at the Sydney Flash Platform Developers Group
> > (www.flashdev.org.au) at 6:30 pm for 7pm start at the NSW Sports Club
> > (www.flashdev.org.au/venue).
> >
> > Please RSVP (www/flashdev.org.au/rsvp) for catering purposes.
> >
> >
> > 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
>


--
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] Problem creating Shared Objects

2006-07-03 Thread Arul Prasad M L

1. Right click any flash content on the browser,
2. select settings from the drop down menu,
3. click the folder icon in the tabbed pane, and
4. increase the slider which determines the amount of memory used by the
flash player for local storage.

Your client must have changed this settings and reduced it to 0 KB.

Hope that helps,
Arul Prasad.

On 7/3/06, Aasim Momin <[EMAIL PROTECTED]> wrote:


Hi,

I have a problem where Shared objects are not getting created on the
client's machine.
The Shared Objects works fine on my machine.

Are there any known issues with any OS / Flash player versions?

Regards,
Aasim Momin


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

2006-07-25 Thread Arul Prasad M L

Everything in AS3 is classes, so you can't do anything without using

classes.

not necessarily. You can use AS3 to code on the timeline as well.
check out http://as3.betaruce.com/tut/appendix/app_1/app_1.html

~Arul Prasad.


On 7/25/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:


Carl,

Everything in AS3 is classes, so you can't do anything without using
classes.
It's actually easier than attachmovie. Just make a

var newMC=new MovieClip();
this.addChild(newMC);

feels alot cleaner that

attachmovie("gf","gf"+_root.getNextHighestDepth(),_root.getNextHighestDepth());
doesn't it ;).

good luck!

Meinte

ps. you can checkout senocular.com , he has some excellent tutorials on
AS3

On 7/25/06, eka <[EMAIL PROTECTED]> wrote:
>
> Hello :)
>
> read in french :
>
> -
>
>
http://iteratif.free.fr/blog/index.php?2006/07/11/44-bibliotheque-partagee-sous-flash-9
>
> attachMovie is remove in AS3 :) Use [embed(source="")] metadata and
> create the instance with new MyClass and addChild() method :)
>
> eKA+ :)
>
>
> 2006/7/25, Carl Welch <[EMAIL PROTECTED]>:
> >
> > I just downloaded the demo of Flash 9 / as3 and I noticed you can't
> > use attachmovie anymore. I've found some new methods on google but it
> > seems like the only way I can do it is by using classes. Is there
> > another way to handle an attachmovie equivilent without using a class
> > in as3?
> >
> > thanks.
> >
> > --
> > Carl Welch
> > http://www.carlwelch.com
> > [EMAIL PROTECTED]
> > 805.403.4819
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Arul Prasad M L

Y'see if I could work it out I wouldn't have posted would I?


and u worked it out now!

~Arul Prasad

On 7/27/06, Mike Mountain <[EMAIL PROTECTED]> wrote:


for(var i=0; i -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Mike Mountain
> Sent: 27 July 2006 17:17
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] AS3 scripting, first try - some Q's
>
>
> > > function moveme(event:Event):void{
> >
> >
> > You aren't passing in an event there... so perhaps that is
> causing the
> > vomit?
>
> The event gets passed auotmatically, it traces out fine
>
> >
> > On 7/27/06, Supriya <[EMAIL PROTECTED]> wrote:
> > >
> > > its not an AS3 problem, its a small problem in your logic in the
> > > function moveme find it out :)
>
> Y'see if I could work it out I wouldn't have posted would I?
> This may be a "wood for trees" situation, but posts like that
> just aren't helpful, so what's the point in posting?
>
> M
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] > Components in Flash 4/MX

2006-07-27 Thread Arul Prasad M L

flash MX  - it was the age of AS1 Flash V1 components.. V1 component
tutorials on the net should help u ..

flash 4 ... umm... i dint even know Flash then :D

On 7/27/06, Weyert de Boer <[EMAIL PROTECTED]> wrote:


Does anyone know some good resources how to make components for Flash
MX/4 ?

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

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


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

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


Re: [Flashcoders] How to change reference?

2006-07-28 Thread Arul Prasad M L

_root.attachMovie("as","as",100);
_root.something = _root.as.something;

wont this provide u a reference at the root level ?

~Arul Prasad

On 7/27/06, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:


Hi

I attach clip with this code:

_root.attachMovie("as","as",100);

Is it possible to change reference to this clip? Instead of

as.something

to have _root.something


Another words I want to find way to say _root instead of _root.as. Is it
possible?

Thank you for help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Video project - advice

2006-07-28 Thread Arul Prasad M L

Also - does the FLVPlayback component work with Flash player 7.0?

NO. You wont be able to publish the FLA with a FLVPlayback component, to
Flash Player 7.0 swf.
If you can get ur clients ( or boss ) to agree for Flash player 8, you can
use FLVPlayback component. FLVPlayback works well with local FLV playback
and HTTP progressive download.

I just did a FLV player with FLVPlayback, configured for  FVSS streaming and
I had a few local FLVs for testing. I had the playlist on a XML file, and so
had 2 versions of the playlist sml. One which pointed to the FVSS FLV paths
and another that pointed to the local files.

The only issue with RTMP was that my office proxy server wasn't letting the
flv stream through. Had to fiddle with it for a while. Otherwise its a
pretty simple thing!

Good luck.

~Arul Prasad

On 7/28/06, Jason Ross <[EMAIL PROTECTED]> wrote:


Hi - I have been asked to create a Flash based application to present a
few hundred video clips. The application needs to be delivered on both
CD-Rom and Web (standard web server i.e. not Flash Streaming Servers).

I am fine with AS but have not used Flash video for a while!

The application needs to be coded to Flash 7.0 or greater (though, I am
trying to get them to go with Flash 8.0).

I am looking for some advice as timings are tight to help avoid last
minute pitfalls.

Also - does the FLVPlayback component work with Flash player 7.0?

Any feedback / sharing of experiences would be greatly appreciated.

Thanks,

Jason.



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

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


Re: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Arul Prasad M L

Those convert the entire string, capitalize only uppercases the first

character and then lowercases the rest of the characters.


umm... Title Case as MS Word calls it...

~Arul Prasad

On 7/28/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


> Just a quick note on capitalize()
>
> String.toUpperCase() and String.toLowerCase() are part of ActionScript
1
> since Flash 5

Capitalize is different than toUpperCase and toLowerCase.  Those convert
the entire string, capitalize only uppercases the first character and
then lowercases the rest of the characters.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help...cant unload the xml menu...!!

2006-08-01 Thread Arul Prasad M L

might be a problem with the URL.
1. Make sure that the ../xml folder is in the WWW folder of ur server, not
above it.

or

2. Try doing this:

var urlString:String = _root._url;
urlString = urlString.substr(0,urlString.lastIndexOf("/"));
urlString = urlString.substr(0,urlString.lastIndexOf("/") + 1);
urlString = urlString.concat("xml/menu.xml")
menuInfoXML = urlString;

If it works, you may want to refactor all the statements above and make the
code optimal.

~Arul Prasad.

I've just elaborated in soo many statements, just in case you dont
understand.

On 8/1/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:


can anyone help me?

On 7/31/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
>
> i singed too soon...when i test locally everything works great...but
when
> i try it in internet..it doesnt..he doestn load the xml file
>
> why...?
>
> The code is the same...but i did alter the url..like you said..:
>
> //EDIT XML PATH
> menuInfoXML = "./xml/menu.xml";
> // DO NOT EDIT BELOW..
>
> System.useCodepage = true;
>
> import mx.xpath.XPathAPI;
> var infoHolder:XML = new XML();
> infoHolder.load(menuInfoXML);
> infoHolder.ignoreWhite = true;
> var titlePath:String = "/root";
> //main menu array.
> var mainMenus:Array;
> //sub menu array.
> var subMenus:Array;
>
> infoHolder.onLoad = function(ok) {
> if (ok) {
> mainMenus = mx.xpath.XPathAPI.selectNodeList(
infoHolder.firstChild,
> titlePath+"/menu");
> createTreeMenu();
> }
> };
>
>
> MovieClip.prototype.getPos = function(target:Number) {
> this.onEnterFrame = function() {
> this._y -= (this._y-target)/6;
> if (Math.abs(this._y-target)<0.3) {
> delete this.onEnterFrame;
> _root.newsMC.showNews.appear();
> }
> };
> };
>
>
> function createTreeMenu():Void {
> for (i=0; i newBut = _root.conteudos_mc.portfolio_mc.attachMovie("but",
> "but"+i, 999+i);
>
> newBut.arrow._alpha = 0;
> newBut.shine._alpha = 0;
> newBut._x = 18;
> newBut._y = 93+(newBut._height+5)*i;
>
> newBut.txt.text = mainMenus[i].attributes.txt;
> newBut.link2 = mainMenus[i].attributes.url;
> newBut.submenuCnt = mainMenus[i].childNodes.length;
> newBut.y = newBut._y;
> newBut.onRollOver = function() {
> _root.conteudos_mc.portfolio_mc.tween(this, 16, 18);
>
> this.arrow.appear();
> this.shine.appear();
> var textCol = new Color(this.txt);
> textCol.setRGB(0xff);
>
> };
> newBut.onRollOut = function() {
> _root.conteudos_mc.portfolio_mc.tween(this, 18, 16);
>
> this.arrow.disappear();
> this.shine.disappear();
> var textCol = new Color(this.txt);
> textCol.setRGB(0x6F6A63);
> };
> newBut.onRelease = function() {
> if (this.submenuCnt>0) {
> var butNum:Number = new Number(this._name.substr(3, 1));
> this.createSubMenu(butNum);
> for (i=0; i if (i
>
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y);
>
> } else {
>
>
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y+this.submenuCnt*22);
>
> }
> }
> }
> else {
> _root.conteudos_mc.portfolio_mc.clearSubMenus();
> for (i=0; i
>
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y);
>
> }
> //getURL(this.link);
>
> }
> };
> }
> }
>
>
> MovieClip.prototype.createSubMenu =
function(buttonNumber:Number):Void  {
> clearSubMenus();
> subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber],
> "/menu/submenu");
> var butNum:Number = new Number(this._name.substr(3, 1));
> for (i=0; i subBut = _root.conteudos_mc.portfolio_mc.attachMovie("submenu",
> "subMenu"+i, Math.random()*99);
>
> subBut._alpha = 0;
> subBut._x -= i;
> subAppear(subBut, (i+3), 30);
>
> subBut._y = this.y+this._height+(subBut._height+5)*i;
> subBut.txt.text = subMenus[i].attributes.txt;
> subBut.link2 = subMenus[i].attributes.url;
> subBut.b

Re: [Flashcoders] Interactive Map Examples

2006-08-01 Thread Arul Prasad M L

Came across this one yesterday..http://www.backspace.com/mapapp/

~Arul Prasad

On 7/31/06, Matthew Ganz <[EMAIL PROTECTED]> wrote:


hi.

i'm looking for examples of interactive flash maps. i'm trying to see what
else is out there as i build out my application...which will be a map of the
US.

what i'd like is that a user can click a state and that state will be the
prominent viewpoint from which a user can select a county.

i've heard of examples where the state, in some planar 3D motion, will
stand up and the map of the US will almost lay down beneath it, so to speak.
but i'd also like to take the state and perhaps center it in the view
container and get rid of the US map entirely.

anyhow, if anyone can point me to some examples that'd be very much
appreciated.

thank you. -- matt.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - destroying objects from a class using arraynotation

2006-08-10 Thread Arul Prasad M L

If its mx.core.UIObject's destroyObject that you are talking about,
destroyObject takes the instanceName of the object, not the instance
reference. you'll just have to pass the instance name as a string.

So, your code should look somethng like:

function killElements()
{
for (var i:Number = 0; i < 35; i++)
  {
this._targetMc.slidemenu.destroyObject("theThumb" + i);
this._targetMc.slidemenu.destroyObject("theHit" + i);
  }
}

Hope that helps!

~Arul Prasad
http://arulprasad.blogspot.com



On 8/10/06, dnk <[EMAIL PROTECTED]> wrote:


Andy Stone wrote:
> Have you tried...
>
> this._targetMc.destroyObject(eval("slidemenu.theThumb" + i));
>
>
> Sometimes I find eval works when [] doesn't. -Andy
>
>

I have not tried that - I will give it a go in a few hours.


Thanks!

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

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


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

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


Re: [Flashcoders] Can't access mc

2006-08-11 Thread Arul Prasad M L

declare theClip as a member of the class linker.
like,

private var theClip:MovieClip;

Also, try to keep ur code out of the constructor. Write a onLoad function
and put ur code in there.

private function onLoad()
{
trace(theClip);
}

On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Hi list...

I'm trying to access a mc within a mc in my class as follows:

class linker extends MovieClip {
function linker() {
trace(theClip);
}
}

The linker clip is on the stage, and there's a mc within it called
theClip.  I get the error "There is no property with the name
'theClip'."  What am I missing to access it?

Thanks,
- MM

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

2006-08-11 Thread Arul Prasad M L

But, Arul, what is the advantage of putting it in an onLoad function

instead of the constructor?
Just to be on the safer side, thats all :)

Try this:

add a trace each in the constructor and the onLoad. And test your movie.
You'll see that the constructor gets called even before onLoad.

Now, if your movie clip had a V2 component instance in it, and you added
code in the constructor to addEventListener to the component,it wont work.
Because the component wouldnt have initialize by the time of the call to the
constructor.
Placing that code instead in the onLoad method makes sure that it will work.

~Arul Prasad.



On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


All the solutions worked perfectly, thanks everyone.  But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [:::] appending html to a var for display not working and code not runnign as expected.

2006-08-16 Thread Arul Prasad M L

just where you do a trace(myHtml) try tracing
(this._targetMc.collectiveLinks); and see if it returns the full path to the
txtfield.

just in case that textfield isnt accesible in that path you've coded in ...

~Arul Prasad.


On 8/16/06, dnk <[EMAIL PROTECTED]> wrote:





I wanted to thank everyone for their great help in explaining the other
part of this original post regarding the testing... now i just wanted to
touch on the other issue i was still having with this

I was trying to assign html to an html text field.. and for some reason
it comes up as empty - even though ha trace of the same var holding the
html shows all my results. I checked and double checked, and it is set
to html, set to multi line.


ideas on this one?





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

2006-08-30 Thread Arul Prasad M L

Use FileReference API instead, to activate download.

~Arul Prasad

-- Forwarded message --
From: Laurent CUCHET <[EMAIL PROTECTED]>
Date: Aug 30, 2006 3:02 PM
Subject: [Flashcoders] >> empty HTML
To: Flashcoders mailing list 

   Hello

When I put a button allow download I get a blanck page and the download.

Is there a way to avoid the white empty html page ?

The script I use :


on (release) {
   getURL("http://www.mywebsite.com/tools/CleanUp312.exe.zip","_blank";);
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ListBox component, get Data (2nd Value)?!

2006-09-01 Thread Arul Prasad M L

AFAIK, addItem takes only the label and ONE data element.

To save 2 data elements into the data part, you can make an array with both
the values, and add that array as the data.

Like this:

lista.addItem(categorias[n + 1], [categorias[n + 0], categorias[n + 3]])

Now, to access the second element, you can access it as

lista.sellectedItem.data[1]

~Arul Prasad.

On 9/1/06, MJorge <[EMAIL PROTECTED]> wrote:


Need a tiny help here folks,

I have a listBox which i am inserting items with one label and two values
of
data in it.

Like this:

lista.addItem (categorias[n + 1], categorias[n + 0], categorias[n + 3]);

Now, how can i get the value of my data (2nd one) ?!

At first i haded only one value in the data and was doing this:

foto = _root.categoria1.lista.getItemAt (z).data;  (which was (is)
working,
but now i need to had another value, how can i get the second one?)

Thanks,

--

Mário Jorge
Icq: 164987050
Msn: [EMAIL PROTECTED]
Blog: http://www.beedigital.net/blog

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

2006-09-11 Thread Arul Prasad M L

Check out the following:
http://screenweaver.org/
http://www.multidmedia.com/software/zinc/

~Arul Prasad.


On 9/10/06, ozzy osbourne <[EMAIL PROTECTED]> wrote:


hi everyone ,

i  have a flash work which i want to work as a stand alone application ie
i want it to work like a light weight appln which will create files
the only problem is that i cannot save the work done in that appln as we
do in paint or text editors

is there a way to integrate flash with java, or dotnet to save the work
done in the flash appln

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] extending built-in classes and scope

2006-09-17 Thread Arul Prasad M L

seems like your pikkle.WireMenu class got imported before the compiler
reached your timeline code to add findFirstNode method to the XML object.

Try adding your method, using a class ... Or, may be, try wrapping your code
to add that method to XML object's prototype in a initclip/ endinitclip
pair.

~Arul Prasad.

On 9/17/06, dc <[EMAIL PROTECTED]> wrote:


hi list -

I am trying to add some functions to built in classes.

Q1) Using the prototype syntax. Is this an AS1 method, is there a
better way to do this with AS2?

Q2) this works within my main movie script.
however, when i try to use the extended XML object within my own
classes, the compiler fails with a "no such method" error.

is there a scoping issue, or somehow i have to redefine the XML object
prototype within my own class, Again?

 main timeline this is OK:

XMLNode.prototype.findFirstNode = function (searchName) {
trace("searching for: " + searchName);
}

xml = new XMLNode;
xml.findFirstNode("test");  // fine up to here.

import pikkle.WireMenu;  // fails here

--

inside the pikkle.WireMenu i have exactly the same code,
xml.findFirstNode("test");

and there it fails, as if it forgot that it had added extra methods to
the XMLNode class.

thanks for any tips!

/dc
---
  David "DC" Collier
mailto:[EMAIL PROTECTED]
  +81 (0)80 6521 9559
  skype: callto://d3ntaku
---
  Pikkle 株式会社
  http://www.pikkle.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] generate gif from flash

2006-09-18 Thread Arul Prasad M L

for the PNG encoder - check out Tinic Uro's blog, he had implemented one..

btw, Thats in AS3...

~Arul Prasad.



On 9/18/06, rishi <[EMAIL PROTECTED]> wrote:


I want to make an animated gif from an swf at runtime. Any ideas most
welcome. Also I have ben having hard times to implement PNG encoder .
Has someone implemented it successfully. I need to make png at the
desktop and look at it as a great help .

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

2006-09-18 Thread Arul Prasad M L

al_mc.onRollOver = function() {
  _root.reg.text = "Alsace";
  var my_color1:Color = new Color(this._name);
 this.defaultColor = this.getRGB();
  myValue1 = "0xFFF";
  my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
  _root.reg.text = "Alsace";
  var my_color1:Color = new Color(this._name);
  my_color1.setRGB( this.defaultColor );
};


~Arul Prasad

On 9/18/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:


Hello,

I apply a color but I dont know how to suppress the tranform

Have you got an idea ?

Thank you

al_mc.onRollOver = function() {
_root.reg.text = "Alsace";
var my_color1:Color = new Color(this._name);
myValue1 = "0xFFF";
my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
_root.reg.text = "Alsace";
var my_color1:Color = new Color(this._name);
myValue1 = "";
my_color1.setRGB(myValue1);
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] opening flex projects in flash?

2006-09-28 Thread Arul Prasad M L

flex compiler (mxmlc) has an option that would let you 'keep' the generated
AS files. if thats what would interest you?

check out the docs for "keep-generated-actionscript"
~Arul Prasad.


On 9/28/06, til <[EMAIL PROTECTED]> wrote:


Is it possible to convert Flex files into flash? I assume so... but no
clue, never worked with Flex.

~Til
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Allow smoothing on imported jpeg:s

2006-10-10 Thread Arul Prasad M L

There is no one line solution to this:
Tinic Uro on the Flash player team had a way to do this using BitmapData
class. Check this out:
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html

~Arul Prasad.

-- Forwarded message --
From: Johan Nyberg <[EMAIL PROTECTED]>
Date: Oct 10, 2006 1:53 PM
Subject: [Flashcoders] Allow smoothing on imported jpeg:s
To: flashcoders@chattyfig.figleaf.com

Hi everybody, anybody know if there is a way to use the "allow
smoothing" functionality on imported jpeg:s? I want to be able to rotate
imported jpeg:s, but they look awful, and there doesn't seem to be a way
to switch on allow smoothing with action script.

Is there a work-around?

--
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 – 37 16 73

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

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

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


Re: [Flashcoders] Flash Over HTML

2007-03-27 Thread Arul Prasad M L

Am not very sure about CSS, but, z-index = 1 is below z-index =2, isnt it?

So, from your CSS, I understand that "flashcontent"is definitely gonna be
below the html in 'izizu_div_content'.  Shouldn't 'flashcontent' have a
higher depth than the other layers?


On 3/27/07, Karim Beyrouti <[EMAIL PROTECTED]> wrote:


Hi All,

I am a bit stuck with this one - I am trying to get a flash menu to show
over HTML. I am using swfObject, and have set

so.addParam("wmode", "transparent");

I tried playing with the "z-index:" property in the CSS, to sort the
layers
accordingly - but have had no luck so far.
Here is a link to my test page:

http://kurst.co.uk/flashOverHTML/accessories.html - link to the
HTML
http://kurst.co.uk/flashOverHTML/css/isizu_nav.css - link to the
css


Ultimately, I am going to try and resize the flash content over the html
when the menu drops down, but it would be nice to get it to go over the
html
fist.

Can anyone spot where I am going wrong on this one?..

Many thanks in advance...

Karim




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

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


Re: [Flashcoders] Flash CS3 Announced

2007-03-27 Thread Arul Prasad M L

Adobe Flash CS3 is Flash 9 Professional. ( there is no Flash 'basic'
anymore)

Its a complete version. Not just Flash 8 with AS3. Flash CS3 comes with
quiet a lot of new features. AS3 being one of the most important( developer
) feature. I saw a comprehensive list of features here:
http://forums.ultrashock.com/forums/showthread.php?s=8409f5626facf384bfbcffc778d176f7&threadid=87843



So is this the "next version" of Flash, or is it just Flash 8 with AS3

support?  It would seem odd to me if they released Flash 9 with out ever
having a beta.



Arul Prasad
http://arulprasad.blogspot.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] String to array

2007-04-12 Thread Arul Prasad M L

Looks like you are not waiting for the data to be loaded into your SWF
before you split.

Try using LoadVars and wait for the onLoad event, and then do a split.

something like:

var _lv:LoadVars = new LoadVars();
_lv.load(FlashMenuLoader.asp);
var my_array:Array;

_lv.onLoad = function ()
{
mm_array = mivariable.split(",");
trace(mm_array);
}

Haven't tested that, but you'll get the basic idea.
Hope that helps.

--
Arul Prasad
http://arulprasad.blogspot.com
--

On 4/12/07, Claudio M. E. Bastos Iorio <[EMAIL PROTECTED]> wrote:


Sorry for the question, I found some examples on google but I still cannot
figure out what's worng with my code. I hope you guys can help me.

My original array was:
var mm_array:Array = ["Corporate", "Fund of Funds",  "Single Manager
Funds",
"Perfomance", "Client Services"];

Now I want to load those values from an .asp file. My asp returns a string
like:
mivariable=Corporate, Fund of Funds, Single Manager Funds, Perfomance,
Client Services

So, Im trying this:
loadVariablesNum("FlashMenuLoader.asp", 0, "GET");

var mm_array = mivariable.split(",");


But I'm getting an undefined value. What's wrong?

Thanks in advance.

___
Claudio M. E. Bastos Iorio
http://www.blumer.com.ar





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

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


Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread Arul Prasad M L

1. May be coz you never really created the XML object. You'll need to define
the XML object as well, not just declare the variable.
2. Try using the Delegate class. Its pretty useful in avoiding confusions.

Now the code:

import mx.utils.Delegate;
class XMLoader {

   private var postXML:XML;

   private function parseXML () {
  //do something with postXML
   }

   public function XMLoader (__file) {
   postXML = new XML();
   postXML.ignoreWhite = true;
   postXML.load(__file);
   postXML.onLoad = Delegate.create(this, parseXML);;
   }
}


Hope that helps,

--
Arul Prasad
http://arulprasad.blogspot.com

On 4/27/07, sebastian chedal <[EMAIL PROTECTED]> wrote:


Hello Flash coders.
:)

Could anyone help me to fix my class code? I can't find any reference
anywhere that will help me... I'm trying to load XML via a generalized
class
object, but the data in postXML never makes it to the parseXML
constructor,
any help is greatly appreciated!

Thanks!

Sebastian.

[CODE]

class XMLoader {

private var postXML:XML;

private function parseXML () {
   //do something with postXML
}

public function XMLoader (__file) {
postXML.ignoreWhite = true;
postXML.load(__file);
postXML.onLoad = parseXML();
}
}

[/CODE]

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

2007-05-25 Thread Arul Prasad M L

If stripping off all html from an input textfield is what you are looking
for,
You will be able to do this in a simple process: I'll put in a lil function
in here:

function stripHTML(input:String):String
{
var util_txt:TextField = _root.createTextField("util_txt",
_root.getNextHighestDepth(), -100,-100,100,100);
util_txt._visible = false;
util_txt.html = true;
util_txt.htmlText = input_txt.text ;
var output:String = util_txt.text;
util_txt.removeTextField();
return output;
}

// Now to use it, assuming the input textfield's instance name is input_txt,


var  strippedText:String = stripHTML(input_txt.text);

the strippedText variable will have the valid text, stripped off from the
html that the user typed in.

What the function does is, provide the text in ur input textfield into a
html textfield, and then retrieve the plain text from the html textfield.

This will make sure that the text does not have any html tags in it. (
please note - the code above isn't tested)

Hope that helps,
Arul Prasad
http://arulprasad.blogspot.com


On 5/25/07, Andy Andersson <[EMAIL PROTECTED]> wrote:


I have a scenario that I try to figure out, don't know if it is possible
yet, but maybe someone here on the list knows if it is?

Scenario are:
I have a couple of dynamic text fields and input text fields where people
write comments, send messages, display messages/blogs etc...
And it goes to the server and returns back to the flash app (everything
works fine) but, I don't want people to paste or write HTML tags in the
messages etc.. But if they do I want flash to filter/block those tags out
to
display in the flash app. So when the text gets back into the flash app,
it
should only contain real text, no HTML tags at all!

Is that possible?

Thanks
A




--
Arul Prasad
http://arulprasad.blogspot.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] Error 2152 when selecting Fullscreen Button on Flash CS3 AS3 FLVPlayback component

2007-05-29 Thread Arul Prasad M L

The flash player can go fullscreen only if the html tag for including the
flash object sets a param to allow it to go fullscreen.
In the publish settings window in html tab, you'll see a 'flash with full
screen' html template. Use that template and publish ur html. That should
help.
~Arul Prasad.

On 5/29/07, greg h <[EMAIL PROTECTED]> wrote:


I am wondering if anyone has encountered the following (and if so if you
offer any solutions).

Flash CS3 includes an AS3 FLVPlayback component which has several skins
that
support fullscreen.

When running the resulting SWF in a browser that has the debug player,
when
the fullscreen button is selected it fails and the following is displayed
in
the debug player's error window:

SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at

fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::dispatchMessage
()
at

fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::handleButtonEvent
()


Any assistance would be appreciated.

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

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





--
Arul Prasad
http://arulprasad.blogspot.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] E4X not for external XML docs?

2007-05-30 Thread Arul Prasad M L

E4X can be used for external xml files too.
Your problem might be a namespace issue I blogged abt a couple of days back
?

http://arulprasad.blogspot.com/2007/05/using-as30-with-e4x-for-jabber-iq.html

Don't bother about the jabber part in the post, just look for the namespace
related details.

~Arul Prasad.

On 5/30/07, daniel <[EMAIL PROTECTED]> wrote:


Hey everyone!

I'm using an URLLoader to load a XML configuration file. I try to read the
XML file using some E4X syntax ([EMAIL PROTECTED]), but I get
nothing but an empty string when I trace it out.

However when I do the same to a local variable with some hard-coded XML as
its value, the E4X expressions work as expected. Can I use E4X and the XML
data type for external XML content? I double-checked if the URLLoader is
loading the content successfully by simply tracing it out. That works. Any
ideas?

Excuse me if this has been asked before.

Quick idea of what I'm doing...

function urlLoaderCompleteHandler(eventObj:Event):void {
// ...
var xmlData:XML = new XML(eventObj.target.data);
}

// ...
trace(xmlData.myElement); // Zip!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Arul Prasad
http://arulprasad.blogspot.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] wrapping excel in Flash?

2007-05-30 Thread Arul Prasad M L

Importing excel data - One thing you can do is, save your excel sheet as a
.csv file, and then parse it in Actionscript.

password security? If its a web app, you can provide some server level
authentication etc. Its very much doable.

--
Arul Prasad
http://arulprasad.blogspot.com


On 5/30/07, BOYD SPEER <[EMAIL PROTECTED]> wrote:


Any possibility of importing an excel spreadsheet into Flash to control
access to it with a password security system?

Thanks for any insights...

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

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


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

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


Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-05 Thread Arul Prasad M L

Is someone in here game for development of all those components missing in
the V3 component set?

A set of extended V3 components - in AS3 and follows the same architecture
as the adobe V3 components.

Tree, and alert ( and hence Window ) are the ones that I think many are
gonna be missing...

I can pitch in some coding time, what say guys?

~Arul Prasad.

On 6/6/07, greg h <[EMAIL PROTECTED]> wrote:


Spot on Austin.

Yup.  "You then get the new software ... and try to port an application"
and
"You then cannot ... because you ... have ... components ...
missing."  Yes
sirree, that is how I figured it out.

Regarding "It would be good if Adobe could make an official statement on
this."  Like maybe a technote?

I am tempted to bet you $100 that this will not happen.  But to me it is
so
stupifying I imagine that at some point Adobe will need to put out at
least
a technote or someting to explain this illogical gap.  (So I am not going
to
offer the bet.)

And regarding "all flash developers ... now port[ing] existing projects
over
to flex."  Well, if anyone is porting their apps I am hoping it is to
Flex.
... and not Silverlight.

As I wrote earlier "I regret that Adobe has consciously chosen not to
fully
support AS3 application development in both Flash and Flex."

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

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





--
Arul Prasad
http://arulprasad.blogspot.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] copying text to clipboard?

2007-06-25 Thread Arul Prasad M L

Actionscript can copy text to the clipboard; there is no Actionscript API to
retrieve text from the clipboard though.

Use System.setClipboard method
.http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=
2187.html

~Arul Prasad.

On 6/25/07, Corban Baxter <[EMAIL PROTECTED]> wrote:


Hey guys a client is wanting me to create a combobox that has a button
below
it that can copy text to the clipboard. Can flash access the clipboard?

--
Corban Baxter
http://www.projectx4.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





--
Arul Prasad
http://arulprasad.blogspot.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] Coding suffixes and prefixes triggering code hinting

2007-07-02 Thread Arul Prasad M L

This is the one:
C:\Program Files\Macromedia\Flash 8\en\First
Run\ActionsPanel\ActionScript_1_2\ActionsPanel.xml

or, you can safely modify the copy of the same file available in ur home
directory, in here:

C:\Documents and Settings\<>\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\ActionsPanel\ActionScript_1_2

scroll down to the typeinfo nodes.

--
Arul Prasad
http://arulprasad.blogspot.com


On 7/2/07, Adrian Parr <[EMAIL PROTECTED]> wrote:


Hi All,

I vaguely remember there being a way of modifying the in-built
triggers for code hinting.

For example, if you type ...

ball_mc.

Flash will detect that you are referring to a MovieClip and provide
the relevant code hints in a little popup window.

Which is all very nice if you want to use those suffixes. But for my
next project I want to use prefixes instead. For example ...

mcBall

Is there an XML file somewhere that I can edit to modify Flash's
automatic code hinting to allow this?

I realise that strict-typing every reference to a MovieClip would
force the code hinting, but this isn't always possible or practical.

Thanks in advance,

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

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


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

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


Re: [Flashcoders] Strange class scoping problem?

2007-07-10 Thread Arul Prasad M L

Hi Eric,

try

setTimeout( Delegate.create(myConduit, myConduit.getAutoCompleteMatches,
500, login_dialogBox_mc.entry_txt.text, user.zipcode, "6" );

instead. Should work.

~Arul Prasad


On 7/10/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:


Have a scoping issue of some kind within a Class itself, seems strange.
Flash 9 AS2 SWF.

I have a class that handles some XML-RPC calls. Works great from the _root
proper, but fails when i call it from within a function... (without
getting
into all the little specifics of the code, below is enough I think to
explain it)...

some Conduit Class code:

function Conduit()
{
owner = this;
mx.events.EventDispatcher.initialize( owner );
replyXML = new XML();
send_lv = new LoadVars();
};
...
// This won't get called by interval timeline code below in this email
private function doGetAuto( sSubstring:String, sZipcode:String,
sMax:String
):Void
{
trace( "> doGetAuto" );
replyXML = new XML();
replyXML.ignoreWhite = true;
replyXML.onLoad = Delegate.create( owner, autoResponse );

send_lv = new LoadVars();
send_lv.q = sSubstring;
send_lv.zip = sZipcode;
send_lv.max = sMax;
send_lv.sendAndLoad( sAutoCompleteURL, replyXML, "GET" );
};
private function autoResponse( success:Boolean ):Void
{
if( success )
{
dispatchEvent( {target:owner, type:"autoCompleteResponse",
data:replyXML} );
} else
{
dispatchEvent( {target:owner, type:"genericError" } );
}
};

public function getAutoCompleteMatches( sSubstring:String,
sZipcode:String, sMax:String ):Void
{
trace( "getAutoCompleteMatches" );
doGetAuto( sSubstring, sZipcode, sMax );
};
...

now an example of some implementing timeline code:

// Works, see the "> doGetAuto" traced
var myConduit:Conduit = new Conduit();
myConduit.getAutoCompleteMatches( "iron", "01701", "6" );

// Doesn't work, stops at the first trace within the class (
"getAutoCompleteMatches" ) (in place of code above)
var myConduit:Conduit = new Conduit();
function createFirst():Void
{
login_dialogBox_mc.entry_txt.onChanged = entryChange;
};
function entryChange():Void
{
   clearTimeout( nAutoTimer );
   nAutoTimer = setTimeout( myConduit.getAutoCompleteMatches, 500,
login_dialogBox_mc.entry_txt.text, user.zipcode, "6" );
}


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

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





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

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


Re: [Flashcoders] Flash movie background color not showing in Firefox browser...

2007-07-22 Thread Arul Prasad M L

you dont have wmode set to transparent, do you?

~Arul Prasad.

On 7/23/07, BOYD SPEER <[EMAIL PROTECTED]> wrote:


Yes I did check the html and the color is correct there (#99)... but
as a workaround I will add a layer to insure the movie appears the same in
each browser. I am surprised that flash would behave in such a manner -
re-loading the adobe flash player did not make any difference and the
problem looked the same on both my, and my client's computers. If anyone can
think of the cause of this problem I would really appreciate your thoughts
on it

Thanks guys,
-Boyd

- Original Message -
From: Marc Hoffman <[EMAIL PROTECTED]>
Date: Sunday, July 22, 2007 4:39 pm
Subject: Re: [Flashcoders] Flash movie background color not showing in
Firefox browser...
To: flashcoders@chattyfig.figleaf.com

> Make sure the bgcolor in the html code for embedding the flash
> movie
> is correct. I can't think of any other reason you'd have these
> symptoms.
> Marc Hoffman
>
> At 01:52 PM 7/22/2007, you wrote:
> >Hi,
> >You probably want to create a bg layer in you flash movie that
> has the
> >correct color!
> >
> >A:)=
> >
> >
> >On 7/22/07 11:48 AM, "BOYD SPEER" <[EMAIL PROTECTED]> wrote:
> >
> > > Is there any special setting that would affect the movie
> > background color when
> > > displayed in Firefox as opposed to Internet Explorer? My
> webpage
> > looks fine in
> > > IE but the background color in Firefox changes to white
> instead
> > of the #99
> > > dark red (that it shows in IE). This means the white text
> becomes
> > invisible!
> > >
> > > Thanks,
> > > -Boyd
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/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





--
Arul Prasad
http://arulprasad.blogspot.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] Casting to Array

2007-07-23 Thread Arul Prasad M L

Danny,

You can use an Array method like slice() or concat([]), which will create a
duplicate of ur original array, and pass that to your function.

So your code would become:

function generic(tObj:Object) {
if (tObj instanceof Array) {
doMyArrayFunction(tObj.slice())
} else {
doSomethingElse()
}
}

function doMyArrayFunction(tArr:Array) {
...
}

Unless there is some compelling reason that you have to pass around the same
array's reference, this should help.

Cheers,
Arul Prasad.


On 7/23/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:


> Danny,
>
> I'm still not entirely clear on what you're attempting to do.
>  Can you show more code to give us a bigger picture?

Thanks to everyone for suggestions and comments. Many of them, I suspect,
would suffer from the same problem, though. For Steven, here's the problem
in a bit more detail:

function generic(tObj:Object) {
if (tObj instanceof Array) {
doMyArrayFunction(tObj)
} else {
doSomethingElse()
}
}

function doMyArrayFunction(tArr:Array) {
...
}

This throws a compiler error because in the first function tObj is defined
as an Object and the compiler isn't clever enough to realise that by the
time we reach doMyArrayFunction it has to be of type Array. If the class I
was trying to cast it to was anything except Array, I could use something
like this:

function generic(tObj:Object) {
if (tObj instanceof MyClass) {
doMyFunction(MyClass(tObj))
} else {
doSomethingElse()
}

But because Array has a special constructor, Array(tObj) returns [tObj]
instead of leaving it unchanged and just casting it to an Array.

The solution I used works much the same way as Ian's: essentially it takes
advantage of the fact that Flash's compiler isn't able to check the object
type of sub-items of an object or array, so it ignores them (and assumes
you've done your job correctly). John's solution is probably better from a
strict OO standpoint, but mine works well enough, so...

Danny

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

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





--
Arul Prasad
http://arulprasad.blogspot.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] Gaia - Anybody wanna share?

2007-08-13 Thread Arul Prasad M L
I understand why it isn't up there anymore, so If someone else who
downloaded this (during the brief period it was online) can pass it to me
offlist, it would be great.

Thanks,
Arul Prasad.

On 6/18/07, Steven Sacks <[EMAIL PROTECTED]> wrote:
>
> The Gaia Framework for Adobe Flash v1.0.3 Update is available now.
> http://www.gaiaflashframework.com/forum/index.php?topic=48.0
>
> New in 1.0.3:
> On-Demand Assets - Assets can now be set to not preload with their Page
> and instead you control when they load using the simple assets API, and
> the preloader can be used to show their progress, as well.
>
> Tracking - Gaia now has a Tracking class which supports Javascript-based
> tracking such as Omniture.
>
> Upgrade notification - Gaia notifies you when a new version is available.
>
> Update project to latest version of Gaia - You can now update an
> existing project to the latest version of the Gaia Framework.
>
> Plus, some various optimizations to the internal classes of Gaia thrown
> in for good measure.
>
> --
> Steven Sacks
> Flash Maestro
> Los Angeles, CA
> --
> blog: http://www.stevensacks.net
> gaia: http://www.gaiaflashframework.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
>



-- 
Arul Prasad
http://arulprasad.blogspot.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] Gaia - Anybody wanna share?

2007-08-14 Thread Arul Prasad M L
Heard that Steve's previous employer has raised intellectual property claims
on it; And he is working it out. He is not supposed discuss any details.

May be we should keep discussions in here discrete as well; Don't want to
get him into trouble, for doing something good to the community.

Regards,
Arul Prasad.


On 8/14/07, Hans Wichman <[EMAIL PROTECTED]> wrote:
>
> Hi,
> why isnt it up anymore then?
>
> greetz
> JC
>
>
> On 8/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > You can pick it up here.
> >
> > HTH
> > Hermit
> >
> > http://hermitscastle.com/flashStuff/
> >
> > > I understand why it isn't up there anymore, so If someone else who
> > > downloaded this (during the brief period it was online) can pass it to
> > me
> > > offlist, it would be great.
> > >
> > > Thanks,
> > > Arul Prasad.
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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
>



-- 
Arul Prasad
http://arulprasad.blogspot.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 _url?

2007-09-04 Thread Arul Prasad M L
loaderInfo.url

eg: you can use stage.loaderInfo.url to get the url for the swf.

On 9/5/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
>
> _url has been removed from AS3. Trying to find its replacement... is there
> one?
>
> - eric
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



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

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


Re: [Flashcoders] AS2 Sound.stop()

2007-09-12 Thread Arul Prasad M L
If you had the sound imported into your library, assigned a linkage ID, and
then attached it using Sound class's attachSound method,  you'd have a
'idName'. If you loaded your audio clip using loadSound method, you wouldn't
have a linkageID. So don't worry abt it.

>>"Sound has no static field stop".

'coz, as the error message states, there is no static method called 'stop'
in the Sound class. You should've called stop() on ur Sound class object -
my_sound. - my_sound.stop()

-- 
Arul Prasad
http://arulprasad.blogspot.com


On 9/12/07, Andrew Sinning <[EMAIL PROTECTED]> wrote:
>
> I don't understand the docs for the AS2 Sound.stop command.
>
> > my_sound.stop(["idName":String]) : Void
>
> I can't find any documentation about sounds having an "idName".
>
> >Method; stops all sounds currently playing if no parameter is
> specified, or just the sound specified in the idName parameter.
>
> But "my_sound" is an instance of the Sound class, so why would I need to
> specify an id?  This seem to imply that I could use
>
> Sound.stop();
>
> to stop all sounds currently playing.  But it won't compile.  I get
> "Sound has no static field stop".
>
> So, how do you stop all currently playing sounds?
>
> 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


Re: [Flashcoders] AS3 Sound = wtf

2007-09-12 Thread Arul Prasad M L
Why don't you:
1. List down your queries, and ask for suggestions / help from the community
here
2. Write to adobe's feature request list about the features you think are
missing, but essential
3. Stop ranting on the list, and go use ur personal blog for this crap.

Btw, Stop looking for detailed examples for sound APIs inside a design
patterns book or a 'Making things move' book.

~Arul Prasad.

On 9/12/07, Andreas Rønning <[EMAIL PROTECTED]> wrote:
>
> So i got my AS3 books finally. Essential AS3 by Moock, AS3
> animation/making things move and AS3 design patterns. Of these 3, none give
> particular interest in the sound API. Making things move takes a fleeting
> glance at AS3 sound, limited to a = new Sound(); a.play();, and Design
> Patterns makes an equally simple example.
>
> The AS3 docs (F1 in the IDE) suggests a hack of a class to encapsulate
> Sound handling and otherwise assures us that the AS3 api is "powerful".
>
> I still fail to see why.
>
> When Andre Michelle makes an AS3 303 emulator we're all impressed, but we
> somehow fail to realize he made it with *hacks*. Advanced AS3 sound
> manipulation is effectively barred to those not of his calibre. For "the
> rest of us", we're stuck waiting for someone to build a robust sound control
> API wrapper for AS3's frankensteinian mess. In my opinion, AS3 sound is only
> as strong as you're willing to take punishment. Things were rough in AS2,
> but we could work it. In AS3 it's equally rough, with added edges.
>
> Considering the *vast* improvements AS3 and the new VM gave us, i find it
> bewildering how something so core to the multimedia experience has been
> either ignored completely or thrown in as an afterthought. I'm told by peers
> that "oh you know, Sound is weak in Flash". Like a dogma. Which makes me
> think engineers threw a roundtable to somehow assure that in their shiny new
> VM, Sound remained weak.
>
> I have never seen an AS topic so skirted. It's like a dark secret nobody
> really wants to discuss. Like pooping.
>
> Either people out there *don't care about sound* which blows my mind, or
> Adobe didn't give a shit. I'm trying to port my AS2 3d sound positioning and
> effects control library to AS3 and, right now, it's disillusioning and
> sometimes infuriating.
>
> Dual stop methods for streaming and preloaded audio, the contextually
> "wrong" of which doesn't generate exceptions, but sound glitches.
> Soundchannels allow for quick and easy orphaning of sound. Go orphans!
> Soundmixer only really stopping sound and giving an *incomplete* spectrum,
> ignoring Microphone.
>
> There's parts of AS3 that force us to get stricter, and this is fine. The
> sound library forces us to either wrap or get sloppy.
> So am i right about this? Do Flash developers really care this little
> about audio?
>
> Positive sides? Loading sound resources externally and SoundTransform. And
> still being able to actually play audio.
>
> I don't know of a fix for this beyond doing the sound API over with a
> little more consideration. But i'd love to hear some best practises and
> experiences from other developers. Anything to learn more about this
> POWERFUL NEW API. Yeah.
>
> - Andreas SJ
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
Arul Prasad
http://arulprasad.blogspot.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] Help with listener for custom class (AS3)

2007-09-12 Thread Arul Prasad M L
>From your cssLoaded and xmlLoaded methods, dispatch an event each,
announcing the completion of load.

eg

 public function xmlLoaded(event:Event):void {
  newXML = XML(event.target.data);
  dispatchEvent(new Event("xmlLoaded"));
 }


And on the timeline, you can add a listener to that event by doing this:

var fileForThis:fileImports = new
fileImports("courseInfo.xml","styles.css");
fileForThis.addEventListener("xmlLoaded", onXMLLoad);

function onXMLLoad()
{
// xml loaded now
}

Of course thats not the best way to code ( you could create a custom event
object to pass more data etc, ) but the above should get you started.

Btw, your 'fileImports' class doesnt seem to be a UI class, so you dont have
to extend it from Sprite. Just extend EventDispatcher class.

~Arul Prasad.

On 9/12/07, Dane Williams <[EMAIL PROTECTED]> wrote:
>
> Greetings All,
> I'm trying to do more and more of my projects with external classes and,
> along with that, creating classes for routines that I regularly do. I have
> a
> class that reads an XML file and CSS file once it's called. It has worked
> fine for the first few projects I used it in. With my recent project, it's
> not wanted to behave. The code for the class is as follows:
> package {
> import flash.display.Sprite;
> import flash.text.StyleSheet;
> import flash.events.*;
> import flash.net.*;
> public class fileImports extends Sprite {
>   public var newStyleSheet:StyleSheet = new StyleSheet();
>   public var newXML:XML = new XML();
>   public function fileImports(xmlFile:String, cssFile:String):void {
>//load css file
>var cssToLoad:URLRequest=new URLRequest(cssFile);
>var cssLoader:URLLoader = new URLLoader;
>cssLoader.load(cssToLoad);
>//load xml file
>var xmlToLoad:URLRequest=new URLRequest(xmlFile);
>var xmlLoader:URLLoader = new URLLoader;;
>xmlLoader.load(xmlToLoad);
>//event listeners
>xmlLoader.addEventListener(Event.COMPLETE,xmlLoaded);
>cssLoader.addEventListener(Event.COMPLETE, cssLoaded);
>   }
>   public function cssLoaded(event:Event):void {
>newStyleSheet.parseCSS(event.target.data);
>   }
>   public function xmlLoaded(event:Event):void {
>newXML = XML(event.target.data);
>   }
> }
> }
>
> I am creating an instance on my main timeline with this:
> var fileForThis:fileImports = new
> fileImports("courseInfo.xml","styles.css");
>
> I am trying to use the data that is coming in with the XML file to
> populate
> some combo boxes. My problem is I don't know how to "listen" to the class
> from the main timeline to find out if the class is finished processing the
> XML. Right now if I try to use "fileForThis.newXML" I get a value of null.
> But if I put a trace on newXML in the class, it shows the content of my
> XML
> file.
>
> I have gotten this to work on other projects because I haven't tried to
> use
> the data immediately - so the data has time to "process" before it's put
> into a text field, etc.
>
> I appreciate any help I can get on this. Thanks!
>
>
> D. Dane Williams
> The Learning Center
> Buckman Laboratories, International
> 901-272-6774
>
>
> _______
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
Arul Prasad
http://arulprasad.blogspot.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] dynamically attaching a movie clip to a class/object

2007-09-12 Thread Arul Prasad M L
You should be assigning the movieclip reference being returned from
attachMovie to your myPost variable:



myPost = _root.attachMovie("signPost", "myPost",
_root.getNextHighestDepth());

Without that, your "myPost" variable is gonna be pointing to nothing.

~Arul Prasad.

On 9/12/07, Charles Parcell <[EMAIL PROTECTED]> wrote:
>
> You are not defining what the movie should be attached to.
>
> Try:
>
> _root.attachMovie("signPost", "myPost", _root.getNextHighestDepth());
>
> Note that I removed this.getNextHighestDepth(). Because "this" does not
> exist on the stage yet, you can not get its next highest depth.
>
> Charles P.
>
>
> On 4/26/07, sebastian chedal <[EMAIL PROTECTED]> wrote:
> >
> > hello flash coders!
> >
> > ive just joined and there are some nice discussions here, i hope to
> > contribute positivly to the level of knowledge in the group.
> > :)
> >
> > i'm currently learning how to work in an OOP manner in flash, and thus
> > meeting some basic hurdles.
> > it would be very kind of you if you could assist me in my [probably very
> > simple] problems.
> > :-)
> >
> > I'm using external *.as files, and at the moment i am trying to figure
> out
> > how to attach a movie to it [should be simple, right?]
> >
> > my as file:
> >
> > class Post extends CoreClass  {
> > private var myPost:MovieClip;
> >
> > public function setCord(px,py,pz):Void {
> >
> > //set coordinates
> > public var px:Number = px;
> > public var py:Number = py;
> > public var pz:Number = pz;
> > //original point locations
> > private var ox:Number = px;
> > private var oy:Number = py;
> > private var oz:Number = pz;
> > }
> >
> > public function attachMe ():Void {
> > attachMovie("signPost", "myPost", this.getNextHighestDepth());
> > myPost._x = 0;
> > myPost._y = 0;
> > trace ("myPost = " + myPost._x);
> > }
> > }
> >
> > In frame 1 of the movie i write:
> >
> > Post0 = new Post ();
> > //Post0.setCord(100,100,0.9);
> > Post0.attachMe();
> >
> > The trace comes up 'undefined'
> > if i use the 'attachmovie' from the root in the main time line, it works
> > just fine.
> >
> > any clues?
> >
> > thanks!
> >
> > sebastian / amsterdam
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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
>



-- 
Arul Prasad
http://arulprasad.blogspot.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