I'm building my first flixel app (a flash-based game engine) and I'm having trouble accessing the FlashVars from my html source. Flixel's root element is not derived from the top-level root, and I can't get a workaround in place. I've done some research and found a few promising solution here:
http://forums.flixel.org/index.php/topic,449.msg3101.html#msg3101
however none of these solutions have worked for me. I think the magicRoot implementation is the best offered there, but I still haven't been able to get it working properly. Any help would be appreciated!!
You can get a reference to the stage from within a Flixel game by using FlxG.stage.
Related
Basically I have an project where I would like to modify some text in a XML file rather than in the document itself.
I've had a Google and all the tutorials lead to AS2 which doesn't work in Flash CC. I've also downloaded some templates off ActiveDen but they are all in AS2.
Anywho is there any good starting points to do this? I'm a total noob at AS but what I'm asking for doesn't sound too hard.
Cheers,
You can always Google using keywords, like writing your question's title, I found this tutorial
Try to follow step by step and I'm sure that you will learn and solve your issue.
I am newbie augmented-reality in as3.I've worked as3 since about 2 years but I've never worked augmented-reality.I want to do like this swf:
http://cdn.eyewonder.com/100125/adWdrDemos/56254654/Game.swf
What is the best class or tuttorial that I will use for augmented-reality? I realy need to learn as soon as quickly augmented-reality.
Thanks for advice
i can't see where is the Augmented Reality in your SWF example. But maybe the FLAR Toolkit will help you. It's a AS3 version of ARToolkit. It works with many Flash 3D engines like Papervision, Away3D or Sandy. You will see some example on Google.
Find the official project page here : http://www.libspark.org/wiki/saqoosha/FLARToolKit/en
And a good tutorial here : http://www.marcpelland.com/2009/03/26/getting-started-with-augmented-reality-flartoolkit/
Good luck !
code hinting doesn't seem to work for my Flash CS5. I already tried increasing the code hint cache size, but it still doesn't do anything. Any suggestions?
TIA
Steven
code hinting usually works for me on most projects, but occasionally it stops, I'm still working on the reason for my occasional problem. nothing conclusive yet. but when it was not working it wasn't even working for the normal flash classes which was a bother.
here are some more ideas from some blog.
http://flashthusiast.com/2010/06/04/tips-for-code-hints-in-flash-cs5/
I haven't tried these yet.
is Code Hints activated in your Preferences?
it probably is, but i had to ask.
this happens to me sometimes, usually when i start a new ActionScript File or ActionScript 3.0 Class from the New Document menu. when it happens i have to save and reopen my file in order to see code hinting.
To me, it happens alot when I haven´t specified the object I´m trying to do stuff to. If AS doesn´t know what kind of object it is dealing with (int, string, event, function, button, array, movieclip etc) it can't give you any hints.
A bit late, but for anyone else with this issue, here is how I got it working again. Originally, I was opening the .fla and the .as at the same time. But when I closed out of flash, and opened JUST the .fla and then the .as, code hinting now works. I hope this helps.
Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser?
I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however.
Is there a simpler way to do this now?
I didn't even think it was possible at first until I looked at that link, and I agree with their description that it will be very difficult to get working on all browsers / OS's.
As I was working on this project for a friend of mine who is terrified of changing from HTML to flash, I realized that maybe there could be a bridge between them. So I started working on a flash project that would grab the HTML from his page and parse it to display it in flash. Although I am sure there are resources available for this already, I figured that the experts on SO might be willing to suffer through the logic of one user trying to develop this script.
So basically, I am not asking for an answer, I am asking for some step-by-step direction that could be posted so other people could see the logic behind breaking down this project. I think it would be really useful (not just for me, but for anyone wanting to learn more about objects and oop).
So, much like the thread between primarily Senocular and Rampage, this would be a thread where I would be the student asking the questions in a logical step-by-step manner and someone else (or someones else) could provide guidance.
Let me know if you are interested and I can start by posting what I have already written. We can go from there and I am sure it will prove insightful to anyone who reads it. If no one is interested, or no one has the time or inclination, no problem.
Best wishes,
Jase
Who in their right mind would change from html to flash for displaying a simple website? I don't see the logic behind it, it's more like you are trying too hard. Flash has its function in the web, as well as html does. If it's just for simple displaying, using flash is just the wrong way and won't make your website any better but worse because its loading time will be too long.
Goole Search retrieved these:
HTMLWrapper
Groe.org HTMLParser
There is an article about the 1st on *drawlogic. I think the seconds' home is on sourceforge here.
Thing is, browsers already do a fine job at parsing html code. Having the flash player parse html files not only does away with any accessibility advantage your markup can offer but it also feels like reinventing the wheel. If you need to display html content, leave it to the browser.
Slightly offtopic - Flashpaper can convert most HTML pages into swf format.
Given properly "disciplined" HTML, you can use the XML parser in the player for the basic parsing. Are you really talking about writing an HTML renderer in Flash though? Or just being able to pull information from HTML dynamically?