Re: [Flashcoders] Scrollpane in the arse

2005-11-30 Thread Mike Boutin
I have tried using both content (which is read-only) and contentPath 
(which seems to target a enternal source, or a movieclip in the library 
with a linkage set).  The problem is I am dynamically creating the clips 
first on the stage, then placing them in the scrollpane, so it does not 
contain a linkage in the library.




Steve Krichten wrote:


RTFM :)

With the V2 component you use content and contentpath properties, read 
about those in the docs and you will have your answer.


-Steve
___
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] best place to start building flash 8 components

2005-11-30 Thread Mike Boutin
Yes I have done quite a bit of testing and searching different web sites 
including all the standard goto sites like actionscript.org / 
ultrashock.com etc...  It seems like I should be able to use 
scrollpane.contentPath = _root.productHolder;  but this doesnt work.


Steve Krichten wrote:

Flash 8 made no major updates to the components so any tutotials for 
flash mx 2004 components will be relevant.  Ultrashock.com has some 
prety good ones.


-Steve
___
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] Scrollpane in the arse

2005-11-30 Thread Mike Boutin
So I should be able to do something like this rather than putting all 
the clips in a empty_mc first:



myScrollpane.attachMovie(productDisplay, product_+i, i, {_x:700, 
_y:pro_startY});


?



Steve Krichten wrote:

Sorry, you can't do that with the V2 component.  However I don't see 
why you want to... The way it works now is you set the contentPath to 
the linkage ID of a  clip in the library, then attach the individual 
items to scrollPane.content.  To me this makes more sense this way 
than the old way... why build content outside the pane then put it 
inside? ... instead just build it directly inside the pane from the 
start.


-Steve

-
I have tried using both content (which is read-only) and contentPath 
(which seems to target a enternal source, or a movieclip in the 
library with a linkage set). The problem is I am dynamically creating 
the clips first on the stage, then placing them in the scrollpane, so 
it does not contain a linkage in the library.

___
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] Scrollpane in the arse

2005-11-30 Thread Mike Boutin

Derek Vadneau wrote:


_root.productPane.contentPath = productHolder;

The contentPath code will do the attachMovie for you.  You either have to 
specify a symbol name from the library or a URL.



Derek Vadneau

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 5:10 PM
Subject: [Flashcoders] Scrollpane in the arse


Hey,
This works for me
 

productPane.contentPath = productDisplay where productDisplay is the 
identifier int he library.  But what if I want to attach 12 of that 
movieclip into the scrollpane rather than just 1? running it in a loop 
seems to do nothing





Im having this problem with the scrollpane component in flash 8.  This
is my code:

_root.attachMovie(empty_mc, productHolder, 1);
_root.productPane.setScrollContent( _root.productHolder );



This code works perfectly with the scrollpane from mx.  I am trying to
accomplish the same thing with the flash 8 component but having no
luck.  Is this even possible?


Thanks!


___
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] Scrollpane in the arse

2005-11-30 Thread Mike Boutin
All that does is move the movieclip inside the pane around.  I want to 
Duplicate that movieclip a bunch of times, not move it.  This must be 
possible as it works fine with the old component.


var pro_startY:Number = 0;
for (i=0;i10;i++){
   //Create movieclip object
   //productPane.attachMovie(productDisplay, product_+i, i, {_x:0, 
_y:pro_startY});

   //pro_startY += 160;
}

productPane.contentPath = productDisplay only adds 1 movieclip

JesterXL wrote:


Close!  Do what Derek said:

myScrollpane.contentPath = productDisplay;
myScrollpane.move(700, pro_startY);

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 5:55 PM
Subject: Re: [Flashcoders] Scrollpane in the arse


So I should be able to do something like this rather than putting all 
the clips in a empty_mc first:



myScrollpane.attachMovie(productDisplay, product_+i, i, {_x:700, 
_y:pro_startY});


?



Steve Krichten wrote:

 

Sorry, you can't do that with the V2 component.  However I don't see 
why you want to... The way it works now is you set the contentPath to 
the linkage ID of a  clip in the library, then attach the individual 
items to scrollPane.content.  To me this makes more sense this way 
than the old way... why build content outside the pane then put it 
inside? ... instead just build it directly inside the pane from the 
start.


-Steve

-
I have tried using both content (which is read-only) and contentPath 
(which seems to target a enternal source, or a movieclip in the 
library with a linkage set). The problem is I am dynamically creating 
the clips first on the stage, then placing them in the scrollpane, so 
it does not contain a linkage in the library.

___
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


Re: [Flashcoders] Scrollpane in the arse

2005-11-30 Thread Mike Boutin
Thanks for the example, except I need 10 productDisplay clips in 1 
scrollpane.



JesterXL wrote:


Then try:

var pro_startY= 0;
for(i=0; i10; i++)
{
   var ref:ScrollPane = ScrollPane(attachMovie(ScrollPane, pane + i, 
i));

   ref.move(0, pro_startY);
   ref.contentPath = productDisplay;
   pro_startY += 160;
}

That'll make 10 panes, each with a productDisplay loaded in it.

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 6:06 PM
Subject: Re: [Flashcoders] Scrollpane in the arse


All that does is move the movieclip inside the pane around.  I want to
Duplicate that movieclip a bunch of times, not move it.  This must be
possible as it works fine with the old component.

var pro_startY:Number = 0;
for (i=0;i10;i++){
   //Create movieclip object
   //productPane.attachMovie(productDisplay, product_+i, i, {_x:0,
_y:pro_startY});
   //pro_startY += 160;
}

productPane.contentPath = productDisplay only adds 1 movieclip

JesterXL wrote:

 


Close!  Do what Derek said:

myScrollpane.contentPath = productDisplay;
myScrollpane.move(700, pro_startY);

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 5:55 PM
Subject: Re: [Flashcoders] Scrollpane in the arse


So I should be able to do something like this rather than putting all
the clips in a empty_mc first:


myScrollpane.attachMovie(productDisplay, product_+i, i, {_x:700,
_y:pro_startY});

?



Steve Krichten wrote:



   


Sorry, you can't do that with the V2 component.  However I don't see
why you want to... The way it works now is you set the contentPath to
the linkage ID of a  clip in the library, then attach the individual
items to scrollPane.content.  To me this makes more sense this way
than the old way... why build content outside the pane then put it
inside? ... instead just build it directly inside the pane from the
start.

-Steve

-
I have tried using both content (which is read-only) and contentPath
(which seems to target a enternal source, or a movieclip in the
library with a linkage set). The problem is I am dynamically creating
the clips first on the stage, then placing them in the scrollpane, so
it does not contain a linkage in the library.
___
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 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] Scrollpane in the arse

2005-11-30 Thread Mike Boutin

Perfect! thanks it works great!

Mike Boutin wrote:

Thanks for the example, except I need 10 productDisplay clips in 1 
scrollpane.



JesterXL wrote:


Then try:

var pro_startY= 0;
for(i=0; i10; i++)
{
   var ref:ScrollPane = ScrollPane(attachMovie(ScrollPane, pane + 
i, i));

   ref.move(0, pro_startY);
   ref.contentPath = productDisplay;
   pro_startY += 160;
}

That'll make 10 panes, each with a productDisplay loaded in it.

- Original Message - From: Mike Boutin 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 6:06 PM
Subject: Re: [Flashcoders] Scrollpane in the arse


All that does is move the movieclip inside the pane around.  I want to
Duplicate that movieclip a bunch of times, not move it.  This must be
possible as it works fine with the old component.

var pro_startY:Number = 0;
for (i=0;i10;i++){
   //Create movieclip object
   //productPane.attachMovie(productDisplay, product_+i, i, {_x:0,
_y:pro_startY});
   //pro_startY += 160;
}

productPane.contentPath = productDisplay only adds 1 movieclip

JesterXL wrote:

 


Close!  Do what Derek said:

myScrollpane.contentPath = productDisplay;
myScrollpane.move(700, pro_startY);

- Original Message - From: Mike Boutin 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 30, 2005 5:55 PM
Subject: Re: [Flashcoders] Scrollpane in the arse


So I should be able to do something like this rather than putting all
the clips in a empty_mc first:


myScrollpane.attachMovie(productDisplay, product_+i, i, {_x:700,
_y:pro_startY});

?



Steve Krichten wrote:



  


Sorry, you can't do that with the V2 component.  However I don't see
why you want to... The way it works now is you set the contentPath to
the linkage ID of a  clip in the library, then attach the individual
items to scrollPane.content.  To me this makes more sense this way
than the old way... why build content outside the pane then put it
inside? ... instead just build it directly inside the pane from the
start.

-Steve

-
I have tried using both content (which is read-only) and contentPath
(which seems to target a enternal source, or a movieclip in the
library with a linkage set). The problem is I am dynamically creating
the clips first on the stage, then placing them in the scrollpane, so
it does not contain a linkage in the library.
___
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 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] xml, atomic values, special chars

2005-12-01 Thread Mike Boutin

Have you tried somethign like

a attrib=name1![CDATA[This is the atmoic value. It's so cool]]/a

Ramon Tayag wrote:


Hey everyone,

How do I properly render text that was pulled from an atomic value?

For example, here's the node:
a attrib=name1This is the atomic value.  It's so cool./a

Getting the child node of that node a and tracing it in flash gives me:
This is the atomic value.  Itapos;s so cool.

How do I get it to print out the normal apostrophe?

Thanks,
--
Ramon Miguel M. Tayag
___
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] Navigate through XML

2005-12-01 Thread Mike Boutin
Does anyone have any good links for explaining how to navigate through 
an xml object?

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


Re: [Flashcoders] Navigate through XML

2005-12-01 Thread Mike Boutin
Perfect, I have used xpath before with Open Laszlo and wasnt aware it 
could be used in Flash as well. Thanks!


Merrill, Jason wrote:


My current preferred method:

http://www.xfactorstudio.com/ActionScript/AS2/XPath/

My future preferred method will be the Actionscript 3 ECMA method.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com





 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, December 01, 2005 12:26 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Navigate through XML

Does anyone have any good links for explaining how to navigate through
an xml object?
___
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

 



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


[Flashcoders] (no subject)

2005-12-01 Thread Mike Boutin
I have downloaded XPath implementation for AS2. Where do I extract the 
*.as files to? There seems to be no documentation on how to install.

http://www.xfactorstudio.com/ActionScript/AS2/XPath/

Thanks!

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


Re: [Flashcoders] (no subject)

2005-12-01 Thread Mike Boutin
This works great, but this does not have syntax highlighting, is that 
another issue in itself?




Chris Hill wrote:


http://ubergeek.tv/article.php?pid=90


Mike Boutin wrote:

I have downloaded XPath implementation for AS2. Where do I extract 
the *.as files to? There seems to be no documentation on how to install.

http://www.xfactorstudio.com/ActionScript/AS2/XPath/

Thanks!

___
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] Targeting when using for loop

2005-12-01 Thread Mike Boutin
I am trying to target an object inside my scrollpane.  This is what im 
trying to achieve:


my_pane.content[product_+i].[color_+j].loadMovie

