Re: [Flashcoders] ListBox component, get Data (2nd Value)?!

2006-09-01 Thread MJorge

Thanks for the reply, i will try that.

Many thanks,
Mário

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


Try this:
lista.addItem ({label:categorias[n + 1], data:categorias[n + 0],
otherData:categorias[n + 3]});

Lista.selectedItem.otherData;



-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of MJorge
Sent: Friday, September 01, 2006 10:47 AM
To: Flashcoders mailing list
Subject: [Flashcoders] ListBox component, get Data (2nd Value)?!

Need a tiny help here folks,

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

Like this:

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

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

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

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

Thanks,

--

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

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

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

This e-mail and any attachment(s) are intended for the specified
recipient(s) only and are legally protected.  If you have received this
communication in error, please "reply to" sender's e-mail address with
notification of the error and then destroy this message in all electronic
and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--

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

Working at: http://www.netliz.pt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ListBox component, get Data (2nd Value)?!

2006-09-01 Thread MJorge

Need a tiny help here folks,

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

Like this:

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

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

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

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

Thanks,

--

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

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

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


Re: [Flashcoders] Math Prob...

2006-08-31 Thread MJorge

You are the men...

Thanks, it´s working... at least for now.

On 8/31/06, Zeh Fernando <[EMAIL PROTECTED]> wrote:


> I have a listBox with 6 labels ( at the moment) and corresponding data.
> The
> labels are title of a image and the data is the URL of the image.

I'm not sure what the problem actually is since it wasn't stated on the
email, but if you mean that going to the next 'page' isn't working, it's
because of this line:

  for (z = valor; z <= 4 ; z++)

First it will go to 0-4, then it will try going to 5-4 which obviously
won't
work. You probably want to do so something like this:

  for (z = valor; z <= valor + 4; z++)

I hope that helps,

Zeh

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

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





--

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

Working at: http://www.netliz.pt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Math Prob...

2006-08-31 Thread MJorge

Here´s my prob:

I have a listBox with 6 labels ( at the moment) and corresponding data. The
labels are title of a image and the data is the URL of the image.

And at my stage i have a movieClip with 5 placeHolders and 5 text fields.
The idea is to show the image and title on those clips.

At the stage i also have a button to browse the listBox to display the
thumbnails at the clips...

So that at the start i have the first 5 labels and 5 images displayed at the
main clip and if i click forward i will get the next five...

This is the code i have so far...

function listaSet1 (valor)
{
   for (z = valor; z <= 4 ; z++)
   {
   foto = _root.categoria1.lista.getItemAt (z).data;
   tema = _root.categoria1.lista.getItemAt (z).label;
   if (foto)
   {
   _root.categoria1["blindBtn" + (z + 1)]._visible = false;
   _root.categoria1["foto" + (z)].loadMovie (foto);
   }
   if (tema)
   {
   _root.categoria1["tema" + (z)].text = tema;
   }
   }
}
valor=0;
listaSet1 (valor);

Thanks for any help,



--

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

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

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


[Flashcoders] Web service bindings/new field not updating...

2006-07-07 Thread MJorge

I have here a strange issue please.

I am consuming a web service using the component, today i haded to insert
another field in my WS and after refreshing at flash that new field appear
when i list all my services that i have in Flash.

After that i tried to bound that field to a textInput and i notice that the
new field didn´t appear when clicking bindings in the component?

How can i solve this? Thanks.

--

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

Working at: http://www.netliz.pt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem while trying to connect to webservice...

2006-07-04 Thread MJorge

Hello,

I´m getting the following error message while trying to connect and consume
a web service:

"There are no valid services/ports in the WSDL file"

What does this mean? How can i solve it.

Thanks.

--

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

Working at: http://www.netliz.pt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Huge Prob - Clear / Delete Array... :(

2006-03-03 Thread MJorge
I´m loading some vars from a php database. The prob is that i have to load
different php files (categories) and has i am using an Array to push my
database values, btu when i needed to change the ategorie, i load my php
again but the Arrays does not delete it always has the same values... :(

Code:

myDados = new LoadVars ();
myDados.onLoad = function ()
{
for (var c in this)
{
if (c != "onLoad")
{
dados.push (this[c]);
}
}
trace ("  " + dados);
dados.pop ();
myLength = dados.length;
trace (myLength);
i = 0;
//assignDados (i);
};
function carregaDados (cat)
{
dados = null;
dados = new Array ();
myDados.load ("http://www.myurl.com/myfile.php?serie="; + cat);
}

The function carregaDados is the one i run when i want to load new values or
a new categorie froom my DB. the prob is that i have tried everything to
delete the old Array to update with new values, but no luck.

Any help please?

--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] WebServices and base64Binary

