Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

swf in HTML

Explorer ,
Jun 04, 2011 Jun 04, 2011

I used Dreamweaver cs5 to embed my swf file in an html page.  I know that the swf is loaded and running because I can highlight some text in the initial frame.  The problem is that, everything else is blacked out.  the text is black to which is why I have to highlight it.  So it's there, I just can't do anything with it.  I know the swf runs fine in flash or flash player.

here is my html code

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="825" height="554" id="FlashID" title="Destiny's Realm">
        <param name="movie" value="TownsendFinal/final.ai.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="TownsendFinal/final.ai.swf" width="825" height="554">
          <!--<![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>

any ideas would be a really big help.  This is for school and it's due soon

TOPICS
ActionScript
3.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2011 Jun 05, 2011

lol.  denial is a terrible thing.

i still sometimes hit a problem, look at my code and think, that code is perfect.  i can't be having a problem.  but i am having a problem.  and it almost always turns out my (not-so-perfect) code is causing the problem.

in your case i'll bet money it's a path/file name problem.  you can send me your files, and i'll fix the problem.  if it's a path/file name problem, you'll have to pay me.  if it's not, you get your problem fixed for free.

if i were you i wouldn't take up that offer because if you listen, you can solve your own problem free of charge.  but that will only work if you get past denial.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 05, 2011 Jun 05, 2011

alright.  I got the generated html to work.  still doesn't work in the site.  I'm re-uploaded the entire folder twice without failed uploads now and it still doesn't show.  If it was a path/location problem that should have fixed it, because say a failed upload caused a file to be missing and so then the code breaks.  I get that.  I just uploaded the entire folder.  so could you please tell me how I screwed that up.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2011 Jun 05, 2011

if your image displays (online) when you use the html published by flash you ruled out an image name issue.  if you were using another html that was in the same directory as your flash published html you would be ruling out a path problem.  but that's not the situation unless you changed your html that loads the swf embedding html.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 05, 2011 Jun 05, 2011

the main directory is siteTownsendFinal

inside siteTownsendFinal is the directory TownsendFinal (I know dumb naming convention but I wasn't planning on putting all these together like this)

then in TownsendFinal is final.ai.html (the flash generated html)

so flash.html (in siteTownsendFinal) has an IFrame which contains

<iframe src="TownsendFinal/final.ai.html" name="Destiny's Realm" width="825" height="650" scrolling="auto"></iframe>

furthermore if this was an incorrect path name then I wouldn't get anything at all.  The fact that I'm getting something is highly confusing.  The folder that I totally replaced is TownsendFinal, so anything that wasn't working should have been replaced.

so if the stuff in TownsendFinal works great on my computer why doesn't it work online.

just as a random test,  I redownloaded flash.html onto my desktop.  a copy of TownsendFinal (folder) is also on my desktop and it works great.  So I know that file is working fine.  the only place it doesn't work is the server.

Any suggestions or should I take this to an html forum

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2011 Jun 05, 2011

it's the path to load your image Opening.jpg that's the issue, not the path to the embedding html or the swf.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 05, 2011 Jun 05, 2011

can't be.

the folders online are:

siteTownsendFinal

     flash.html (has the IFrame linking to final.ai.html)

     TownsendFinal (I've replaced this folder online twice now)

          final.ai.html (flash generated) , final.ai.swf

          Images

               opening.jpg

on my computer I have

desktop

     flash.html (has the IFrame linking to final.ai.html)

     TownsendFinal

          final.ai.html (flash generated) , final.ai.swf

          Images

               opening.jpg

now everything works on my computer but not online.  Since I've replaced TownsendFinal which includes Images

then opening.jpg needs to be there.  no failed transfers ofcourse

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2011 Jun 06, 2011

then use:

loader.addFile("./Images/opening.jpg", openingDone);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 07, 2011 Jun 07, 2011
LATEST

Here is the final word on the subject.  All of paths were correct.  Everything was fine there.  For some reason, the html file with the Iframe (flash.html) has to be in the same folder as my main flash generated html file.  I had it in the folder above it.  The path to the final.ai.html was correct but for some reason it screwed other things up.  so I'm still not sure why that happened exactly.  the swf still loaded some files, just not all.  (all the loaded files where in the same directory).  So in short, I'm still confused, but it works, Yay!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 06, 2011 Jun 06, 2011

Hello Sir, Please dont comment on my posts. If it distracted, the user will post. mind you own business. Wherever I post you trying to comment more. Its not your job here!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines