Re: [Flashcoders] Switch case problem...

2006-12-05 Thread Jose Maria Barros

here is the goLink function...

function goLink():Void{
   _root.myClip.prin_mc.gotoAndPlay(linkName);

}


On 12/5/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:


here is the code...i think nothing is wrong...

switch(linkName)
{
 case "about":
 var jpAbout = new Fuse();
 jpAbout.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad", func:goLink, scope:
myClip.prin_mc})
 jpAbout.start();
 break;

 case "noticias":
 var jpNoticias = new Fuse();
 
jpNoticias.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
 jpNoticias.start();
 break;

 case "fotos":
 var jpFotos = new Fuse();
 jpFotos.push({target:myClip.prin_mc.janelaFotos_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
 jpFotos.start();
 break;

 case "sugestao":
 var jpSugestao = new Fuse();
 
jpSugestao.push({target:myClip.prin_mc.textSugestao_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
 jpSugestao.start();
 break;

 default:
 break;
}

On 12/5/06, badi malik < [EMAIL PROTECTED]> wrote:
>
> you might be missing a ':'
>
> b
>
> - Original Message 
> From: Jose Maria Barros <[EMAIL PROTECTED]>
> To: Flashcoders mailing list 
> Sent: Tuesday, December 5, 2006 11:01:30 AM
> Subject: Re: [Flashcoders] Switch case problem...
>
> yes
>
> On 12/5/06, Joey Rivera <[EMAIL PROTECTED]> wrote:
> >
> > You putting breaks in the case statements?
> >
> > Joey Rivera
> > Flash Developer
> > iLearn, Inc.
> > (770) 218-0972
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] ] On Behalf Of Jose
> Maria
> > Barros
> > Sent: Tuesday, December 05, 2006 1:50 PM
> > To: Flashcoders mailing list
> > Subject: [Flashcoders] Switch case problem...
> >
> > Hi..
> > Ive done a function with a switch case wich have each one a string
> > variable
> > value  with the name of the link...
> >
> > var linkName:String = "";
> >
> > switch(linkName) {
> >
> >   case "link1":
> >   //run function with a gotoAndPlay  that goes to
> the  frame(linkName)
> >
> >  case "link2":
> >  //run function with a gotoAndPlay  that goes to
> the  frame(linkName)
> >
> > etc
> > }
> >
> >
> > And when i press a button for that link...he stores the value in the
> > variable(linkName) and he runs the function...
> >
> > The problem is that when i press the button one...he goes to that
> > link...but
> > when i press the same button again...he goes to other link...
> >
> > I dont understand...i appreciate some help..
> >
> > Thanks in advance.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



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

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


Re: [Flashcoders] Switch case problem...

2006-12-05 Thread Jose Maria Barros

here is the code...i think nothing is wrong...

   switch(linkName)
   {
case "about":
var jpAbout = new Fuse();
jpAbout.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad", func:goLink, scope:
myClip.prin_mc})
jpAbout.start();
break;

case "noticias":
var jpNoticias = new Fuse();
jpNoticias.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpNoticias.start();
break;

