Groups | Blog | Home
all groups > flash data integration > august 2006 >

flash data integration : some files are not displayed


Motion Maker
8/31/2006 12:00:00 AM
What Flash player version are you using?
What Flash IDE are you using?

For JPegs you have the progressive download not supported until the Flash 8
player.

Are the jpegs and mp3s loaded via Actionscript? Perhaps you have a coding
issue such as improperly arranged methods that are declared at run time such
as the MovieClip.onLoad that result in randomly not firing due to load
occuring before the method is assigned.

Not a Mac expert, but again be sure you know your player versions and see if
there are some issues with the Plug-in version you are using.

--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]

arvin8
8/31/2006 2:13:18 AM
I have a swf which it receives it's content from xml files.
It displayes jpg's and mp3's by getting their paths from xmls.
(also I must note that these jpegs and mp3s are uploaded from an asp.net form)

My problem is some jpgs are not being displayed & some mp3s are not played at
macintoshs.
I've tested with almost all mac browsers and flash plug-ins. It's all same.
While some files are being displayed some do not.
I see blank the area where the jpgs should be shown.

Has anybody faced this issue?
What can be the reason and any recommendations on how to fix this?
arvin8
8/31/2006 1:16:40 PM
Flash Player 8 and Actionscript 2 is used.

the code for showing the jpgs is in a .as file and being included inside the
main swf externally.
I'm attaching the code.

var $xmlurl:XML = new XML();
$xmlurl.ignoreWhite = true;
$xmlurl.onLoad = urldata;
$xmlurl.load("mainxml.xml");

$currentmovie = this;

var $xmldata:XML = new XML();
$xmldata.ignoreWhite = true;
$xmldata.onLoad = processdata;

$mainurl = "";

function urldata(success)
{
if(success == true)
{
$mainurl = this.childNodes[0].childNodes[1].childNodes[0].nodeValue;
$xmldata.load($mainurl);
trace($mainurl);
}
}


function processdata(success)
{
if(success == true)
{
for($count = 0;$count < $xmldata.childNodes[0].childNodes.length;$count++)
{
duplicateMovieClip(maindata,"mainData_" + $count,parseInt($count)+100);
setProperty("mainData_" + $count,_y,$count * 180);
$currentmovie["mainData_" + $count].maintitle =
$xmldata.childNodes[0].childNodes[$count].childNodes[0].childNodes[0].nodeValue;
// + " - " +
$currentmovie["mainData_" + $count].othertext =
$xmldata.childNodes[0].childNodes[$count].childNodes[1].childNodes[0].nodeValue;
if($xmldata.childNodes[0].childNodes[$count].childNodes[2].nodeName ==
"album_img")
{
$nodestart = 3;
$currentmovie["mainData_" +
$count].showgraph.loadMovie("../dosyalar/albumler/" +
$xmldata.childNodes[0].childNodes[$count].childNodes[2].childNodes[0].nodeValue)
;
}
else
{
$nodestart = 2;
}
$x_data_x = "";
for($count_1 =$nodestart;$count_1 <
$xmldata.childNodes[0].childNodes[$count].childNodes.length;$count_1++)
{
$x_data_x = $x_data_x +
$xmldata.childNodes[0].childNodes[$count].childNodes[$count_1].childNodes[0].chi
ldNodes[0].nodeValue + "\n";
}
//$currentmovie["mainData_" + $count].othertext =$x_data_x ;
} // end of teh for loop
maindata._visible=false;
} // end of the if condition
}
Motion Maker
9/1/2006 12:00:00 AM
I could not see in the AS code where the jpegs and mp3s are being loaded.
However I am not sure that the AS code would make a difference between Mac
and not.


I would suggest the Flash or Actionscript forum and pose the question there
as "Some jpegs and mp3s not playing on Mac" and see what more help you get
as this forum members are more tuned to database integration topics and so
you might get less takers to help.


--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]

AddThis Social Bookmark Button