Problem loading .swf embedded with HTML
Hi All,
I have embedded .swf file with HTML. It is working fine with
win xp and win 2003. But not working on win 2000 server.
I have set the MIME in IIS for .swf.
Please let me know what setting I should configure.
Thanks,
Aung
does container exit on the timeline that contains your code?
is master.swf in the same directory with your flash swf and
html?
Similar Messages
-
Load swf file in html based air?
1. The start window opens up a transperant window in an iframe.
2. Then the transperant window loads an external asp file from my server (content.asp) in an iframe.
3. In the content.asp file i try to load an swf file, but nothing is visible?
I use the following code in content.asp to show the swf file:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="300">
<param name="movie" value="flashtest.swf" />
</object>
I have uploaded a testpage with this code to the server and it works fine, but not in the air application!?
What Im I doing wrong?No, nothing with HTML.
I have 2 SWF applications. One is the Gallery, and the second is my Main Page.
My Main Page must integrate the Gallery module in one of its page.
The problem is when I try to integrate it, I think I must give de future loaded SWF some parameters like this :
(My Main SWF loading in HTML)
var so = new SWFObject("WebSite.swf", "flashcontent", "520", "700", "10", "#111111");
so.addParam("allowfullscreen","true");
so.addParam("allowScriptAccess","always");
so.addParam("menu","false");
so.addParam("wmode","opaque");
so.addParam("bgcolor","#000000");
so.setAttribute("id","flash");
so.write("flashcontent");
It was for the Main App. For my Gallery SWF I had to load it like this (in HTML) :
var so = new SWFObject("Gallerie.swf", "gallery", "249", "249", "10", "#111111");
so.addVariable("xml_path","Galerie/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
so.addParam("allowfullscreen","true");
so.write("flashcontent");
So at the beginning I had 2 different projects with an HTML page for each.
Now I wan't to directly integrate the Gallery SWF into the Main SWF. And as you have seen I must give it some parameters such as the "xml_path" and "allowfullscreen". This must be done in ActionScript 3 and I don't know how...
I think I have to use FlashVars but I don't know how. As I said before, I have tried using the loaderinfo.parameters, but it is in read-only...
Do you have an idea of how I can make it work ? -
Problem loading swf which reads data in a local file
Hi,
Using flex with a online project, I have to load a swf file, which reads data in a xml file (it works fine if I open it with flash player)
I do a very simple test :
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
minWidth="955" minHeight="600"
>
<mx:SWFLoader id="swfloader" source="data/player.swf"/>
</mx:Application>
The result is that player.swf can't read the xml file (error : Error #2044: ioError non pris en charge : text=Error #2032: Erreur de flux. URL: enonce.xml).
I do the same test with an AIR project, and it works fine !!!!
It works also if I put the xml file directly at the same level as my compiled application (in bin-debug for instance).
I think that it's a path problem, but I don't know how to set it.
Is there any way to solve the problem ???
Thanks a lot !
OlivierHi,
Thanks for your answer, but I am not sure to understand it.
What code I have to adjust :
- the code of the swf I load ? It's a problem because I don't have access to the source code : my customer provides me only a swf file (with the xml file), and I have a lot of others swf files that work the same way, I can't ask him to modify everything.
- the code of my application ? I don't really see how to use LoaderUtil.createAbsoluteURL, because when I debug, I see in the SWFLoader code that when this method is called, the returned url is good !
Thanks for your help.
Olivier -
INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.
INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.
-
Loaded SWF communicating with Main Timeline
Let's say I load an external SWF to my main timeline. In that
loaded SWF, I'd like to have a button that when clicked, removes a
Movie Clip from the main timeline.
How do I do that? Should be simple, right?Sorry I misunderstood your question, but here is the code.
The second part is original swf altering a movie clip in the
external (mov2.swf), just making an mc 50% transparent....
circle_btn.addEventListener(MouseEvent.CLICK, printButton);
function printButton(myevent:MouseEvent){
var portLoader:Loader=new Loader();
var printThumbRequest:URLRequest=new URLRequest("mov2.swf");
portLoader.load(printThumbRequest);
stage.addChild(portLoader);
portLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loaded);
function loaded(event:Event) {
circle2_btn.addEventListener(MouseEvent.CLICK,
talkToExternal);
function talkToExternal(myevent:MouseEvent){
event.target.content.green_mc.alpha=.5;
} -
Zoomify embedding with HTML Snippet?
Can you use Zoomify with HTML Snippet in iWeb '08? I can't seem to make it work.
I have placed a Zoomify an my site and there i explaned how to do this
1.If you are ready in Photoshop and have exported the file you’ll find a web-page with the name filename.html and a map that’s called filename_img. Open the HTML page with software like Taco HTML Edit. (Freeware)
2.Select al the code and copy it.
3.Go to the web-page in iWeb where you want Zoomify, choose webwidget and paste in the HTML.
4.Publish your site.
5.If finished, open your iDisk and open the map with your page name (path iDisk(your name)/web/your site name/your page name)
6.Copy the map filename_img to the map called as the page name. This can take some time
Take a look on this page: http://web.mac.com/guy.beckers1/mediainbelgium/Home.html -
Problem Loading swf with MCL class
Hey, I am relatively new to actionscripting and am having a
bear of a time trying to figure out why this won't
load.....basically i am trying to use the movieClipLoader class to
call up a swf..... so basic i know..This is my script
any help here?does container exit on the timeline that contains your code?
is master.swf in the same directory with your flash swf and
html? -
MP3 file loaded dynamically in swf embedded in html does not play in Firefox
Hi,
I have made a presentation with voice over, in which the images and audio files are loaded externelly from the folder where the swf was placed. the voice over files are in MP3 format, loaded with the script follows
mysound = new Sound();
mysound.loadSound("voice1.mp3");
mysound.start(0,0);
It works well in IE but not in Firefox.
Can anyone extend a helping hand?Hello RaghuMadhav1968,
I moved your post out of the InContext Editing forum into the Flash forum.
Best regards,
Corey -
Loading swf file with dynamic text
For a website I'm creating I'm going to have a main swf file
that loads individual swf files for each page. Each page's swf file
loads in external text files through dynamic text boxes so i can
edit the website easily. To load the swf files into the main swf
file I'm using the loader component. Everything works fine except
thedynamic text boxes of the swf files that are nestled in the main
one do not load properly. Instead, in each text box i get a message
similar to this:
_level0.NewsLoader.contentHolder.News1
NewsLoader is the instance of the loader component, and News1
is a variable called in through a dynamic text field from the html
document entitled News1.html. The individual news swf file loads
the text properly, but when the news swf file is loaded into the
main swf file the text is replaced with the message above.
Any suggestions?the problem might be due to the changed references if you
load the movie into another one.
is NewsLoader a MovieClip instance inside the main movie or
inside the mc that is loaded into the main movie?
If it resides inside the exteranly loaded movie, you will
either need to use the lockroot attribute or use a relative
reference to the News1 variable.
Since the _level0 always points to the _root timeline (the
one of the outer most movieclip) _level0 used in the external mc is
different once the external movieclip is loaded into another movie.
I suggest only using relative references, makes live much
easier. -
Swf embedding with Dreamweaver
I have tried to test working of swf in Mozilla firefox with a code prepared in Dreamweaver as below. By some reason it appears a gap between swf cell 835x110 and the next cell 835x19, as if there is an additional row. In other browsers all is alright, there is ni gaps. It seems it's something wrong in the code. Have anybody a solution?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<table width="835" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="835" height="110" align="left" valign="top" scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="835" height="110" id="FlashID" title="top">
<param name="movie" value="images/top.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/top.swf" width="835" height="110">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></th>
</tr>
<tr>
<th width="835" height="19" align="left" valign="top" bgcolor="#FF6633" scope="row"> </th>
</tr>
</table>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>First I would check if you are actually assigning your
dynamically loaded in Font to the text - Remove your Font from the
Windows Font folder to uninstall it - then try loading just the
SWF. It shouldn't matter if that font is installed or not - if its
embedded correctly, it will display in that font
appropriately. -
Problem - loading .swf's
I have a main movie published as a projector file (.exe) from
Flash. This file needs to load other .swf-movies into it and it
works flawlessly on my computer.
However, when I copy the files and place them on other
computers the main file works fine but the sub-.swf's will not load
into the main movie.
Does anyone have experience with this type of problem and how
to solve it?
Thanks.My problem has been solved - this discussion provided the
solution:
http://www.jetfly.no/flash/archives/000068.html
It turns out that if you want to run a Flash presentation on
your hard drive the external applications (in my case a bunch of
.SWF's) must be placed inside of a directory THAT DOES NOT CONTAIN
ANY SPECIAL CHARACTERS OR SPACES!!! A Flash Player 8 bug I
suppose. -
"Movie not loaded" when embedded in HTML.
I am new to flash programming and am trying to teach myself actionscript. So far I have been unable to get my program to run when embedded on my website. It works perfectly when I run the swf on my own hard drive, but when embedded it simply shows a white square. Right-clicking brings up a menu with a greyed out "movie not loaded" and "about flash player 10". Do I need to change the compiler settings somehow? Or do I need to change something on my website? So far I've just been compiling it by dragging the .mxml file onto the mxmlc.exe program.
Searching google has revealed a ton of people with similar issues, but no clear solution. Any help would be greatly appreciated.Problem resolved. Apparently the swf I was using was bad. After replacing it with a backup copy, it works.
-
Problem loading swf file in flash player 9.0.47.0
Hi all!
I have a really strange problem and couldn't find any information over the internet.
The problem only occurs in flash player 9.0.47.0. It works in all the others players, newer and older..
I try to load a swf file to my web application and get the following error: "This content requires Adobe Flash Player 10.2. Would you like to install it now?"
the log file shows:
*** Security Sandbox Violation ***
SecurityDomain 'http://10.1.1.84:8080/app/jsp/flex/bin-release/LP_FLEX_project.html' tried to access incompatible context 'http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?0.5087 71003223956'
Warning: Reference to undeclared variable, 'out'
Warning: Reference to undeclared variable, 'out'
Warning: 'out' has no property 'text'
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Warning: checkPort is not a function
Warning: Reference to undeclared variable, 'xOffset'
Warning: Reference to undeclared variable, 'yOffset'
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Warning: checkPort is not a function
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Does anybody has a solution??
Thanks alot!
AssafMaybe FP9 does not support your application / swf file? How did you develop it?
-
Problem loading jpg's with xml
I have looked through the forum to see if my problem was
raised but I could not find any topic that could help me out. So
here's my problem.
I have a simple photo viewer that load jpg's via xml.
Everything work perfect when I preview the movie in Flash or on my
desktop but as soon as it's uploaded to the server the jpg's so not
load. And everything is placed correct on the server.
Anyone got a clue why?Ok I found out that if you go directly to the movie in the
browser (http//www.url.com/name.swf) then it work perfect and the
photos load.
I got two other movies in the same html document. It's surely
here the problem occur. But why and what can I do to solve
it? -
Hi there,
The following code is in my main FLA....
quote:
// Request the content
var req:URLRequest = new URLRequest("PhotoViewer.swf");
// Create a loader object
var loader:Loader = new Loader();
// Load the content
loader.load(req);
// Add loader into the Display List
addChild(loader);
// Check loading progress
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
checkProgress);
// Update progress bar
function checkProgress(e:ProgressEvent):void
var percent:int = (e.currentTarget.bytesLoaded /
e.currentTarget.bytesTotal) * 100;
loadingBar.text = String(percent + '%');
mcLoadingBar.width = percent;
// Check when content is loaded
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
contentLoaded);
// Remove the progress bar objects
function contentLoaded(e:Event):void
removeChild(loadingBar);
removeChild(mcLoadingBar);
removeChild(loadingBarBorder);
The SWF "PhotoViewer.swf" is a file that another Flash
developer built and released as an open-source tutorial and the
file uses a Document Class to create a Photo Gallery from an XML
file. The PhotoViewer SWF works fine on it's own, but when I try to
load it within my main SWF I get the following error message....
quote:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at PhotoViewer()
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at PhotoViewer/init()
at PhotoViewer/frame1()
I can post the code for the PhotoViewer.fla and
PhotoViewer.as if it will help locate the problem as to why I'm
getting the above error.
NOTE: The PhotoViewer.fla and PhotoViewer.as file has been
updated by myself. Originally the PhotoViewer.as file's constructor
would call a function called "init();" and the init function would
specify the url of the XML file to load, but I have removed this
init() function call from the constructor and instead I have placed
this in the first frame of the PhotoViewer.fla and also updated the
function call so it specifies the XML file to load (e.g.
init("Portfolio-Identity.xml");).
I thought it might be some problem with my ActionScript code
loading the PhotoViewer.swf file, but I changed the loading url to
another SWF that I built myself and it loaded the file fine.
I'm not sure why I'm getting this error?
Any help really appreciated!
Kind regards,
MarkMy main FLA that is loading in the PhotoViewer.swf file has
the following code....
quote:
// Request the content
var req:URLRequest = new URLRequest("PhotoViewer.swf");
// Create a loader object
var loader:Loader = new Loader();
// Load the content
loader.load(req);
// Add loader into the Display List
addChild(loader);
// Check loading progress
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
checkProgress);
// Update progress bar
function checkProgress(e:ProgressEvent):void
var percent:int = (e.currentTarget.bytesLoaded /
e.currentTarget.bytesTotal) * 100;
loadingBar.text = String(percent + '%');
mcLoadingBar.width = percent;
// Check when content is loaded
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
contentLoaded);
// Remove the progress bar objects
function contentLoaded(e:Event):void
removeChild(loadingBar);
removeChild(mcLoadingBar);
removeChild(loadingBarBorder);
The PhotoViewer.fla file has the following code....
quote:
init("Portfolio-Identity.xml");
And the PhotoViewer.as file has the following code (see
attached below)
Hope this helps.
Ta,
M.
Maybe you are looking for
-
Memory upgrade on Satellite Pro A40
Can anyone please advise where is the best place I can get a memory upgrade for my Satellite Pro A40 laptop. I think my machine is a PC2700 DDR. I am looking for either 512mb or 1gb. Thanks in advance. Christine
-
How do I remove 23cents from my itunes account to change my region?
I have 23cents that I cant spend on anything. I want to change my region before adding more credit. How could i remove the 23c? Please help!
-
Airport Express relay and remote no longer work
After upgrading to Snow Leopard 10.6.4 from Tiger 10.4.11, my two Airport Express units (one relay, one remote) will no longer work. My Airport Extreme Base unit is fine, and our desktops and laptops still connect to the wireless. However, I want to
-
How to get more then the 17 functions
hi there heres one for you all. is it possable to get more little functions on the iphone i.e more buttons?????? i have seen in a shop why i brought my iphone from, a customer showed me his and he had 2 and a half pages full of things, i recon this i
-
** JCO$Exception Problem in RFC to RFC scenario
Hi Friends, I am doing RFC to RFC scenario. We have two IDES system. One XI system. The scenario is to send the Vendor data from First IDES system (Z_APPLE_VENDOR_SEND) to call the RFC (Z_APPLE_VENDOR_INSERT) in the second RFC system. Sync to Sync Sc