case "fotos":
var jpFotos = new Fuse();
jpFotos.push({target:myClip.prin_mc.janelaFotos_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpFotos.start();
break;

case "sugestao":
var jpSugestao = new Fuse();

jpSugestao.push({target:myClip.prin_mc.textSugestao_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpSugestao.start();
break;

default:
break;
   }

On 12/5/06, badi malik <[EMAIL PROTECTED]> wrote:


you might be missing a ':'

b

- Original Message 
From: Jose Maria Barros <[EMAIL PROTECTED]>
To: Flashcoders mailing list 
Sent: Tuesday, December 5, 2006 11:01:30 AM
Subject: Re: [Flashcoders] Switch case problem...

yes

On 12/5/06, Joey Rivera <[EMAIL PROTECTED]> wrote:
>
> You putting breaks in the case statements?
>
> Joey Rivera
> Flash Developer
> iLearn, Inc.
> (770) 218-0972
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jose
Maria
> Barros
> Sent: Tuesday, December 05, 2006 1:50 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Switch case problem...
>
> Hi..
> Ive done a function with a switch case wich have each one a string
> variable
> value  with the name of the link...
>
> var linkName:String = "";
>
> switch(linkName) {
>
>   case "link1":
>   //run function with a gotoAndPlay  that goes to
the  frame(linkName)
>
>  case "link2":
>  //run function with a gotoAndPlay  that goes to
the  frame(linkName)
>
> etc
> }
>
>
> And when i press a button for that link...he stores the value in the
> variable(linkName) and he runs the function...
>
> The problem is that when i press the button one...he goes to that
> link...but
> when i press the same button again...he goes to other link...
>
> I dont understand...i appreciate some help..
>
> Thanks in advance.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





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

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


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

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


Re: [Flashcoders] Switch case problem...

2006-12-05 Thread Jose Maria Barros

yes

On 12/5/06, Joey Rivera <[EMAIL PROTECTED]> wrote:


You putting breaks in the case statements?

Joey Rivera
Flash Developer
iLearn, Inc.
(770) 218-0972


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jose Maria
Barros
Sent: Tuesday, December 05, 2006 1:50 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Switch case problem...

Hi..
Ive done a function with a switch case wich have each one a string
variable
value  with the name of the link...

var linkName:String = "";

switch(linkName) {

  case "link1":
  //run function with a gotoAndPlay  that goes to the  frame(linkName)

 case "link2":
 //run function with a gotoAndPlay  that goes to the  frame(linkName)

etc
}


And when i press a button for that link...he stores the value in the
variable(linkName) and he runs the function...

The problem is that when i press the button one...he goes to that
link...but
when i press the same button again...he goes to other link...

I dont understand...i appreciate some help..

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

2006-12-05 Thread Jose Maria Barros

Hi..
Ive done a function with a switch case wich have each one a string variable
value  with the name of the link...

var linkName:String = "";

switch(linkName) {

 case "link1":
 //run function with a gotoAndPlay  that goes to the  frame(linkName)

case "link2":
//run function with a gotoAndPlay  that goes to the  frame(linkName)

   etc
}


And when i press a button for that link...he stores the value in the
variable(linkName) and he runs the function...

The problem is that when i press the button one...he goes to that link...but
when i press the same button again...he goes to other link...

I dont understand...i appreciate some help..

Thanks in advance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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-09 Thread Jose Maria Barros

Ok...ive found the source of the problem...the xml file must be in the same
floder as the swf..cant reside inside a folder...maybe because of
permissions...

Thanks

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


Hi Arul,
Well...i tested..and the problem still there...maybe its because the xml
object is not in the root?its inside a movieclip, then inside other
movieclip.

I case you dont understand what i mean is the code that ive put here...is
in a frame that is not in the root, but inside a movieclip(that is in the
root) and in other movieclip...maybe is that the problem?

thanks.


On 8/1/06, Arul Prasad M L <[EMAIL PROTECTED]> wrote:
>
> 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));

Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-08-01 Thread Jose Maria Barros

Hi Arul,
Well...i tested..and the problem still there...maybe its because the xml
object is not in the root?its inside a movieclip, then inside other
movieclip.

I case you dont understand what i mean is the code that ive put here...is in
a frame that is not in the root, but inside a movieclip(that is in the root)
and in other movieclip...maybe is that the problem?

thanks.

On 8/1/06, Arul Prasad M L <[EMAIL PROTECTED]> wrote:


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(

Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-08-01 Thread Jose Maria Barros

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; i0) {
var butNum:Number = new Number(this._name.substr(3, 1));
this.createSubMenu(butNum);
for (i=0; i wrote:
>
> Oh manthank you so much..i was getting so frustrated...well..i am
> ...but at least..the problem is solved..
>
>
>
> On 7/31/06, eric dolecki < [EMAIL PROTECTED]> wrote:
> >
> > You are attaching everything to the _root, so you need to clean up the
> > clips
> > one by one, unless you decide to better nest your menu & submenu items
> > in
> > one movieclip. You could then remove it much easier, etc.
> >
> > On 7/31/06, Jose Maria Barros < [EMAIL PROTECTED]> wrote:
> > >
> > > Hello, i have a xml menu and when i go to other frame my menu doenst
> > > unload...
> > > i tried with the functions clearMenu and clearSubMenu but they dont
> > > work..please help..i will send the code:
> > >
> > >
> > >
> > > 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;
> > >
> > >
> > > //load the xml with xpath
> > > 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< mainMenus.length; i++) {
> > > newBut = _root.attachMovie("but", "but"+i, 999+i);
> > > newBut.arrow._alpha = 0;
> > > newBut.shine._alpha = 0;
> > > newBut._x = 105;
> > > newBut._y = 180+(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.tween(this, 10, 13);
> > > this.arrow.appear();
> > > this.shine.appear();
> > > var textCol = new Color( this.txt);
> > > textCol.setRGB(0xff);
> > >
> > > };
> > > newBut.onRollOut = function() {
> > > _root.tween(this, 15, 10);
> > > 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._

Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-07-31 Thread Jose Maria Barros

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; i0) {
   var butNum:Number = new Number(this._name.substr(3, 1));
   this.createSubMenu(butNum);
   for (i=0; i wrote:


Oh manthank you so much..i was getting so frustrated...well..i am
...but at least..the problem is solved..



On 7/31/06, eric dolecki < [EMAIL PROTECTED]> wrote:
>
> You are attaching everything to the _root, so you need to clean up the
> clips
> one by one, unless you decide to better nest your menu & submenu items
> in
> one movieclip. You could then remove it much easier, etc.
>
> On 7/31/06, Jose Maria Barros < [EMAIL PROTECTED]> wrote:
> >
> > Hello, i have a xml menu and when i go to other frame my menu doenst
> > unload...
> > i tried with the functions clearMenu and clearSubMenu but they dont
> > work..please help..i will send the code:
> >
> >
> >
> > 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;
> >
> >
> > //load the xml with xpath
> > 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< mainMenus.length; i++) {
> > newBut = _root.attachMovie("but", "but"+i, 999+i);
> > newBut.arrow._alpha = 0;
> > newBut.shine._alpha = 0;
> > newBut._x = 105;
> > newBut._y = 180+(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.tween(this, 10, 13);
> > this.arrow.appear();
> > this.shine.appear();
> > var textCol = new Color( this.txt);
> > textCol.setRGB(0xff);
> >
> > };
> > newBut.onRollOut = function() {
> > _root.tween(this, 15, 10);
> > 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["but"+i].getPos(_root["but"+i].y);
> > } else {
> >
> > _root["but"+i].getPos(_root["but"+i].y+this.submenuCnt*22);
> > }
> > }
> > }
> > else {
> > _root.conte

Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-07-31 Thread Jose Maria Barros

Oh manthank you so much..i was getting so frustrated...well..i am ...but
at least..the problem is solved..


On 7/31/06, eric dolecki <[EMAIL PROTECTED]> wrote:


You are attaching everything to the _root, so you need to clean up the
clips
one by one, unless you decide to better nest your menu & submenu items in
one movieclip. You could then remove it much easier, etc.

On 7/31/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
>
> Hello, i have a xml menu and when i go to other frame my menu doenst
> unload...
> i tried with the functions clearMenu and clearSubMenu but they dont
> work..please help..i will send the code:
>
>
>
> 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;
>
>
> //load the xml with xpath
> 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.attachMovie("but", "but"+i, 999+i);
> newBut.arrow._alpha = 0;
> newBut.shine._alpha = 0;
> newBut._x = 105;
> newBut._y = 180+(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.tween(this, 10, 13);
> this.arrow.appear();
> this.shine.appear();
> var textCol = new Color(this.txt);
> textCol.setRGB(0xff);
>
> };
> newBut.onRollOut = function() {
> _root.tween(this, 15, 10);
> 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["but"+i].getPos(_root["but"+i].y);
> } else {
>
> _root["but"+i].getPos(_root["but"+i].y+this.submenuCnt*22);
> }
> }
> }
> else {
> _root.conteudos_mc.portfolio_mc.clearSubMenus();
> for (i=0; i _root["but"+i].getPos(_root["but"+i].y);
> }
>
> }
> };
> }
> }
>
>
> 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.attachMovie("submenu", "subMenu"+i, Math.random
> ()*99);
> subBut._alpha = 0;
> subBut._x -= i;
> subAppear(subBut, (i+3), 130);
> subBut._y = this.y+this._height+(subBut._height+5)*i;
> subBut.txt.text = subMenus[i].attributes.txt;
> subBut.link2 = subMenus[i].attributes.url;
> subBut.but.onRollOver = function(){
> var textSubCol = new Color(this._parent.txt);
> textSubCol.setRGB(0xff);
> }
> subBut.but.onRollOut = function(){
> var textSubCol = new Color(this._parent.txt);
> textSubCol.setRGB(0x6F6A63);
> }
> subBut.but.onRelease = function() {
> loadMovie(this._parent.link2,
"_root.conteudos_mc.vazio4_mc");
> //this doesnt disapear either...
> //trace(this._parent);
> };
> }
> };
>
>
>
> function clearSubMenus() {
> for (k=0; k _root["subMenu"+k].removeMovieClip();
> }
> }
>
> function clearAllMenus() {
> f

[Flashcoders] Help...cant unload the xml menu...!!

2006-07-31 Thread Jose Maria Barros

Hello, i have a xml menu and when i go to other frame my menu doenst
unload...
i tried with the functions clearMenu and clearSubMenu but they dont
work..please help..i will send the code:



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;


//load the xml with xpath
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; i0) {
   var butNum:Number = new Number(this._name.substr(3, 1));
   this.createSubMenu(butNum);
   for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros

Thanks mate...ive got it:


   newBut.link2 = mainMenus[i].childNodes[1].firstChild.nodeValue;
   newBut.link = mainMenus[i].childNodes[0].firstChild.nodeValue;



On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote:


Yes you can use it in the same way...

eg. mainMenu[i].childNodes[i].childNodes[0].firstChild.nodeValue;

Jose Maria Barros wrote:
> sorry...i didnt explained the whole thing..
>
> the thing is that flash duplicates one button mc with all the elements
from
> the xml...and makes a loop.
> Every button have a different link for a different pictures...
>
> But the first one works good..(newBut.link = mainMenus[i].firstChild
> .firstChild.nodeValue):
>
> 
>
>  >>>>>>>> this one works..
> http://www.kirupa.com/developer/mx2004/pg/kresge.jpg
> 
> http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
> 
>
> 
>
> now the second..when i try to use this :
>
> newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
>
> to catch this:
>
> 
>
>  http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
> http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
> 
>
> 
>
> On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote:
>>
>> My not use childNodes?
>> mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
>> mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
>>
>>
>> Jose Maria Barros wrote:
>> > Hi,
>> >
>> > i have the xml:
>> >
>> > 
>> >
>> >
>> http://www.kirupa.com/developer/mx2004/pg/kresge.jpg
>> >http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
>> > 
>> >
>> > 
>> >
>> > in flash, the variable "link" that holded the "image" node:
>> >
>> > newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
>> >
>> > worked..welll...
>> >
>> >
>> > now i want to have other variable..that holds the "imagep"
>> > node..normally it
>> > would write:
>> >
>> > newBut.link2=mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
>> >
>> >
>> > But it says is undefined...hows that ?
>> >
>> > 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
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] XML access

