Problems with SWF
Hello there,
I've used Lightbox 2 on my site as a means for an efficiant
photo gallery. When the image is clicked, it opens us within the
page and the rest of the page goes a very dark grew...however the
Flash SWF don't, they stay just as they are. Is there a way to send
SWF to the back or something?
Thanks in advance,
Kristopher (UK).
Probably because you used _root within your scrollbar code.
If that's the
case you can fix by setting lockroot to true, within your
scroll bar swf.
Just place a this._lockroot = true; as the first line in
frame 1's code.
That being said, it's better to simply avoid using _root.
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
Similar Messages
-
Problem with .swf playback
Hello,
I have a problem with .swf animation playback in captivate 4. I created the .swf in flash with as3 on one frame. The animation is contained in a movieclip. I exported from flash and made sure the framerates between captivate and flash work. I import the animation to a slide and notice that the duration of the animation is .01 (could this be a red flag?). When previewing my captivate file the animation does not play it shows up static. I have my captivate file set up with continue buttons but I tried taking the button off the animation slide and it still shows up with the static what would be animation. Has anyone else encountered this? I'm really at a loss as to whats going on
For bonus points: I'm still getting a transition that fades to white briefly even after I put no transition. Is their a way to just have an abrubt transition without the fade?
Cheers
-MattAlright now it makes more "sense".
Your SWF problem is caused by a bug in Captivate. I have encountered this many many times. Basically if you import a Flash animation and you have more than 1 slide in Captivate it will play to the end before you get to the slide with the animation. It's a really annoying bug that also occurs if you insert an SWF created in Captivate into a master Captivate project.
There are a couple of solutions to your problem.
1. Try and Externalize your animations when you publish your Captivate project. This can sometimes remove the problem. You can edit the settings in Preferences - Publish Settings.
2. Create a loader in Flash that will pull in your animation SWF. Basically you just need to do a loadMovie shell in Flash and then have that pull in your animation SWF. I use this all the time for AS2 projects, but I guess that it will work just the same for AS3 projects.
As for your fade in / fade out issue. Did you by any chance set a transition effect on your slides? Check the Slide Properties for a transition effect. If that's not it - is your fade in issue only occuring on the first slide? The "master" setting for a Captivate project has a default to fade in on the first slide. You can change that in Preferences - Project - Start and End.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets. -
(Eng/Esp) Problem with .SWF in DW/Problema con .SWF en DW.
Hello,
Sorry for my English, im learning, but im not yet a expert.
I have problem with my Dreamwaver, when I put a .swf (I've done my web with Flash) and press F12 i cant see my SWF. And the error mensager is the follow:
Could u help me, plz?
Thnx.
Andrés
Buenas tardes,
Estoy diseñado mi pagina web. La he hecho en Flash, pero a la hora de exportarla a Dreamwaver y al darle al F12 para verla como seria en el FireFox, me sale este mensaje
Si le doy aceptar, me aprece el fondo de mi web, pero donde esta la parte de flash se queda totalmente en blanco. He probado otros exploradores y me sale el mismo mensaje. He actualizado el flash a la última versión, etc. Alguien me podría ayudar?.
Muchas gracias,
AndrésOn lines 33 and 42, change this:
<param name="swfversion" value="20.0.0.0" />
To this:
<param name="swfversion" value="8.0.35.0" />
Nancy O. -
Problem With Swf File. Please Help!!!!
Hi! I recently got adobe flash cs4 and i tried to create swf wallpaper (flash lite 1.1), so everything looked good, untill i opened the file. The problem is its constantly blinking, like its refreshing with every second or frame or something. Then i transfered it to my phone and theres no change. I had the same problem with CS3...I attached the sample, if someone cares to see...Please can somebody help me??? Thank you!
I think (at a first look) that you should put a stop() command at each frame of your movie.
Playhead is running through your movie from one frame to another and back to beginning if you don't stop it with stop() command.
What I mean is:
in frame one of your movie put ActionScript: stop();
in frame two of your movie put ActionScript: stop();
etc.
If navigation through your movie is linear, like some animations then don't put this AS in frames, but it seems to me that this will solve your problem.
For more (if this isn't helping) upload your movie along with ActionScript. -
DW CS3 ImageViewer - problem with .swf file
I'm trying to make a slide show in Dreamweaver for the first time. I've searched and found a lot of common problems people have - forgetting to upload the .js file, not including the .swf file, etc.
I think I've done everything right (obviously I'm wrong though), it previews in DW, it works when I preview it in a browser, but when it's uploaded, nothing.
But I think I've found where the problem is. The .swf file that was created doesn't seem to be the right file. When I open it, it shows a blank flash slideshow with three empty slides, just as the sample is when you first open the Imageviewer.
But then what is DW pulling the slideshow from that works in the preview?? How do I re-export the .swf file from DW?
Do my questions even make sense? Sorry, kinda new at all this.
Thanks in advance.
Oh, here is the blank page, but when I view source, the code is there.
http://www.americanindianreport.com/imageviewer.html
The .js file is in the Scripts folder, the .swf is in the same folder. Actually, here you can see why it doesn't work. This is the .swf file, three blank pages:
http://www.americanindianreport.com/imageviewerflash.swfIf you look at my last post, the js file has been overwritten with html code, and this is what will be causing the problem.
The only solution is to delete this file insert a new flash object (any swf file will do for this), then copy the new js file to your server, as your flash will not work with this file.
here is a short example of the js files content (not javascript), -
<html>
<head>
<title>Page not found | www.americanindianreport.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/http://www.falmouthinstitute.com/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/book/book.css?r" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?r" />
PZ -
Problem with SWF export and audio looping
When I export from Keynote into SWF, I get an odd audio looping problem when playing the SWF files. Here's the workflow:
Create Keynote presentation (includes transitions typically, but also happens with presentations that don't).
Record audio using Audacity, convert using iTunes to MP3 in order to be able to export from Keynote to Flash (Keynote can't export WAV files).
Drop in MP3s onto slides. Sync up my transitions with audio.
Export Keynote file to SWF, including the audio.
Play SWF file either directly using Safari or when posted using Firefox. Audio plays, but a certain length into the audio the audio file seems to re-initiate and play over itself.
Anybody seen this? Anyone know how to solve it?
This is pretty critical for us (work related). We are using Keynote to create educational content SWF files, and we only discovered this problem after release.
Thanks for your help!
MichaelThe helper class using IText:
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class PDFHealer
public static InputStream heal(InputStream in) throws DocumentException, IOException
try
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(in);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
// step 1: creation of a document-object
Document document = new Document();
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, out);
// step 3: we open the document
document.open();
// step 4: we add content
PdfContentByte cb = writer.getDirectContent();
int i = 0;
while( i < n )
document.newPage();
i++;
PdfImportedPage page1 = writer.getImportedPage(reader, i);
cb.addTemplate(page1, 0, 0);
// step 5: we close the document
document.close();
ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
out.close();
return ret;
finally
in.close(); -
Hey everybody,
First, sorry for my poor english, i'm a french girl.
I'm new to Catalyst, creating a website to put my own music on it.
First i had just put a play, stop and pause button, but i was missing the progress bar and volume.
So i created a mp3 player in Flash and export it as an SWF.
When i launch it alone, everything works perfectly.
But, when i put it in Catalyst, the design is here but there is no audio. Even when i put everything on my server.
The mp3 player that i created doens't work with an XML playlist, the mp3 is directly included in the Library of Flash.
Does anybody have an idea of where the problem is coming from?
Thanks by advance,
Emiliepacman -S base-devel ?
-
Problem with swf file on website
I created a swf file with flash CS4. I can do the publish
preview and the video plays just fine. I can even view the
generated html file on my local machine and it works. I upload to
my website and it does not work. Here is the link
http://www.streamlineprofits.net/movies/Potential.html
The player skin is acting like it cant find the swf file but
it is in the same directory. Also, when i go to the publish
settings for the html I select the "Paused at start" but the video
plays when I load the local html file in my browser. Any ideas or
suggestions would be greatly appreciated.
BrianI don't think it's a permission problem, but somehow the
Flash Player thinks (I think) the stream is coming from another
domain. With me a error pops up that goes like this:
SecurityError: Error #2148: SWF-Datei
http://www.streamlineprofits.net/movies/Potential.swf
kann nicht auf lokale Ressource C:\Documents and Settings\Acer
Valued Customer\My Documents\web
projects\streamlineprofits.net\movies\Jan09_Open.m4v zugreifen. Nur
SWF-Dateien in der Sandbox 'local-with-filesystem' sowie
vertrauenswürdige lokale Dateien dürfen auf lokale
Ressourcen zugreifen.
at flash.net::NetStream/play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/load()
at fl.video::FLVPlayback/doContentPathConnect()
Have you tried a super-simple <object>-style embed of
your video?
I really do think it's the Adobe-AC-JS-stuff that's messing
things up?
You could instead consider using swfobject
http://code.google.com/p/swfobject
But first I think you should try an <object>-embed to
see if it's the JS or the Flash that's messing things up. -
Problem with swf on 1 page of my website?
I have created a simple flash swf which I have added to all the pages of my website. For some reason when I load one particular page a blank screen appears. When I delete the swf the page appears! This doesn't happen on the other pages and wonder if any one could offer any suggestions?
Thanks
<!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>Our Clerks</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:264px;
height:115px;
z-index:1;
#apDiv2 {
position:absolute;
width:159px;
height:66px;
z-index:1;
left: 48px;
top: 8px;
#apDiv3 {
position:absolute;
width:794px;
height:115px;
z-index:2;
left: 34px;
top: 85px;
#apDiv4 {
position:absolute;
width:311px;
height:37px;
z-index:3;
left: 664px;
top: 29px;
.new_bold {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #666;
-->
</style>
<link href="longcross_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#apDiv5 {
position:absolute;
width:961px;
height:30px;
z-index:4;
left: 34px;
top: 85px;
#apDiv6 {
position:absolute;
width:350px;
height:30px;
z-index:5;
left: 622px;
top: 90px;
#apDiv7 {
position:absolute;
width:300px;
height:270px;
z-index:6;
left: 34px;
top: 285px;
background-image: url(images/block_quote.png);
#apDiv8 {
position:absolute;
width:200px;
height:177px;
z-index:7;
left: 83px;
top: 332px;
background-color: #FFFFFF;
#apDiv9 {
position:absolute;
width:160px;
height:294px;
z-index:8;
left: 834px;
top: 285px;
background-image: url(images/new_quote.png);
#apDiv10 {
position:absolute;
width:569px;
height:165px;
z-index:9;
left: 381px;
top: 119px;
overflow: visible;
#apDiv11 {
position:absolute;
width:442px;
height:541px;
z-index:9;
left: 364px;
top: 292px;
#apDiv { position:absolute;
width:961px;
height:30px;
z-index:4;
left: 34px;
top: 85px;
#apDiv12 { position:absolute;
width:961px;
height:30px;
z-index:4;
left: 34px;
top: 85px;
#apDiv13 {
position:absolute;
width:200px;
height:36px;
z-index:10;
left: 34px;
top: 837px;
#apDiv14 {
position:absolute;
width:960px;
height:25px;
z-index:11;
left: 34px;
top: 866px;
a:link {
color: #666;
text-decoration: none;
a:visited {
text-decoration: none;
a:hover {
text-decoration: underline;
color: #333;
a:active {
text-decoration: none;
#apDiv15 {
position:absolute;
width:246px;
height:68px;
z-index:12;
left: 747px;
top: 1591px;
#apDiv16 {
position:absolute;
width:85px;
height:49px;
z-index:12;
left: 34px;
top: 900px;
#apDiv17 {
position:absolute;
width:140px;
height:36px;
z-index:13;
left: 855px;
top: 901px;
#apDiv11 .body_text .button_title .button_title {
color: #48B849;
#apDiv11 .body_text .button_title a {
color: #48B849;
#apDiv11 .body_text .button_title {
color: #000;
#apDiv20 {position:absolute;
width:660px;
height:170px;
z-index:14;
left: 334px;
top: 115px;
#apDiv19 {
position:absolute;
width:569px;
height:180px;
left: 381px;
top: 119px;
#apDiv18 { position:absolute;
width:569px;
height:180px;
z-index:0;
left: 381px;
top: 119px;
#apDiv21 { position:absolute;
width:569px;
height:165px;
z-index:15;
left: 381px;
top: 119px;
#apDiv22 { position:absolute;
width:569px;
height:165px;
z-index:15;
left: 381px;
top: 119px;
#apDiv23 {
position:absolute;
width:569px;
height:165px;
z-index:15;
left: 119px;
top: 381px;
#apDiv24 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 39px;
top: 37px;
#apDiv25 {
position:absolute;
width:200px;
height:115px;
z-index:15;
left: 381px;
top: 124px;
#apDiv26 {
position:absolute;
width:200px;
height:115px;
z-index:15;
left: 381;
#apDiv27 {
position:absolute;
width:569px;
height:165px;
z-index:15;
left: 381px;
top: 119px;
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<a name="top" id="top"></a>
<div id="apDiv2"><img src="images/logo_150_66.png" alt="" width="159" height="66" border="0" usemap="#Map4" />
<map name="Map4" id="Map42">
<area shape="rect" coords="4,3,156,64" href="index.html" />
</map>
</div>
<div id="apDiv3"><img src="images/home_banner_clerks.png" width="960" height="200" /></div>
<div id="apDiv4">
<table width="332" border="0">
<tr>
<td width="26"><img src="images/telephone.png" alt="" width="25" height="16" /></td>
<td width="109" class="heading1">01932 562321</td>
<td width="30"><img src="images/email.png" alt="" width="25" height="18" border="0" usemap="#Map3" /></td>
<td width="149" class="heading1"><a href="mailto:[email protected]" target="_blank">[email protected]</a></td>
</tr>
</table>
</div>
<map name="Map3" id="Map32">
<area shape="rect" coords="4,2,22,16" href="mailto:[email protected]" target="_blank" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="4,2,22,16" href="mailto:[email protected]" target="_blank" />
</map>
<div id="apDiv5"><img src="images/home_banner_fade.png" width="960" height="30" /></div>
<div class="main" id="apDiv6">
<table width="356" border="0">
<tr class="heading1">
<th width="63" class="nav" scope="col"><a href="index.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar_reverse="menu_bar_reverse"">Home</a></th>
<th width="88" class="menu_bar" scope="col"> <a href="services.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Services</a></th>
<th width="99" class="menu_bar" scope="col"><a href="clerks.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Our Clerks</a></th>
<th width="72" class="menu_bar" scope="col"><a href="contact.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Contact</a></th>
</tr>
</table>
</div>
<div class="news" id="apDiv9">
<table width="145" border="0" align="center">
<tr>
<th width="139" height="30" align="left" class="news_heading" scope="col"> News</th>
</tr>
<tr>
<th height="35" align="left" valign="top" class="new" scope="col"><p><a href="whats-in-an-inventory.html">Why have a professional inventory. </a></p></th>
</tr>
<tr>
<th height="35" align="left" valign="top" class="new" scope="col"><a href="dispute.html">Dispute resolution made easy.</a></th>
</tr>
<tr>
<th height="35" align="left" valign="middle" class="new" scope="col"><a href="fair-wear.html">Fair wear and tear - A quick overview.</a></th>
</tr>
<tr>
<th height="35" align="left" valign="middle" class="new" scope="col"><a href="introduction-to-epcs.html">Energy Performance Certificates explained.</a></th>
</tr>
<tr>
<th height="35" align="left" valign="middle" class="new" scope="col"><a href="pat-testing.html">Why landlords need PAT (Portable Appliance Testing).</a></th>
</tr>
<tr>
<th height="35" align="left" valign="middle" class="new_bold" scope="col"><a href="news.html">View all news ></a></th>
</tr>
</table>
</div>
<div class="body" id="apDiv11">
<p class="sub_text_heading">Longcross uses only Professional Inventory Clerks</p>
<p align="justify" class="body_text">When Longcross send an inventory clerk to carry out your job, we guarantee that the clerk:</p>
<ul>
<li class="body_text">is fully insured for professional indemnity and public liability cover<br />
</li>
<li class="body_text">is an AIIC member<br />
</li>
<li class="body_text">has undergone extensive training</li>
</ul>
<p class="sub_text_heading"> Longcross uses only Qualified Energy Assessors</p>
<p align="justify" class="body_text">When Longcross send an energy assessor to carry out your job, we guarantee that the assessor:</p>
<ul>
<li class="body_text">is fully insured for professional indemnity and public liability cover<br />
</li>
<li class="body_text">is a certified DEA (Domestic Energy Assessor) or Commercial Buildings Energy Assessor<br />
</li>
<li class="body_text">has undergone extensive training</li>
</ul>
<p class="sub_text_heading"> A quality service from Longcross every time</p>
<p align="justify" class="body_text">By insisting on a consistent approach to work, the use of standardised document templates, and a quick turnaround time, we keep our quality of service uniformly high. As long as a Chase clerk is performing the job, you’re guaranteed quality service</p>
<p align="justify" class="body_text">It also means we can cover your jobs at short notice, as well as providing continuity during busy periods when your usual Chase clerk is unavailable.</p>
<p class="body_text">Call us now on 01932 562321 to discover how we can help you.</p>
<p align="justify" class="sub_text_heading"><a href="clerks.html#top" class="body_text">top ></a></p>
</div>
<div id="apDiv13"><img src="images/home_banner_fade_footer.png" width="960" height="15" /></div>
<div id="apDiv14">
<table width="960" border="0">
<tr>
<th width="325" class="new" scope="col"><div align="left"><a href="mailto:mailto:[email protected]">designed by psion ©</a></div></th>
<th width="442" class="new" scope="col">Property inventories and energy assessments throughout the South East</th>
<th width="179" class="new" scope="col"><div align="right">Longcross Inventories™</div></th>
</tr>
</table>
</div>
<div id="apDiv16"><img src="images/aiic.png" width="80" height="43" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="3,3,78,41" href="http://www.theaiic.co.uk/index.php" target="_blank" />
</map>
</div>
<div id="apDiv17"><img src="images/idea.png" width="138" height="32" border="0" usemap="#Map2" />
<map name="Map2" id="Map2">
<area shape="rect" coords="3,3,137,32" href="http://www.whatstheidea.org.uk/" target="_blank" />
</map>
</div>
<div id="apDiv19">
<h1 align="justify" class="welcome_menu_text"> </h1>
</div>
<div id="apDiv20"><img src="images/welcome_banner_fade.png" width="660" height="170" /></div>
<div id="apDiv27">
<p class="welcome_menu_text"><span class="welcome_menu_title">Our Inventory Clerks and Energy Assessors</span></p>
<p align="justify" class="welcome_menu_text"> Inventory preparation and energy assessment are skilled tasks. At Longcross, we use only qualified consultants and assessors with property management backgrounds. All our inventory work follows AIIC and ARLA guidelines and our energy assessors are certified in accordance with recent legislation.</p>
<p align="justify"> </p>
</div>
<div id="apDiv8">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="177">
<param name="movie" value="flash/longcross_flash.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="flash/longcross_flash.swf" width="200" height="177">
<!--<![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" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>In IE it shows as a blank page (white), in Firefox it's all there. I'd suspect a CSS issue.
-
Problem with SWF layering in Flex
The problem is that I have a SWF placed on top of everything
else and there's a zone I need to be clicked, but the rectangle
that encloses the symbol obstructs it. Is there a way to export the
SWF, so that the symbols on the it only take up the space of the
shape they have?BTW, in Flash, I would use hitTest to solve that... I don't
know if that helps you in Flex. -
Interactive documents in InDesign - problems with .swf and previews
I have just been experimenting with InDesign new interactive docs features exporting to .swf.
The first doc comtaine a few simple animations and exported to .swf. Lovely! All performing as advertised.
The next document I make, again with just a couple of simple animations, fails. I am unable to view a preview of the animation and I get an error warning triangle at the bottom of the preview palette (without explanation). I am unable to export to .swf.
And when I go back and open up my first document I am unable to preview that either.
Does anyone know what's going on here?Hi quizzling,
Have you tried resetting InDesign preferences?
Launch InDesign and as you launch it on the keyboard hold down Shift+Ctrl+Alt (Win) or Shift+Option+Command+Control (Mac) and wait for the delete prefs dialog to appear.
Also try isolating the preview issue by selecting individual interactive objects and setting the preview mode to 'selection' only, so that you can check if the issue is related to a particular object on the page.
hope this helps,
Cari
www.twitter.com/carijansen -
Preloader problem with swf in different domains, not working online
Hello
I've an swf (loader.swf) hosted in dominioA.com, that justs loads a swf (movie.swf) hosted in dominioB.com.
loader.swf has a preloader. When I execute the movie in flash, it works perfect, but when I upload the swf, the preloader doesn't works. I see 0% and after starts movie.swf normally.
Here is the code of loader.swf
Security.allowDomain("www.dominioB.com");
Security.allowDomain("www.dominioA.com");
var contexto:LoaderContext = new LoaderContext();
contexto.applicationDomain = ApplicationDomain.currentDomain;
var _preloader:MovieClip=preloader
_preloader.barra.width=0;
var _DOM:String="http://www.dominioB.com/movie.swf?anticache="+Math.random();
var myLoader:Loader=new Loader;
addChild(myLoader)
myLoader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadPogress);
myLoader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
myLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onDataLoad);
var carga=new URLRequest(_DOM);
myLoader.load(carga, contexto);
function onDataLoad(evt:Event) {
//inicializar datos
function onLoadPogress(event:ProgressEvent){
var cargado:int = event.bytesLoaded;
var total:int = event.bytesTotal;
var porcentaje:int = cargado/total*100;
_preloader.txt.text = "Cargado: "+String(porcentaje)+"%";
_preloader.barra.width = porcentaje*2;
function httpStatusHandler(event:HTTPStatusEvent):void {
if(event.status==404){
function ioErrorHandler(e:IOErrorEvent):void {
function initHandler(e:Event):void {
Any idea??
Regardsmovie.swf load perfect, and everything works. It doesn't seem to be a cross-domain issue.
In loader.swf, all the actionscript is in the timeline, not in a class.
Thanks. -
HELP!!! I am creating a software demo that jumps to a
specific slide when a topic is chosen from the "index" slide. The
slide depends on the topic chosen from the "index" slide. I have a
button on the bottom of the topic slides to return back to the
index. This works fine. The problem is that each "Topic" slide
contains a flash file that has audio playing. When I choose to go
back to the index slide, that works, but the audio from the
previous slide keeps playing.
I have tried all the possible settings on both the flash file
and the slide.
I hope someone has figured out how to do this.
Thanks in advanced, KyleHello,
Within your Flash file, make sure the audio file properties
are set to "Stream". I have had that problem in the past and am
confident that was what I did to solve. Let me know what happens!
Doug -
I've made some menu in Flash. I've put it in to the Dreamweaver. It's works in both but not when I'm trying to take a preview in Firefox.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1015" height="230" id="FlashID" title="menu_n">
<param name="movie" value="menu.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="menu.swf" width="1015" height="230">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<div>
<h4>Zawartość tej strony wymaga nowszej wersji programu 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="Pobierz odtwarzacz Adobe Flash" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>Ok, I've found another solution and it's working fine.
In Dreamweaver when I've put SWF the html code came like this:
<object id="FlashID" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1015" height="230">
it's not all but only top and the most needed line
So what I did I've delete id="FlashID" so it's now like:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1015" height="230">
Hope that anyone can use this clue in the future.
Peace! -
Hey Flash Geniuses,
I am exporting graphics out of Illsutrator as swf's and
importing them into Flash 8 Pro. When I place an incstance of
Graphic A in the "Up" state of a button, and place a movie clip in
the "Over" state, the instance of the same graphic (A) in the movie
clip, seems to be slightly distorted compared to the "Up" state
that contains the exact same graphic? Is there a way to fix this?
I need a response asap, i truly appreciate anyone who has an
idea of what may cause this. Thank you very much.Here are the specs for your HP Pavilion p2-1255il Desktop Computer and here is the HP Software and Driver Downloads page for your computer. If you haven't installed any drivers and/or there are unknown devices in the Windows Device Manager, you will need to download and install the proper drivers from the drivers link above. This includes your video adapter being listed as "VGA" instead on "Intel HD xxxx".
Please send KUDOs
Frank
{------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
This is a user supported forum. I am a volunteer and I don't work for HP.
HP 15t-j100 (on loan from HP)
HP 13 Split x2 (on loan from HP)
HP Slate8 Pro (on loan from HP)
HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240
Maybe you are looking for
-
ITunes not recognising iPod's video capabilities
When iTunes is up and the iPod is connected and I go into the options for the iPod, the options in the Video tab are shaded out. Whenever I try dragging a video onto the iPod it says they can not be viewed on this iPod. I KNOW this is a 5th Gen iPod
-
How to save to open in Camera Raw
How do I save a tif to save to open in Camera Raw?
-
Hi Mentors, I am creating a z report in that one perticular field i want new value, old value details. Field is in MMR - Foreigh trade import - CAS numner (pharma) this field we are using for material status.( ex. A,B,C) Table Name - MARA Fiels name
-
RH 7: Lack of Word support preventing printing to PDF?
I have RH 7 and need to print to PDF just for ease of reviewing. I have checked my settings to make sure they are set to print to PDF and not Word. Nevertheless, I get a message that an supported version of Word is not found. I have Office 2010 and
-
Lightroom 4, Suitcase and type management.
Hello, all. I have started to use the new Lightroom 4 and the new book feature. Considering books use type for their design and type is also used when in the print module to print photos, how exactly does Lightroom manage fonts? The folks at Extensis