What is the correct way to target a movieclip in this way?


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


[Flashcoders] preload loadvar xml return

2005-12-01 Thread Mike Boutin

I am doing a loadVars call to a php file, that then returns a bunch of xml.

Is it possible to show a preloader for this load?

var catalog_xml:XML = new XML();
   catalog_xml.ignoreWhite = true;
   catalog_xml.onLoad = function(success:Boolean) {
   if (success) {

} else {

}
sendAndLoad(catalog.php, catalog_xml);



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


Re: [Flashcoders] preload loadvar xml return

2005-12-01 Thread Mike Boutin
Thanks! The problem I have seems to be that the flash player locks up 
for about 1-2 seconds from the time I make the request, to the time I 
get the xml data back.  Is this something Ill just have to live with or 
is it fixable?


JesterXL wrote:

Theoretically, yes.  Both LoadVars  XML both have a getBytesLoaded  
getBytesTotal.  However, in practice, neither took long enough to actually 
justify the time in creating a preloader for them. I'd be lucky to even get 
it to show a percentage.


Therefore, you're better of just showing a loading progress bar, 
(ProgressBar.indeterminate = true):

- show the progress bar
- 1 frame later, load your XML
- when the XML arrives, update your progress bar to done
- 2 seconds later, kill the progress bar

People can argue that for LoadVars  XML calls to files larger than 200k, 
it's work it, but to me, people who think Flash can parse such loads without 
locking the computer are the types of people who are well aware of what they 
are doing (parsing data across frames to prevent Flash locking up) and thus 
already know how to create progress bars.


The common use case is not them, however, most are in the less than 100k 
range.


- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 01, 2005 7:16 PM
Subject: [Flashcoders] preload loadvar xml return


I am doing a loadVars call to a php file, that then returns a bunch of xml.

Is it possible to show a preloader for this load?

var catalog_xml:XML = new XML();
   catalog_xml.ignoreWhite = true;
   catalog_xml.onLoad = function(success:Boolean) {
   if (success) {

} else {

}
sendAndLoad(catalog.php, catalog_xml);



Thanks
___
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] preload loadvar xml return

2005-12-01 Thread Mike Boutin
Perfect, thanks for all your help.  Ill see what I can do to cut the 
size out.  If there is whitespace in the xml being sent back, could that 
affect the parse time?


JesterXL wrote:

The lock up is the xml.parseXML running.  The parseXML function is the bane 
of all Flash developers, and although many enlightened individuals have 
posted about various ways of handling it in Flash, the most trusted way is 
to go straight for the source; the XML it's parsing.  If that's not a 
possibility, modifying the XML structure, then sure, you can parse manually 
across frames, but I'd rather roll down a hill of razor blades landing in a 
salt-pit.


Therefore, you can use the common XML parsing techniques to expediate the 
XML parsing:
- use Flash 7 or above for XML parsing; Flash Player 6 was the big 
optimizer, and 7 improved on it yet again.  8 you just get side-help in that 
code overall is optimized.

- use attributes in your XML vs. nodes.
// bad
node
 childvalue1/child
 childvalue2/child
node

// good
node att1=value1 att2=value2 /

- make sure if you are utilizing the data, you make references to childNodes 
and other keyboards like attributes, etc.  Those getter/setter properties 
actually re-parse the XML internally each time your re-access them.


There are others, but those are best ones.

Again, the reason I mentioned to wait 1 frame is to ensure the stage updates 
to actually show the preload bar before the XML/LoadVars parseing locks up 
your display.  In a lock, at least a progress bar is showing.


As far as lessenign the LoadVars load, well, you can parse it yoursel in 
onData using the string methods, but you'll still probably run into 
bottlenecks.


Attack the problem at it's source; either get the server to give you smaller 
chunks of info, easier to parse, or use Remoting where possible.


- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 01, 2005 7:40 PM
Subject: Re: [Flashcoders] preload loadvar xml return


Thanks! The problem I have seems to be that the flash player locks up
for about 1-2 seconds from the time I make the request, to the time I
get the xml data back.  Is this something Ill just have to live with or
is it fixable?

JesterXL wrote:

 


Theoretically, yes.  Both LoadVars  XML both have a getBytesLoaded 
getBytesTotal.  However, in practice, neither took long enough to actually
justify the time in creating a preloader for them. I'd be lucky to even get
it to show a percentage.

Therefore, you're better of just showing a loading progress bar,
(ProgressBar.indeterminate = true):
- show the progress bar
- 1 frame later, load your XML
- when the XML arrives, update your progress bar to done
- 2 seconds later, kill the progress bar

People can argue that for LoadVars  XML calls to files larger than 200k,
it's work it, but to me, people who think Flash can parse such loads 
without
locking the computer are the types of people who are well aware of what 
they

are doing (parsing data across frames to prevent Flash locking up) and thus
already know how to create progress bars.

The common use case is not them, however, most are in the less than 100k
range.

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 01, 2005 7:16 PM
Subject: [Flashcoders] preload loadvar xml return


I am doing a loadVars call to a php file, that then returns a bunch of xml.

Is it possible to show a preloader for this load?

var catalog_xml:XML = new XML();
  catalog_xml.ignoreWhite = true;
  catalog_xml.onLoad = function(success:Boolean) {
  if (success) {

} else {

}
sendAndLoad(catalog.php, catalog_xml);



Thanks
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Change object in xpath

2005-12-01 Thread Mike Boutin
productNames = XPath.selectNodes(catalog_xml, 
/shirtBin/shirt/name/text());



var ttTotal = XPath.selectNodes(catalog_xml,/shirtBin/shirt[price12.00]);

Is it possible to say do another XPath query and get back a list of 
results.  Then pass that xml object (ttTotal) through instead of 
catalog_xml?


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


[Flashcoders] HTML in XML

2005-12-06 Thread Mike Boutin

I am bring in some html text to show in flash in an xml file like this:


description id=0
   title![CDATA[bpicture 0/b]]/title
/description

When i trace it back in flash, it shows up like this:

lt;bgt;picture 0lt;/bgt;

How can I keep it show it shows the html tags because it wont show up in 
flash as bolded...




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


[Flashcoders] Tabbing

2005-12-07 Thread Mike Boutin
I a user login but the input fields do not all sit in the same 
movieclip.  The structure is as such: 
userMovie.user_input.inputText.text, passMovie.pass_input.inputText.text


How do I set the fields so I can tab through them?  And also will doing 
this cause the onFocus function for each textfield to be called?


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


Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Yes this is how I have been fixing the problem.  Seems like a pain to 
have to use both methods, rather than just using the xpath.



Morten Barklund Shockwaved wrote:


Merrill, Jason wrote:


[...]

Problem overview: using Xpath, HTML tags inside of XML does not render,
even with CDATA tags applied.

[...]

Does the same thing with a regular dynamic text field.  If I hard code
the same string directly in the .fla, it renders properly in the text
field and/or component. The string from XPath returns, interestingly
enough, looks like this:

   Welcome to the lt;a
href=apos;http://www.fda.gov/cdrh/apos;gt;Center for Devices of
Radiological Healthlt;/agt;. More text...

Not sure why Xpath is changing the string from /a. to lt;/agt;,
but Flash doesn't like it obviously.  Anyone come across this before and
have a solution?



If you used the regular XML and XMLNode-classes in Flash, you'd come 
to the same problem if you tried to insert the node directly - and 
didn't use the nodeValue-property of the XMLNode-object.


If your XPath implementation returns XMLNode-object, just use the 
my_xmlnode.nodeValue-property and insert this in the textfield.


If the XPath implementation returns a string and this string is the 
toString-value of the XMLNode (which the above is) and *not* the 
nodeValue-property, then the writer of the XPath implementation should 
read his manual once again :)


Hope that helps. :)



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


Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Still wasnt able to get it working.  I had to resort to using nodeValue 
instead. pain in the ass


Mike Boutin
Juicy Studios

Merrill, Jason wrote:


Quote: http://www.w3.org/TR/xpath#section-Expressions
 



I can never seem to make heads or tails of the w3.org documentation -
maybe I'm just dumb, but it's always information overload to me. 


Mike, since we seem to be having the exact same problem, did you get it
working?  If so, can you send a code snippet of what works?  


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com







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

 



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


Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
I was able to use xpath to return titlesome html/title then use 
nodeValue on that.


but I *wish* i could just do /xmlnode/xmlnode/text() and cut nodeValue 
out but i dont think its possible.




Morten Barklund Shockwaved wrote:


Mike Boutin wrote:

Still wasnt able to get it working.  I had to resort to using 
nodeValue instead. pain in the ass



Why is it a workaround? Doesn't the XPath return the XMLNode? You 
can't just use the regular toString-method of the XMLNode-object - 
that'll return the wrong encoding. The nodeValue *is* the only proper 
way to fetch the correct textdata without encoding.


If the XPath-method, that you use, is supposed to return the string 
value of a text element, then using nodeValue is a hack. But if you 
only use an XPath-method which is supposed to return an XMLNode, 
then it is *not* a hack, but doing exactly, what you are supposed to 
do. I haven't used this XPath-extension, but maybe I should check i out.




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


Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin

string = XPath.selectNodes(my_xml, /path/to/nodes).nodeValue;

This results in undefined.

Johannes Nel wrote:


try dropping the last slash in ur xpath statement

On 12/7/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 


Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used this XPath-extension, but maybe I should check i out.
   


Morten, I'm not sure it returns the actual node - it might convert it to
another object instead because I too cannot get your suggestions to
work.  Could you send an xfactorstudio Xpath Actionscript example of
what you mean?  If you haven't used those classes before, then its
interesting that you are giving advice about a product you don't seem to
know the details of.  I like Mike cannot get your suggestions to work,
which if I am interpreting correctly, would mean:

myString =
XPath.selectNodes(my_xml,rootNode/myChildNodeNode/myChildNode/).nodeVa
lue;

That returns undefined when I try it.  Or are you suggesting something
else?



Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com






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

   





--
j:pn
___
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] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin

even in this case the result is undefined

string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue; !-- 
single node


Johannes Nel wrote:


sorry no, u r doing a query which returns an array, try slectSingleNode, and
that will work

On 12/7/05, Johannes Nel [EMAIL PROTECTED] wrote:
 


try dropping the last slash in ur xpath statement

On 12/7/05, Merrill, Jason [EMAIL PROTECTED]  wrote:
   


Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used this XPath-extension, but maybe I should check i out.
 


Morten, I'm not sure it returns the actual node - it might convert it to
another object instead because I too cannot get your suggestions to
work.  Could you send an xfactorstudio Xpath Actionscript example of
what you mean?  If you haven't used those classes before, then its
interesting that you are giving advice about a product you don't seem to
know the details of.  I like Mike cannot get your suggestions to work,
which if I am interpreting correctly, would mean:

myString =
XPath.selectNodes(my_xml,rootNode/myChildNodeNode/myChildNode/).nodeVa
lue;

That returns undefined when I try it.  Or are you suggesting something
else?



Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com






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

 



--
j:pn

   





--
j:pn
___
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] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin

Where is the documentation on selectSingleNode

It doesnt seem to be in flash 8 help files.

Johannes Nel wrote:


use the selectSingleNode method or use the array accessor

On 12/7/05, Mike Boutin [EMAIL PROTECTED] wrote:
 


even in this case the result is undefined

string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue; !--
single node

Johannes Nel wrote:

   


sorry no, u r doing a query which returns an array, try slectSingleNode,
 


and
   


that will work

On 12/7/05, Johannes Nel [EMAIL PROTECTED] wrote:


 


try dropping the last slash in ur xpath statement

On 12/7/05, Merrill, Jason [EMAIL PROTECTED]  wrote:


   


Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used this XPath-extension, but maybe I should check i out.


 


Morten, I'm not sure it returns the actual node - it might convert it
 


to
   


another object instead because I too cannot get your suggestions to
work.  Could you send an xfactorstudio Xpath Actionscript example of
what you mean?  If you haven't used those classes before, then its
interesting that you are giving advice about a product you don't seem
 


to
   


know the details of.  I like Mike cannot get your suggestions to work,
which if I am interpreting correctly, would mean:

myString =
XPath.selectNodes
 


(my_xml,rootNode/myChildNodeNode/myChildNode/).nodeVa
   


lue;

That returns undefined when I try it.  Or are you suggesting something
else?



Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com






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



 


--
j:pn



   



--
j:pn
___
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

   





--
j:pn
___
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] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin

Perfect, thanks for the help!



Morten Barklund Shockwaved wrote:


Mike Boutin wrote:


even in this case the result is undefined

string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue;



I've just gotten the libraries, and it is exactly as I expected. 
selectNodes returns an Array of XMLNode-objects. Even the notion of 
/text() is just to get the node, which has no name, as it is a 
textnode - but it does not mean, that it will return the text. The 
function will still return an array of XMLNode-objects. So in order to 
actually get the text, you need to select the corrent index in the 
array, and then get the nodeValue from the XMLNode. given:


var nodes:Array = XPath.selectNodes(my_xml, /pathto[1]/xml/text());
var textnode:XMLNode = XMLNode(nodes[0]);
var text:String = textnode.nodeValue;

That would be the proper way to do this perfectly and correctly. And 
rather OOP and nice too :)




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


Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin

Sweet that works. thanks for the update! ;)

Mike Boutin
Juicy Studios

Merrill, Jason wrote:


By the way Martin, I hope I didn't come across as being unappreciative -
thanks again for your help.  Mike too.  Mike, if it's any less painful,
while not pretty, I knocked it down to a single line and this works:

myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).node
Value;


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com





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

 



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


[Flashcoders] Loading Image _width _height

2005-12-08 Thread Mike Boutin
Can anyone tell me why when I call the displayImage() function after I 
fully loaded, and try to get the _width and _height of holderClip, it 
comes back as zero.  But if I wait 1 second after the load and run the 
displayImage() function through the button click, it then finds the 
width and height.



#include lmc_tween.as
var num:Number = 1;
var space:Number = 20;

function loadImage(){
   holderClip.loadMovie(num+.jpg);
   //holderClip._alpha = 0;

   this.onEnterFrame = function(){
   var lvBytesLoaded:Number = holderClip.getBytesLoaded();
   var lvBytesTotal:Number = holderClip.getBytesTotal();
   var percent = (lvBytesLoaded/lvBytesTotal)*100;
   if (lvBytesLoaded == lvBytesTotal) {
   trace(Image + num +  loaded.);
   displayImage();
   delete this.onEnterFrame;
   }
   }
}

function displayImage():Void {
   //Image is not loaded.
   var w = holderClip._width + space;
   trace(Image width: +holderClip._width);
   trace(Image new width: +w);
   var h = holderClip._height + space;
   trace(Image height: +holderClip._height);
   trace(Image new height: +h);
   /*
   //Fade in Image / resize border
   holderClip.tween(_alpha, 100, 2, easeOut);
   border.tween(_width, w, 1, easeOutElastic);
   border.tween(_height, h, 1, easeOutElastic);
   */
}
myButton.onRelease = function(){
   displayImage();
}
//Start it up!
loadImage();
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Even odds

2005-12-08 Thread Mike Boutin

Is it possible to check a number to see if its even / odd?


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


Re: [Flashcoders] Success Stories with Flash Friendly CVS Systems?

2005-12-12 Thread Mike Boutin

Yes i agree, Subversion seems to do the trick for me.

eric dolecki wrote:


What's your situation? How big is your team, how often are you changing
binary assets, are you working from a large class library, etc?

I use SubVersion and its super nice. Nothing is perfect when working with
binary assets which can't be merged, etc.

e.d.

On 12/12/05, Robert Sandie [EMAIL PROTECTED] wrote:
 


On my fourth large flash project and have yet to come up with  a sound
CVS system/workflow for Flash. Does anyone have any best practice
stories regarding version control and integration into web development
projects? Would love to hear.

Robert Sandie
___
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] debug tool?

2005-12-12 Thread Mike Boutin
I just want to be able to see the incoming/outgoing data, as well as just 
send random traces to it when developing.


Heather
- Original Message - 
From: Pranav [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, December 12, 2005 7:54 PM
Subject: Re: [Flashcoders] debug tool?


Flash supports remote debugging . are you looking for a debugger tool 
with some extra capabilities ?


Pranav


I am creating a project in flash/php/xml output,  It is a pain to debug 
because I cannot use trace things out because I have to test the 
application in the web browser.  Is there any free programs out there that 
I can trace data to?


Heather
___
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] debug tool?

2005-12-13 Thread Mike Boutin

Does

LuminicBox.Log also work in flash 8? i cant seem to get it to log a 
message though it doesnt get any errors...



John Grden wrote:


Yeah i agree, if you're just into logging, LuminicBox/Flashinspector is a
great tool

John

On 12/13/05, Jim Tann [EMAIL PROTECTED] wrote:
 


LuminicBox Logger



   


___
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] Problem with delay tween on some instance...

2005-12-13 Thread Mike Boutin
movieclip.stopAllTweens()  will stop all tweening on all the instances 
that are currently tween.  Not sure if this helps.



[EMAIL PROTECTED] wrote:


Hello everybody,

i use tween of laco [laco.wz.cz] with delay on some instances. i want 
to delete a delay and the tween to on previous instance when i use a 
tween on other instance, but i don't manage it. can anybody help me ? 
thank


Ps : i'm French, so sorry for my english

___
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] Problem with delay tween on some instance...

2005-12-13 Thread Mike Boutin
How exactly are you delaying the tween?  the tween class doesnt have a 
delay in it as far as I know


Cinetryx wrote:

stopAllTween delete the tween event but  not the delay before the 
tween


Mike Boutin a écrit :

movieclip.stopAllTweens()  will stop all tweening on all the 
instances that are currently tween.  Not sure if this helps.



[EMAIL PROTECTED] wrote:


Hello everybody,

i use tween of laco [laco.wz.cz] with delay on some instances. i 
want to delete a delay and the tween to on previous instance when i 
use a tween on other instance, but i don't manage it. can anybody 
help me ? thank


Ps : i'm French, so sorry for my english

___
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


Re: [Flashcoders] Problem with delay tween on some instance...

2005-12-13 Thread Mike Boutin
So you are calling the tween, but you want to delete it before the delay 
happens?


Cinetryx wrote:


When you write this :

my_mc.tween(property, pEnd, seconds, animType, delay, callback, 
extra1, extra2)


you can set delay before the start tween function .

But my problem is how to delete this delay.

Mike Boutin a écrit :

How exactly are you delaying the tween?  the tween class doesnt 
have a delay in it as far as I know


Cinetryx wrote:

stopAllTween delete the tween event but  not the delay before the 
tween


Mike Boutin a écrit :

movieclip.stopAllTweens()  will stop all tweening on all the 
instances that are currently tween.  Not sure if this helps.



[EMAIL PROTECTED] wrote:


Hello everybody,

i use tween of laco [laco.wz.cz] with delay on some instances. i 
want to delete a delay and the tween to on previous instance when 
i use a tween on other instance, but i don't manage it. can 
anybody help me ? thank


Ps : i'm French, so sorry for my english

___
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 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] Problem with delay tween on some instance...

2005-12-13 Thread Mike Boutin
I delayed a clip on stage.  Using a button to stop the tween  delay 
before it happens:  If you leave it, it will play after the delay, if 
you click the button before the delay, the tween never happens.  Hope 
this helps.


#include lmc_tween.as
clip.tween(_x, clip._x+100,2,easeout,3);


myButton.onRelease = function(){  
   clip.stopTween();

}


Cinetryx wrote:


yes, i want.

Mike Boutin a écrit :

So you are calling the tween, but you want to delete it before the 
delay happens?


Cinetryx wrote:


When you write this :

my_mc.tween(property, pEnd, seconds, animType, delay, callback, 
extra1, extra2)


you can set delay before the start tween function .

But my problem is how to delete this delay.

Mike Boutin a écrit :

How exactly are you delaying the tween?  the tween class doesnt 
have a delay in it as far as I know


Cinetryx wrote:

stopAllTween delete the tween event but  not the delay before the 
tween


Mike Boutin a écrit :

movieclip.stopAllTweens()  will stop all tweening on all the 
instances that are currently tween.  Not sure if this helps.



[EMAIL PROTECTED] wrote:


Hello everybody,

i use tween of laco [laco.wz.cz] with delay on some instances. i 
want to delete a delay and the tween to on previous instance 
when i use a tween on other instance, but i don't manage it. can 
anybody help me ? thank


Ps : i'm French, so sorry for my english

___
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 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] Hyperlink to frame?

2005-12-13 Thread Mike Boutin
Is it possible to have a hyperlink (loaded from xml)gotoandplay a certain frame 
in the movie?

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


Re: [Flashcoders] Hyperlink to frame?

2005-12-13 Thread Mike Boutin

Very cool, thanks very much!

Heather
- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, December 13, 2005 9:35 PM
Subject: Re: [Flashcoders] Hyperlink to frame?



Or:

a href=asfunction:dothis,label /

function dothis(str)
{
   if(str == label)
   {
   some_mc.gotoAndPlay(3);
   }
}
- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 14, 2005 12:16 AM
Subject: Re: [Flashcoders] Hyperlink to frame?


sort of...  you could do:

a href=asfunction:_root.gotoAndPlay,label /

- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, December 13, 2005 11:40 PM
Subject: [Flashcoders] Hyperlink to frame?


Is it possible to have a hyperlink (loaded from xml)gotoandplay a certain
frame in the movie?

Heather
___
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] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
Just a few questions about SVN  TortoiseSVN.  I have ran the 1 click 
setup SVN that installs Subversion and TortoiseSVN.  It created the 
repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import it 
into the repos.  Now when I make a new directory and use CHeckout, all 
the files from c:\svnrepos show up with checkmarks by them.  Now if I 
create a new textfile in the checkout dir, and update it into the repos, 
and then I check c:\svnrepos\project1, the file i created isnt anywhere 
to be found except in the checkout dir.  Can anyone tell me what im 
doing wrong? Thanks!

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


Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
When I do a commit, after adding the file of course.  The commit 
happens, but where does it stop that file? Shouldnt it post my new file 
to the repository? instead it just sends it back to where i first 
created it like so:


