I mean how are you referencing you XML file / images within AS3? Are they
absolute paths like http://some.com/xml/some.xml ? or relative paths like
/xml/some.xml ? If you are using relative paths, then you should set the
BASE param for your flash player so that the XML / images will actually be
loaded from the correct location.

As the code you pasted does not show the pathing for the XML or images, I
can't say whether you have any issues or not. That is why I asked you to
post a link.

No, you do not need to point to the XML / images through flashvars. If you
have the location hard coded in your flash file, then that is fine.

When you say it plays on the server, you mean when you use a standard
<object>/<embed> method in your HTML page, or when you access the swf
directly without HTML?

At the end of the day SWFObject just creates the proper <object> structure
to embed your swf in your HTML page. It does not affect your flash
file's capabilities or stop you doing anything you are used to doing in
Flash.  It is easy to see if SWFObject has in fact embedded your swf on to
the page by right clicking the area where the file should be and if you get
a Flash player context menu, then you at leasdt know the embedding has
happened as it should.


Aran



On Sat, Dec 12, 2009 at 2:19 PM, cnicoletti <[email protected]> wrote:

> What do you mean by relative path? Unless you can see an issue with my
> code I pasted, this is not the answer. My directory path and location
> are accurate. Does my AS3 file have to point to the external file
> through SWFObject flashvarsor something? Or can I have it load images
> and XML through AS3 like I have it set now? Like I said it plays on
> the server, just not through the SWFObject script.
>
> On Dec 11, 10:09 pm, Aran Rhee <[email protected]> wrote:
> > Most likely it is a relative pathing issue in loading the XML file.
> > SWFObject (or UFO for that matter) have no problems with flashvars vs.
> > direct request of images etc.
> >
> > Can you post a link to a test page? It is a lot easier to help if we can
> see
> > exactly what is going on (http traffic etc)
> >
> > Also, make sure you read the SWFObject 2.x docs, as it is recommended to
> > place all SWFObject code in the <head> of the page rather than inline
> like
> > 1.x or other embedding methods.
> >
> > Cheers,
> > Aran
> >
> >
> >
> > On Sat, Dec 12, 2009 at 4:42 AM, cnicoletti <[email protected]>
> wrote:
> > > I am having a major issue with having my flash file not showing up on
> > > a server page.
> >
> > > I was using UFO, but recently switched to SWFObject 2 because of the
> > > same issue.
> >
> > > The file plays fine on the server, just not with the JavaScript. Other
> > > flash files play fine also.
> >
> > > Does this have something to do with my external XML or gallery images
> > > not playing nice with the SWFObject?? (/xml/gallery.xml) The xml is
> > > being loaded from Flash AS3, not a flashvar.
> >
> > > Thanks in advance for all your help!
> >
> > > Here is the code from the .ascx file:
> >
> > > <div style="width:974px; height:300px;  margin:auto; text-
> > > align:center;">
> > > <script type="text/javascript" src="/js/swfobject.js"
> > > language="javascript"></script>
> > >    <script type="text/javascript">
> > >    swfobject.embedSWF("/ContactUS/_Swf/EN/main_Home.swf",
> > > "flashmedia", "974", "300", "9.0.0" , "expressInstall.swf",
> > > {menu:"false"});
> > > </script>
> > > <div id="flashmedia">
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "SWFObject" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<swfobject%[email protected]>
> <swfobject%2bunsubscr...@googlegroups­.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/swfobject?hl=en.- Hide quoted text -
> >
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.


Reply via email to