There's this weird thing that when I try to execute the swf file independently, it can attach the camera then remove it and makes the video freeze (well that's the desired result)
but
when I tried to embed it into an html then deployed in a local server, when I am dettaching the camera via video.attachCamera(null) it doesn't work and the camera is still there and I can still see myself moving.
Why? and How can I fix this?
Finally fount the issue. It's because of the framework I used. It's robotlegs MVC maybe there's something wrong with my code or it's a bug of the framework itself. Changed my code not to use robotlegs.
Related
So I have a flash game (written in AS3, of course), and written with a whole bunch of classes. One certain class links to a page with
navigateToURL(new URLRequest("websitehere"), "_blank");
The class works fine and flawlessly when I test movie, and when I run the published file. However, when I post it on deviantArt, the entire class doesn't execute (it's almost as if it didn't exist). I suspect it's because of the navigateToURL command since I vaguely remember reading somewhere that deviantArt doesn't allow navigateToURL commands. I tested it with a test, though, that had only a navigateToURL function, and it worked.
Anyways, is there a fix for this issue or some way around it?
I can post the deviantArt link to the flash game, as well as the coding to the actual flash file and its classes if it's necessary.
I have no idea what I did, but when I reuploaded the .swf file (I tried it a couple of times before to no avail), the problem was solved.
I'm using flash builder 4.5.
I used loader and urlrequest class to download/embed image to find out width and height. It works fine if the url is http(s)://www.abc.com/one.png. But if i use same technique to download/embed dropbox media (http://dl.dropboxusercontent.com/1/view/**/Photos/Sample%20Album/Costa%20Rican%20Frog.jpg) using complete handler, doesn;t fire it.
I was thinking that problem is because www is not in url.
Please tel me if anyone has experiance.
This is possibly a security sandbox issue. See here for a similar issue and resolution - http://www.kirupa.com/forum/showthread.php?357992-www-works-without-www-doesn-t-problem-with-URLRequest#post_2587691
I have a problem with classes in my project, when I declare new functions or variables, or just trace something in them, it doesn't work, like it doesn't upload new functionality. I found out that I should delete aso files and I did that, from controls panel. but still it doesn't work. maybe I did something wrong? maybe it's because I use Gaia Framework?
and one more thing when I rename my classes and asign this new classes to my movieclips, then it works fine
Depending on how you are testing I would suspect your browser is caching your swf. Try clearing your cache and see if that helps.
If it does work, consider getting a browser extension/plugin that lets you disable the cache for things like these.
I need to create a brochure-cd from a website I did. All resources are html, images and xml, so i don't have any problem at all in accessing file system. My question is: once I open my index.html page in browser, how can I set the params of the window (eg: show addressbar, show statusbar, etc)
Thanks
(If you have an alternative idea of how run an html based brochure on CD just let me know)
EDIT: Specs changed, I've just knewn I must write xml and upload file, too. Any idea? I'm considering Adobe Air, but would be amazing if I can compile a whole .NET website into an exe..... Anything similar?
The only way you can set these is when you open the page, not after it's already present. So, you will probably have to have a start page, which then opens your new page, with the parameters you want.
Be warned though, if you have any JavaScript, many browsers won't allow scripts to run locally, or will present a nasty warning message before it will execute.
You may look into having a small desktop application on the CD that launches an instance of a browser inside of itself, assuming you can run the browser on every machine this will be run on. This will probably give you the look you're after.
I think you can't. You can only set params of a window you create. So you'll have to run a script on load that creates a new window and then closes the initial window.
There is however no way that this script is executed without warnings, if at all.
An alternative would be to develop an executable that is able to display the page, but that might not be easy, especially when you want to be browser and platform independent.
I'm currently learning how to make facebook apps, and I've hit a problem.
Usually when I make flash applications, I can use the index.html and run the swf from a webserver.
However, I tried to make a facebook iFrame app using the same setup, all I get is the Alternative Content Text.
Any experienced flash/facebook developer help would be greatly appreciated by this newbie.
Below is what happen to my tutorial app.
http://apps.facebook.com/jeffcheetest/
Do you have filled the field "App Namespace" in the Developer Application Settings? I think it could be the problem...
Are you using FBML? If so, it may be easier to switch to iframe in order to have the swf work in the .html page as you expect it to work. Otherwise, you will need to implement your swf through fbml tags or fbjs code.