Adding: Desktop\test\tests.txt 
Sending Content: C:\Documents and Settings\Boots\Desktop\test\tests.txt 
Completed: At revision: 3 



Shoulding it be sending content to c:\svnrepos\project1??



David Skoglund wrote:

I think you should use the commit command to commit you changes 
instead of update.


/David Skoglund
www.monsterland.se


- Original Message - From: Mike Boutin [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 14, 2005 10:09 PM
Subject: [Flashcoders] SVN  TortoiseSVN


Just a few questions about SVN  TortoiseSVN.  I have ran the 1 click 
setup SVN that installs Subversion and TortoiseSVN.  It created the 
repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import 
it into the repos.  Now when I make a new directory and use CHeckout, 
all the files from c:\svnrepos show up with checkmarks by them.  Now 
if I create a new textfile in the checkout dir, and update it into 
the repos, and then I check c:\svnrepos\project1, the file i created 
isnt anywhere to be found except in the checkout dir.  Can anyone 
tell me what im doing wrong? Thanks!

___
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] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
Perfect this is what I was just reading in TortoiseSVN help.  I just 
wasnt sure if I could then delete the folder I had imported.  It says in 
the help that their are 2 ways in which it can store the files, in a db, 
or in the native filesystem.  How do you change between the two and will 
using the native filesystem store the files outside of a db?  Thanks for 
all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project into 
c:\svnrepos\project1. When you create the repos, it creates a dir 
structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, 
unless you want it as a backup until you get more comfy with svn. 
Subversion keeps the files inside its db in its own special format, 
only keeping the parts of the files that have changed between 
revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 click 
setup SVN that installs Subversion and TortoiseSVN.  It created the 
repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import 
it into the repos.  Now when I make a new directory and use CHeckout, 
all the files from c:\svnrepos show up with checkmarks by them.  Now 
if I create a new textfile in the checkout dir, and update it into 
the repos, and then I check c:\svnrepos\project1, the file i created 
isnt anywhere to be found except in the checkout dir.  Can anyone 
tell me what im doing wrong? Thanks!

___
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] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
Awesome thanks for all the help, I have figured out how to get it 
working but others on my network cannnot commit their changes.  It says 
this:

Connection is read-only

I then went into the svnserve.conf file and uncommented this line 
(anon-access = write)  thinking it would be available but then people on 
the network get this error:


Section header expected line:12:

Any ideas?




Chris Hill wrote:

You should be able to delete the folder you imported into the repo, 
but I am hesitant to tell you to delete anything just in case.


I have not used the native filesystem method, I'm using the BerkeleyDB 
method on a linux box. I believe there is no way to convert, but you 
can always export the repo, then create a new repo using the FS method.


http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3
Using the native filesystem is probably better, but it isn't saving 
the files as normal files, but in a custom subversion format. 
Subversion never has a complete 'normal' copy of your files in the 
repository, since it saves only the changes to the files, and never 
the full file(except when you first import).


Subversion rules, btw. Once you get used to using it, you'll never 
look back. Enjoy!

C


Mike Boutin wrote:

Perfect this is what I was just reading in TortoiseSVN help.  I just 
wasnt sure if I could then delete the folder I had imported.  It says 
in the help that their are 2 ways in which it can store the files, in 
a db, or in the native filesystem.  How do you change between the two 
and will using the native filesystem store the files outside of a 
db?  Thanks for all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project 
into c:\svnrepos\project1. When you create the repos, it creates a 
dir structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, 
unless you want it as a backup until you get more comfy with svn. 
Subversion keeps the files inside its db in its own special format, 
only keeping the parts of the files that have changed between 
revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 
click setup SVN that installs Subversion and TortoiseSVN.  It 
created the repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import 
it into the repos.  Now when I make a new directory and use 
CHeckout, all the files from c:\svnrepos show up with checkmarks by 
them.  Now if I create a new textfile in the checkout dir, and 
update it into the repos, and then I check c:\svnrepos\project1, 
the file i created isnt anywhere to be found except in the checkout 
dir.  Can anyone tell me what im doing wrong? Thanks!

___
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] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
This is what my I get when I change the svnconf file.  THis is what mine 
looks like:


Its like the password-db is changing the directory it look sin or something?

Error: Commit failed (details follow): 
Error: Can't find config file 'C:\svnrepos\juicyink\conf\bob' 
Error: Check the path and/or URL you've entered. 




### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are write, read,
### and none.  The sample settings below are the defaults.
anon-access = write
# auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = bob
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

Chris Hill wrote:

You should be able to delete the folder you imported into the repo, 
but I am hesitant to tell you to delete anything just in case.


I have not used the native filesystem method, I'm using the BerkeleyDB 
method on a linux box. I believe there is no way to convert, but you 
can always export the repo, then create a new repo using the FS method.


http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3
Using the native filesystem is probably better, but it isn't saving 
the files as normal files, but in a custom subversion format. 
Subversion never has a complete 'normal' copy of your files in the 
repository, since it saves only the changes to the files, and never 
the full file(except when you first import).


Subversion rules, btw. Once you get used to using it, you'll never 
look back. Enjoy!

C


Mike Boutin wrote:

Perfect this is what I was just reading in TortoiseSVN help.  I just 
wasnt sure if I could then delete the folder I had imported.  It says 
in the help that their are 2 ways in which it can store the files, in 
a db, or in the native filesystem.  How do you change between the two 
and will using the native filesystem store the files outside of a 
db?  Thanks for all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project 
into c:\svnrepos\project1. When you create the repos, it creates a 
dir structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, 
unless you want it as a backup until you get more comfy with svn. 
Subversion keeps the files inside its db in its own special format, 
only keeping the parts of the files that have changed between 
revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 
click setup SVN that installs Subversion and TortoiseSVN.  It 
created the repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import 
it into the repos.  Now when I make a new directory and use 
CHeckout, all the files from c:\svnrepos show up with checkmarks by 
them.  Now if I create a new textfile in the checkout dir, and 
update it into the repos, and then I check c:\svnrepos\project1, 
the file i created isnt anywhere to be found except in the checkout 
dir.  Can anyone tell me what im doing wrong? Thanks!

___
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] SVN TortoiseSVN

2005-12-14 Thread Mike Boutin
Sorry about all the posts, i seem to have it under control now, thanks 
for all the help on getting me started with this! i think im gonna love it!


Chris Hill wrote:

Lol, this is a problem that I had. If you uncomment that line, you 
need to uncomment the line that has [general] in it, too. The 
[general] bit is called a section header.


But you don't need to uncomment the 'auth-access = write' line, that's 
a default. But you will need to uncomment the 'password-db = passwd' 
line, and then put your passwords into that file.


My passwd file (located in conf/passwd):

[users]
user1 = pass1
user2 = pass2

Here is the svnserve.conf that I have on my projects. Notice most is 
just comments:


### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are write, read,
### and none.  The sample settings below are the defaults.
anon-access = none
# auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

Peace
C

Mike Boutin wrote:

Awesome thanks for all the help, I have figured out how to get it 
working but others on my network cannnot commit their changes.  It 
says this:

Connection is read-only

I then went into the svnserve.conf file and uncommented this line 
(anon-access = write)  thinking it would be available but then people 
on the network get this error:


Section header expected line:12:

Any ideas?




Chris Hill wrote:

You should be able to delete the folder you imported into the repo, 
but I am hesitant to tell you to delete anything just in case.


I have not used the native filesystem method, I'm using the 
BerkeleyDB method on a linux box. I believe there is no way to 
convert, but you can always export the repo, then create a new repo 
using the FS method.


http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3
Using the native filesystem is probably better, but it isn't saving 
the files as normal files, but in a custom subversion format. 
Subversion never has a complete 'normal' copy of your files in the 
repository, since it saves only the changes to the files, and never 
the full file(except when you first import).


Subversion rules, btw. Once you get used to using it, you'll never 
look back. Enjoy!

C


Mike Boutin wrote:

Perfect this is what I was just reading in TortoiseSVN help.  I 
just wasnt sure if I could then delete the folder I had imported.  
It says in the help that their are 2 ways in which it can store the 
files, in a db, or in the native filesystem.  How do you change 
between the two and will using the native filesystem store the 
files outside of a db?  Thanks for all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project 
into c:\svnrepos\project1. When you create the repos, it creates a 
dir structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of 
the repository. If that makes sense. You can safely delete that 
dir, unless you want it as a backup until you get more comfy with 
svn. Subversion keeps the files inside its db in its own special 
format, only keeping the parts of the files that have changed 
between revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 
click setup SVN that installs Subversion and TortoiseSVN.  It 
created the repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I 
import it into the repos.  Now when I make a new directory and 
use CHeckout, all the files from c:\svnrepos show up with 
checkmarks by them.  Now if I create a new textfile in the 
checkout dir, and update it into the repos, and then I check 
c:\svnrepos\project1, the file i created isnt anywhere to be 
found except in the checkout dir.  Can anyone tell me what im 
doing wrong? Thanks!

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










___
Flashcoders

[Flashcoders] What not to do

2005-12-20 Thread Mike Boutin
Does anyone have any links on stuff Not to do in flash that maybe 
cause the plugin to slow down or halt.  Maybe even some best practices 
when working on large projects?



Thanks!


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


Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity

2005-12-20 Thread Mike Boutin

Maybe something like this may help?

myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).nodeValue;



Mike Boutin


Merrill, Jason wrote:


AFAIK, XPath.selectNodes() returns an Array.
 



How do you use Xpath to return node values then?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Johan Lopes
Sent: Tuesday, December 20, 2005 1:07 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype
 


Oddity
 


Hi Jason,

AFAIK, XPath.selectNodes() returns an Array.

snippet from the docs

/**
10  *selectNodes
11  *
12  *returns an array of nodes that match the given XPath
13  *expression using the the XMLNode (context) as the
14  *starting context for the expression.
15  *
16  *This is the description
17  *@param (XMLNode)context
18  *@param (String)XPath expression
19  *@return (Array) matching nodes
20  */
21  static function selectNodes(context,path:String):Array{
22  return XPathParser.parseQuery(context,path)
23  }
24

/snippet from the docs

HTH,

/Johan

On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 


I'm asking this more out of curiosity than necessity, but the
   


responses
 


to this thread may help be avoid some headaches in the future.

Been using xfactorstudio's Xpath classes with great success.
   


However, I
 


have found an odd thing - sometimes I have to cast what I thought
   


was
 


already string, to a String in order for a V2 component to accept
   


the
 


value.  For example,

**This does not work:

var thisVideo:String = XPath.selectNodes(content_xml,
thecontentpath/@videoUrl);
video_mc.mediaPlayer.setMedia(thisVideo);//does not work

Even though no compiler errors and a trace on the var
   


thisVideo
 


