It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hitting u guys with a noob question. Trying to make sense of things regarding AS3 code and where to put it. As of now I´ve been putting it on first (AND ONLY) frame in my swf's. Mixing this with use of some extended classes. Is this considered as timeline coding or is timeline coding when using the timeline and multiple frames for different kinds of code? Hope this isn´t a duplicate but I did some research and couldn´t find any specific info regarding this.
No, I would not consider it as timeline coding.
But, I would put that code in the main document class (as an external .as file).
In the Properties panel, when the stage is selected, you see a Class field:
You can assign a class to your stage, Flash will search for a file named as the class on compile-time.
Here is a tutorial:
http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/
Benefits will include more clarity of code, and long-time maintenance ease.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am creating a application, in which i am calling many functions, But some say, its not the right way to right the functions, you need to dispatch the events for better results. Please can anyone clear me regarding the benefits of dispatch events, as it many websites only says that "it executes an event".
The question may feel foolish, but the answer will let help me in learning flex in right way.
Thanks in Advance.
In general, if you find yourself writing code that has parent.somefunction() or outerdocument.someotherfunction(), that is the time to use events. Code like that makes the child component dependent on it's parent. The better way to have a function executed on the parent would be to use addEventListener() on the parent class to register a listener function and then to call dispatchEvent() in the child.
If you get into writing itemRenderers for datagrids or list components, you will need to learn this technique.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I was wondering how can a sliding puzzle can be achieved like here:
http://mypuzzle.org/sliding
i have googled all the way but unable to find any tutorial
TweenMax for tweening objects.
And I found a lot of tutorials while googling.
For example http://ajaybadgujar.com/2011/12/06/as3-number-slide-puzzle-game-for-beginners/
Or here you can find a lot of topics and source code related to puzzles
If you think you start making the application straight away, you are kinda wrong.
You have to break the app down and think what you really need.
Some quick simple model as an example:
Main menu
Grid (as array)
Tiles
Filled in grid array and updated via loops
Contain their own picture
Attach event listeners to objects (MouseEvent.CLICK or others)
Check for a win situation with every move.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a huge problem with converting my pre-existing HTML based webpage into Joomla.
I have tried for the last 36hours to figure out how this Cms works, and it all seems to be a waste of time. I wonder if there is any quicker solution in my case? Or do I have to adapt my entire content and rewrite big chunks of code? It doesnt seem to be any easy way to just add the HTML i have and just work with what i already have. I am really content with my webpage as it is, all I want is to publish it and enable some login panel for admins and lower level admins...
Some guidance here thanks
Turn off the editor (edit your profile and set editor to none) and then create an article for each html page by just pasting in the html (but not the head or the body tags).
Have you looked at the beginner materials?
http://docs.joomla.org/Beginners
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am using frames in jsp. I have included three frames in the starting jsp page.
I want those frames to appear only in the starting page. But those frames are appearing throughout the front end(in all the jsp pages).
I need to define different frames for different jsp pages.
can anyone pls help..
Any help would be greatly appreciated...
You can achieve this using some Javascript and CSS. It would be easier if you are using a library like jQuery but you can do it without that.
Basically a quick way is to give the iframes a class / id and find them with JavaScript.
var myFrame = document.getElementByID("myFrame");
Then on each JSP add some logic to figure out which page it is and then you can either:
hide frames you don't want to show by setting the CSS display to none)
update the src attribute of the frame to be the correct one for this page
It depends on how many frames there are really.
So:
myFrame.css("display:none");
myFrame.src("newURL");
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I saw this great dynamic image website which got me curious on actual development. My plan is to create a friendly more dynamic animation on the left and right margin of the browser giving it more flavor or life. I am a complete beginner but I am willing to learn. So what would I need to create animations like as seen on link and are there any good tutorials to do this.
You can write raw code for HTML5 canvas or alternatively use a third party app like Adobe Edge.
http://labs.adobe.com/technologies/edge/
Also check out CSS3 animations
http://webdesignerwall.com/trends/47-amazing-css3-animation-demos
Or a Javascript animation library like Alice.js
http://blackberry.github.com/Alice/
What you want to learn is HTML5 with Canvas.
Essentially W3 is trying to replace flash with this feature.