Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
arvin8 #1
some files are not displayed
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 Guest
-
How come the images are not getting displayed in ie?
Hi, In my application i have a page where the thumbnails representing the videos uploaded into the site should be displayed.These imgaes are... -
Draft not displayed
When I select 'Edit this page' I just get a horizontal red line with two icons at the left end, which do not respond when I click on them. I have... -
getting ?????? displayed
i am trying to display japanese from database utf 8 on the output page but no luck ... -
Columns are displayed twice
I have two datagrids .... after handling the click event in one datagrid ..... using its data i query the database and get the data for the second... -
Pictures displayed in PHP
Sorry for the cross post if that offends you. First playing with PHP & MySQL. I want to create a 2 column table. Picture on one side and... -
Motion Maker #2
Re: some files are not displayed
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
[url]www.lonhosford.com[/url]
Flash, Actionscript and Flash Media Server examples:
[url]http://flashexamples.hosfordusa.com[/url]
May many happy bits flow your way!
"arvin8" <webforumsuser@macromedia.com> wrote in message
news:ed5gju$d6j$1@forums.macromedia.com...>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?
>
Motion Maker Guest
-
arvin8 #3
Re: some files are not displayed
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
}
arvin8 Guest
-
Motion Maker #4
Re: some files are not displayed
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
[url]www.lonhosford.com[/url]
Flash, Actionscript and Flash Media Server examples:
[url]http://flashexamples.hosfordusa.com[/url]
May many happy bits flow your way!
"arvin8" <webforumsuser@macromedia.com> wrote in message
news:ed6nfo$p1o$1@forums.macromedia.com...> 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 Guest



Reply With Quote

