Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Corey Knafelz

This aftenoon I subscribed to this list once again. And now I remember why I
unsubscribed from the list so many months ago. Goodbye again.


On 10/12/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:



The plaintiff rests.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-12 Thread Corey Knafelz

get fucked jerk.

On 10/12/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 This aftenoon I subscribed to this list once again. And now I remember
why
 I unsubscribed from the list so many months ago. Goodbye again.

You'll be missed.  Again.  ;)

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

2006-06-09 Thread Corey Knafelz

I have to use a product called Documentum to publish documents to our
webserver. I'm having an issue with it inserting processing
instructions to my xml document as show below:

pic
image
?dctmEditor
selectedPath=/wcs_images/graphics/adventures/photos/gal_00.jpg
?
?dctmLink
chronic_id=0900029a800c829b object_id=0900029a800c829b edit_widget_type=graphic
?
/graphics/adventures/photos/gal_00.jpg
/image
/pic

This breaks Flash, but works with the original XML file which
indicates image as:

pic
image/graphics/adventures/photos/gal_00.jpg/image
/pic

I'm looking for pointers on how I might strip the xml processing
instructions from the xml with AS, or at least ignore them. Has anyone
run into this before and by chance have a solution?

Thanks,
Corey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] flashvars, SWFObject, paths XML

2006-06-07 Thread Corey Knafelz

I'm working on a XML slideshow application:
http://fuzzylogical.com/clients/rei/slideshow/v5/ss_swfObject.html

Using SWFObject, I'm easily able to pass the variable tripPath to the
swf using flashvars.

script type=text/javascript
// ![CDATA[

var so = new SWFObject(xml_photogallery_5.swf, sotester, 
570,
455, 7, #FF);
so.addVariable(tripPath, foo);
so.write(flashcontent);

// ]]
/script

I then use tripPath to append the directory where slideshow.xml lives
(foo) using the following code:

//-- Load XML --//
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
imagetitle = [];
description = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; itotal; i++) {
image[i] = 
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
imagetitle[i] = 
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description[i] = 
xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnail[i] =
tripPath+xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
}
firstImage();
} else {
content = file not loaded!;
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(tripPath+/slideshow.xml);

The problem I'm having is since I'm describing a relative path in the
xml file, for example: imagegal_00.jpg/image, I'm unable to have
the images reside in the same directory as the xml file. They have to
be relative to the slideshow swf in order to load.

Can anyone offer any thoughts on how I might concatenate tripPath to
the beginning of the path of image described in the xml file?
http://fuzzylogical.com/clients/rei/slideshow/v5/foo/slideshow.xml

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

2006-05-25 Thread Corey Knafelz

I'm creating a slideshow. I've accomplished creating an alpha fade in
to 100  when the image loads. I need to also have the alpha fade back
to zero *before* the next image loads. I'd like to call this from the
nextImage() function below. Ideas?

this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha100) {
picture._alpha += 5;
}
}
};
function nextImage() {
if (p(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
title_txt.text = imagetitle[p];
picture_num();
}
}
};

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

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