Flash and ASP.net

Last post 08-28-2008 11:51 AM by ClaireH87. 14 replies.

Sort Posts:

  • Flash and ASP.net

    08-27-2008, 9:51 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

    I have put a flash intro onto my website and it runs locally, however there are errors. The following is the piece of code the errors are in

    <noscript>

          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="protectyourself" align="middle">

          <param name="allowScriptAccess" value="sameDomain" />

          <param name="allowFullScreen" value="false" />

          <param name="movie" value="protectyourself.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />      <embed src="protectyourself.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="protectyourself" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

          </object>

    </noscript>

     

    I get blue errors under quality, bgcolor, allowScriptAccess, allowFullScreen and type in the embed tag. The errors say for example, "Validation(Internet Explorer 6): Attribute 'quality' is not a valid attribute of ''embed' " Also even though the animation plays when I click "Enter" or "Skip Intro"

    Directory Listing Denied

    This Virtual Directory does not allow contents to be listed.

    comes up on the page.

    I am coding in VB. Thanks!
  • Re: Flash and ASP.net

    08-27-2008, 10:38 AM
    • All-Star
      21,117 point All-Star
    • bullpit
    • Member since 06-29-2006, 3:59 PM
    • Posts 4,665

    These are not errors. These are just validation warnings. They won't affect the behavior of your click event.

  • Re: Flash and ASP.net

    08-28-2008, 5:17 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

     But this is affecting the site because it won't upload to the server which is really important for my project!! And if it actually matters... They're red lines, not blue!

  • Re: Flash and ASP.net

    08-28-2008, 7:16 AM
    • All-Star
      30,502 point All-Star
    • HeartattacK
    • Member since 01-08-2007, 5:53 PM
    • Dhaka, Bangladesh
    • Posts 3,292
    • Moderator
      TrustedFriends-MVPs

    After uploading, are you trying to access a page or a folder?

    www.mysite.com/folder

    or

     

    www.mysite.com/folder/page.aspx

    If the page is not default.aspx or set up as a default page, you'll need the full url, not upto the folder.

    All that glitters is gold-
    Only shooting stars break the mold.

    Read my blog: www.heartysoft.com

    Tell me what tutorials / articles / videos you want to see on my site.
  • Re: Flash and ASP.net

    08-28-2008, 7:30 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

     trying to access a page. I have it set as my start page locally and in the hosting site too. Well I had until i realised it wasn't working!

  • Re: Flash and ASP.net

    08-28-2008, 7:45 AM
    • All-Star
      76,257 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,209
    • TrustedFriends-MVPs

    The ASPNET user account which ASP.NET runs under needs access priviledges to that folder and/or file.

    NC...

  • Re: Flash and ASP.net

    08-28-2008, 9:04 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

     How do I do that! I'm pretty sure I have it done but could you explain just in case!

    Thanks 

  • Re: Flash and ASP.net

    08-28-2008, 9:15 AM
    Answer
    • All-Star
      76,257 point All-Star
    • NC01
    • Member since 08-26-2005, 7:33 PM
    • Posts 14,209
    • TrustedFriends-MVPs

    1. Right-click on the folder and choose Properties
    2. Choose the Security tab
    3. If the ASPNET user account is not in the upper pane, click the Add button and add it to the list
    4. Select the ASPNET user account
    5. Check the permissions required in the lower checkbox list.
    6. Click the Apply button and then the OK button.

    NC...

     

  • Re: Flash and ASP.net

    08-28-2008, 9:45 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

    Ok I haven't got that done.... Firstly, I don't have my animation stuff in a folder, and any of the other folders I have tried it on don't have properties options. I have tried it on my ASP.Net folder that everything is in but there is nothing about an ASPNET user account and if it is my account then its already there... I don't know, I have never done this before and I have a friend helping me out and she's really good at it but is clueless too!! Maybe its the fact that I'm doing this in college and I'm not the administrator of the computer that its not working... I don't know what I'm even talking about anymore!!! Embarrassed Sorry for being a plague!!

    Thanks! 

  • Re: Flash and ASP.net

    08-28-2008, 9:52 AM
    • All-Star
      21,117 point All-Star
    • bullpit
    • Member since 06-29-2006, 3:59 PM
    • Posts 4,665

    The directory listing error that you are getting has nothing to do with flash movie. Since you were working locally, you could preview everything by running the application locally. When you uploaded it to your school server, the settings to access the application may not be correct or you might be accessing the application in a wrong way. Talk to your professor or whoever is responsible for setting up website applications on the server and see if the virtual directory is setup properly for your application, if your project is actually set up as an application on the webserver (if it is IIS). 

    If using IIS, this may also happen if the name of the default page is not listed in the IIS settings. For example, you have changed the name of the default page to Intro.aspx. If you have access to IIS on the server, right click on the name of your website, click the Documents tab and add Intro.aspx to document list, and you might want to move it to the top. By default, the list has Default.aspx and I believe some more like Index.html, Default.html etc.

     

  • Re: Flash and ASP.net

    08-28-2008, 10:11 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

    Ah! That makes sense! Don't really have anyone to talk to though! Its the summer holidays and I'm repeating! Lecturers don't like to hear form you and the ones in this college haven't really got a clue about stuff they are supposed to be teaching us!!! Anyway, could you explain the bgcolor, quality etc errors?

     

    Thanks! 

  • Re: Flash and ASP.net

    08-28-2008, 10:23 AM
    Answer
    • All-Star
      21,117 point All-Star
    • bullpit
    • Member since 06-29-2006, 3:59 PM
    • Posts 4,665

    As I mentioned those are not errors that will affect your application. When you are using an IDE, and I assume you are using Microsoft Visual Studio of some kind and you create web applications, the IDE is set to validate your aspx page against some default standards, it might be that your IDE is set to some default validation (there should be a dropdown somewhere in your IDE, it is included in the top menu bar in mine), like Internet Explorer 6.0 or HTML 4.01 (and you can change this to whichever validation you want to follow).

    FYI, <embed> tag (and I assume all its properties and attributes) are deprecated, but are still used for backward compatibility and multibrowser support. Even I use <embed> tag enclosed in <object> tag.    

    Also, try typing in the full URI (including the page name) in the address bar to access the web page and see if it works.

  • Re: Flash and ASP.net

    08-28-2008, 10:53 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

     Ok! Thanks! Got some good news! I finally got the animation on the server! The bad news is when I click "enter" or "skip intro" it just makes it start again. It works normally locally! Everything is done properly in flash, 99.9% sure of that! Could I be missing a piece of code or is there something I might have  to do on the server to make it work... Any thoughts! Also, I was messing around trying to get the animation in the place I want  it in and I some how managed to end up with 2 on the page instead of 1... any idea what might have caused this!!!

     

    I really appreciate your time and help!!

    Thanks,

    Claire 

  • Re: Flash and ASP.net

    08-28-2008, 10:59 AM
    • All-Star
      21,117 point All-Star
    • bullpit
    • Member since 06-29-2006, 3:59 PM
    • Posts 4,665

    Hmmm...this is what I can think of. Since your were working locally earlier, your "Enter" or "Skip Intro" were pointing to a page or location that was relative to your PC or localhost. But when you moved it to the server, the location is not the same. Can this be the issue? I have no clue what you did to place it where you wanted on the page so I don't have an answer for your second question.

  • Re: Flash and ASP.net

    08-28-2008, 11:51 AM
    • Member
      3 point Member
    • ClaireH87
    • Member since 08-05-2008, 11:24 AM
    • Posts 34

     I don't know, the flash thing isn't working properly from flash so something has gone horribly wrong some were along the lines... I'll just do it again and hope for the best! Oh, it does it locally too by the way!!!

     Thanks again!
     

Page 1 of 1 (15 items)