2006-07-24 Thread Jose Maria Barros

ups..this:


   
http://www.kirupa.com/developer/mx2004/pg/kresge.jpg

  >>>>>> this dont work..
http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   






On 7/24/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:


sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements
from the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):



 >>>>>>>> this one works.. 
http://www.kirupa.com/developer/mx2004/pg/kresge.jpg


 http://www.kirupa.com/developer/mx2004/pg/medialab.jpg




now the second..when i try to use this :


newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:




  http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
 http://www.kirupa.com/developer/mx2004/pg/medialab.jpg




On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote:
>
> My not use childNodes?
> mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
> mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
>
>
> Jose Maria Barros wrote:
> > Hi,
> >
> > i have the xml:
> >
> > 
> >
> >http://www.kirupa.com/developer/mx2004/pg/kresge.jpg
> >http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
> > 
> >
> > 
> >
> > in flash, the variable "link" that holded the "image" node:
> >
> > newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
> >
> > worked..welll...
> >
> >
> > now i want to have other variable..that holds the "imagep"
> > node..normally it
> > would write:
> >
> > newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
> >
> >
> > But it says is undefined...hows that ?
> >
> > 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
>



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

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


Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros

sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements from
the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):


   
>>>>>>>> this one works..
http://www.kirupa.com/developer/mx2004/pg/kresge.jpg

http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


now the second..when i try to use this :

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:


   
 http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote:


My not use childNodes?
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:
> Hi,
>
> i have the xml:
>
> 
>
>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg
>http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
> 
>
> 
>
> in flash, the variable "link" that holded the "image" node:
>
> newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
>
> worked..welll...
>
>
> now i want to have other variable..that holds the "imagep"
> node..normally it
> would write:
>
> newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
>
>
> But it says is undefined...hows that ?
>
> 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


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

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


[Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros

Hi,

i have the xml:


   
   http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
   http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


in flash, the variable "link" that holded the "image" node:

newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

worked..welll...


now i want to have other variable..that holds the "imagep" node..normally it
would write:

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


But it says is undefined...hows that ?

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] slide a movieclip with photo(loaded by xml)

2006-07-21 Thread Jose Maria Barros

Im not there yet..but many thanks for your time and patience Adrian.



On 7/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:


I'm thinking more like this (using your most recent code as a starting
point)...

//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();
// register this as a listener
myMCL.addListener(this);
// define function to handle onLoadInit event
function onLoadInit( targetMC:MovieClip ):Void
{
subAppear(targetMC, (i+3), 95);
}



function createTreeMenu():Void {
for (i=0; i wrote:
>
> Something like this? because it doesnt work...it remains the problem...
>
> //create an instance of MovieClipLoader
> var myMCL = new MovieClipLoader();
>
>
> myMCL.onLoadInit = function (targetMC)
> {
> subAppear(targetMC, (i+3), 95);
> }
>
>
>
> function createTreeMenu():Void {
> for (i=0; i newBut = _root.attachMovie("but", "but"+i, 999+i);
> newBut._x = 33+(newBut._width+5)*i;
> newBut._y = 380;
> newBut.txt.text = [i+1];
> newBut.link = mainMenus[i].firstChild.firstChild;
>
> subAppearX(imagemp_mc, (i+3), 344);
>
> newBut.onRelease = function() {
> loadMovie(this.link, imagem_mc);
> myMCL.loadClip(imagem_mc);
> };
>
> }
> }
>
>
> sorry for my dullness...maybe with a event listener?hummm
>
> On 7/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
> >
> > When 'this.link' loads into imagem_mc, any existing properties and
> methods
> > of imagem_mc are destroyed because 'this.link' replaces imagem_mc.
> >
> > Immediately after loading the MovieClip, you call subAppear which
> assigns
> > the onEnterFrame handler. This handler is destroyed when the MovieClip
> > loads
> > so you don't see your animation working.
> >
> > Here are your options:
> > 1) use MovieClipLoader and then use the onLoadInit event to evoke
> > subAppear
> > when the movie has completely loaded or
> > 2) nest imagem_mc inside a wrapper MovieClip and assign the
onEnterFrame
> > handler to that wrapper.
> >
> > The first option is the better option as it's just neater and also
> because
> > I
> > think it's fair to assume you only want the animation to happen once
the
> > MovieCLip has loaded anyway.
> >
> > HTH
> > Adrian
> >
> >
> > On 7/20/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello. Im doing a test loading from xml information to load into one
> > movie
> > > clip one photo and having a number menu. When i press one of those
> > numbers
> > > a
> > > function subAppear makes the movieclip slide from the top.
> > >
> > > Wht i dont understand is that he loads the photo, but the function
> > doesnt
> > > work..i tried to test the function without loading the xml and the
> > > function
> > > works good..but when i load the xml..it doesnt..any help?
> > >
> > > Thanks in advance...and here is the code from the function and the
> > > function
> > > that creates the buttons
> > >
> > > Jose Maria
> > >
> > > function subAppear(mc:MovieClip, val:Number, target:Number):Void {
> > >
> > > mc.onEnterFrame = function() {
> > > if (target-this._y<0.2 && this._alpha>99) {
> > > this._y = target;
> > > delete this.onEnterFrame;
> > > }
> > > if (this._alpha<101) {
> > > this._alpha += val;
> > > }
> > > if (this._y > > this._y -= (this._y-target)/4;
> > > }
> > > };
> > > }
> > >
> > >
> > > function createPhotofolio():Void {
> > > for (i=0; i > > newBut = _root.attachMovie("but", "but"+i, 999+i);
> > > newBut._x = 33+(newBut._width+5)*i;
> > > newBut._y = 380;
> > > newBut.txt.text = [i+1];
> > > newBut.link = photoMenu[i].firstChild.firstChild;
> > >
> > > newBut.onRelease = function() {
> > > loadMovie(this.link, imagem_mc);
> > > subAppear(imagem_mc, (i+3), 95);
> > > };
> > >
> > > }
> > > }
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
&g

Re: [Flashcoders] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Jose Maria Barros

Something like this? because it doesnt work...it remains the problem...

//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();


myMCL.onLoadInit = function (targetMC)
{
   subAppear(targetMC, (i+3), 95);
}



