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
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,
Hi list...
How do you get an external FLV's total time property? It seems the
elapsed time is netsream.time, but I want to create a progress bar.
Thanks,
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Ahh, thanks very much Sönke!
The totalTime is part of the metadata. Catch the onMetaData-Event and you
got it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I'm tired...
NetStream.seek(x).
I think I'm looking for the equivalent of FLVPlayback.seek()
but without that component. I'm using a video object.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
How exactly do you pause and play a video? I'm trying to create a
play/pause toggle button that isn't quite working. When pausing a
video, should you close the netstream? And if so, how is the best way
to reopen it to resume play?
Thanks,
- Michael M.
case (playPause) :
Hi list...
I have a scrollpane that contains a mc that goes to different frames
whose heights longer or shorter, thus turning on or off the scrollpane
components vertical scrollbar (vScrollPolicy = auto). The problem is
when the vScrollBar becomes visible, the thumb is up too high. Setting
the
Hi list...
My swf (currently on my hard drive) loads external flv files, but when
testing at a simulated download at 56k, these flvs are brought in
instantly from the hard drive. Is there any way of simulating the
download of external flv files at a slower rate than that of my hard
drive's
Hi list...
I have a mc on the _root that when clicked, calls:
loadMovieNum(squares.swf, 2);
When published, when I double-click the swf itself, it works. But,
testing that swf sitting in a web page, it doesn't work.
Also, I am loading in external flvs. They load in on some machines,
Hi list...
My swf calls flv files on a server (not http), but the locations are all
redirects. For instance,
http://ourwebprod/web/share/WebForm1.aspx?Media=video.flv actually would
point to \\someDrive\web\webAssets\video.flv, if that makes any sense.
Components in the swf make the call to
1. Is there a way of *regionally* distinguishing within a language i.e.,
English-UK or English-US, aside from just getting the en from
System.capabilities.language?
2. Why is it that when you specify the text box as a unicode font, then
publish, you can see the non-English characters, but when
I believe the static item is either the leftmost and the topmost item --
only. You might want to put a guide on the stage at the left/top of the
item you'd like to be static, align them, then just the realigned group
back to the guides.
Hope that helps,
- Michael M.
When aligning a group of
Hi Jason, could this be what you're looking for?
var myColor:Number = 0xff6600;
t.text = String(myColor.toString(16));
//ff6600
// or...
//t.text = myColor;
//16737792
Similar to Mike's thread, is there a function out there someone has
written to convert a regular numerical value back to its
Hi list...
[IE6, WinXP, FP9]
Why am I getting an error icon in the status bar when I try to do this
simple call to javascript?
Thanks,
- Michael M.
In the Flash:
/
public function loadVideo(theVid, callingLink) {
if (ExternalInterface.available) {
Locally, in the browser, I suppose I should say. It's all sitting on an
http server. As long as that seems normal, I'm fine with it, thanks.
- MM
Are you testing on a web site with your browser or locally in your
browser? Locally you will get warnings/errors due to the new security
Hi list...
Is there an easy/quick way to find out if an item is in an array? For
instance:
Var a:Array = [a,b,c,d];
Var y:Number = a[b];
//y would be the position in the array of b or undefined if it's not
in the array/
I'm looking for the equivalent of Director's getOne() function.
Thanks,
-
Hi list...
I'm doing a multilingual project for the 7 player. I need to set a
language + locality variable to en-us instead of just en. It seems
that System.capabilities.language was demoted going from player 6
(returns lang + locale) to 7 (just lang). Am I right? I can talk to
javascript in
Thanks for responding.
Do you think there might be any way to do this with js or ideally all
within the Actionscript? I don't know php.
When I do this with Director projects, I read the locality from the
Windows registry.
From where you want to retrieve the locale code.?
Language, is the OS
I have that issue with MS Arial Unicode -- specifically the Unicode
version. I was wondering about it myself, but didn't investigate
further.
- MM
Hmm - weird. All other fonts are working for me at the moment except
for
basic Arial. This indeed seems quite random.
Make sure you also have this line:
myText.html = true;
Does anyone have the solution...it could be myText.htmlText = 'foo'
but I am not sure.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I have a scrollpane component whose content is a movie clip with a
changing height, so the vertical scrollbar appears/hides when necessary.
(vScrollPolicy = auto)
The problem is when the vertical scrollbar appears: the draggable thumb
is drawn too high, overlapping the up button.
Take a look at the Tween class and its various easing methods documented
under the components language reference in the help. There's a good
variety there, and you can control many facets about the tween.
- MM
___
Flashcoders@chattyfig.figleaf.com
To
You could probably tween something using the None easing method for a
long distance, giving it linear movement, then when the tween is done,
call onMotionFinished, and give it a new tween, but this time, over a
short distance, and with bounces. I don't think you can control the
amount of bounces.
Hi list...
According to the help docs,
public parseXML(value:String) : Void
doesn't return an integer or anything to indicate successful parsing of
the xml. How can I be certain that I've passed in some error free xml
and it was able to parse?
Thanks,
- Michael M.
Hi list...
I had a problem where the scrollbar component thumb was moving up too
high over the up arrow. I figured it out, but I'm puzzled by something.
In my Halo skins for VSCrollBarAssets, the BtnUpArrow was resized
smaller, causing the problem. But, it seems to me that that this mc in
the
Hi list...
I understand what interfaces are, but I'm not entirely clear on when
they become advantageous to use. Anyone care to shed some light?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search
Hi list...
I have a line of code on frame 1 of the _root:
_root.panelBG.sp.doLater(_root, displayCorrectFrame);
...where sp is a scrollPane component inited in the panelBG mc.
My doLater function is also on frame 1 of the _root, but it never gets
fired. I can't figure out why. I think it might
Hi Rich and Dave...
Thanks for the responses. Rich, your solution worked. I needed a
combination of delaying a one frame *and* a doLater. I was doing just
either or, but it was needing both, although I have no idea why. I
would have thought the doLater was automatically scheduled to fire
Hi list...
Why does an object's parameter not change if it's instanced as a new
Boolean()?
w = new Object();
w.zoomed = new Boolean(false);
trace (w.zoomed);
//false
w.zoomed = !(w.zoomed);
trace (w.zoomed);
//false
q = new Object();
q.zoomed = false;
trace (q.zoomed);
//false
q.zoomed =
Hi list...
Can anyone recommend some links to eye catching Flash based corporate
annual reports?
Thanks,
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I've skinned my scrollbar component, but why is it that the scroll
thumb's over state never seems to work? It's happened to me on a few
projects and I've seen it on others' work out there. What gives?
Thanks,
- Michael M.
___
Hi list...
Dumb throwback question: my load progress bar isn't working. I have
two frames, one to monitor the loading of the swf, and when it happens,
go to the next frame to init a singleton, but my load progress bar
doesn't show up until the swf is 100% loaded. What am I missing here?
Hi list...
I can't figure out why MovieClipLoader isn't working. In the authoring
environment, I get no error but it doesn't load, and in the browser, I
get urlNotFound error. I don't understand it as the two swfs sit next
to each other in the same folder. Any thoughts are appreciated.
Thanks for trying.
The External Interface is the only thing there that works for me. I get
the alerts from the html page, but that's it. It never finds the other
swf. Could it be some kind of security issue?
I've just copy/past your code inside a new flash file and it is working
fine both
Hi list...
How can you access embedded cue points WITHOUT using the FLV playback
component? I'm just using the plain video object on the stage.
When the FLV is loaded, I am trying to get cue point info like so:
ns.onMetaData = function(infoObject:Object):Void {
for (var i in
I asked this question once. Check out the archives of my post:
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-December/055
709.html
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
Is there a Flash equivalent to Illustrator's Make Compound Object
feature? I have some Illustrator text that I converted to paths, and
brought in to Flash. I'd like one radial gradient to span over all the
letters. I know I can do this with a mask, but is there simpler way,
thus
1 - 100 of 448 matches
Mail list logo