traces the proper string (media/video/Welcome.flv) - or what I
   


thought
 


was a string, the video in the MediaPlayback component does not
   


play.---
 


**So instead, when casting to String first, this works:
var thisVideo:String = String(XPath.selectNodes(content_xml,
thecontentpath/@videoUrl));
video_mc.mediaPlayer.setMedia(thisVideo);.//works

Why?  What type of object was the Xpath value before I cast it to a
string?  This makes sense for numbers in an XML file, but for
   


Strings???
 


The kicker is I can send other XPath values I don't cast to strings
first to text fields, textAreas, and they show up fine.  So is it
something quirky with V2 components as well?

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com



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

   


___
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] Flex vs OpenLaszo

2005-12-20 Thread Mike Boutin
Has anyone played with OpenLaszo as well as Flex?  Does flex allow you 
to compile a stand-alone swf file such as OpenLaszlo does?


Thanks!

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


Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity

2005-12-20 Thread Mike Boutin
Doesnt XPath.selectNodes(myxml, pathtocontent/text()); return the text 
value as well?


Doug Coning wrote:


Could it be because the Xpath may return either a string or an array
depending on how you structure your query? 


I agree that if there was a selectText type method where you pass in an
xpath where you expect only one (or the first) resulting text value
would be great.

Doug Coning 
Software Developer

FORUM Solutions, LLC


 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Tuesday, December 20, 2005 2:55 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype
Oddity

That's using Flash's XML object with XPath to grab the node value -
   


sure
 


that works, and is good for nodes with CDATA, but overly complex -
wrapping String() around it is easier.  I was wondering just about the
XPath implementation and why it doesn't return a native string, thanks
though.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









   


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Tuesday, December 20, 2005 1:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Out of curiosity, XPath and String
   


Datatype
 


Oddity
   


Maybe something like this may help?

   


myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).no
 


de
   


Value;



Mike Boutin


Merrill, Jason wrote:

   


AFAIK, XPath.selectNodes() returns an Array.


 


How do you use Xpath to return node values then?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
   


[EMAIL PROTECTED] On Behalf Of Johan Lopes
Sent: Tuesday, December 20, 2005 1:07 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Out of curiosity, XPath and String
 


Datatype
   

 


Oddity


 


Hi Jason,

AFAIK, XPath.selectNodes() returns an Array.

snippet from the docs

/**
10  *selectNodes
11  *
12  *returns an array of nodes that match the given
 


XPath
 


13  *expression using the the XMLNode (context) as
 


the
 


14  *starting context for the expression.
15  *
16  *This is the description
17  *@param (XMLNode)context
18  *@param (String)XPath expression
19  *@return (Array) matching nodes
20  */
21  static function selectNodes(context,path:String):Array{
22  return XPathParser.parseQuery(context,path)
23  }
24

/snippet from the docs

HTH,

/Johan

On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote:


 


I'm asking this more out of curiosity than necessity, but the


   


responses


 


to this thread may help be avoid some headaches in the future.

Been using xfactorstudio's Xpath classes with great success.


   


However, I


 


have found an odd thing - sometimes I have to cast what I
   


thought
 

   


was


 


already string, to a String in order for a V2 component to
   


accept
 

   


the


 


value.  For example,

**This does not work:

var thisVideo:String = XPath.selectNodes(content_xml,
thecontentpath/@videoUrl);
video_mc.mediaPlayer.setMedia(thisVideo);//does not work

Even though no compiler errors and a trace on the var


   


thisVideo


 


traces the proper string (media/video/Welcome.flv) - or what I


   


thought


 


was a string, the video in the MediaPlayback component does not


   


play.---


 


**So instead, when casting to String first, this works:
var thisVideo:String = String(XPath.selectNodes(content_xml,
thecontentpath/@videoUrl));
video_mc.mediaPlayer.setMedia(thisVideo);.//works

Why?  What type of object was the Xpath value before I cast it
   


to
 


a
   


string?  This makes sense for numbers in an XML file, but for


   


Strings???


 


The kicker is I can send other XPath values I don't cast to
   


strings
   


first to text fields, textAreas, and they show up fine.  So is
   


it
 


something quirky with V2 components as well?

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com



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

[Flashcoders] Wierd split

2005-12-20 Thread Mike Boutin
Im having a wierd problem with using .split on an array.  I create an 
array 3 frames before in the same timeline like so:


_root.cat_colors = new Array();
_root.cat_colors[0] = bob,john,betty;


Then 2 frames down the timeline I run a loop like so:

for (i=0; i_root.cat_colors.length; i++) {
  
   trace(String: +_root.cat_colors[i]);

  // The string traces properly here ex. bob,jim,john etc...

   var tempColor:Array = _root.cat_colors[i].split(,);
   trace(Total: +tempColor[i]);
   // traces out undefined for the next loop never happens

   for (j=0; jtempColor.length; j++) {
  trace(Color: +tempColor[j]);
   }

}


Anyone know why this doesnt work? is there another way to achieve this?  
If i create the array on the same frame as the loop, everything works 
like it should.



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


Re: [Flashcoders] Wierd split

2005-12-20 Thread Mike Boutin
The movie the script is in gets loaded into another movie. I can trace 
out _root.cat_color[0] etc... with no problems, even doing so in the for 
loop outputs proper values for _root.cat_colors[i].  If i trace out 
tempColor.length after the split, it always comes back undefined, thus 
the loop after that never happens.



trace(String: +_root.cat_colors[0]);
// traces out bob,jim,john

var tempColor:Array = _root.cat_colors[0].split(,);

trace(Total: +tempColor.length);
// traces out undefined when it should be 3




Adrian Lynch wrote:


Just took your code and plonked it in a new .fla and it works for me. Is
anything else happening in the movie or any included movies?

See it here: http://www.adrianlynch.co.uk/temp/colours.fla

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike
Boutin
Sent: 20 December 2005 23:41
To: Flashcoders mailing list
Subject: [Flashcoders] Wierd split


Im having a wierd problem with using .split on an array.  I create an
array 3 frames before in the same timeline like so:

_root.cat_colors = new Array();
_root.cat_colors[0] = bob,john,betty;


Then 2 frames down the timeline I run a loop like so:

for (i=0; i_root.cat_colors.length; i++) {

   trace(String: +_root.cat_colors[i]);
  // The string traces properly here ex. bob,jim,john etc...

   var tempColor:Array = _root.cat_colors[i].split(,);
   trace(Total: +tempColor[i]);
   // traces out undefined for the next loop never happens

   for (j=0; jtempColor.length; j++) {
  trace(Color: +tempColor[j]);
   }

}


Anyone know why this doesnt work? is there another way to achieve this?
If i create the array on the same frame as the loop, everything works
like it should.


Thanks!

___
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] Wierd split

2005-12-20 Thread Mike Boutin
Thanks Adrian,  your code works exactly like mine should but for some 
reason mine doesnt get the same results (though its the same code) ;)



Mike Boutin

Adrian Lynch wrote:


Just took your code and plonked it in a new .fla and it works for me. Is
anything else happening in the movie or any included movies?

See it here: http://www.adrianlynch.co.uk/temp/colours.fla

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike
Boutin
Sent: 20 December 2005 23:41
To: Flashcoders mailing list
Subject: [Flashcoders] Wierd split


Im having a wierd problem with using .split on an array.  I create an
array 3 frames before in the same timeline like so:

_root.cat_colors = new Array();
_root.cat_colors[0] = bob,john,betty;


Then 2 frames down the timeline I run a loop like so:

for (i=0; i_root.cat_colors.length; i++) {

   trace(String: +_root.cat_colors[i]);
  // The string traces properly here ex. bob,jim,john etc...

   var tempColor:Array = _root.cat_colors[i].split(,);
   trace(Total: +tempColor[i]);
   // traces out undefined for the next loop never happens

   for (j=0; jtempColor.length; j++) {
  trace(Color: +tempColor[j]);
   }

}


Anyone know why this doesnt work? is there another way to achieve this?
If i create the array on the same frame as the loop, everything works
like it should.


Thanks!

___
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] RE: Flex vs OpenLaszo

2005-12-21 Thread Mike Boutin
So OpenLaszlo may be a better solution as it does not need a OpenLaszlo 
licence to have a standalone swf on the server?