function createTreeMenu():Void {
   for (i=0; i wrote:


When 'this.link' loads into imagem_mc, any existing properties and methods
of imagem_mc are destroyed because 'this.link' replaces imagem_mc.

Immediately after loading the MovieClip, you call subAppear which assigns
the onEnterFrame handler. This handler is destroyed when the MovieClip
loads
so you don't see your animation working.

Here are your options:
1) use MovieClipLoader and then use the onLoadInit event to evoke
subAppear
when the movie has completely loaded or
2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame
handler to that wrapper.

The first option is the better option as it's just neater and also because
I
think it's fair to assume you only want the animation to happen once the
MovieCLip has loaded anyway.

HTH
Adrian


On 7/20/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
>
> Hello. Im doing a test loading from xml information to load into one
movie
> clip one photo and having a number menu. When i press one of those
numbers
> a
> function subAppear makes the movieclip slide from the top.
>
> Wht i dont understand is that he loads the photo, but the function
doesnt
> work..i tried to test the function without loading the xml and the
> function
> works good..but when i load the xml..it doesnt..any help?
>
> Thanks in advance...and here is the code from the function and the
> function
> that creates the buttons
>
> Jose Maria
>
> function subAppear(mc:MovieClip, val:Number, target:Number):Void {
>
> mc.onEnterFrame = function() {
> if (target-this._y<0.2 && this._alpha>99) {
> this._y = target;
> delete this.onEnterFrame;
> }
> if (this._alpha<101) {
> this._alpha += val;
> }
> if (this._y this._y -= (this._y-target)/4;
> }
> };
> }
>
>
> function createPhotofolio():Void {
> for (i=0; i newBut = _root.attachMovie("but", "but"+i, 999+i);
> newBut._x = 33+(newBut._width+5)*i;
> newBut._y = 380;
> newBut.txt.text = [i+1];
> newBut.link = photoMenu[i].firstChild.firstChild;
>
> newBut.onRelease = function() {
> loadMovie(this.link, imagem_mc);
> subAppear(imagem_mc, (i+3), 95);
> };
>
> }
> }
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Jose Maria Barros

Hello. Im doing a test loading from xml information to load into one movie
clip one photo and having a number menu. When i press one of those numbers a
function subAppear makes the movieclip slide from the top.

Wht i dont understand is that he loads the photo, but the function doesnt
work..i tried to test the function without loading the xml and the function
works good..but when i load the xml..it doesnt..any help?

Thanks in advance...and here is the code from the function and the function
that creates the buttons

Jose Maria

function subAppear(mc:MovieClip, val:Number, target:Number):Void {

   mc.onEnterFrame = function() {
   if (target-this._y<0.2 && this._alpha>99) {
   this._y = target;
   delete this.onEnterFrame;
   }
   if (this._alpha<101) {
   this._alpha += val;
   }
   if (this._yhttp://chattyfig.figleaf.com/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] Animate Xml Nodes

2006-07-14 Thread Jose Maria Barros

Hello,

Anyone know a good tutorial where i can learn how to animate xml nodes with
actionscript? Example: One photo slides from top to the target destination..

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

2006-07-12 Thread Jose Maria Barros

Now im working on a project that involves SQL Server, ASP , XML and
flash..and i think its so difficult to work with this for me..
Maybe tthis component whill help..but not much..

Im not a good coder..so maybe this help

On 7/12/06, jcarlos <[EMAIL PROTECTED]> wrote:


it seems to be interesting

But I didn´t see any Stored Procedure based example

Isn´t  this SQL open way of dB query not very recommended since it exposes
your persistence logic, tables and so on ???

I´m not an n-layers app expert but I found this arguments very often 

João Carlos

- Original Message -
From: "Tunç Atakan" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'" 
Sent: Wednesday, July 12, 2006 9:39 AM
Subject: RE: [Flashcoders] Flash SQL


> http://www.netdrims.com/flashsql/
>
>
> Anybody use this component?
>
> I need comment?
>
> Thanx...
>
> Tunc
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Tree component

2006-07-06 Thread Jose Maria Barros

Hello,

Its possible to control the separation(height) of each row/node of the tree
component menu? i looked for setStyle attributes but there is only the
indentation...

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] XML Menu

2006-07-05 Thread Jose Maria Barros

Hi..anyone can give me a nice tutorial to make a menu like this in XML?

http://www.coolfocus.com/relocate.asp?page=flash/examples/xpanel/index.asp

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

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


[Flashcoders] XML Menu Tutorials-....

2006-07-04 Thread Jose Maria Barros

Hello, anyone knows a good tutorial to learn how to develop a menu in xml..i
ve seen the kirupa one..but i want to know how i can animate every element
in the menu..

Thanks in advance and sorry for the newbie question.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Job application

2006-06-02 Thread Jose Maria Barros

Olá Pedro. Vi o teu mail e fiquei curioso. Tenho alguma experiencia com
actionscript e adoro jogos de computador.
Tive no site e nao vi la nenhum "job" relacionado com programador
actionscript. De qualquer maneira eu vou enviar o cv.


José Maria

On 6/2/06, Pedro Furtado <[EMAIL PROTECTED]> wrote:


Hi,

The company I work for is currently recruiting one more actionscript
programmer, if your interested check the website below and search for job
application :-).



Pedro Furtado | Software Engineer |  
[EMAIL PROTECTED] | +351 938303212
YDreams - Informática S.A. |   www.ydreams.com |
+351 212949683

Disclaimer and Confidentiality Notice: YDreams accepts no responsibility
or
liability whatsoever
with regard to the information herein contained. This message including
any
attachment hereof
is confidential and may be privileged or otherwise legally protected from
disclosure and may
only be read, copied and used by the intended recipient. If you are not
the
intended recipient,
please contact the sender immediately (+351 21 294 9683) and delete this
email and any
attachment permanently from your system. You must not copy this email or
any
attachment or
disclose its/their contents to any other person or entity. Thank you.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip thatis above(i think)

2006-03-22 Thread Jose Maria Barros
I already solved it mate... i used : this._parent.gotoAndStop(this.
_parent.link);

Thanks anyway!


On 3/22/06, Ryan Potter <[EMAIL PROTECTED]> wrote:
>
> Give this a shot.
>
> So if the structure looks like this:
>
> root
>   animBotoes_mc (A.swf)
> myvar
> emptyMovieClipName (B.swf)
>
> >From inside emptyMovieClipName to myvar:
>
> this._parent.myvar
> (you have to go up a level)
>
> Ryan
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of Jose Maria Barros
> Sent: Wednesday, March 22, 2006 5:17 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] referencing my main movieclip in a movie clip
> thatis above(i think)
>
> I have A.swf that have a movieclip instance named "animBotoes_mc" in the
> root. Inside this instace i have two things: the variable myvar , and the
> empty movieclip that haves the B.swf.
>
> I want to access from B.swf the variable myvar..
>
> Sorry if i didnt make you understand..
>
> On 3/22/06, Roman Blöth <[EMAIL PROTECTED]> wrote:
> >
> > Jose Maria Barros schrieb:
> > > Hello Roman.
> > >
> > > I tried this in my swf B:
> > >
> > > this._parent.animBotoes_mc.gotoAndStop(link);
> > >
> > > but...it doesnt work...
> > so is animBotoes_mc the parent? Then you can't write it like above,
> > since animBotoes_mc does not contain animBotoes_mc, I assume...
> >
> >
> > Regards,
> > Roman.
> >
> > --
> >
> > ---
> > gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
> > t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
> > ---
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Jose Maria Barros
Ok...i've found it...and happy i did..but it was so basic...
Roman, thanks for your help.

Here it is what i wanted:

this._parent.gotoAndStop(this._parent.link);




On 3/22/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
>
> I have A.swf that have a movieclip instance named "animBotoes_mc" in the
> root. Inside this instace i have two things: the variable myvar , and the
> empty movieclip that haves the B.swf.
>
> I want to access from B.swf the variable myvar..
>
> Sorry if i didnt make you understand..
>
>
> On 3/22/06, Roman Blöth <[EMAIL PROTECTED] > wrote:
> >
> > Jose Maria Barros schrieb:
> > > Hello Roman.
> > >
> > > I tried this in my swf B:
> > >
> > > this._parent.animBotoes_mc.gotoAndStop(link);
> > >
> > > but...it doesnt work...
> > so is animBotoes_mc the parent? Then you can't write it like above,
> > since animBotoes_mc does not contain animBotoes_mc, I assume...
> >
> >
> > Regards,
> > Roman.
> >
> > --
> >
> > ---
> > gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
> > t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
> > ---
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Jose Maria Barros
I have A.swf that have a movieclip instance named "animBotoes_mc" in the
root. Inside this instace i have two things: the variable myvar , and the
empty movieclip that haves the B.swf.

I want to access from B.swf the variable myvar..

Sorry if i didnt make you understand..

On 3/22/06, Roman Blöth <[EMAIL PROTECTED]> wrote:
>
> Jose Maria Barros schrieb:
> > Hello Roman.
> >
> > I tried this in my swf B:
> >
> > this._parent.animBotoes_mc.gotoAndStop(link);
> >
> > but...it doesnt work...
> so is animBotoes_mc the parent? Then you can't write it like above,
> since animBotoes_mc does not contain animBotoes_mc, I assume...
>
>
> Regards,
> Roman.
>
> --
>
> ---
> gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
> t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
> ---
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hello Roman.

I tried this in my swf B:

this._parent.animBotoes_mc.gotoAndStop(link);

but...it doesnt work...



On 3/21/06, Roman Blöth <[EMAIL PROTECTED]> wrote:
>
> Jose Maria Barros schrieb:
> > Hi...i know that is a newbie question, but..here it goes:
> >
> > I have a swf A. When i press a button in it, i load an external swf B
> into
> > swf A.
> >
> > When i click a button in swf A , i wanted to swf B reach a variable that
> is
> > in an movieclip that is in swf A.
> >
> >
> > I tried this in the end of the main timeline of swf B:
> >
> > _level0.movieclip_in_A.myvar;
> >
> > So, _level0 is supposed to be the main swf A and movieclip_in_A is the
> movie
> > clip inside the main swf, that have nested a variable called "myvar".
> >
> > Im wrong?
> Anyway this is bad style: If _root/_level0 changes, then your code will
> cease working as expected. You can evade this situation by simply
> referencing the other way round:
>
> In the timeline of clipB write:
>
> this._parent.myvar
>
>
> Regards,
> Roman.
>
> --
>
> ---
> gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
> t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
> ---
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called "myvar".

Im wrong?

Oh and the swf B is loaded in a empty movieclip.


Thanks in advance.


 this doesnt work..
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Browser back button, is it necessary?

2006-02-13 Thread Jose Maria Barros
There is other site with back button in the browser...its made with what
they call " dynamic deeplinking"..but i dont know how they do that..but its
possible.

http://www.advanceflash.com/




On 2/13/06, Miles Thompson <[EMAIL PROTECTED]> wrote:
>
> At 03:03 AM 2/13/2006, Daniel Freeman wrote:
>
> >Is it even possible to disable it?  How do you do
> >that?  (Unless, you open a new window with no
> >controls).  Or is there some technique I don't know?
> >(JavaScript?)
> >
> >The problem with the back button is that people are
> >very used to using it for navigating internet content.
> >  When I got non-technical people to test my Central
> >applications (in the Central environment, not the
> >browser) they would still ask "Where's the back button?".
> >
> >
> >
>
>
> It's a real conundrum - so many sites provide their own "Back" button,
> usually in JavaScript, some users look for that. Other users tune up their
> custom keyboards and mice to use the built-in Back/Forward capability,
> others become very used to the keyboard shortcuts. Still others
> religiously
> use the browser's navigation buttons.
>
> Last summer I project I was involved with, for a short while, required
> browser navigation to work, while still minimizing load times for Flash. I
> left before that was implemented, so can't tell you how it was done.
>
> So, to answer the original question - yes, ideally provide browser
> navigation. Realistically, some Flash applications are so complex it's not
> practical.
> Example? www.gigagolf.com, no back button, v. impressive RIA. (There's an
> even more complex one mentioned a couple of weeks ago which can model big
> share buys and the offer to make.)
>
> So, as always, "It depends".
>
> Cheers - Miles
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Easing text speed in TextArea component

2006-01-16 Thread Jose Maria Barros
Hello,

It is possible to insert a easing text scroll in the TextArea
Scrollbar?Where can i insert the code?

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


Re: [Flashcoders] Job Opportunity in Madrid (Spain)

2006-01-13 Thread Jose Maria Barros
wellok..so i quit this job and go to mcdonalds in england!ahahah


On 1/13/06, Nick Weekes <[EMAIL PROTECTED]> wrote:
>
> ;-) very good gag.
>
> 21000 euros is about 14 grand English money.  Mcdonalds pay more.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
> Sent: 13 January 2006 15:09
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Job Opportunity in Madrid (Spain)
>
> ROFL  Boolean... haha, man, I'm on the floor with that one yo,
> hahahah!
>
> - Original Message -
> From: "zwetan" <[EMAIL PROTECTED]>
> To: "'Flashcoders mailing list'" 
> Sent: Friday, January 13, 2006 9:43 AM
> Subject: RE: [Flashcoders] Job Opportunity in Madrid (Spain)
>
>
> > ...Flash Developer...
> >
> > You should have experience in advanced ActionScript programming,
> > ...
> >
> > Design skills are not necessary. The candidate only will work in Flash
> and
> > ActionScript developement.
> >
> > Please include personal, artistic work - ...
>
> Boolean logic error !
>
> >
> > Salary range: from 21.000 to 24.000 euros yearly, this can vary based on
> > candidate skills.
> >
> > Immediate incorporation.
> >
>
> Resistance is futile :D
>
> zwetan
>
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem with buttons enabled

