Flash experts please - Uploading flash assets

IDM
IDM Posts: 16 Forumite
edited 13 July 2011 at 9:10AM in Techie Stuff
Hi,

I have to upload a .swf to a html page. The .swf is from a .fla and a .as (the actionscript is all in the .as which targets the .fla).

When the .swf is run, it calls on a .dae file which is referenced in the .as file.

Locally, when the .swf is run, it prompts the user to allow the webcam to be enabled. The user holds a marker image to the webcam and an augmented reality 3d model is shown. This works in flash cs5, but when I try to upload it to html or insert it in a powerpoint page I get the following error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: xxxxx /assets/models/tower/models/tower.dae

(xxxx is either the document path on my desktop or h ttp://mysite.com if online)
After googling, it seems that I have to somehow preload the flash assets but can't find how this is done.

Basically what I am trying to do is to get an Augmented reality application up and running on a website and I'm trying to do this with the version available here: htt p://ww w.adobe.com/devnet/flash/articles/augmented_reality.html.

If you look at the comments below the tutorial, this one from Srivello appears in answer to other posters who had the same issue (the model works locally but not online)
RE: Yefolio & MediocreNinjaStudios
Ensure that the *.dae file is uploaded too and the URL used in the AS3 is correct. If you are sure of this, perhaps the model must be preloaded. Load, wait for it to be 100% loaded, and then continue the code execution. How to preload Flash assets can be found online and is outside the scope of this article.
Needless to say, I can't find how to preload them. I get results for preloaders, but this doesn't seem to fit the problem.

Please could someone shed some light on this.

Thanks

Comments

  • IDM
    IDM Posts: 16 Forumite
    I'm hoping that these images of the error messages I get will shed some light on the problem:

    They can be found in this thread forums.adobe.com/thread/876674?tstart=0 (please copy and paste as I can't post links or images as a new user).

    Thanks
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 349.7K Banking & Borrowing
  • 252.6K Reduce Debt & Boost Income
  • 452.9K Spending & Discounts
  • 242.6K Work, Benefits & Business
  • 619.4K Mortgages, Homes & Bills
  • 176.3K Life & Family
  • 255.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 15.1K Coronavirus Support Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.