- Original Message - 
From: Spike [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 21, 2005 8:27 AM
Subject: Re: [Flashcoders] RE: Flex vs OpenLaszo


That's not 100% true.

You must have a Flex license for the server where the swf is served
from, but you don't have to have Flex installed on it.

I've worked with a couple of clients who use this configuration.

Spike

On 12/21/05, JesterXL [EMAIL PROTECTED] wrote:

Nope, Flex 1 and Flex 1.5.

Flex 1 and Flex 1.5 require a server if you wish to remain legal.  While 
you
can easily create SWF's from Flex 1 and Flex 1.5 and run them 
independently,

unless they were served from a server that has Flex 1 or 1.5 installed,
that's illegal.

Flex 2 does not have this legal requirement, and once you create a SWF, 
you

can do whatever you want with it.

- Original Message -
From: Adrian Showater [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 21, 2005 9:11 AM
Subject: [Flashcoders] RE: Flex vs OpenLaszo


JesterXL, please clarify:

Flex 1.5 and 2 allow you to compile stand alone SWF's.  Flex 1.5, 
however,

requires the Flex server to be installed on the box where the SWF is
deployed to.

Am I correct in assuming that you mean that Flex 1 requires the server 
while

all subsequent versions do not?


Adrian Showalter
Software Developer
Holmes BizNet
www.HolmesBizNet.com http://www.HolmesBizNet.com
330.893.3901 ext 102

___
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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
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] IE vs Firefox performance

2005-12-21 Thread Mike Boutin
I recently installed and have been using Firefox as my main browser.  I 
have noticed that all my flash sites  in firefox perform noticably 
slower than they do in internet explorer.  Is this an issue with firefox 
plugin itself or should I just go back to oh no internet explorer.



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


[Flashcoders] Combo troubles

2005-12-22 Thread Mike Boutin
I have a swf file that has a combobox component in it with two options.  
This is loaded into _root.holderClip


For some reason when I publish and view it in flash player, it works 
fine.  When I run the same thing in Internet Explorer and comobox does 
not drop down anymore? Am I missing something?



Thanks

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


[Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin
Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


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


Re: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Mike Boutin

I am able to view at both urls

tech wrote:


I uploaded to the root directory. Try this.

http://mike.randm.org/scrollpain.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, December 23, 2005 2:42 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Nope.  Can't view source on a file I can't reach.  Tried it again, no
dice.  Maybe someone else on the list can try and see if its just me or
a problem on your end.  


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 3:37 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Jason,

I republished and uploaded latest files. Let me know if you still
 


can't see
 


the movie. Just curious, can you view source?

http://mike.randm.org/flash/scrollpain/index.html

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 12:32 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Tried it in both IE and Firefox.  Not having any other network issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com


 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and offsite,
 


and
 


they could view it. Let me republish and upload after lunch. Thanks
 


for the
 


heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
 


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the
 


screen.
 


Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
 


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.
 


Here's
 


a
 


quick
 


breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container
 


movieclip,
 


each
 


attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works
 


fine
 


4. However, if a prior component contains a comboBox component,
 


the
 


scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
 


library
 


var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

  for (var i =0; iqLen; i++){

  var tp = paneContent.attachMovie(menu,
 


menu + i,
 


i, {_y: i *20});



  //QUESTION LIST 

Re: [Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin

Thanks Jesse, thats a big help!




JesterXL wrote:


Dude, use a cellrenderer instead.
http://dev.jessewarden.com/flash/comboboxcellrenderer/

More examples in the Flash 8 help docs.  The selectedItem doesn't show it 
the icon, though, so I'll leave that as a challenge to you to figure out.


- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 3:23 PM
Subject: Re: [Flashcoders] Custom combobox


Hi Chris, thanks for the help by the way, i managed to get it working
like so:

myCombobox.addItem(Hello world);
myCombobox.dropdown.setPropertiesAt(0,{backgroundColor:0xCC,
icon:image});

The problem being that the icon image has to be in the library and
have a linkage id.  Do you think there is any way to take this same
approach but use a dynamically loaded jpg for the icon?


Mike Boutin



Chris Hill wrote:

 


Hi Mike,

You should be able to create a movieclip class that implements the
CellRenderer api, and then use that within the combobox's list:

var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = myCustomCellRenderer;

Having said that, I've never done this, but I don't see why it
wouldn't work.

C



Mike Boutin wrote:

   


Can anyone tell me how to go about creating a comobox that can hold a
10x10 pixel color palette image and a label beside it per row?  Has
anyone seen anything like this?

Thanks!
___
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] Changing color of window title?

2005-12-29 Thread Mike Boutin
Does anyone know how to change the color of the title in the window 
component?

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


[Flashcoders] NumericStepper

2005-12-29 Thread Mike Boutin
I have a NumericStepper that changes the value of a price textfield 
based on the stepper value.  Is there anyway to check if the user 
increment/decrement the stepper so I can muliply/divide the number when 
needed.  Thanks



var nstepListener:Object = new Object();
nstepListener.change = function(evt_obj:Object) {
  if (evt_obj.target.value == 0) {
  } else {
  var oldPrice:Number = proPrice.text;
  var step:Number = evt_obj.target.value;
  proPrice.text = oldPrice*step;
  }
};
orderQuantity.addEventListener(change, nstepListener);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Files in directory?

2006-01-06 Thread Mike Boutin
Is there anyway for flash to find out how many files exist within a 
specific directory?



Thanks




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


Re: [Flashcoders] Files in directory?

2006-01-06 Thread Mike Boutin

Ok thanks, I think ill give'er a try with php :)

Ian Thomas wrote:


Alternatively, if you're looking in a directory on a server, code up
something in a server-side language - PHP or whatever - to do the file
count, and have flash request the result.

HTH,
 Ian

On 1/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 


http://www.multidmedia.com/software/zinc/


   


___
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] Wierd Video

2006-01-11 Thread Mike Boutin

Hi All,

I have a FLVPlayback component in flash 8 with the skinAutoHide set to 
true.  In Firefox everything works fine, when you roll over the video, 
the player controls come up and then go away when you roll off.  In 
Internet Explorer once you roll over the video the controller stays and 
doesn't go away when you roll off.  Has anyone else had this happen?


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


[Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Mike Boutin
I am working on a fullscreen flash project.  Can anyone tell me why this 
code acts like a loop rather than just happening once?  I am trying to 
position an object at the bottom of the browser window no matter what 
the window size.  I am using this code to set it right off the start.  
This all works and positions it at the bottom except when I resize the 
window the object moves around to repositions itself again, when I only 
want it to happen once. It is no in a onEnterFrame or setInterval and it 
is not in a onResize listener either.  Can anyone tell me why this 
happens and how to get around it?


siteLogo._x = Stage.width / 2;
siteLogo._y = Stage.height - 70;

Cheers!





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


Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Mike Boutin
Yes thanks this seems to work.  Still not sure why it was doing what it 
was, either way thanks for the help!


Marc Hoffman wrote:

not sure why, but try putting Stage properties in a new variable that 
doesn't get reset when repositioning the object:


theWidth=Stage.width/2;
theHeight=Stage.height-70;

siteLogo._x = theWidth;
siteLogo._y = theHeight;

- Marc

At 10:34 AM 1/16/2006, you wrote:

I am working on a fullscreen flash project.  Can anyone tell me why 
this code acts like a loop rather than just happening once?  I am 
trying to position an object at the bottom of the browser window no 
matter what the window size.  I am using this code to set it right 
off the start.
This all works and positions it at the bottom except when I resize 
the window the object moves around to repositions itself again, when 
I only want it to happen once. It is no in a onEnterFrame or 
setInterval and it is not in a onResize listener either.  Can anyone 
tell me why this happens and how to get around it?


siteLogo._x = Stage.width / 2;
siteLogo._y = Stage.height - 70;

Cheers!




___
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] Dynamically named loadVars

2006-01-23 Thread Mike Boutin
What is the proper way to write the loop that the names of the posted 
vars and be dynamically named based on i in the loop, as in 
myData.color_0 = white; myData.color_1 = blue etc. Any ideas?


var myData:LoadVars = new LoadVars();
   myData.action = create;
   myData.count = _root.shop_cart.size();
   for (i=0; i_root.shop_cart.size(); i++) {
   var myProd:Product = _root.shop_cart.getElement(i);
   // myData.color_i = myProd.getColor();
   }
   delete myProd;
   trace(myData);


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


[Flashcoders] Wierd window error

2006-01-24 Thread Mike Boutin
I copy and paste this code from flash docs and I get a type mismatch 
error on line 3.  I used this same code in a different swf and it worked 
fine, but in this particular movie I get this error, does anyone know 
what is causing this? ( I have a window component in my library )




import mx.managers.PopUpManager;
import mx.containers.Window;
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, { 
contentPath:images/graphics/4.jpg});




Cheers!

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


[Flashcoders] Fullscreen flash

2006-01-26 Thread Mike Boutin

Hi,

I am making a fullscreen flash site and I have the width and height set 
to 100%.  In internet explorer it all views fine, but when I view the 
same page in Firefox and Safari, the flash document doesnt stretch to 
100%, it only shows like 1/3 of the page as flash and the rest as just 
plain html, has anyone had this problem before??



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


Re: [Flashcoders] Fullscreen flash SOLVED

2006-01-26 Thread Mike Boutin

Thanks Ian, works like a charm!



Ian Thomas wrote:


Hi Mike,
 It's a Known Feature with Firefox. It's not strictly speaking a bug - the
browser doesn't know how high the document is supposed to be, because
there's no sized content in the document.

Try sticking this in the head

style
body,html
{
   margin:0px;
   padding:0px;
   height:100%;
}
/style

If that doesn't work straight off, you may need to change the document type
- try putting in a valid HTML or XHTML doctype to kick Firefox out of Quirks
mode. (You might not need it - I honestly can't remember).

The above code and a valid XHTML doctype certainly works for me.

HTH,
 Ian

On 1/26/06, Mike Boutin [EMAIL PROTECTED] wrote:
 


Hi,

I am making a fullscreen flash site and I have the width and height set
to 100%.  In internet explorer it all views fine, but when I view the
same page in Firefox and Safari, the flash document doesnt stretch to
100%, it only shows like 1/3 of the page as flash and the rest as just
plain html, has anyone had this problem before??


Cheers!

   


___
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] Window Error wont go away

2006-01-27 Thread Mike Boutin
I am trying to make a window pop up.  I take the code from flash docs 
(put a window component in the library) and put this code, then I get 
this error everytime.  Can anyone tell me why i get it?


CODE:
import mx.managers.PopUpManager;
import mx.containers.Window;

var newWindow = PopUpManager.createPopUp(this, Window, true);



ERROR:
**Error** Scene=Scene 1, layer=Layer 2, frame=20:Line 9: Type mismatch.
var newWindow = PopUpManager.createPopUp(this, Window, true);

Total ActionScript Errors: 1  Reported Errors: 1



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


Re: [Flashcoders] Window Error wont go away

2006-01-27 Thread Mike Boutin
The wierd thing is now when I try to compile other older fla's that used 
this same piece of code (and worked fine), they all get a Type Mismatch 
error and screw up the compiled swf.  So basically every project I had 
that used a window component doesnt work anymore when compiling. Help ;)




Robert Chyko wrote:


Is this line:
var newWindow = PopUpManager.createPopUp(this, Window, true);
inside some other piece of code and the this refernce is incorrect?

Just throwing a guess out there cause this should work fine... Otherwise
its possessed



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Boutin
Sent: Friday, January 27, 2006 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Window Error wont go away


I am trying to make a window pop up.  I take the code from flash docs 
(put a window component in the library) and put this code, then I get 
this error everytime.  Can anyone tell me why i get it?


CODE:
import mx.managers.PopUpManager;
import mx.containers.Window;

var newWindow = PopUpManager.createPopUp(this, Window, true);



ERROR:
**Error** Scene=Scene 1, layer=Layer 2, frame=20:Line 9: Type mismatch.
var newWindow = PopUpManager.createPopUp(this, Window,
true);

Total ActionScript Errors: 1  Reported Errors: 1



Cheers!
___
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] multiuser flash games

2006-02-15 Thread Mike Boutin

You might want to check out smartfox server at Http://www.gotoandplay.it

I am using it for a multi-user isometric rpg and so far so good! ;)



Rich Rodecker wrote:


im considering making a multiuser game in flash, which involves multiple
users (no more than 5 at a time probably) chasing each other around a room.
I have dabbled with electroserver before and liked it, but only for a simple
turn-based game, but I'm not sure about how well any multiuser server would
handle latency.  Anyone have any suggestion/pointers/tips for this?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] multiuser flash games

2006-02-16 Thread Mike Boutin

Hello Rich,

I have used it so far with 20 users connected and playing.  (using the 
lite edition 50 user max) Though this has all been on a local network.




Rich Rodecker wrote:


Jobe - sorry, I meant no more than 5 users at a time in a room..i would
imagine that there would be more than 1 game being played at time. But yeah,
from what little experience i did have with electroserver i loved it,
thought it was really easy to set up and use.  I saw some of the samples up
on the ElectroServer site, but I need to get a couple of people in there to
test it out.

Mike - how many people do you have going simultaneously?






On 2/15/06, Mike Boutin  [EMAIL PROTECTED] wrote:
 


You might want to check out smartfox server at Http://www.gotoandplay.it

I am using it for a multi-user isometric rpg and so far so good! ;)



Rich Rodecker wrote:

   


im considering making a multiuser game in flash, which involves multiple
users (no more than 5 at a time probably) chasing each other around a
 


room.
   


I have dabbled with electroserver before and liked it, but only for a
 


simple
   


turn-based game, but I'm not sure about how well any multiuser server
 


would
   


handle latency.  Anyone have any suggestion/pointers/tips for this?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] (no subject)