2006-01-13 Thread Jose Maria Barros
Hello...i have a navigation bar with some butttons.

When i click a "button_btn" i wanted that the other buttons become
inactive(enabled propertie) and when an animation(mc_anmation) ends, then
all the buttons become active( _parent.button_btn._visible = true)

The problem is that when i do second time a test..the buttons dont stay
active.. ive made a trace to see if the buttons stay active..and yes! they
are all set to true!
but in the navigation dont..

code in main timeline frame 2:

button_btn.onRelease = function() {
 other1_btn._visible = false;
 other2_btn._visible = false;
 other3_btn._visible = false;

gotoAndPlay("design");
}



code in mc_animation that is in the "design" label frame

_parent.other1_btn._visible = true;
_parent.other2_btn._visible = true;
_parent.other3_btn._visible = true;

Oh and in this design label frame(or main timeline frame 3) there are the
same actions that are in timeline frame 2 regarding the "release" event..

Dont know..whats happening..i m still trying to figure it out

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


[Flashcoders] loadVariablesNum question..

2006-01-09 Thread Jose Maria Barros
Im using loadVariablesNum to send information to an ASP page..then send it
back to a email box.

The problem is that i have the textBoxes inside a movieclip and when i
receive the email..the data isnt in the email..

Flash:

loadVariablesNum("send.asp", 0, "POST");


the inputText boxes are inside a movie clip..

The ASP page:

theName = Request.Form("name of text box")
 theEmail = Request.Form("name of text box")
 theMessage = Request.Form("name of text box")

sorry for my ignorance..i tried to put
"_root.form_mc.loadVariablesNum(etc..);" but it didnt work..
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] htmlText property doesnt work...

2006-01-09 Thread Jose Maria Barros
Can anyone tell me what wrong with this line?Sorry for my ignorance...

"tituloEmenta" is a variable that holds an XML attribute(in this case the
title of a recipe)

The problem is that the text is not formatted..he doesnt give the "brake"
and the font

_root.main.ementa_txt.htmlText = _root.main.ementa_txt.htmlText+""+tituloEmenta+"";


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


[Flashcoders] Anyone knows good tutorials that relate to creating a dynamic text box that is updated with XML file?

2006-01-09 Thread Jose Maria Barros
Hello.

I wanted to know if there are a real good tutorial involving XML and a
dynamic text box.
The thing is that i wanted to do like an XML that has recipes.

I wanted to have the titles in a different color like( ingredients:) and
that when i insert a new recipe..the text box grows the height..to have more
and more recipes.

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


Re: [Flashcoders] Insert an attachment in a mail form and check if its possible to only accept .doc files?

2006-01-05 Thread Jose Maria Barros
I have flash mx 2004 Professional and i think that File Reference Class is
not supported, only in flash 8..

On 1/5/06, Igor Costa <[EMAIL PROTECTED]> wrote:
>
> Hi Jose, completly possible.
>
> Use the FileReference to upload with such server-side you desire, asp,
> php,
> cfml etc. Look inside the samples folder in your flash instalation. Much
> better frist step on that.
>
> 2006/1/4, Jose Maria Barros <[EMAIL PROTECTED]>:
> >
> > Hi..i want to build in flash a form mail( like a recruitment form) that
> > has
> > the possibilitie to attach a file.
> >
> > I want to limit the type of document that the user will attach, like
> .doc
> >
> > Its possible to do that in flash? any ideias?
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Insert an attachment in a mail form and check if its possible to only accept .doc files?

2006-01-04 Thread Jose Maria Barros
Hi..i want to build in flash a form mail( like a recruitment form) that has
the possibilitie to attach a file.

I want to limit the type of document that the user will attach, like .doc

Its possible to do that in flash? any ideias?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...

2005-12-29 Thread Jose Maria Barros
Can anyone help me?


