Hi list...
In the MX'04 combobox component, is it possible to change font
attributes of each of the items in its drop down list? I can't seem to
figure out how to get to each item through code.
Thanks,
- Michael M.
___
Flashcoders mailing list
Don't know if it matters, but I always assign the Tweens to a var name.
That way, you can refer to them later, with onMotionFinished, etc.
- MM
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Bedar
Sent: Tuesday, October 25, 2005 3:35 AM
To:
So I need to find a nice clear definition of how they work. Any links?
I'm not sure about links to explanations of _parent and this other
than the documents, but for using the Tween class, look up Jen de Haan
on the Macromedia site. She wrote a great article about its usage.
For the first
Hi list...
I have an odd shaped MC on the stage. I'd like to find the distance
between the mouse and the MC, simple enough -- but not to the MC's
registration point, but to the *edge* of the MC. And to boot, it's an
odd-shaped MC. Can you determine the MC's closest point on its edge to
the
I just actually purchased it myself! :-)
- MM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Mendelsohn, Michael wrote:
Flash 8 player\IE\WinXP:
I've encountered some messed-up scenarios where Flash player gets
disabled solely because of Deleting Temporary Internet files from IE.
For me, once temp files are deleted, sites that attempt to detect Flash
fail to detect Flash. Those sites
..
hth
-K
[1]http://www.macromedia.com/shockwave/download/alternates/
On 14/12/05, Mendelsohn, Michael [EMAIL PROTECTED]
wrote:
I have given up trying to figure why this happens on some computers
and
not others. The problem was very repeatable until I manually removed,
then replaced, a file called
Hi list...
I have a button and a clickable movie clip where their code only works
if you move the mouse slightly before a second click. In other words,
if you click them more than once while keeping the mouse stationary, the
code only fires the first time, but if you move the mouse slightly
Thanks for the link, Lanny. However, unlike the article, in my
situation, it's not a textField component keeping focus, but a comboBox.
Adding Selection.setFocus(this) to the on(release) function of my button
still isn't clearing out focus from the comboBox. Am I missing
something?
I'm trying
Yes, it's just a plain old button. The code is attached right to the
button.
Are you using the Button component, or a button symbol?
And that code is just being attached right to the button it seems.. Is
that correct?
___
Flashcoders mailing
Hi list...
[Studio 8, XP, Illustrator CS2]
I have a MC of a rotating planet earth. Frame to frame, all the
continents are there, but when it gets on the stage, visual anomalies
occur: the Great Lakes disappear for a frame, or some weird horizontal
lines appear -- always at the same spot in the
If you change the size of the movie clip on the screen does the effect
change?
No matter what size the MC is, the same effects are there. If the MC is
scaled, the anomalies are scaled as well.
Perhaps you are just getting a preview of the effect of global warming
on the Great Lakes.
Hi list...
I thought you could instantiate a TextFormat object like this:
var tf:TextFormat = new TextFormat(underline:true, color:0xFF);
But that doesn't work as there's a compile error. Why?
- MM
___
Flashcoders mailing list
Hi list...
I'm wondering if there's any way to call a function at each step in a
tween being carried out by the Tween class when useSeconds = true.
Any insight is appreciated!
- MM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Hi list...
How do you duplicate an object {bool:true, val:5} in another variable
without pointing to the original one, and without having to create a
constructor. In Director, there's a duplicate() method in Lingo. Is
there an equivalent way to do this in Flash?
Something like this, but which
Thanks for the answers!
Thanks for the answers!
:-)
- MM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Hi list...
I'm making a swf in 8 and publishing for 7 and I keep getting this
compile error:
Enhanced stroke is not supported in this player
Problem is, I can't figure out how to fix that. Any ideas?
Thanks,
- Michael M.
___
Flashcoders mailing list
Thanks everyone for the insight. But, I just can't figure out how to
change the stroke settings. Where is that done? I've tried various
combinations of the cap and join widgets on the prop inspector, but that
isn't working. Where's the stroke setting in the UI?
- MM
You need to use the
Bingo! Thank you very much, Stacey.
- MM
You can also just save the file as the lower version and that works to
get
rid of the error.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Hi list...
I have a video that I am trying to hold on frame 1. Trying to do that
through code makes the video mysteriously not appear on the stage. Is
there any code that can hold the video at frame 1? I've tried:
vid.stop();
vid.gotoAndStop(1);
vid.vidContent.stop();
Hi list...
Is there a property to get/set the volume of a flash video on the stage?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Thanks for the feedback Jim...however, my video is embedded, and it
looks like netstream only works with an external video. Any idea how
this can be done with an embedded video?
Here's the code I've tried:
vid.gotoAndStop(2);
// vid is the MC containing the embedded Flash video
// create audio
Thanks for the reply, Jim. That was so obvious that I missed it.
- MM
var __sound:Sound = new Sound(__myVideoContainer);
__sound.setVolume(0);
The myVideo clip contained a video (with sound) that I imported to the
timeline. Send me e-mail if you want the .FLA
Hi list...
I have a MC of a rectangle with dimensions 1600 x 1200, registration
point at 0,0. In it is another MC of a square that's 400 x 300, located
at the upper left corner (0,0) of the _parent. I want to stretch out
the _parent MC just enough so that the inner MC _width becomes 1600. I
It's actually a lot more complicated than that because the swf is
sitting inside Director, and I'm aligning the swf to point(0,0) of the
stage and I've stretched out the stage to the dimensions of the monitor.
Then, I'm zooming in on a video by way of increasing Directors drawRect.
I'm suspecting
to
Director at all, I'm afraid. But I'd think all you need to do is compare
the
width of the embedded Flash object to its original published width, and
apply that factor on top of any other scaling factors you've already
applied...
Sorry I can't be of more immediate help.
Ian
On 2/15/06, Mendelsohn
Hi list...
I'm thinking of experimenting with having js control a swf. Can you
call methods and get/set various props in a swf from js in a web
page...and have it work in all browsers? If anyone has any
recommendations on where to read up on this, please let me know.
Thanks,
- Michael M.
Or, you can use:
getURL(javascript:window.status = yourData);
I like to think of the browser's status bar as a built in output spot,
granted, it's only one line at a time.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Hi list...
When playing a PowerPoint slide show, if you right click the
presentation, choose Go, then By Title, you get a menu of slides:
1 Slide 1
2 Slide 2
3 Slide 3
I can't figure out where to rename the slides. Can anyone clue me in?
My slides are just a jpg, no text, so is it even
We looked at it here with a gyroscope visor. Simply incredible.
- MM
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Friday, March 17, 2006 9:33 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Great bit of Director
Hi list...
I'm trying to export my animation as a quicktime with an alpha channel
so I can bring it into either Avid or Premiere Pro with the alpha
channel intact. Is this possible? When I set the alpha-transparent
setting in publish settings, the resulting .mov file has all inverted
colors. I
Hi list...
I have a movie and an external class. The movie has a font in it with a
linkage name theTimes. The class constructor creates a new text
field, and sets a style with this embedded font. The text is formatted
all of the attributes except the font, and I'm wondering if it's because
the
Thanks for the interesting link Ivan. I think in my case, it was a
scope problem, because I had the setTextFormat called from within a with
block that I discovered wasn't reading the TextFormat. Issue solved.
- MM
___
Hi list...
I must be missing something. Is there a way to load a jpg from the
library with a linkage name into a dynamically created movie clip on the
stage?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Hi list...
I am creating a bunch of MCs on the stage that should each get an
onEnterFrame function defined, but only the first one created in the
loop is getting that function, and I don't see why. Any ideas?
Thanks,
- Michael M.
private function mLanguages(attachToWhat):Void {
That worked perfectly. Thanks, Geoff.
- MM
you should set riseSpeed inside the newClip, and then apply the
onenterframe to the clip's _y, like this:
newClip.riseSpeed = ((0.03 * hitherYon) - 1.5);
newClip.onEnterFrame = function():Void {
Hi list...
The code below tints a MC on the stage and then I'm trying to put a
black glow around it, but the glow turns out to be the same tint as the
ColorTransform. Is there a way to make sure the glow is a different
color?
Thanks,
- Michael M.
var clr:ColorTransform = new ColorTransform();
Hi list...
Can you create a component out of a movie clip in MX and publish to
version 5 and have the component work without problems?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Mental block here:
Is it possible to load a jpg with a linkage identifier from the library
into a MC on the stage?
attachBitmap and attachMovie don't seem to do it.
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Hi list...
I'm trying to figure out what I'm missing in trying to instance a class
via composition:
I have 2 external classes: questions and puzzle.
class questions {
public var qa:Object = new Object();
function questions() {
qa[0] = new Object();
Thanks Jason. I figured it out. I was getting tripped up by the fact
that how I was doing it was only returning functions, not properties.
In my fixed puzzle class:
private function defineQuestions():Void {
// create the question and answer data object...
Hi list...
I have a path to a mc like so:
_root.collective.table1.p5
On the root of the clip named p5, there is this line of code:
var isPiece:Boolean = true;
Why am I not able to reach that boolean through code?
trace(_root.collective.table1.p5.isPiece) is always undefined.
Thanks,
- Michael
Hi Danny...
Thanks for responding.
The value is just a constant true, on the timeline of
_root.collective.table1.p5.
If I trace(root.collective.table1.p5), I get the clip's path in the
output window, no problem. But if I go and trace a variable within that
mc, I get nothing.
What's the
Thanks everyone for your quick responses! It was indeed a case of the
clip not fully loaded yet. I'm able to reach it now.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
Is there any way to sort within an object:
Track[1][score]
Track[2][score]
Track[3][score]
Track[4][score]
Track[5][score]
All the tracks have different score numeric values. What's the most
efficient way of getting them in order? It seems sort and sortOn only
work on arrays.
is Track an array?
Track is an object.
This is my work in progress...
private function updateStandings():Void {
// create list of scores and sort descending...
var tempScores:Array = new Array();
for (var s
Well, thanks everyone for the advice. I ended up solving the issue, and
below is my final code. Sorry if I confused anyone.
- MM
private function updateStandings():Void {
var tempStandings:Array = new Array();
// first, create list of scores and sort
Hi list...
From the help on for...in:
You can also iterate through the elements of an array:
var myArray:Array = [one, two, three];
for (var i:String in myArray) {
trace(myArray[i]);
}
This code outputs the following in the Output panel:
three
two
One
Why is the data output in reverse
Hi all...silly question:
Is there a keystroke for backing out to a parent clip, say if you're
drawing in one clip, then go back to it's parent?
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
Why is it that when I try to init a prop for my class, I get this error:
A class's instance variables may only be initialized to compile-time
constant expressions.
What exactly does that mean?
Thanks,
- Michael M.
class test{
private var tf:TextFormat = new TextFormat();
Thanks, Mike and John for your responses.
John: what do you mean by primitives?
- MM
Class properties can only be initialized with primitives outside of a
constructor
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Filters don't apply to movie clips that have a component definition? Is
this true, or something I'm doing wrong on the timeline?
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
The embedFonts line seems to prevent the setTextFormat line from
working. What am I missing? The font univ is in the library, and its
linkage is univ.
Thanks,
- Michael M.
private function createSlideWatcher():Void {
var tf:TextFormat = new TextFormat();
Hi all...
Thanks for the responses. It was indeed a case of setNewTextFormat. I
just don't get why that AS term exists.
Thanks!
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I have some text on the _root that I placed there using createTextField,
and now I'd like to remove it using removeMovieClip, but it's not going
anywhere. Any suggestions?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To
Thanks, Peter. That's what I refer to as a blinding glimpse of the
obvious. I just wish it was better positioned in the documentation. I
didn't realize it was there.
Regards,
- MM
Yeah - standard TextField method:
my_txt.removeTextField()
___
Hi list...
There's a point in my code that a sound object drops the sound for a
split second prior to the moment it begins to fade out, and I'd like to
figure out why that's happening.
Any thoughts are appreciated.
- Michael M.
// on the root:
var tuneSound:Sound = new Sound();
// listener
Hi list...
I'm trying to access a mc within a mc in my class as follows:
class linker extends MovieClip {
function linker() {
trace(theClip);
}
}
The linker clip is on the stage, and there's a mc within it called
theClip. I get the error There is no property
All the solutions worked perfectly, thanks everyone. But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?
declare theClip as a member of the class linker.
like,
private var theClip:MovieClip;
Also, try to keep ur code out of the constructor.
Placing that code instead in the onLoad method makes sure that it will
work.
Great explanation, thanks Arul.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Touchdown Dolecki!
Make sure the registration point of the contents getting slapped into
the
pane are at 0,0. Sounds like its off there.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I'm not sure why I can't see my loaded flv on the stage. I can hear
them, I just can't see them. I have a class that runs the show as
follows.
Thanks,
- Michael M.
import flash.external.*;
class welcomeWebpage {
public var nc:NetConnection;
public var ns:NetStream;
function argbToHex(a,r,g,b){
return(a24|r16|g8|b);
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier
Hi list...
I have a scroll pane on the stage with the vertical scroll bars
appearing as needed. The issue is that the scrollbar thumb scrolls up
too high and actually scrolls over the up button. Anyone seen this
before, and how should it be solved?
Thanks,
- Michael M.
I discovered when you reset the contents of a scrollpane twice in a row,
the scroll bar resets to the correct top position. But it seems to be a
bug that you have to reload the scrollpane.content twice to get its
scrollbar in the correct position.
Note to self...
- MM
I have a scroll pane on
Hi list...
I've written a singleton that should load in videos on demand, but it
plays the video twice, once only audio, and the second, a couple of
milliseconds later, both audio and video. Components on the stage call
loadVideo, and through debugging, I know that call is only fired once,