2006-02-17 Thread Mike Boutin
We have a project.that is created in flash 8 but exported to flash 
player 6, AS1.  When I test the file in flash player 6 standalone 
locally, the file runs fine as well as publishing directly out of 
flash.  When I embed the swf file into html and post it on the web, it 
is only viewable through IE.  In firefox and opera all the preloaders 
stop working.  The wierd thing is when I test the same html file in 
Firefox/Opera locally, they all display like they should.   Has anyone 
has this issue before? Am I missing something? any help would be 
extremely appreciated!


EMBED CODE:

object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0; 
width=780 height=700 id=interface align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interface.swf /param name=quality 
value=high /param name=bgcolor value=#00 /embed 
src=interface.swf quality=high bgcolor=#00 width=780 
height=700 name=interface align=middle 
allowScriptAccess=sameDomain type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object

Cheers!

Mike




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

2006-02-18 Thread Mike Boutin
Is there anyway to get the label of a highlighted item in a list 
component (flash8)?  I can get the lable of the selected item by doing 
my_list.selectedItem.label but is there something like 
my_list.highlightedItem.label??


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XMLPATH question: how to query for several fields...

2006-02-20 Thread Mike Boutin

Is it possible to use an xpath query?

XPath.selectNodes(myXml,/products/[EMAIL PROTECTED] = 'blah'][name/text() = 
'blah']);


julian atienza wrote:


HI,
Using this XML Example:

products
product SKU=7123734
nameBig Metal Pot/name
price19.95/price
anotherA/another
/product
product SKU=752585
namePlate/name
price12.95/price
anotherB/another
/product
product SKU=4182476
nameSpoon/name
price4.95/price
anotherC/another
/product
/products

I'm using XPATH in easy queries,
but now i want to make something similar to:

XPath.selectNodes(myXml,/products/product/@sku);

but with the fields name and price (Both)
For example, to obtain an array of elements with only those attributes.


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


Re: [Flashcoders] creating updatable flash sites (tutorial needed)

2006-02-21 Thread Mike Boutin

Hey,

You could use php/xml to do it.  I have done this making the user 
updating end of things in php (which writes a xml file), and then flash 
loads it.


http://www.sephiroth.it/tutorials.php




Ben Deroo wrote:


Hi,

Are there any tutorials or samples out there that explain how I can make a
flash site with a Content Management System? 


My client wants to be able to update the texts and some images in the site I
am creating for them.

Thx,
Ben

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] multi-threading / xml progress meter solutions?

2006-03-01 Thread Mike Boutin
Yes I have this problem too, except the xml im loading can be rather large 
and it causes flash player to freeze up for a few seconds when parsing.



- Original Message - 
From: Scott Pobiner [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 01, 2006 9:02 AM
Subject: [Flashcoders] multi-threading / xml progress meter solutions?



Hello flashcoders,

I was wondering what solutions people have for activity while trying  to 
load and parse XML data?  My application takes a solid 2-3 seconds  to 
load and all attempts to build preloaders and progress meters seem  to 
fail.  It seems that the application is hanging while it sorts out  the 
XML data.


I suppose that this topic might also be valuable for other  applications. 
Thoughts?  Comments?


Thanks all,

Scott



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

2006-03-02 Thread Mike Boutin
Has anyone used the Flash 8 Custom UI Components to control a sound 
object rather than binding them to the FLV Player? Is this even possible 
or are they for use only with FLV not mp3?  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] multi-threading / xml progress meter solutions?

2006-03-02 Thread Mike Boutin

Yes I also tried this with the same results.

Merrill, Jason wrote:


var pctLoaded:Number = Math.floor(my_xml.getBytesLoaded() /
my_xml.getBytesTotal() * 100);
 



Does that really work?  I know you said you got it from the help docs
and all, but I always thought the Flash player, when it came to loading
XML, ran single threaded in the sense that all other caluculations had
to stop until the XML was loaded.  I ask because with the code you
posted, I tried it on a 2mb XML file and pctLoaded traces NaN, and
my_xml.getBytesLoaded traces 0 the entire time the file is loading.


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Wednesday, March 01, 2006 1:20 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] multi-threading / xml progress meter
 


solutions?
 


I found this xml dynamic preloader in the flash 8 docs that works like
 


a
 


charm. You need to tweak the location of the preloader bar, and the
 


name of
 


your xml file, but it's pretty sweet for larger xml loads.

var barWidth:Number = 200;
var barHeight:Number = 6;

this.createEmptyMovieClip(pBar_mc, );
var bar:MovieClip = pBar_mc.createEmptyMovieClip(bar_mc, 10);
bar.beginFill(0xFF, 100);
bar.moveTo(0, 0);
bar.lineTo(barWidth, 0);
bar.lineTo(barWidth, barHeight);
bar.lineTo(0, barHeight);
bar.lineTo(0, 0);
bar.endFill();
bar._xscale = 0;

var stroke:MovieClip = pBar_mc.createEmptyMovieClip(stroke_mc, 20);
stroke.lineStyle(0, 0x00);
stroke.moveTo(0, 0);
stroke.lineTo(barWidth, 0);
stroke.lineTo(barWidth, barHeight);
stroke.lineTo(0, barHeight);
stroke.lineTo(0, 0);

pBar_mc.createTextField(label_txt, 30, 0, barHeight, 100, 21);
pBar_mc.label_txt.autoSize = left;
pBar_mc.label_txt.selectable = false;
pBar_mc.label_txt.textColor = 0xFF;
// location of preloader on the movie stage
pBar_mc._x = -160;
pBar_mc._y = 0;

var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
  pBar_mc.onEnterFrame = undefined;
  if (success) {
myText.text = my_xml;
pBar_mc._visible=false;
pBar_mc.label_txt._visible=false;
  trace(XML loaded successfully);
  } else {
  trace(Unable to load XML);
  }
};
my_xml.load(Publications.xml);