On 12/28/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> sorry...what i mean to say is that the text doesnt appear.
>
> On 12/28/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> > Hello Michael.
> > Well, ive tried your method didnt worked out..maybe you can help
> > me..looking at the code..
> >
> > ///starting variables
> > texto_xml = _root.main.caixa_txt.htmlText;
> > _root.main.caixa_txt.autoSize = true;
> >
> > //XML///
> >
> > noticias_xml = new XML();
> > _root.myNots=new Array();
> > noticias_xml.onLoad = startNoticias;
> > noticias_xml.load("noticias.xml");
> > noticias_xml.ignoreWhite = true;
> >
> > function abrir(param1) {
> > //getURL("loja.asp","_blank");
> > getURL("javascript:window.open('novidade.asp?id="+param1+"', 
> > 'PopUp',
> > 'width=420, height=500, top=100, left=100, resizable=no, toolbar=no,
> > location=no, directories=no, status=no, menubar=no, scrollbars=yes,
> > copyhistory=no');void(0);");
> >
> > }
> > function startNoticias(success_not) {
> > if (success_not == true) {
> > rootNode_not = noticias_xml.firstChild;
> > totalNoticias = rootNode_not.childNodes.length;
> > firstNoticia = rootNode_not.firstChild;
> > currentNoticia = firstNoticia;
> > currentIndex_not = 1;
> > for (a=1; a<=totalNoticias; a++) {
> > texto_xml = texto_xml + " > size='12'>" +
> > currentNoticia.attributes.titulo + "" + " > color='#B5B5B5' size='11'>" + currentNoticia.attributes.data_not +
> >  " > color='#FEBF00'> > href=\"asfunction:_root.abrir, " + currentNoticia.attributes.id +
> > "\">+ Mais" + "";
> > currentNoticia = currentNoticia.nextSibling;
> >
> >
> > }
> >     }
> > }
> > 
> >
> > On 12/27/05, Michael Bedar <[EMAIL PROTECTED]> wrote:
> > > first, you should not be using the Variable property of a textfield..
> > >
> > > To get your text box resizing to fit the content you add, set the
> > > "autoSize" property to true in actionscript, ie
> > >
> > > caixa_txt.autoSize=true;
> > > caixa_txt.htmlText="whatever"
> > >
> > >
> > >
> > > On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote:
> > >
> > > > Hello all.
> > > >
> > > > I have a movieclip that inside has a dynamic text box labeled
> > > > "caixa_txt" with a variable call noticias_txt.
> > > >
> > > > That text box is only one line..but i choose to be multiline and with
> > > > HTML support for me to be able to style the XML nodes.
> > > >
> > > > The  problem is that the movie clip dont resize the text box when i
> > > > insert new nodes in the XML file...he only shows the first node, so i
> > > > think he doenst resize the text box automatically..
> > > >
> > > > The sollution ive made was make the text box with a very high height
> > > > value...to accept many nodes.. but the problem is that i have a
> > > > scrollbar that stores the total height of the movie clip and when i
> > > > dont have many news..he scrolls the movie until the end of the movie
> > > > height..
> > > >
> > > > Sorry..i dont know if any of you understand sorry for bad
> > > > englishbut i can send a file with an example..
> > > >
> > > > Thanks in advance..
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...

2005-12-28 Thread Jose Maria Barros
sorry...what i mean to say is that the text doesnt appear.

On 12/28/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> Hello Michael.
> Well, ive tried your method didnt worked out..maybe you can help
> me..looking at the code..
>
> ///starting variables
> texto_xml = _root.main.caixa_txt.htmlText;
> _root.main.caixa_txt.autoSize = true;
>
> //XML///
>
> noticias_xml = new XML();
> _root.myNots=new Array();
> noticias_xml.onLoad = startNoticias;
> noticias_xml.load("noticias.xml");
> noticias_xml.ignoreWhite = true;
>
> function abrir(param1) {
> //getURL("loja.asp","_blank");
> getURL("javascript:window.open('novidade.asp?id="+param1+"', 'PopUp',
> 'width=420, height=500, top=100, left=100, resizable=no, toolbar=no,
> location=no, directories=no, status=no, menubar=no, scrollbars=yes,
> copyhistory=no');void(0);");
>
> }
> function startNoticias(success_not) {
> if (success_not == true) {
> rootNode_not = noticias_xml.firstChild;
> totalNoticias = rootNode_not.childNodes.length;
> firstNoticia = rootNode_not.firstChild;
> currentNoticia = firstNoticia;
> currentIndex_not = 1;
> for (a=1; a<=totalNoticias; a++) {
> texto_xml = texto_xml + " size='12'>" +
> currentNoticia.attributes.titulo + "" + " color='#B5B5B5' size='11'>" + currentNoticia.attributes.data_not +
>  " color='#FEBF00'> href=\"asfunction:_root.abrir, " + currentNoticia.attributes.id +
> "\">+ Mais" + "";
> currentNoticia = currentNoticia.nextSibling;
>
>
> }
> }
> }
> 
>
> On 12/27/05, Michael Bedar <[EMAIL PROTECTED]> wrote:
> > first, you should not be using the Variable property of a textfield..
> >
> > To get your text box resizing to fit the content you add, set the
> > "autoSize" property to true in actionscript, ie
> >
> > caixa_txt.autoSize=true;
> > caixa_txt.htmlText="whatever"
> >
> >
> >
> > On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote:
> >
> > > Hello all.
> > >
> > > I have a movieclip that inside has a dynamic text box labeled
> > > "caixa_txt" with a variable call noticias_txt.
> > >
> > > That text box is only one line..but i choose to be multiline and with
> > > HTML support for me to be able to style the XML nodes.
> > >
> > > The  problem is that the movie clip dont resize the text box when i
> > > insert new nodes in the XML file...he only shows the first node, so i
> > > think he doenst resize the text box automatically..
> > >
> > > The sollution ive made was make the text box with a very high height
> > > value...to accept many nodes.. but the problem is that i have a
> > > scrollbar that stores the total height of the movie clip and when i
> > > dont have many news..he scrolls the movie until the end of the movie
> > > height..
> > >
> > > Sorry..i dont know if any of you understand sorry for bad
> > > englishbut i can send a file with an example..
> > >
> > > Thanks in advance..
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...

2005-12-28 Thread Jose Maria Barros
Hello Michael.
Well, ive tried your method didnt worked out..maybe you can help
me..looking at the code..

///starting variables
texto_xml = _root.main.caixa_txt.htmlText;
_root.main.caixa_txt.autoSize = true;

//XML///

noticias_xml = new XML();
_root.myNots=new Array();
noticias_xml.onLoad = startNoticias;
noticias_xml.load("noticias.xml");
noticias_xml.ignoreWhite = true;

function abrir(param1) {
//getURL("loja.asp","_blank");
getURL("javascript:window.open('novidade.asp?id="+param1+"', 'PopUp',
'width=420, height=500, top=100, left=100, resizable=no, toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=yes,
copyhistory=no');void(0);");

}
function startNoticias(success_not) {
if (success_not == true) {
rootNode_not = noticias_xml.firstChild;
totalNoticias = rootNode_not.childNodes.length;
firstNoticia = rootNode_not.firstChild;
currentNoticia = firstNoticia;
currentIndex_not = 1;
for (a=1; a<=totalNoticias; a++) {
texto_xml = texto_xml + "" +
currentNoticia.attributes.titulo + "" + "" + currentNoticia.attributes.data_not +
 "+ Mais" + "";
currentNoticia = currentNoticia.nextSibling;


}
}
}


On 12/27/05, Michael Bedar <[EMAIL PROTECTED]> wrote:
> first, you should not be using the Variable property of a textfield..
>
> To get your text box resizing to fit the content you add, set the
> "autoSize" property to true in actionscript, ie
>
> caixa_txt.autoSize=true;
> caixa_txt.htmlText="whatever"
>
>
>
> On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote:
>
> > Hello all.
> >
> > I have a movieclip that inside has a dynamic text box labeled
> > "caixa_txt" with a variable call noticias_txt.
> >
> > That text box is only one line..but i choose to be multiline and with
> > HTML support for me to be able to style the XML nodes.
> >
> > The  problem is that the movie clip dont resize the text box when i
> > insert new nodes in the XML file...he only shows the first node, so i
> > think he doenst resize the text box automatically..
> >
> > The sollution ive made was make the text box with a very high height
> > value...to accept many nodes.. but the problem is that i have a
> > scrollbar that stores the total height of the movie clip and when i
> > dont have many news..he scrolls the movie until the end of the movie
> > height..
> >
> > Sorry..i dont know if any of you understand sorry for bad
> > englishbut i can send a file with an example..
> >
> > Thanks in advance..
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...

2005-12-27 Thread Jose Maria Barros
Hello all.

I have a movieclip that inside has a dynamic text box labeled
"caixa_txt" with a variable call noticias_txt.

That text box is only one line..but i choose to be multiline and with
HTML support for me to be able to style the XML nodes.

The  problem is that the movie clip dont resize the text box when i
insert new nodes in the XML file...he only shows the first node, so i
think he doenst resize the text box automatically..

The sollution ive made was make the text box with a very high height
value...to accept many nodes.. but the problem is that i have a
scrollbar that stores the total height of the movie clip and when i
dont have many news..he scrolls the movie until the end of the movie
height..

Sorry..i dont know if any of you understand sorry for bad
englishbut i can send a file with an example..

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


Re: [Flashcoders] XML GALLERY

2005-12-20 Thread Jose Maria Barros
Ok..sorry to bother...but i have one question...its possible to insert
this code in a movie clip? because ive tried.. putting _root in
all..but it didnt worked. Ive wanted to put this in other movie
because i wanted to this code load after and animation

Thanks...

On 12/20/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> OK..ive found it..i forgot to put the "this" in the thumbHolder Variable...
>
> On 12/20/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> > Heelo---well ive  made some "progress", but the problem is that it
> > only shows one thumbnail of the xml grid--..can anyone help me?
> >
> >
> > ///XML
> > myPhoto = new XML();
> > myPhoto.ignoreWhite = true;
> > myPhoto.onLoad = function(success) {
> > //portfolioTag = this.firstChild;
> > gridx = 58;
> > gridy = 58;
> > num = 0;
> > for (i=0; i<3; i++)
> > for (j=0; j<3; j++) {
> > this.picHolder = 
> > this.firstChild.childNodes[i+(j*3)];
> > this.thumbHolder = 
> > thumbnails.createEmptyMovieClip("thumbnail"+num, num);
> > thumbHolder._x=gridx*i;
> > thumbHolder._y=gridy*j;
> > num++;
> > this.thumbLoader =
> > this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
> > 
> > this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
> > this.thumbHolder.main = 
> > this.picHolder.attributes.main;
> > this.thumbHolder.onRelease = function() {
> > loader.loadMovie(this.main);
> > };
> > }
> > };
> > myPhoto.load("design.xml");
> >
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML GALLERY

2005-12-20 Thread Jose Maria Barros
OK..ive found it..i forgot to put the "this" in the thumbHolder Variable...

On 12/20/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> Heelo---well ive  made some "progress", but the problem is that it
> only shows one thumbnail of the xml grid--..can anyone help me?
>
>
> ///XML
> myPhoto = new XML();
> myPhoto.ignoreWhite = true;
> myPhoto.onLoad = function(success) {
> //portfolioTag = this.firstChild;
> gridx = 58;
> gridy = 58;
> num = 0;
> for (i=0; i<3; i++)
> for (j=0; j<3; j++) {
> this.picHolder = this.firstChild.childNodes[i+(j*3)];
> this.thumbHolder = 
> thumbnails.createEmptyMovieClip("thumbnail"+num, num);
> thumbHolder._x=gridx*i;
> thumbHolder._y=gridy*j;
> num++;
> this.thumbLoader =
> this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
> 
> this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
> this.thumbHolder.main = 
> this.picHolder.attributes.main;
> this.thumbHolder.onRelease = function() {
> loader.loadMovie(this.main);
> };
> }
> };
> myPhoto.load("design.xml");
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML GALLERY

2005-12-20 Thread Jose Maria Barros
Heelo---well ive  made some "progress", but the problem is that it
only shows one thumbnail of the xml grid--..can anyone help me?


///XML
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
gridx = 58;
gridy = 58;
num = 0;
for (i=0; i<3; i++)
for (j=0; j<3; j++) {
this.picHolder = this.firstChild.childNodes[i+(j*3)];
this.thumbHolder = 
thumbnails.createEmptyMovieClip("thumbnail"+num, num);
thumbHolder._x=gridx*i;
thumbHolder._y=gridy*j;
num++;
this.thumbLoader =
this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);

this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
};
}
};
myPhoto.load("design.xml");
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML GALLERY