2006-02-15 Thread MJorge
I´m consuming a webService and there is one result that gives me a photo in
"base64Binary" ? How can i view this image with Flash? Is it possible
without serverSide code?

Thks.

--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Dynamic width of image...

2006-02-08 Thread MJorge
Thanks for the help everyone...

On 2/8/06, Ryan Potter <[EMAIL PROTECTED]> wrote:
>
> You could use a movie clip loader too.
>
> Code below:
>
>
> init();
>
> function init(){
> trace("code init");
>
> this.createEmptyMovieClip("holder", this.getNextHighestDepth());
> this.imageLoader = new MovieClipLoader();
> this.imageLoader.addListener(this);
>
> loadImg("MyImageName.jpg");
> }
>
>
> function loadImg(src:String):Void{
> this.imageLoader.loadClip(src, this.holder);
> }
>
>
> function onLoadStart(target:MovieClip){
> target._xscale = target._yscale = 50;
> }
>
> function onLoadInit(target:MovieClip){
> var maxWidth = 163;
> if (this._width > maxWidth)
> {
> scaleFactor = maxWidth / target._width;
> trace("Scale Factor : "+scaleFactor);
> this._xscale = Math.floor (100 * scaleFactor);
> this._yscale = Math.floor (100 * scaleFactor);
> }
> }
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of MJorge
> Sent: Wednesday, February 08, 2006 6:54 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Dynamic width of image...
>
> I had to go with another solution...
>
> I have the same code at my Clip but now i have it at my lybrary and i´m
> using attachMovie to load it to my stage...
>
> Thanks.
>
> On 2/8/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
> >
> > And if you rescale the emptyclip back  to 100% before loading another
> > image...
> >
> >
> > :-)
> >
> > Eric.
> >
> > MJorge wrote:
> >
> > >I know that my approach is working, the prob is that i have a button to
> > load
> > >another image to the clip. That´s when all the problems come...
> > >
> > >The width value is not respected anymore. That´s my prob.
> > >
> > >
> > >
> > >On 2/8/06, erixtekila <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >>_xscale and _yscale should be your friends.
> > >>Your approach is good btw.
> > >>
> > >>
> > >>
> > >>>I am loading dynamically some images to a emptyClip. The images have
> > >>>different width anh height values each one. What i wanted is that my
> > >>>Clip
> > >>>(or image after loading) had a maximum width of 163
> > >>>
> > >>>I am using this code at my Clip but it´s not working correctly. Can
> > >>>anyone
> > >>>help?
> > >>>
> > >>>onClipEvent (data) {
> > >>>maxWidth = 163;
> > >>>if (this._width > maxWidth)
> > >>>{
> > >>>scaleFactor = maxWidth / this._width;
> > >>>this._width = Math.floor (this._width * scaleFactor);
> > >>>this._height = Math.floor (this._height * scaleFactor);
> > >>>}
> > >>>}
> > >>>
> > >>>
> > >>>
> > >>---
> > >>erixtekila
> > >>http://blog.v-i-a.net/
> > >>
> > >>___
> > >>Flashcoders mailing list
> > >>Flashcoders@chattyfig.figleaf.com
> > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >--
> > >
> > >Mário Jorge
> > >Icq: 164987050
> > >Msn + Mail: [EMAIL PROTECTED]
> > >Web: http://www.beedigital.net
> > >Blog: http://www.beedigital.net/blog
> > >___
> > >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
> >
>
>
>
> --
> 
> Mário Jorge
> Icq: 164987050
> Msn + Mail: [EMAIL PROTECTED]
> Web: http://www.beedigital.net
> Blog: http://www.beedigital.net/blog
> ___
> 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
>



--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic width of image...

2006-02-08 Thread MJorge
I had to go with another solution...

I have the same code at my Clip but now i have it at my lybrary and i´m
using attachMovie to load it to my stage...

Thanks.

On 2/8/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
>
> And if you rescale the emptyclip back  to 100% before loading another
> image...
>
>
> :-)
>
> Eric.
>
> MJorge wrote:
>
> >I know that my approach is working, the prob is that i have a button to
> load
> >another image to the clip. That´s when all the problems come...
> >
> >The width value is not respected anymore. That´s my prob.
> >
> >
> >
> >On 2/8/06, erixtekila <[EMAIL PROTECTED]> wrote:
> >
> >
> >>_xscale and _yscale should be your friends.
> >>Your approach is good btw.
> >>
> >>
> >>
> >>>I am loading dynamically some images to a emptyClip. The images have
> >>>different width anh height values each one. What i wanted is that my
> >>>Clip
> >>>(or image after loading) had a maximum width of 163
> >>>
> >>>I am using this code at my Clip but it´s not working correctly. Can
> >>>anyone
> >>>help?
> >>>
> >>>onClipEvent (data) {
> >>>maxWidth = 163;
> >>>if (this._width > maxWidth)
> >>>{
> >>>scaleFactor = maxWidth / this._width;
> >>>this._width = Math.floor (this._width * scaleFactor);
> >>>this._height = Math.floor (this._height * scaleFactor);
> >>>}
> >>>}
> >>>
> >>>
> >>>
> >>---
> >>erixtekila
> >>http://blog.v-i-a.net/
> >>
> >>___
> >>Flashcoders mailing list
> >>Flashcoders@chattyfig.figleaf.com
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>
> >>
> >
> >
> >
> >--
> >
> >Mário Jorge
> >Icq: 164987050
> >Msn + Mail: [EMAIL PROTECTED]
> >Web: http://www.beedigital.net
> >Blog: http://www.beedigital.net/blog
> >___
> >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
>



--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic width of image...

2006-02-08 Thread MJorge
I know that my approach is working, the prob is that i have a button to load
another image to the clip. That´s when all the problems come...

The width value is not respected anymore. That´s my prob.



On 2/8/06, erixtekila <[EMAIL PROTECTED]> wrote:
>
> _xscale and _yscale should be your friends.
> Your approach is good btw.
>
> > I am loading dynamically some images to a emptyClip. The images have
> > different width anh height values each one. What i wanted is that my
> > Clip
> > (or image after loading) had a maximum width of 163
> >
> > I am using this code at my Clip but it´s not working correctly. Can
> > anyone
> > help?
> >
> > onClipEvent (data) {
> > maxWidth = 163;
> > if (this._width > maxWidth)
> > {
> > scaleFactor = maxWidth / this._width;
> > this._width = Math.floor (this._width * scaleFactor);
> > this._height = Math.floor (this._height * scaleFactor);
> > }
> > }
> >
> ---
> erixtekila
> http://blog.v-i-a.net/
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Dynamic width of image...

2006-02-08 Thread MJorge
Hello,

I am loading dynamically some images to a emptyClip. The images have
different width anh height values each one. What i wanted is that my Clip
(or image after loading) had a maximum width of 163

I am using this code at my Clip but it´s not working correctly. Can anyone
help?

onClipEvent (data) {
maxWidth = 163;
if (this._width > maxWidth)
{
scaleFactor = maxWidth / this._width;
this._width = Math.floor (this._width * scaleFactor);
this._height = Math.floor (this._height * scaleFactor);
}
}

Thanks.

--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Accordion Menu / XML Tutorial

2006-02-02 Thread MJorge
*
*
--
 Hello,

I´m in really need of a tutorial or working sample of a menu using XML, like
the one´s from : http://store.jumpeye.com/accmenu/help.html

Can anyone give me a link with a working sample or tutorial?

Thanks.


--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] WebServices Connector / Error Msg ´s

2006-02-01 Thread MJorge
Hi,

I´m using the WebService Connector to get some data from a service. I need
to have three params to get the Data, but the problem is that two of those
params are a username and a password. Whenever the pass and the user name
are incorrect it gives me an error that can´t load ("
http://www.myPage.com/services.php";).

My question is: How can i control the component (Connector) so that i can
create a Text Message informing the user that the password or the username
is incorrect?

I was thinking in having an EventListener to the component but i´m not
having many luck with my code

This is what i have till now:

user.text = "1";
pass.text = "123456";
numerador.text = "51859";
Listener.onResult = function (result)
{
trace ("Result:" + result);
};
Listener.onFault = function (fault)
{
trace ("fault: " + fault.faultString);
};
Listener.onStatus = function (info)
{
trace ("info: " + info);
};
Listener = new Object ();
ws.addEventListener (Listener);


Thanks for the help.

--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Depth prob...

2006-01-30 Thread MJorge
Ok, it´s working Thanks for the tip Jason...

On 1/30/06, MJorge <[EMAIL PROTECTED]> wrote:
>
> Thks,
>
> So i´ll have to create a movieClip for each of my files i´m loading and
> make tha attachMovie to them separately...
>
> On 1/30/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> >
> > You can only attach one movie clip per movie clip instance - so just
> > create more empty movie clips to attach them to.  If you attach a movie clip
> > to an existing movie clip, the original gets overwritten.
> >
> > Jason Merrill
> >
> >
> >
> >
> >
> >
> >
> >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto: [EMAIL PROTECTED] Behalf Of MJorge
> > >>Sent: Monday, January 30, 2006 12:32 PM
> > >>To: Flashcoders mailing list
> > >>Subject: [Flashcoders] Depth prob...
> > >>
> > >>
> > >>I´m loading the vars from two different databases to Flash.
> > >>
> > >>But i´m having some prob´s with my "attachMovie"  and the
> > >>depth cause it
> > >>will delete the other attachMovie it run´s at first
> > >>
> > >>Can someone help please?
> > >>
> > >>
> > >>myVar = new LoadVars ();
> > >>myNewVar = new LoadVars ();
> > >>nomes = new Array ();
> > >>newNomes = new Array ();
> > >>//
> > >>///
> > >>myVar.onLoad = function ()
> > >>{
> > >>for (var a in this)
> > >>{
> > >>if (a != "onLoad")
> > >>{
> > >> nomes.push (this[a]);
> > >>}
> > >>}
> > >>ok = true;
> > >>l = nomes.length;
> > >>i = 0;
> > >>howManyNew = ((nomes.length) - 1);
> > >>for (n = 0; n < howManyNew; n += 8)
> > >>{
> > >>mc = attachMovie ("teste_lib", "mainClip" + i, i++);
> > >>mc.tit.text = nomes[n + 7];
> > >>mc._x = -227;
> > >>mc._y = (i * 6) - 320;
> > >>i++;
> > >>}
> > >>};
> > >>myNewVar.onLoad = function ()
> > >>{
> > >>for (var b in this)
> > >>{
> > >>if (b != "onLoad")
> > >>{
> > >>newNomes.push (this[b]);
> > >>}
> > >>}
> > >>newOk = true;
> > >>s = 0;
> > >>len = ((newNomes.length) - 1);
> > >>for (v = 0; v < len; v += 8)
> > >>{
> > >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++);
> > >>my_mc.tit.text = newNomes[v + 7];
> > >>my_mc._x = -30;
> > >>my_mc._y = (s * 6) - 320;
> > >>s++;
> > >>}
> > >>};
> > >>myNewVar.load ("http://www.mypage.com/file.php";);
> > >>myVar.load (" http://www.mypage.com/file2.php";);
> > >>
> > >>--
> > >>
> > >>Mário Jorge
> > >>Icq: 164987050
> > >>Msn + Mail: [EMAIL PROTECTED]
> > >>Web: http://www.beedigital.net
> > >>Blog: http://www.beedigital.net/blog
> > >>___
> > >>Flashcoders mailing list
> > >>Flashcoders@chattyfig.figleaf.com
> > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > NOTICE:
> > This message is for the designated recipient only and may contain
> > privileged or confidential information. If you have received it in error,
> > please notify the sender immediately and delete the original. Any other use
> > of this e-mail by you is prohibited.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> 
> Mário Jorge
> Icq: 164987050
> Msn + Mail: [EMAIL PROTECTED]
> Web: http://www.beedigital.net
> Blog: http://www.beedigital.net/blog
>



--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Depth prob...

2006-01-30 Thread MJorge
Thks,

So i´ll have to create a movieClip for each of my files i´m loading and make
tha attachMovie to them separately...

On 1/30/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> You can only attach one movie clip per movie clip instance - so just
> create more empty movie clips to attach them to.  If you attach a movie clip
> to an existing movie clip, the original gets overwritten.
>
> Jason Merrill
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] Behalf Of MJorge
> >>Sent: Monday, January 30, 2006 12:32 PM
> >>To: Flashcoders mailing list
> >>Subject: [Flashcoders] Depth prob...
> >>
> >>
> >>I´m loading the vars from two different databases to Flash.
> >>
> >>But i´m having some prob´s with my "attachMovie"  and the
> >>depth cause it
> >>will delete the other attachMovie it run´s at first
> >>
> >>Can someone help please?
> >>
> >>
> >>myVar = new LoadVars ();
> >>myNewVar = new LoadVars ();
> >>nomes = new Array ();
> >>newNomes = new Array ();
> >>//
> >>///
> >>myVar.onLoad = function ()
> >>{
> >>for (var a in this)
> >>{
> >>if (a != "onLoad")
> >>{
> >>nomes.push (this[a]);
> >>}
> >>}
> >>ok = true;
> >>l = nomes.length;
> >>i = 0;
> >>howManyNew = ((nomes.length) - 1);
> >>for (n = 0; n < howManyNew; n += 8)
> >>{
> >>mc = attachMovie ("teste_lib", "mainClip" + i, i++);
> >>mc.tit.text = nomes[n + 7];
> >>mc._x = -227;
> >>mc._y = (i * 6) - 320;
> >>i++;
> >>}
> >>};
> >>myNewVar.onLoad = function ()
> >>{
> >>for (var b in this)
> >>{
> >>if (b != "onLoad")
> >>{
> >>newNomes.push (this[b]);
> >>}
> >>}
> >>newOk = true;
> >>s = 0;
> >>len = ((newNomes.length) - 1);
> >>for (v = 0; v < len; v += 8)
> >>{
> >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++);
> >>my_mc.tit.text = newNomes[v + 7];
> >>my_mc._x = -30;
> >>my_mc._y = (s * 6) - 320;
> >>s++;
> >>}
> >>};
> >>myNewVar.load ("http://www.mypage.com/file.php";);
> >>myVar.load ("http://www.mypage.com/file2.php";);
> >>
> >>--
> >>
> >>Mário Jorge
> >>Icq: 164987050
> >>Msn + Mail: [EMAIL PROTECTED]
> >>Web: http://www.beedigital.net
> >>Blog: http://www.beedigital.net/blog
> >>___
> >>Flashcoders mailing list
> >>Flashcoders@chattyfig.figleaf.com
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> NOTICE:
> This message is for the designated recipient only and may contain
> privileged or confidential information. If you have received it in error,
> please notify the sender immediately and delete the original. Any other use
> of this e-mail by you is prohibited.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Depth prob...

2006-01-30 Thread MJorge
I´m loading the vars from two different databases to Flash.

But i´m having some prob´s with my "attachMovie"  and the depth cause it
will delete the other attachMovie it run´s at first

Can someone help please?


myVar = new LoadVars ();
myNewVar = new LoadVars ();
nomes = new Array ();
newNomes = new Array ();
/
myVar.onLoad = function ()
{
for (var a in this)
{
if (a != "onLoad")
{
nomes.push (this[a]);
}
}
ok = true;
l = nomes.length;
i = 0;
howManyNew = ((nomes.length) - 1);
for (n = 0; n < howManyNew; n += 8)
{
mc = attachMovie ("teste_lib", "mainClip" + i, i++);
mc.tit.text = nomes[n + 7];
mc._x = -227;
mc._y = (i * 6) - 320;
i++;
}
};
myNewVar.onLoad = function ()
{
for (var b in this)
{
if (b != "onLoad")
{
newNomes.push (this[b]);
}
}
newOk = true;
s = 0;
len = ((newNomes.length) - 1);
for (v = 0; v < len; v += 8)
{
my_mc = attachMovie ("newTesteLib", "myClip" + s, s++);
my_mc.tit.text = newNomes[v + 7];
my_mc._x = -30;
my_mc._y = (s * 6) - 320;
s++;
}
};
myNewVar.load ("http://www.mypage.com/file.php";);
myVar.load ("http://www.mypage.com/file2.php";);

--

Mário Jorge
Icq: 164987050
Msn + Mail: [EMAIL PROTECTED]
Web: http://www.beedigital.net
Blog: http://www.beedigital.net/blog
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders