Flash tip of the day
- Started
- Last post
- 47 Responses
- ********
If you have problems with the timeline running at its designated fps then make a blank mp3/wav and embed it. This should work.
Any others?
- lvl_130
option + click the canvas while using the shape tool allows you to type in exact dimensions for your shape ala illustrator style.
- Holy shit. I've been using Flash for 12 years and didn't know about that.fyoucher1
- i just found out about it like a few months ago! i was so excited i made a thread about it haha http://www.qbn.com/t…lvl_13
- wtf********
- fuck. link fail! here it is http://www.qbn.com/t…lvl_13
- floored I knew not.NONEIS
- fyoucher10
To add to Lloyd's tip, make sure you add the sound to the timeline, make sure it spans all frames that you want the Flash Player to 'try' and keep up with the frame rate, and set the audio type to "stream". Plus, turn the volume for the sound all the way down.
- monospaced0
Wait a sec...
- yeah but that thread degraded into talks about why silverlight sucks********
- yeah but that thread degraded into talks about why silverlight sucks
- fyoucher10
Library not allowing you to create a symbol or folder in the library with the same name? Add an extra blank space to the name. It's a stupid tip, I know, but a lot of folks might not think of it.
- A much better solution to this problem, is folders. Different folders can have duplicate named symbols.NONEIS
- ********0
Flash has these little bugs that always pissed me off.
- Like utterly shite typography tools. All fonts, families, and weights in one list? C'mon....********
- Like utterly shite typography tools. All fonts, families, and weights in one list? C'mon....
- fyoucher10
To get rid of pixilated/aliased edges and to be able to scale a image down and maintain image quality, set smoothing = true if the images are dynamically loaded or click the checkbox for "allowSmoothing" in the symbol's property inspector panel in the library.
(This has been asked sooo many times on here)
- lvl_130
another stupid tip that most of you know already but clicking on the top of the timeline (not on a layer in the timeline) + F5 adds another frame to every layer in your timeline. and similar with Shift + F5 takes a frame away from every layer in your timeline.
- fyoucher10
Timeline animation Tip:
Trying to simulate camera movements without using fancy dancy PPV3D (like pans, zooms, etc)?
Animate the anchor point instead of moving the actual object. The anchor point (aka registration point) usually defaults to the center of the object unless you change it when the symbol is created. If you use the free transform tool (Q), you can modify this anchor point. Try modifying the position of this point in between motion tweens and see what happens when you change properties like scale and position.
- interesting.lvl_13
- nice. yeah that feature's really confused me whan i've moved the anchor point at one end of a tween and it just goes mental!! haha********
- lvl_130
*bump?
- gabadilla0
When you're centering a container movieclip to stage, you'll often end up on a "half pixel" if the stage size is an odd number. This will blur pixel fonts and any other perfect pixel elements with the container mc. I've found that the easiest way to keep it on the whole pixel is to use Tweener's built-in "rounded" option. There are other ways to do this using Math but this is a simple one line solution.
Here's an example of the code in use:
Tweener.addTween(container, {x:stage.stageWidth/2-container... time:0, transition:"linear", rounded:true});- that should say: container.width/2gabadilla
- TweenLite!!!rosem
- I usually Math.round the x/y.funkage
- Just round the destination first, and make it a variable. It's faster than having Tweener do the calculation for you.NONEIS
- This is a one line of code solution. Of course there are other ways to go about it.gabadilla
- Sometimes I like to tween it to it's new position too instead of just snapping it, so this also allows for that.gabadilla
- its not it'sgabadilla
- ********0
so dies QBN .. always people stealing my thunder.
- lvl_130
this has been bugging me for a while, so maybe one of you can help me solve it.
i want a movieclip to be full height and width of browser, to align top left, and to scale proportionate (ie don't stretch the movieclip out of wack). i can do all of this fine and dandy, but shit hits the fan when my movieclip is larger than the actual canvas. why is that? even with a mask on the mc to be the exact canvas h + w, it still gets fucked. let's just say the mc has five images in a row. i only want one of these images to be the fullscreen, and when user clicks say left or right, the next image slides in taking up fullscreen. does this make any sense? i've tried figuring this out for quite a while now, and have not come up with a solution.
- I'd help you in I weren't a tard********
- ive done this before
http://www.fallow-de…
if you need the code AS2 give us a shoutFallowDeer - really? awesome. sending email now. thanks!lvl_13
- I'd help you in I weren't a tard
- armed_rob0
"Edit Multiple Frames" is a timesaver.
- KarlFreeman0
@lvl_13 Currently in the same boat, The way i solved this was to scale the container of images by stage.StageHeight * 5 / stage.StageWidth * 5 This way it scales the images up and down proportionally based on 5 full screens. My problem I'm having is trying to scale the 2nd/3rd/4th/5th image across proportionally of the stage, which isnt working because the scale point is 0,0 at the top left of the stage which fucks the image 2nd/3rd/4th/5th to the right. Flash != fun sometimes.
- KarlFreeman0
De MonsterDebugger is a fantastic new adobe air debugger which allows you to live edit your swf's, the ability to method test functions ( even if they are in the browswer ) and a tree structure view of your entire flash project ( plus the ability to have live tree structure views of loaded assets such as xml / array's / etc... )
Check it out.
- so you can more or less steal swfs?********
- Only if they have used de monster debugger and still left it active on a site launch...KarlFreeman
- so you can more or less steal swfs?
- ok_not_ok0
_quality = "High Def";
- bogue0
you cannot have more than 128 files in the same directory that you're publishing your SWF to... or the movie will just silently fail, without any error msg.
Try dealing with that issue at 10:30 before a midnight launch. We were losing it.
- kingsteven0
this is a bit obvious but i have to show people all the time... when you define a function for an event handler any variables declared in the same scope are copied across.
var self = this;
_root.gui.menu.homeBut.onRelease... function(){
self.openPage("home");
}
function openPage(pageName){
trace(pageName);
}- Not sure I follow. What does this achieve? Working example? Please forgive me if it's blatantly obvious and I'm just not getting itIvI_13
- oh, it's totally obvious... not a great example. i create a variable called self which stores a reference to 'this'kingsteven
- self is then available as a reference back to the current class/mc from within the onRelease function.kingsteven