pBar_mc.onEnterFrame = function() {
  var pctLoaded:Number = Math.floor(my_xml.getBytesLoaded() /
my_xml.getBytesTotal() * 100);
  if (!isNaN(pctLoaded)) {
  pBar_mc.bar_mc._xscale = pctLoaded;
  pBar_mc.label_txt.text = pctLoaded + % loaded;
  if (pctLoaded = 100) {
  pBar_mc.onEnterFrame = undefined;
  }
  }
}
- Original Message -
From: Mike Boutin [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 01, 2006 1:05 PM
Subject: Re: [Flashcoders] multi-threading / xml progress meter
 


solutions?
 

 


Yes I have this problem too, except the xml im loading can be rather
   


large
 


and it causes flash player to freeze up for a few seconds when
   


parsing.
 


- Original Message -
From: Scott Pobiner [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 01, 2006 9:02 AM
Subject: [Flashcoders] multi-threading / xml progress meter
   


solutions?
 

   


Hello flashcoders,

I was wondering what solutions people have for activity while
 


trying  to
 


load and parse XML data?  My application takes a solid 2-3 seconds
 


to
 


load and all attempts to build preloaders and progress meters seem
 


to
 


fail.  It seems that the application is hanging while it sorts out
 


the
 


XML data.

I suppose that this topic might also be valuable for other
 


applications.
 


Thoughts?  Comments?

Thanks all,

Scott



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


NOTICE:
This message is for the designated recipient only and may contain

[Flashcoders] Stop the stream!

2006-03-10 Thread Mike Boutin

Hello everyone,

I am using a MediaPlayback component (Media - Player 6-7) from Flash 8 
to stream some mp3s.  I have a combo box that changes the current mp3 
with this code:


flashMp3.setMedia(mp3ToLoad, MP3);

The problem is everytime I change the file, the old file continues to 
download.  So if I change the song 5 or 6 times the connection gets very 
slow.  Is there any way of stopping the song that is currently streaming 
first?



Thanks!

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

2006-03-10 Thread Mike Boutin
That seems to have no affect on it.  Very wierd that there isnt a way to 
flush out the old streams.



eric dolecki wrote:

have you tried   flashMp3.setMedia( null ) ?
not sure what that might do...

On 3/10/06, Mike Boutin [EMAIL PROTECTED] wrote:
  

Hello everyone,

I am using a MediaPlayback component (Media - Player 6-7) from Flash 8
to stream some mp3s.  I have a combo box that changes the current mp3
with this code:

flashMp3.setMedia(mp3ToLoad, MP3);

The problem is everytime I change the file, the old file continues to
download.  So if I change the song 5 or 6 times the connection gets very
slow.  Is there any way of stopping the song that is currently streaming
first?


Thanks!

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

2006-03-10 Thread Mike Boutin
I keep getting this error in the debugger whenever I type in a input box 
in my application.  Everything seems to work fine still but does anyone 
know what it could mean or where to start debugging it?


*** Security Sandbox Violation ***
SecurityDomain 'http://localhost:8081/project' tried to access 
incompatible context 'file:///C|/.../.../.../.../.../interface.swf'

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

2006-04-26 Thread Mike Boutin

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:

Thx for your respose,
But I cant believe it has to do with thatcause it works if I don't try
to load flvs from the same project but throw in the file from that other
project..

Any more thoughts?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashwan
Wadhwa
Sent: Wednesday, April 26, 2006 10:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Strnge FLVplayback problem

You may want to wait for the ready event to fire(after you set the
contentPath)and then issue the play command.

MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhel
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I throw in
an array of videos and it plays them sequentiallylike this: (FPB is a
reference to the FLVplayback-instance on stage)

public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

		// start with first Video

FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A
TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to
project2.flv...

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




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

2006-04-26 Thread Mike Boutin
Using the netstream is the same idea as using the component, you can 
pass in multiple flv's to the same netstream / controls.


Wouter Steidl wrote:

Well., the whole setu is with the playback component because I can use 1
component and multiple flvs in that componentand the strange thing is
that it all works, but in this weirtd way I described

Thx for the tip though!
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Wednesday, April 26, 2006 10:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:
  

Thx for your respose,
But I cant believe it has to do with thatcause it works if I don't 
try to load flvs from the same project but throw in the file from that 
other project..


Any more thoughts?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashwan 
Wadhwa

Sent: Wednesday, April 26, 2006 10:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Strnge FLVplayback problem

You may want to wait for the ready event to fire(after you set the 
contentPath)and then issue the play command.


MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwh
el
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter 
Steidl

Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I 
throw in an array of videos and it plays them sequentiallylike 
this: (FPB is a reference to the FLVplayback-instance on stage)


public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

		// start with first Video

FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form 
A TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv


As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to 
project2.flv...


//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




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

[Flashcoders] Easing Dynamic Text

2006-05-03 Thread Mike Boutin
Anyone have any links to easing dynamic text?  Ive searched google high 
and low with no luck.


Thanks!

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

2006-05-03 Thread Mike Boutin
Do you know of any tutorials that explain the logic behind easing 
dynamic text? I understand that a tween class would/could be used but 
looking for more of how its done.


Boots

eric dolecki wrote:

mc_tween2 does that

On 5/3/06, Mike Boutin [EMAIL PROTECTED] wrote:


Anyone have any links to easing dynamic text?  Ive searched google high
and low with no luck.

Thanks!

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

2006-05-04 Thread Mike Boutin
I am trying to move all my animations so that they arecentered in the 
movieclip they were created in (was created off-centered) except I dont 
want to go through every keyframe and adjust the positioning frame by 
frame.  Is there an easier way of doing this?  I am using flash 8 pro... 
Any suggestions would be of great help!


Thanks!!


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

2006-05-08 Thread Mike Boutin

You could use php to write an xml file.

Flash guru wrote:

Hey all,

Can anyone point me in the right direction of how to save an xml doc from
flash.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash Remoting Freezing Player

2006-05-23 Thread Mike Boutin

Hello everyone,

I have been doing some work with Flash Remoting and AMFPHP.  The problem 
im having is the same problem I get with using PHP and XML.  The Flash 
player seems to just freeze whenever I make a backend call.  No loading 
animations or anything causing the user to think the app has crashed. 
Is this a common problem and are there any work arounds for this? Any 
info about be greatly appreciated!



Thanks!

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

2006-05-25 Thread Mike Boutin

Yes im having the same problem, but with Flash Remoting.

Matt Jurgemeyer wrote:

I'm building my menus dynamically from xml docs, but I'm having a problem
with a lag while the xml parses. I have a graphic indicating that the xml is
loading, but it isn't showing up for me on broadband. I'm assuming that this
is because the xml file is so small, it loads instantly. I still have the
lag though, so it must be coming from the parsing time. Is there any way I
can indicate or show progress of parsing? I'm sure this has been a common
topic in the past, but I haven't been able to find anything online.

 


For reference, the URL is: http://www.jurgmeyer.com
http://www.jurgmeyer.com/  - after the page loads, click on any of the
four options to see what I'm talking about.

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

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





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

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


Re: [Flashcoders] Flex vs. Flash IDE

2006-05-25 Thread Mike Boutin
Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They have 
a awesome community for help and getting started with it.


jcanistrum wrote:

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:


Hi,
I've been too busy developping in Flash lately to give a try to the new
Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


 The other issue i see with flex is it's ability to scale.  It doesn't
 seem to have the ability to handle a ton of simultaneous connections
 very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
 prefer to develop the front ends in flash and communicate back and
 forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot 
better.

Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with 
the

Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak



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

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







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

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


Re: [Flashcoders] Flex vs. Flash IDE

2006-05-25 Thread Mike Boutin
I found the Laszlo mailinglist to be very helpful.  I got a quicker 
response rather than using the forums.  I believe the sign up is at 
openlaszlo.org



Mike

Jim Robson wrote:

Mike,

I didn't have much luck with the Laszlo community. I posted several
questions, and most of them went unanswered. Maybe they just don't like
ignorant newbies?

I also couldn't get Laszlo Systems to answer all of my questions. They sent
me a nice email when I joined their forum, but when I asked some questions,
they only answered some of them (and the answers they did send were a long
time coming). 


Overall, it seemed to me that the Laszlo support was lacking compared to
what I've found with Flex.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, May 25, 2006 1:34 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They have 
a awesome community for help and getting started with it.


jcanistrum wrote:

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:

Hi,
I've been too busy developping in Flash lately to give a try to the new
Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE



The other issue i see with flex is it's ability to scale.  It doesn't
seem to have the ability to handle a ton of simultaneous connections
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
prefer to develop the front ends in flash and communicate back and
forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot 
better.

Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.
Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with 
the

Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak



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

2006-05-25 Thread Mike Boutin

You can deploy a Laszlo app as a stand-alone swf as well.

Mike

Marcelo de Moraes Serpa wrote:

Never used Laszlo and probally will never used it ... would better go to
flex2, don´t like the idea of using javascript and that the swf is 
generated

at runtime...

On 5/25/06, jcanistrum [EMAIL PROTECTED] wrote:


I was considering to use it but it was disapointing to me the fact that
they
don´t have AS 2.0 language support

2006/5/25, Mike Boutin [EMAIL PROTECTED]:

 I found the Laszlo mailinglist to be very helpful.  I got a quicker
 response rather than using the forums.  I believe the sign up is at
 openlaszlo.org


 Mike

 Jim Robson wrote:
  Mike,
 
  I didn't have much luck with the Laszlo community. I posted several
  questions, and most of them went unanswered. Maybe they just don't
like
  ignorant newbies?
 
  I also couldn't get Laszlo Systems to answer all of my questions. 
They

 sent
  me a nice email when I joined their forum, but when I asked some
 questions,
  they only answered some of them (and the answers they did send were a
 long
  time coming).
 
  Overall, it seemed to me that the Laszlo support was lacking compared
to
  what I've found with Flex.
 
  Jim
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Boutin
  Sent: Thursday, May 25, 2006 1:34 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Flex vs. Flash IDE
 
  Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They
have
  a awesome community for help and getting started with it.
 
  jcanistrum wrote:
  and what about OpenLaszlo, has someone given it a try ?
 
  I saw some very good demos overthere 
 
  http://www.openlaszlo.org/demos
 
 
 
  2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:
  Hi,
  I've been too busy developping in Flash lately to give a try to the
 new
  Flex
  yet, so excuse me if the following question sounds stupid:
 
  Flex use to be a server product, but with the new Flex Builder can
you
  simply build a swf file like you do with flash and include it in
 regular
  html page? (and therefore php,etc...)
  Or do you absolutely need to have a specific Flex server of some
sort
  running in order to deliver those files?
 
  Thank you,
  Frank
 
 
  -Original Message-
  From: Muzak [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 6:45 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Flex vs. Flash IDE
 
 
  The other issue i see with flex is it's ability to scale.  It
doesn't
  seem to have the ability to handle a ton of simultaneous
connections
  very well, ala Flash Media Server.  Perhaps I'm off base here, but
 I'd
  prefer to develop the front ends in flash and communicate back and
  forth with a traditional back-end I.E. ASP, PHP, etc.  Those 
things

 are
  free to develop on, more prove and seemingly scale a hell of a lot
  better.
  Yes, it's not as simple as an EASY button, but if work was easy
it'd
 be
  fun and we'd all be broke.
  Have you looked into FDS?
  http://labs.adobe.com/technologies/flexdata_services2/
 
  When you say: develop the front ends in flash You mean the Flash
IDE?
 
  What makes you think developing in Flex does not allow you to
 communicate
  with any traditional back-end?
  Flex Builder is just an IDE. The end result is an swf the same as
with
  the
  Flash IDE. It's just that an swf published from Flash is 
currently a

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




--
João Carlos
___
Flashcoders@chattyfig.figleaf.com

[Flashcoders] Camera Auto Deny

2006-06-01 Thread Mike Boutin
Hello,  I have this code on the first frame of a blank movie.  For some 
reason it always autmatically denies access to the camera without even 
popping up the standard Allow/Deny dialog.  Any help would be 
greatly appreciated! thanks!


function allowCamera() {
var my_camera:Camera = Camera.get();
my_video.attachVideo(my_camera);
my_camera.onStatus = function(infoObj:Object) {
switch (infoObj.code) {
case 'Camera.Muted' :
trace(Camera access denied);
break;
case 'Camera.Unmuted' :
trace(Camera access granted);
break;
}
};

}
allowCamera();


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

2006-06-06 Thread Mike Boutin
Does your service class load properly with no errors in the amfphp 
Service Browser? can you post some code?



Mike

Sam wrote:

Hi,
Are there issues between flash player 7  8, When I try to connect using 
player 7 it works, when trying connect with p[layer 8 it fails.

Any Ideas why this would be?

Thanks.

Sam


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

2006-06-06 Thread Mike Boutin

Hmm odd.  Can you post an example of your connection script?


Mike

Sam wrote:

Hi,
Yes the service works fine in the Service Browser.
Opening the swf in SAFlashPlayer 7 the service connects SAFlashPlayer 8 
I get a connection failure


On Jun 6, 2006, at 12:01 PM, Mike Boutin wrote:

Does your service class load properly with no errors in the amfphp 
Service Browser? can you post some code?




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

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





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

2006-06-15 Thread Mike Boutin
Is it possible for you to just grab the name after it is selected from 
the FileReference object?



var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots

[EMAIL PROTECTED] wrote:

I am using the FileReference Class to upload images. Is there a way to get the 
path to the selected file? Ideally, I would like to preview the image before 
being uploaded and need the path.
 
 Thanks for any and all replies.

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

2006-06-15 Thread Mike Boutin
Not sure if this will help, but maybe you can copy the image to the 
users cache to display it.


// make a working copy of a file on the user's disk
var fileRef = new FileReference();
if (fileRef.browse([Text Files, *.txt]) {
   fileRef.copyIntoCache(backup-data.txt);
   var newFile = new FileReference();
   newFile.open(backup-data.txt);

   // operate on new file
   // ...

}

[EMAIL PROTECTED] wrote:

Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e. 
c:\images\image001.jpg)

Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to just grab the name after it is selected from 
the FileReference object?



var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


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

2006-06-15 Thread Mike Boutin

Oops :)

Maybe im just dont undestand the problem because how can you show a 
preview of the users image without first uploading it to your server?



Boots

Geoffrey Williams wrote:

That's a Macromedia Central only feature. I doubt they're using Central, but
maybe ;)

If you're working in a web page you can use a hidden file field and
communicate with it via ExternalInterface / getURL and javascript.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, June 15, 2006 1:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] FileReference and Getting File Path

Not sure if this will help, but maybe you can copy the image to the 
users cache to display it.


// make a working copy of a file on the user's disk
var fileRef = new FileReference();
if (fileRef.browse([Text Files, *.txt]) {
fileRef.copyIntoCache(backup-data.txt);
var newFile = new FileReference();
newFile.open(backup-data.txt);

// operate on new file
// ...

}

[EMAIL PROTECTED] wrote:

Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e.

c:\images\image001.jpg)
Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to
just grab the name after it is selected from 

the FileReference object?


var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Sample PHP script for handling XML from Flash

2006-06-21 Thread Mike Boutin
You may also want to look into amfphp and Flash Remoting as it greatly 
simplifies this approach.


http://amfphp.org/


Mike Boutin

Jim Robson wrote:

Matt:
 http://php.net/ has tutorials and a comprehensive manual. If you have
experience with ASP, then you should be able learn the basics of PHP
quickly.

-Jim 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of matt
stuehler
Sent: Wednesday, June 21, 2006 2:34 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Sample PHP script for handling XML from Flash

All,

This may be more than I should ask for, but I'm looking for a sample or two
of PHP that can do the following:

- Receive an XML doc from Flash
- Extract certain nodevalues and attribute values
- Create and SQL query that stores those values in a MySQL database

and vice versa:

- Retrieve a record from a MySQL database
- create an XML doc containing the record's values
- send that XML doc to Flash

I've done this many times before with ASP and SQLserver or Access (so I'm
familiar with the Actionscript and SQL), but I've never used PHP or MySQL
before.

I'm hoping that with a working sample, I can modify it to the specifics of
my project.

I'd be very grateful for any sample code, helpful advice, or useful links.

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


  1   2   >