2005-12-20 Thread Jose Maria Barros
ups..sorry..forgot..well...it doesnt download the thumbnails..here is
the code in the debugger

Variable _level0.picHolder = [object #6, class 'XMLNode'] {

  }
Variable _level0.thumbHolder = [movieclip:_level0.thumbnails.thumbnail8]
Variable _level0.thumbLoader = undefined


On 12/20/05, Morten Barklund Shockwaved <[EMAIL PROTECTED]> wrote:
> Jose Maria Barros wrote:
> > Hello! Im trying to do a portfolio gallery with a grid and small
> > thumbnails with xml.
> >
> > I ve been doing some tutorials to help me..but this thing doesnt work.
> >
> > [snip]
> >
> > The xml file is made correctly and the path for the images is
> > link="imagens/somepic.jpg"
>
> The problem is...? Not loading? Not clickable? Not right size? :)
>
> --
> Morten Barklund - Information Architect - Shockwaved
> Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
> Phone: +45 7027 2227 - Fax: +45 3369 1174
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XML GALLERY

2005-12-20 Thread Jose Maria Barros
Hello! Im trying to do a portfolio gallery with a grid and small
thumbnails with xml.

I ve been doing some tutorials to help me..but this thing doesnt work.

i wanted this:

 1 2 3
 4 5 6
 7 8 9

The xml file is made correctly and the path for the images is
link="imagens/somepic.jpg"

And here is the AS..

///XML
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {

gridx=55;
gridy=55;
num=0;
for (i=0; i<3; i++)
for (j=0; j<3; j++) {
picHolder = this.firstChild.childNodes[i+(j*3)];
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+num, num);
thumbHolder._x=gridx*i;
thumbHolder._y=gridy*j;
num++;

thumbLoader = thumbholder.createEmptyMovieClip("thumbnail_image", 0);
thumbLoader.loadMovie(picHolder.attributes.link);
thumbHolder.main = picHolder.attributes.swf;

thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
};
//}
};

myPhoto.load("design.xml");



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


Re: [Flashcoders] Problems with XML

2005-12-16 Thread Jose Maria Barros
Thanks for the help Apostolos.

But the problem is somewhere in the asp page...



On 12/16/05, Apostolos Manolitzas <[EMAIL PROTECTED]> wrote:
> > > [..]
> > > > Here is the code that i use in flash:
> > > >
> > > > //XML
> > > >
> > > >
> > > > ementa_xml = new XML();
> > > > _root.myEmenta = new Array();
> > > > ementa_xml.load("ementa2.xml");
> > > > ementa_xml.onLoad = startEmenta;
> > > > ementa_xml.ignoreWhite = true;
> > > > _root.main11.ementa_txt = "";
> > > Here is a problem: You define the XML.onLoad-action AFTER loading the
> > > XML. In any way you must define
> > >
> > > ementa_xml.onLoad = startEmenta;
> > >
> > > before you call
> > >
> > > ementa_xml.load("ementa2.xml");
> > >
> > >
>
> Hi,
>
> try using an example like this:
>
> // taken from: http://www.kirupa.com/web/xml/XMLspecificIssues3.htm
> import mx.utils.Delegate;
> class foo {
>   var xmlData:XML;
> function loadXML(_xmlurl:String) {
> xmlData = new XML();
> var classRef:Object = this;
> xmlData.ignoreWhite = true;
> xmlData.onLoad = Delegate.create(this, parseXML);
> xmlData.load(_xmlurl);
> }
> function parseXML() {
> trace(xmlData.toString());
> }
> }
> ___
> 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] Problems with XML

2005-12-16 Thread Jose Maria Barros
Well...ive changed that to test..but i put like you said again...and
the problem still persists.

On 12/16/05, Roman Blöth <[EMAIL PROTECTED]> wrote:
> Jose Maria Barros schrieb:
> > Im having some problems loading an XML file into flash. The client
> > inserts in the databse some elements and then an ASP page creates the
> > xml file and flash reads it.
> [..]
> > Here is the code that i use in flash:
> >
> > //XML
> >
> >
> > ementa_xml = new XML();
> > _root.myEmenta = new Array();
> > ementa_xml.load("ementa2.xml");
> > ementa_xml.onLoad = startEmenta;
> > ementa_xml.ignoreWhite = true;
> > _root.main11.ementa_txt = "";
> Here is a problem: You define the XML.onLoad-action AFTER loading the
> XML. In any way you must define
>
> ementa_xml.onLoad = startEmenta;
>
> before you call
>
> ementa_xml.load("ementa2.xml");
>
>
>
> Regards,
> Roman.
> --
>
> ---
>   gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
>   t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
> ---
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problems with XML

2005-12-16 Thread Jose Maria Barros
Im having some problems loading an XML file into flash. The client
inserts in the databse some elements and then an ASP page creates the
xml file and flash reads it.

The problem is that sometimes the flash tells me "undefined"

i go to the database and the data is there..but in xml file it isnt.

There are some other sections of the website that uses the same
method, and its working good...

here have too URLs(one empty and other with info)

http://www.celeiro-dieta.pt/ementa2.xml
http://www.celeiro-dieta.pt/ementa.xml

Here is the code that i use in flash:

//XML


ementa_xml = new XML();
_root.myEmenta = new Array();
ementa_xml.load("ementa2.xml");
ementa_xml.onLoad = startEmenta;
ementa_xml.ignoreWhite = true;
_root.main11.ementa_txt = "";


function startEmenta(success_ementa) {

if (success_ementa == true) {
rootNode_ementa = ementa_xml.firstChild;
totalEmenta = rootNode_ementa.childNodes.length;
firstEmenta = rootNode_ementa.firstChild;
currentEmenta = firstEmenta;
tituloEmenta = currentEmenta.attributes.titulo_ementa;
currentIndex_ementa = 1;
dia_ementa = parseInt(currentEmenta.attributes.Dia,10);
dia_txt.text = dias[dia_ementa];
_root.main11.ementa_txt = _root.main11.ementa_txt+""+tituloEmenta+"";

for (a=1; a<=totalEmenta; a++) {
if (tituloEmenta != undefined) {
if ((tituloEmenta) == 
(currentEmenta.attributes.titulo_ementa)) {
_root.main11.ementa_txt =
_root.main11.ementa_txt+currentEmenta.attributes.texto_ementa+"";
} else {
tituloEmenta = 
currentEmenta.attributes.titulo_ementa;
_root.main11.ementa_txt = 
_root.main11.ementa_txt+""+currentEmenta.attributes.titulo_ementa+""+currentEmenta.attributes.texto_ementa+"";
}
}
currentEmenta = currentEmenta.nextSibling;
_root.main11.caixa._height += 100;
}
}
}
///XML END
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders