Hi list...
I keep getting this error while debugging. I'm not clear what's causing
it. Any thoughts?
- MM
*** Security Sandbox Violation ***
SecurityDomain
'file:///D|/customized%20proposal/ingredients/customProposalFlashAssets/
customProposalTool.swf' tried to access Player UI context
Hi list...
Setting a V2 ScrollPane's vPosition is easy enough, but for sending it
all the way to the bottom. The following isn't working for me:
_root.sp.vPosition = _root.sp.content._height;
Anyone know if a trick is involved?
Thanks,
- Michael M.
Hi list...
I can't get a doLater working for a V2 ComboBox in a movieclip attached
to the stage (_root.mc.cb).
I want the doLater to call a function that lives in a subclass that's
been instanced by my singleton.
i.e.: _root.mc.cb.doLater(_root.singleton.subclass, someFunction)
The help says:
Thanks for the reply. That didn't work either, though. :-/
Rhetorical question: are styling components easier in AS3? Ugh, all I
want to do is color that outline.
Try the following and omit the new CSSStyleDeclaration():
_global.styles.rectBorderClass.setStyle(borderStyle, solid);
Thanks for the reply, Ian. I did change the order, but everything still
stops. I tried to observe the flow with a timeout, and what it does is
trace Start A and Start B really quickly, then everything delays,
then when the xml is loaded, the movie works again, and the other
trace statement
Hi list...
Is it possible to import an image from a user's hard drive into a swf in
a browser? For instance, I'd like to have a button that says search
for photo and onClick, up pops a browse dialog, and the user can locate
an image and the dialog would return a full path. Then the image file
Hi list...
Does anyone have any links to blazePDF examples? I can't seem to find
any when searching.
Thanks,
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
Any way for FileReference to return the full path instead of just the
name of the file selected? If not, how else to get it?
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi folks, thanks for all the responses! They are greatly appreciated.
- MM
___
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
So do you think it would be possible to take a fairly complex array, run
it through some function in AS2 that describes the document page by
page, send it to CF and out pops a pdf? Would it be possible to have
templates using the drawing API, and add data? I'm understanding that
CF could take
Hi list...
I've written a simple routine to eliminate spaces from a user entered
string. But, it won't return the string. I'm sure it's something
silly. Can anyone shed light?
- MM
function eliminateSpaces(phrase:String):String {
var foundSpace = phrase.indexOf( );
if
Hi list...
Is there an actual difference between Flex and Flex Builder or is it the
same thing?
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I'm working on an app that generates a pdf based on user settings. It
will be about 20 pages in length, with some graphics but mostly
formatted text. I had been planning to embed this swf in Director and
use the pdf xtra. However, I'm wondering what other options are out
there.
Hi list...
Is it possible somewhere to get the name of the function being called,
i.e. return onPress or onRelease?
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
...is it considered acceptable? Is it ok to mix data types in an array?
function getData(which):Array {
switch (which) {
case (A) :
return [A,{abc:dog}];
case (B) :
return [B,{def:cat}];
}
}
var goofy:String = getData(A)[1][abc];
Hi list...
I have a ScrollPane (V2) that isn't displaying any of its scrolling
elements, and it's stuck at about 100x100 pixel size, no matter how much
I stretch it. When I create a blank test movie and bring all my skins
and the component in from the problematic movie, everything works fine.
For some reason, I discovered that the Border, CustomBorder and
RectBorder border classes were causing the issue so I took them out of
the library.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I have a mc on the stage containing 5 RadioButton instances. When the
MC appears, I'd like it to show up with the most recently clicked
RadioButton in the group selected by default from the previous time this
MC was on the stage. I'm trying to do this with doLater, but I can't
get it
Hi list...
I'm tweening a mc that contains a dynamic text box (font embedded) by
using the Tween class to resize and reposition it. Unfortunately, each
step in the tween reflows the text slightly, as if it's being kerned
randomly each step of the way. I've tried using cacheAsBitmap=true on
the
Bingo, Zeh. That was exactly the problem.
Thanks!
- MM
___
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
Hi all...
Can PDF files somehow be written to a hard drive on the fly from a Flash
exe? (Multiple pages, custom graphics, etc.)
- Michael M.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi list...
I'm trying to figure out a best practice for branching a popup window
containing a Flash piece published in 8. So, I first want to test if
the user has Flash, second if it's the 8 player, and third, if
javascript is enabled, thus writing a swfObject. Anyone got any advice
how to do
Funny, Danny. I'm hoping someday it will all be just one language.
- MM
You can tell that Michael is mostly a Director user, can't you? :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Thanks Jason. I see what you're saying. So I inited an object and then
define it, but the below still errors. I was just hoping to be able to
define my object with only one line of code.
private function createData():Void {
this._data = new Object();
this._data[a] = new
Thanks everyone for the responses. This thread has been really helpful.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by
Hi list...
I can't get a ContextMenu based on a variable in my movie to show up.
It gets to the callback function, and chooses the right array (wording),
but the menu itself doesn't render. What am I missing?
Thanks,
- Michael M.
private function bandwidthMenu():Void {
var
I tried that but it didn't fix it, but thanks for the response.
- MM
aren't you just missing () on your first line?
var cm:ContextMenu = new ContextMenu(buildMenu);
should be
var cm:ContextMenu = new ContextMenu(buildMenu());
___
Thanks very much Stefan. I had been suspecting that would be the way to
do it. I appreciate your post.
- MM
Hi Michael,
I face the same problem you're describing: most of my UI controls are
in a shared SWF (source.swf), which is then used by several of my
dest.swf files.
I did some
Hi list...
Does the url parameter for FileReference.download() have to be an
absolute path?
When I am testing locally:
this worked for me:
fr.download(http://www.abc.com/a.pdf;);
But this relative path didn't:
fr.download(a.pdf);
Thanks,
- Michael M.
Hi list...
This should be a simple question about runtime sharing, but I've never
done it before, so I'd like to be sure.
Say I make 2 files: source.fla and dest.fla, where source contains the
assets I'd like to bring into dest (the fla actually being viewed). In
source, I have a bitmap
Yes, just did the test. My mind is now resting. Thanks!
Sounds like you've done all the normal things.
I believe that the .fla does increase in size (it copies the assets for
editing purposes, I think) - but the important thing is that the
resulting
.swf shouldn't. Have you checked the
Hi list...
For a swf, dest.swf posted online, what is the best way to make
available all of assets it uses that are imported as runtime sharing
from a source.swf? Should I do a loadMovie(source.swf) from within
dest.swf?
Thanks,
- Michael M.
___
Sounds great, Ian. But, I also want to make a loading progress bar, so
what should the progress bar be looking at to measure percentage loaded?
Is it just simply getBytesLoaded + total, or do I have to take into
consideration in that calculation the assets.swf?
- MM
Hi Michael,
If you're
Hi list...
I'm trying to do _root.attachMovie(runtimeShared,runtimeShared,1);
where runtimeShared is an asset from another swf that's exported for
runtime sharing and dropped into this movie's library as import for
runtime sharing.
I have found that the attachMovie method *only* works if I
Actually, that was the mystery, because -- of course -- my tooltip text
was *not* selectable, but the I-beam cursor showed up like an uninvited
guest. Thanks for the tip!
- MM
Is there any reason why you need your tooltip text to be selectable?
Selectable text gives you the i-beam cursor
Hi list...
//Happy new year!
I have a tooltip function that makes a tooltip MC follow the mouse over
when rolling over another MC, but it gets blown out after two frames,
and the mouse turns to an I-beam cursor. I can't figure out why. I
*don't* think it's a setInterval issue, but I might be
Thanks, Grégoire. Your thought process seemed to work. I also ended up having
to include a check for whether or not the tooltip MC was undefined
onEnterFrame.
- MM
class toolbarFunctions extends MovieClip {
private var tipID:Number;
function toolbarFunctions() {
}
Hi list...
I have a scrollPane with a homemade accordion in it. Each of my
accordion's components have a masked mc in them. They are all inited as
collapsed. The problem is that when the scrollPane's vscrollbar is
inited, it seems to take into account the total height of the accordion
Hi list...
Probably a silly question, but I can't get my button skins to work. In
the library I created 3 symbols with corresponding linkage names
(falseDownSkin, falseUpSkin, falseOverSkin), but they're not showing up
on the stage. What am I missing?
Thanks,
- Michael M.
I just discovered that you have to add mx.skins.SkinElement to the AS2
class field in the linkage dialog box and an onClipEvent(initialize)
function to the button instance to assign it skins. But, does this code
have to be there for every button instance? There's got to be a more
streamlined
Could it have something to do with the fact that I imported the Halo
themes folder into my library?
Thanks,
- MM
You don't normally need to do any of those extra steps. Something else
is hosed.
___
Flashcoders@chattyfig.figleaf.com
To change your
Hi list...
I have a class that has a movie clip mc in it that when clicked,
rotates another movie clip mc2. As the tween progresses, I want it to
also affect some other things within the class, but I can't seem to
correctly reference instances of this class from within the
onMotionChanged
Hi list...
I can't figure out why the onEnterFrame attached to _root.tooltip in my
displayTip function removes that MC after one frame. If I set the
onEnterFrame to alter any other MC on the stage, no problem, but when I
set it to alter itself, it errors. Any ideas?
Thanks,
- Michael M.
class
Hi list...
Can you have a doLater with parameters? I have a checkbox component
within a scrollPane component that I want to have talk to a singleton
instance.
I've got a number of checkbox components like
cb1.doLater(_root.ui,giveMeStyle);
Where _root.ui is the singleton, and giveMeStyle is a
Hi list...
I have some dynamic text boxes using an embedded font. These text boxes
only use a select few glyphs, but I have to embed the font with linkage
for others to see it. The font adds a lot of bulk to the swf and I'm
wondering if there's a way to embed only the necessary glyphs and
Hi list...
Should be a simple question:
How do you set styles on checkbox components? It's not working for me.
In my singleton class:
import mx.controls.CheckBox;
import mx.controls.Label;
class o {
function o() {
_global.CheckBox.setStyle(color, 0xFF);
Does anyone happen to know if static variables will be able to be viewed
in the debugger in Flash 9? Other than using trace statements, of
course.
Thanks,
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
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
Thanks Ian, that's exactly what I was looking for.
- MM
___
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
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...
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
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...
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...
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...
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 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...
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 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...
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 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.
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'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
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 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
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
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
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
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...
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'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...
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'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
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 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:
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 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...
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:
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...
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
301 - 400 of 448 matches
Mail list logo