Re: [Flashcoders] FLVPlayback Component on Limelight

2007-07-10 Thread grimmwerks

Hey Lori - did you figure this out?

I'm now a member of the ex-SMM as well... :P
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] flash projector sending xml to php (sendAndLoad) or php variables...

2007-05-15 Thread grimmwerks

Anyone have good examples/pointers of both sending

- raw xml data to a php page
- sending variables to a php page without using a browser (ie behind
the scenes).

I've been looking at both LoadVars and XML's sendAndLoad but can't get
it to function...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash Media Server: Shared Remote Object, and then endless loop to clients...

2007-03-01 Thread grimmwerks

I'm unsure why I'm getting an endless loop --

I've got each client's so.onSync  checking for a change to the
applications.users array, each of which are added on connect.

But for some reason when more than one user connects, they both get
into this endless loop

It's driving me crazy.  I've been reading documentation up the yahoo,
checking the sample apps, etc.

I'm sure it's something I'm doing wrong, but what, I have no idea.

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] TextArea: shutting off selection?

2006-12-13 Thread grimmwerks

Even though a TextArea is not editable, the user can still select it.

Is there a simple 'off' feature I've missed?

Danke

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: TextArea: shutting off selection?

2006-12-13 Thread grimmwerks

duh. TextArea.label.selectable = false.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FLVPlayback question...

2006-12-13 Thread grimmwerks

I've got an instance of the FLVPlayback in an app that is getting sent
a path; it's contentPath was just being resent the new path.

It's not working 100%, as every so often it decides it doesn't want to
load that requested video.

What's a better way of using one FLVPlayback object that reloads video
requested? Birthing a new instance each and every time?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] skinning the scrollpane?

2006-12-05 Thread grimmwerks

How does one actually skin a scrollpane? I've actually got a skinned
UIScrollbar working properly; but as soon as a ScrollPane componenet
is added, it killed everything.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] frustrated with textFields: getting height while text isn't fully 'there'

2006-11-12 Thread grimmwerks

This is totally driving me crazy.

I'm creating a textfield as a sub to another clip, setting it's width,
making it autosized, giving it a stylesheet. I then toss in it's
htmlText.

I just want to know if the darn thing is one or more lines. Trouble is
it's not reporting back properly...it seems as if it's just in the
middle of adjusting itself or something, as if I trace out a lot of
stuff, it works out fine. But I shut off tracing, and it stops
working.

For example:

var mTitle:TextField = mcTxt.createTextField(mc_title, 6, tR.x+20,
tR.y-14, 230, 0);
mTitle.autoSize = right;
mTitle.wordWrap=true;
mTitle.selectable=false;
mTitle.html = true;
mTitle.border=true;
mTitle.multiline = true;
mTitle.styleSheet =_global.gPrefs.CSS;
mTitle.htmlText = title;

fontsize = 30; // i know this
lCnt = (mTitle.textHeight/fontSize);

Sometimes lCnt works and sometimes it doesn't -- and I'm tracing out
all elements.

I've even tried to do something like
while(mTitle.htmlText!=title){
 trace(not there);
}

But that doesn't work either.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] loading external movie, then attachMovie items of IT's library?

2006-11-04 Thread grimmwerks

Is it possible to load in an external swf using loadMovie into a main
movie, and then creating new movies on the fly using attachMovie with
ids of the loaded movie?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-02 Thread grimmwerks

It's time for one of those brainfarts.

I'm trying to position a textField's bottom in line with other
textfields; I've added leading to all the textField's so my math is
now off.

All the single-line textFields are positioned properly, but the
mutli-line textfields are not.

In the one I'm testing out with, the font size is 30, and the leading
is -10. So I did this:

lineCount = (txt._height/(font.size + font.leading))

This never works for my example, ie ht = 70, size = 30, leading = -10
 ie  70/(30+-10) == 1.6


What am I missing?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] stylesheets span and p

2006-10-30 Thread grimmwerks

James O'Reilley was kind enough to begin writing a class for me that
splits htmlText via '/p' and then, based on stylesheets, if the
class for that p has a bottomspacing, it will move the next textfield
down.

This works perfectly except that the text p class='xxx' also shifts
the text down in the textfield, so it looks like there's even a larger
spacing.

I've tried making them span instead of p, but the text in the
textfield is still shifting down as if there's a p around it.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] CSS question..

2006-10-29 Thread grimmwerks

I'm trying to use a p class='  tag around text area's with the
following css, yet nothing is working.

What's the best way of specifying multiple font formatting in a
stylesheet? I've got an example where the p{} specifies the font
familiy, then every version of the class (ie .p2{}) only sets up the
size, etc, but I need something a little more:


.title{
font: 30px/25px QuadraatSans-Regular;
size: 30;
color: #ff;
text-transform: uppercase;
letter-spacing: 1px;
text-align: right;
}

.primary_button {
font: 25px Eureka-Roman;
color: #ff;
text-align: right;
margin-bottom: 8;
}   


.secondary_button {
font: 18px Eureka-Italic;   
color: #ff;
text-align: right;
margin-bottom: 8px;
}

.body{
font: 21px/25px QuadraatSans-Regular;
color: #ff;
margin-bottom: 8px;
}

.EX_Title{
font: 35px/38px QuadraatHead-Bold;
color: #ff;
margin-bottom: 8px;
}

.EX_Subtitle{
font: 21px/27px QuadraatHead-BoldIta;
color: #ff;
margin-bottom: 16px;
}

.EX_Date{
font: 25px/29px QuadraatHead-Light;
color: #ff;
margin-bottom: 16px;
}

.FV_Section{
font: 25px QuadraatHead-Bold;
size: 25px;
color: #ff;
letter-spacing: 1px;
margin-bottom: 8px;
}

.FV_Time{
font: 30px/25px QuadraatSans-Regular;
color:  #ff;
}

.FV_Year_Duration{
font: 30px/25px QuadraatSans-Regular;
margin-bottom: 16px;
color: #ff;
}

.FV_Location{
font: 20px/23px QuadraatSans-Regular;
margin-bottom: 33px;
color: #ff;
}

.FV_Film_Title{
font: 27px/27px QuadraatHead-Bold;
color: #ff;
}

.FV-ATM_Program_Title{
font: 35px/38px QuadraatHead-Bold;
margin-bottom: 8px;
color: #ff;
}

.FV-ATM_Date{
font: 25px/29px QuadraatHead-Light;
color: #ff;
}

.FV-EFK-DS_Program_Title{
font: 27px/27px QuadraatHead-Bold;
margin-bottom: 8px;
color: #ff;
}

.FV-EFK-DS_Date{
font: 40px/38px QuadraatHead-Bold;
letter-spacing: 1px;
color: #ff;
}

.PP-SE_Weekday{
font: 25px/25px QuadraatHead-Bold;
letter-spacing: 1px;
color: #ff;
}

.PP-SE_Date{
font: 40px/38px QuadraatHead-Bold;
letter-spacing: 1px;
margin-bottom: 16px;
color: #ff;
}

.PP-SE_Program_Title{
font: 27px/27px QuadraatHead-Bold;
margin-bottom: 16px;
color: #ff;
}

.PP-SE_Time{
font: 20px/23px QuadraatSans-Regular;
color: #ff;
}

.PP-SE_Location{
font: 20px/23px QuadraatSans-Regular;
margin-bottom: 16px;
color: #ff;
}
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: CSS question..

2006-10-29 Thread grimmwerks

I realize now it's only dealing with font-family...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] another CSS / htmlText question

2006-10-29 Thread grimmwerks

Got another CSS/htmlText flash question.

What I've been working with is this:

I've got a screen layout program that allows the client to select
background images, and how many columns they want. Then, when any
column is selected they get a live input textbox they can put in the
text they want for that column. They can select a section of text they
want to apply a style. I've got all this working fabulously - ie even
with the focus going off because of the combobox.

What I'm doing is calling a function that gets the begin..endIndex of
the textbox and applies the chose textFormat by setNewTextFormat; it
then sends the changed htmlText to the screen's textbox.

Well, now I want to change to CSS rather than saving the styles (which
will allow me to change things later).

I want to be able to select the text ie 'bob says hi' and add the
selected CSS stylename such as

txt = p class='+name+' + selectedTextString + /p.

This is all easy to do the first time - the selected section gets
replaced with this and the htmlText gets set. But since the preview
box can have OTHER htmlText -- well, if I'm getting the string based
on the TEXT of a member; how can I get the correct offset from the
htmlText of a member? do a substring with the actual selected string?
Is that the only way?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] CSS locks input text?

2006-10-29 Thread grimmwerks

Is this true? I'm changing over from textFormatting to CSS and now my
inputText no longer works...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] HELP! Zinc projector saving to xml file - 50k limit?

2006-10-26 Thread grimmwerks

I've got a list of items that have a lot of stylized text and I'm
saving the items to an xml/text file: is there a 50k limit or
something?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] HELP! Zinc projector saving to xml file - 50k limit?

2006-10-26 Thread grimmwerks

Trouble is with the appendFile in a loop, there's no return whether
it's successful or not, so I'm going on to the next append while the
previous one is still running.

Someone from the director list gave me this:

you could just save the xml as a couple of temporary files that are
all under 50 k, e.g. as chunk1.txt, chunk2.txt, ..., chunkn.txt, and
then in second step, use
  mdm.System.execStdOut(copy chunk1.txt +chunk3.txt ... +chunkn.txt new.xml)
to assemble the chunks to one large xml-file. mdm.System.execStdOut()
doesn't return before the command was really executed, so no problems
here. afterwards you can use
  mdm.System.execStdOut(del chunk*.txt)
to delete all temporary chunks at once.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] mc loads, has a global....

2006-10-26 Thread grimmwerks

ok -  still with this app.

I have a map that I'm loading externally - map.swf. In it I'm setting
all kinds of stuff using

_global.gMap(all kinds of functions)

The main swf that loads in this clip, once it's loaded with a
moviecliploader -- I try to trigger one of the functions via
gMap.showMap() - but the loaded movieclip doesn't trigger anything,
though it IS loaded.

I thought globals were globals - if a loaded clip creates a new
_global object, that the parent clip could trigger it as well?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] array.sortOn(object.key) ???

2006-10-25 Thread grimmwerks

OK, not sure of a way around this one, would appreciate any help (I
have a sneaky suspicion I'll be rolling my own) --

I've got an array of objects, -- ie x = Array([object],[object],[object]);

Where each object has another object -- 'page' -- and then THAT has a
key of 'endDate' -- ie

[object].page.endDate


Is there a way I can sort this array by endDate even though it's not a
key of the toplevel, but the next level?

Will I instead have to create a new array and then based on what's
already there (ie at '0' or 'length-1' to either push or splice at the
beginning based until the original array is empty?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] textformat question: add space after paragraph?

2006-10-25 Thread grimmwerks

Trying to build an app and the designer is extremely stringent with
the way the text formatting should appear.


From her photoshop docs she's got blocks of text where she's set the

'add space after paragraph' in the character formatting palette.

It's not clear where or if I can set this in a textformat in Flash;
anyone have an idea? Is it something I can do in terms of css? I'm
trying to set blocks of text that they edit on the fly.

Thanks, as always.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Flex Beta for Mac

2006-10-25 Thread grimmwerks

I second that Wahoo. I'll raise you a yippee.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] advice needed: textformatting or css?

2006-10-25 Thread grimmwerks

Ok - I've got this kiosk application I'm building - there's a playback
and there's a builder. The builder has a lot of textformatting going
on. Up to now I've been allowing the client to put in their text into
a textfiled, select a pulldown and it automatically inserts the
correct textformatting.

However, since I'm saving all this textformatting to an xml file
embedded in a CDATA file, if there's a problem with the textformat,
then I'm screwed.

One of the biggest problems that has been pointed out is that there is
no way of setting more 'space after a paragraph' that you can do in
photoshop.

I'm starting to think that I should do it all as CSS, so that if i use
an external CSS file, and put class around the selected/edited text,
it's not saved with the xml and I can massage it afterwards.

But is it also possible to do a 'space after paragraph' setting in css
for flash text?

Thanks for any advice; it's at the tail end and this project is way behind.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: Re: [Flashcoders] Flex Beta for Mac

2006-10-25 Thread grimmwerks

Ah well - I can't get the damn installer to launch on mine.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Flex Beta for Mac

2006-10-25 Thread grimmwerks

Huh  - just tried on a Quad. I'll try on a macbook...

Are you as upset as I am about the Core2?  Just got my 17 about 2 months ago!
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] need a little help: class problems: nSlideShow

2006-10-19 Thread grimmwerks

Here's the deal: I've got a little movieclip that is loaded into a movie
instance.

The movieclip births a class I called nSlideshow - all it really does is
create another movieclip on the fly and slowly cycle through an array of
images by an interval.

Well when I 'close' the window, it kills the instance of the embedded
movieclip, and within it it  it should kill the slideshow class

Well the slideshow still goes through it's image list and tries to display
(even though there's nothing 'there'. The submovieclips that birthed the
class is unloaded/deleted. The slideshow class' actually 'myBack' movieclip
instance doesn't exist...yet it still tries to cycle through  list...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] phantom flash class instance

2006-10-19 Thread grimmwerks

Ok, this is a flash question

I've got a class I'm using in an app - it's really simple, just is a
'slideshow' type class; it gets a list of images and cycles through
them as a slideshow with an interval between.

Now it's being used in a movieclip that is in turn being loaded in a
Window component.  When a user clicks the window component close
button, I've got it unloading the movieclip instance; but the
slideshow class still tries to continue cycling through it's images
array -- ie it's 'instance' is still going even though the movieclip
that birthed it is gone.

For example: the slideshow class, upon birth, gets it's 'owner/parent'
movieclip upon it's birth. It then creates a new movieclip (myBack)
and starts attaching jpgs to the myBack instance. When the main screen
movieclip in the Window instance is removed, myBack no longer has a
_url because it doesn't exist. I thought I could use the fact that
myBack==undefined to clearInterval() and stop the phantom slideshow,
but it doesn't stop.

So how does one 'unload' a class, or really, a class instance?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ObjectCopy works in Flash/swf but in Zinc it dies?!?

2006-10-11 Thread grimmwerks

I can't figure this one out - the .swf works just fine (I figured out
the problem with the object not really part of a class; faked it out)
-- but it's now busting when playing in zinc, which I don't
understand...

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: ObjectCopy works in Flash/swf but in Zinc it dies?!?

2006-10-11 Thread grimmwerks

Replying to myeslf, but here's the weirdness; it's not ObjectCopy - my
variable dies.

Here's a part of the code that works in .swf but not in Zinc; debug is a
global method I'm using to either output to the output window or popup an
input box if in zinc:

debug(total screens:  + gApp.screens.length);
   tX = new String();
   for (i=0; igApp.screens.length; i++) {
   debug(checking :  + i);
   tTop = new String();
   debug(after tTop i :  + i);
   debug(testing gApp.screens[+ i  + ]);

   dumpIt(gApp.screens[i]);


Now the thing is after the 'for i=0...'

the first debug 'checking' outputs 0
then after I do tTop = new String()
when I do 'after tTop i'   i comes back UNDEFINED!
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] zinc kills a variable with a new String()?

2006-10-11 Thread grimmwerks

What the...? I don't get what's going on here:

Here's a part of the code that works in .swf but not in Zinc; debug is a
global method I'm using to either output to the output window or popup an
input box if in zinc:

debug(total screens:  + gApp.screens.length);
   tX = new String();
   for (i=0; igApp.screens.length; i++) {
   debug(checking :  + i);
   tTop = new String();
   debug(after tTop i :  + i);
   debug(testing gApp.screens[+ i  + ]);

   dumpIt(gApp.screens[i]);

gApp.screens.length = 1 (one test item in the array).
Now the thing is after the 'for i=0...'

the first debug 'checking' outputs 0
then after I do tTop = new String()
when I do 'after tTop i'   i comes back UNDEFINED!

I even tried changing it to this:

for (i=0; igApp.screens.length; i++) {
   debug(checking :  + i);
   tTop = new String();
   debug(after tTop i :  + i);
   debug(testing gApp.screens[+ i  + ]);

The second 'i' still comes back as undefined. What's up with this? Me? Lack
of sleep?   There's nothing else that's going on here...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: zinc kills a variable with a new String()?

2006-10-11 Thread grimmwerks

Of course, the var i fixed it (in the 'for') -- but I don't get why it
blewup; I've noticed this elsewhere too today.

Say I had a function that calls a subfunction, ie

mainStuff = function(){
for(i=0; itheList.length; i++){
ret = subStuff(tList[i]);
}
}

subStuff = function(which){
for(i=0; iwhich.length; i++){
//whatever
}
}

I noticed that 'i' would get shared across the instances, that it wouldn't
work. ie it would work in mainstuff, bounce to subStuff which would iterate
more, get mainStuff confused, etc.

This is in direct violation to what the local var should be, no? I mean,
I've never experienced that before.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ObjectCopy wackiness

2006-10-10 Thread grimmwerks

I've done the dstObj[i] = copy( srcObj[i] );


Here's the weirdness: the test code:

tPage = new Object({banner : 0,templateType : sub,dated : false,cHome :
true})
trace(trace 1:  + tPage);

tObj = new Object();
tObj.page = mx.utils.ObjectCopy.copy(tPage);
trace( trace 2 : page:  + tObj.page);
for(i in tObj.page){trace(inside tObj.page[i]:  + i +  :  + tObj.page
[i])};



I get this:

trace 1: [object Object]
trace 2 : page: undefined
inside tObj.page[i]: cHome : true
inside tObj.page[i]: dated : false
inside tObj.page[i]: templateType : sub
inside tObj.page[i]: banner : 0


--

Now I ask you - how can tObj.page be UNDEFINED when it has variables like
tObj.page.cHome = true?

I've got an app that I've got these 'screen templates' that on the first
save, they work; but when someone re-opens and re-saves, it kills
everything. What gives?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] when classes die...

2006-10-02 Thread grimmwerks

Ok, I've got an app that uses a static variable; I've got 'templates'
that use x instances of this class.

When the user loads in a new template when a previous template has
already existed, I get some 'leftover' variables.

Is there a function that is called when a class is 'killed', ie the
opposite of when a class is birthed with 'new'?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] static class function...sorta

2006-10-01 Thread grimmwerks

Ok - I've got this class  -- it's really a sort of 'column text' class
for laying out nice stylized text -- the user can choose how many
columns there are onscreen.

Now I won't get into all the specifics, but there's a background color
that's being drawn based on how much text is in a column; and whatever
column has the longest text, then all x columns should draw their
backgrounds to meet that _bottom (height) amount, dig?

So I'm making the 'backHeight' variable static so it's shared among x
instances of the class, but I'd like when one class instance redraws
itself, all the instances redraw their backgrounds.

I have the function working with instances, but I can't make it static
as instance variables aren't allowed.

Should I either:

a) create a static function that calls instance functions (?)

b) have a static array that each instance adds itself too, and the
currently edited column instances calls each instance function based
on the array?

c) there's another better way I'm not getting?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] duplicating an object easily...

2006-09-26 Thread grimmwerks

Is there a simple way of duplicating an object that has many subobjects?

In director it's as simple as obj.duplicate()  -- but there's nothing
in Flash...

I'm trying to create a list of 'saveable' objects that have many
branching children, and of course I'm really just creating all these
pointers to one object...

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] duplicating an object easily...

2006-09-26 Thread grimmwerks

Started and finished! Thanks Eric.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] way to get textFileld's line count?

2006-09-11 Thread grimmwerks

I've got textFields using html text that I need to get an accurate way
of finding the line count...I got it working when I knew the size of
the font attributed to that textField, but with one field it can have
multiple formats.

It's been a long tired weekend of sleepless coding, so I'm going to
try doing it myself, but if someone has an answer...

I thought that after I set the htmlText, I originally was going to try
to get the newlines, but just realized that's not going to work

thoughts?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] weird htmlText problem...

2006-09-10 Thread grimmwerks

Ok, I've got a class that I've used that all it does is take in a
string of htmlText, create a textfield and apply it. But something is
happening that is killing the text for some reason;

If I send INTO the function this htmlText:

TEXTFORMAT LEADING=-5P ALIGN=RIGHTFONT
FACE=QuadraatSans-Regular SIZE=30 COLOR=#00
LETTERSPACING=0
KERNING=0whatever/FONT/P/TEXTFORMATTEXTFORMAT
LEADING=-5P ALIGN=RIGHTFONT FACE=QuadraatSans-Regular
SIZE=30 COLOR=#00 LETTERSPACING=0
KERNING=0man/FONT/P/TEXTFORMAT

A textfield is created and applied, but then it turns into:

TEXTFORMAT LEADING=-5P ALIGN=RIGHTFONT
FACE=QUADRAATSANS-REGULAR SIZE=30 COLOR=#00
LETTERSPACING=0 KERNING=0WHATEVERMAN/FONT/P/TEXTFORMAT

and I can't figure out why.

Here's the code of the function:

function drawTitle(tTxt:String){
title = tTxt.toUpperCase();

if(!mcTxt){mcTxt = myMC.createEmptyMovieClip(boxes, 5)};

var tR:Rectangle = new Rectangle(0,0, 250,50);
if(_global.gApp.elements.length5){
var tOffY = 350;
}else{
var tOffY = 175;
}

var tOff:Point = new Point((myRect.xMax-tR.width), 
(tOffY-tR.height));
tR.offsetPoint(tOff);
// have to draw textField and make set width, extend bottom
// then move up so bottom hits the correct bottom box,
// then decide to draw 50 or 75
var mTitle:TextField=mcTxt.createTextField(mc_title, 7, 
tR.x+22,
tR.y-14, 214, 0);
mTitle.embedFonts = true;
//mTitle.setNewTextFormat(_global.gPrefs.tfTitle);
mTitle.autoSize=right;
mTitle.html = true;
mTitle.htmlText =title;
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: help with embedding fonts/using textformat?

2006-08-29 Thread grimmwerks

duh. embedFonts
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] help with embedding fonts/using textformat?

2006-08-29 Thread grimmwerks

Hey all.

I'm attempting to use some embedded fonts with Flash, and it just
doesn't seem to be working.

In the library I've added a new font, selected the font I wanted to
use and called it 'Q_Body_Text'.   I then have this test script:

tBodyText = new TextFormat();
tBodyText.font = Q_Body_Text;
tBodyText.size=20;
tBodyText.leading=2;
tBodyText.align=2;
tBodyText.multiline=true;
tBodyText.wordWrap=true;
tBodyText.color=0xFF;

this.createTextField(txt,2, 140,300,200,100);
txt.text=Join artist Virgil Ortiz ;
txt.setTextFormat(tBodyText);

I've also got 2 regular static text boxes with the same text as test,
one as the pre-embedded/library font (ie QuadraatSansCon-Regular) and
the other as the embedded library font.

The embedded library font static text and the dynamically created
textfield have matching fonts, but the ACTUAL font is different.
What am I doing wrong?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Word processor in Flash

2006-08-23 Thread grimmwerks

There's also a txtFormat component from netdrims that is nice...

..me I'm also running into trying to glom htmlText into a CDATA in an
xml file; I had done something recently using zinc that would save an
htmlfile whenever someone would create rich/html formatted text that
would have to savedI'd rather throw it into the main xm...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] creating CDATA tags on the fly...

2006-08-23 Thread grimmwerks

...is it possible at all? I'm trying to save textfield's htmlText in
CDATA in an xml doc rather than creating seperate .html files and
linking them.

Everytime I create a node with the proper
tTop = ![CDATA[;
tEnd = ]];

Then the damned thing goes all rootlt;![CDATA[]]gt;/root  on me.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: creating CDATA tags on the fly...

2006-08-23 Thread grimmwerks

I wonder if it's possible to extend the XMLNode class so that CDATA
can be added by just creating a text node that DOESN'T urlencode all
the characters?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: Re: creating CDATA tags on the fly...

2006-08-23 Thread grimmwerks

Now I'm not only TALKING to myself while I work...I'm emailing my self too! :P

If someone can point out what I'm doing wrong here - I thought I've
finally hacked a way of using CDATA on the fly:

-  when adding a new CDATA node I add a new element/textnode with
something as a flag to parse for (ie ###)
- flip the xml toString()
- split with that flag (###)
- glue the CDATA together with array[0] + CDATA + array[1]

All this successfully gives me an xml string with CDATA in it.

NOW if I throw it back into a new XML(theTxt), this changes all the
special characters of the XML into urlencoded characters
(quot;)but if I take that node and unescape it's nodeValue, it's
actually correct, like so:

TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=verdana SIZE=14
COLOR=#003366 LETTERSPACING=0 KERNING=0I am bSUCH/ban
asshole!/FONT/P/TEXTFORMAT
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] help with embedded fonts...

2006-07-11 Thread grimmwerks

It's got to be something stupid.

I'm using the textformatter from netdrims -- I've got an input
TextField that I only want Baskerville to be used - but the ability to
set the bold or italic is needed.

I've embedded the font in the field but when I set text as bold or
italic, it disappears.

What stupidity am I missing?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] htmlText, CDATA and inputText fun...

2006-07-10 Thread grimmwerks

I'm having a bit of a problem both getting and setting htmlText in a
textfield in Flash. I've done this previously but can't figure out
what the problem is...

Let's start with what I need to do: I basically need a way for a user
to input text, add some basic html properties (size/bold, etc), then
read that htmlText, save it to xml using CDATA. Not a big deal.

The problem is that even in the most basic tests -- creating an
inputText, making sure it's html property is true, then doing
something as simple as

box.htmlText = bWhat/b is iWRONG/i with this?!?;

That gives me:

is with this?!?

In the textfield, skipping the bold and italic bits. I've even made
sure that it had imported all of the font, and it was using Arial
anyway.

Has anyone done this or know of a simple word processor-like example in Flash?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: RE: [Flashcoders] htmlText, CDATA and inputText fun...

2006-07-10 Thread grimmwerks

No - the field's not masked; turns out I have to import all the states
ie bold, italic, etc, for some reason.

But the bigger thing is this: I know I've seen examples of flash being
used as word processors - ie ways of setting formatting on text.

If I've got that, how can I save that info to be loaded in again? I
can't dump it into a CDATA because Flash doesn't load in the
information properly (ie it changes html brackets to amp; equiv).

I'm guessing that if I want to have one xml that I load in, I'll have
to do pointers to individual .html text files?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] (no subject)

2006-07-05 Thread grimmwerks

Curious - can't figure out where there's a second example of the classes
floating around -- any suggestions?

**Error** C:\Documents and Settings\grimmwerks\Local Settings\Application
Data\Macromedia\Flash
8\en\Configuration\Classes\com\grimmwerks\bakery\NumericStepperCell.as: Line
13: The name of this class, 'com.grimmwerks.bakery.NumericStepperCell',
conflicts with the name of another class that was loaded, '
com.grimmwerks.bakery.NumericStepperCell'.
class com.grimmwerks.bakery.NumericStepperCell extends UIComponent {
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] flash media server on macbook..

2006-06-20 Thread grimmwerks

Hey all - have a shiny new macbook 17 and have installled Parallels,
allowing me to run windows without rebooting.

I want to install Flash Media Server 2; whenever I launch it, it
bounces a few times then quits...

Has anyon gotten this setup to work?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] maxDepth for dynamic movieclips?

2006-06-01 Thread grimmwerks

I've got an app that's a glorfied slideshow, slowly adding mc's and
gettingNextHighestDepth() -- at some point I'm assuming it will get to
the maxDepth; what would be the best way of resetting this?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] setting the centerpoint of a movieclip?

2006-06-01 Thread grimmwerks

That'll do it! Thanks.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] setting the centerpoint of a movieclip?

2006-05-31 Thread grimmwerks

Is there any way of setting like the regpoint of a movieclip to it's
center on the fly without repositioning it?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] NumericStepper in CellRender disappears and gets 256 levels of recursion...

2006-05-30 Thread grimmwerks

Hey all --

I'm using a NumericStepper in a CellRender and I'm getting some kind of
weirdness when I'm clicking on it - it dissappears while I'm stepping
up/down, and if I hold it down I get the '256 levels of recursion' happening
in it.

In the .as file I've got the change happenining in there - so obviously when
I'm pressing it down it's always changing -- but where else should I do it?

public function change() {
   listOwner.dataProvider.editField(getCellIndex().itemIndex,
getDataLabel(), step.value);
   setValue(step.value, item, true);
   //listOwner.dispatchEvent({type:cellEdit});
   //listOwner.dataProvider[getCellIndex().itemIndex][getDataLabel()] =
step.value;
   }
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: NumericStepper in CellRender disappears and gets 256 levels of recursion...

2006-05-30 Thread grimmwerks

Curious - does anyone have a good example of a NumericStepper CellRender?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] bitmapdata question / attachBitmap

2006-05-26 Thread grimmwerks

Hey - I'm merely curious...

Say I do this:

tPhoto =  pGui.thisScreen.createEmptyMovieClip(photoMC,
pGui.thisScreen.getNextHighestDepth(),{_alpha:0});
tPhoto.cacheAsBitmap=true;
bkgrnd = new BitmapData(1, 1, false, 0x00FF, {_alpha:0});
tPhoto.attachBitmap(bkgrnd, 1);

Now, say later, in some other function, I want to change this
bitmapData but I don't have a reference to it (other than the above
'temp' tPhoto) -- can I actually 'get' this bitmapData again through
some other means, or do I ALWAYS have to have a variable/ref to it?

Not sure if I'm explaining right: but as I have a ref to
pGui.thisScreen, which is a movieclip, and then 'photoMC' is a
movieclip in that, then I'm attachBitmap to photoMC ---

mainClip
  -photoMC
 - bitMapData


Does that make any sense?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] cellRender with comboBox: setting the dropdown.rowHeight?

2006-05-25 Thread grimmwerks

Hey again.

I'm trying to set the comboBox cellRenderer I'm using to have a
dropdown.rowHeight of 60 (big text) -- since I'm using the cellRender
in a dataGrid, this slows everything down to a crawl.

Is this the only way that I can set a comboBox's rowHeight? Is there
anyway I can do it with setStyle?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] video card suggestions

2006-05-22 Thread grimmwerks

I'm creating a digital signage playback application that's running on
an HP machine and has to play across three monitors -- lcd screens at
1280x768, playing back in Zinc.


When there's a bit of movement (ie for a test we're looking at
hotelqt.com) -- there's quite a bit of tearing on the screens. Of
course I don't see anything on my G5 (even an old 1.8 dual!).

Right now we've got 2 Nvidia cards in that pc, one is a dualhead, and
the other is a single -- and all of them have the tearing. I do know
that the one Nvidia card - a 5200 -- is low rated...

So suggestions as to cards -- pci cards -- that will deal well with
the 3 screen setup or is the tearing something inherant with Windows?

Thanks all.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] video card suggestions

2006-05-22 Thread grimmwerks

Seems odd that it's not noticeable in the same way on the mac os though...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] cellRender and editField questions

2006-05-22 Thread grimmwerks

Not exactly, but I appreciate the post.

My problem is that even if I set something as editable, I'm not
getting a textField where one can enter the data.

For example in this tutorial: http://www.flash-db.com/Tutorials/cellrenderer/

If you doubleclick the car icon, you get a textField to enter in text.
But in the iconCellRender.as I can't find anything that has to do with
creating that textfield, etc.

I want to have multiple things like this in a grid - something that
someone can double click and change...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] cellRender and editField questions

2006-05-22 Thread grimmwerks

Maybe I spoke too soon - is the editableLabel just an inherent part of
a UIComponent? Maybe it's the way I'm creating the columns that is the
problem; I just set the carDB icon column to editable = false and it
shut it off properly...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

Ok if I create a datagrid and assign a dataprovider, all the datagrid
components are fields, but only the first colun is editable -- I've
tried doing dg.getColumnAt(2).editable = true both before and after
the dataProvider set, but it's always just the first column that
remains editable...

what is it I'm missing?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

AH! Thanks Matthew -- though I didn't set the grid.editable to false
-- when I set it to TRUE, then it all worked.

So though the columns themselves are set to true, if the grid wasn't
set to true, it canceled it all out...

Thanks again.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

Dammit - them beanz ain't cool enough...

hate to be more of a PITA than I already am -- but now I want to make
the first column NOT editable.

So I've set the db.editable = true -- that sets all them beanz editable.
Then I've dg.getColumnAt(0).editable = false -- and that bean is still
flipping into an editable textField.

I'm sure it's just the way I'm doing something idiotic...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

It seems to be always editable.

menuGrid.dataProvider = pMenu;

// setting editable stuff
menuGrid.editable = true;
menuGrid.getColumnAt(0).editable = false;
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

You know, even if I SET the grid.editable = false, the first column is
ALWAY editable.

I've even flipped cellRenderers as tests -- this thing is driving me bonkers.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] video card suggestions: tearing animations

2006-05-15 Thread grimmwerks

Hey all -

I've got an application I'm building that is using a digital signage
system as an animated menu system, using 2 cards for a 3 LCD output.
I'm seeing some TERRIBLE tearing during the animations.

At first I thought it was the LCD screen; but swapping in a CRT and I
still see the problem. The two cards an Nvidia GeforceFX 540 and an
Nvidia Geforce FX5200.

I've read recently in a review aobut the 5200:


For the long period of its development and short life, the GeForce

FX 5200 has changed the recommended clock speeds for the core and
memory at least 10 times. The problem is the first tests of
pre-production samples demonstrated a performance so astonishingly low
that it would be out of the question and even fatal to launch video
cards in such a bad condition on to the market.


So my question is: I need 3 outputs --  PCI slots -- to drive 3 lcds
at 1280x768.

Any suggestions?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] scope question...

2006-05-14 Thread grimmwerks

And the answer is NOT Listorine.

I'm going a bit nutty here. I've got one major .fla which has a lot of
birthing movieclips. I've been VERY careful not to do this at the root
level, instead in it's own container, because it's supposed to be loaded
wtihin another shell flash file...

Well, I'm actually creating Textfields and lines within this container
movieclip -- however for some reason when the main movie is loading in the
shell something else is triggering some kind of load:
OUTSIDE of the shell:
TEXT SUB: _level0.dispWindow.sub_0.Group_0
TEXT SUB: _level0.dispWindow.sub_0.Name_1
TEXT SUB: _level0.dispWindow.sub_0.Price_2
TEXT SUB: _level0.dispWindow.sub_0.Description_3
DRAWLINE:   _level0.dispWindow.sub_0
TEXT SUB: _level0.dispWindow.sub_0.Name_4
TEXT SUB: _level0.dispWindow.sub_0.Price_5
..



But then when THIS .swf is loading into another shell (mainWindow being the
container clip I'm using in the shell  and mc_1 is thee above clip);...

_level0.mainWindow.mc_0
dispItem  _level0.mainWindow.mc_0
_level0.mainWindow.mc_0
_level0.mainWindow.mc_1
dispItem  _level0.mainWindow.mc_1
_level0.mainWindow.mc_1
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048578
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048577
dispItem  _level0.mainWindow.mc_1
_level0.mc_1048576
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Group_0
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Name_1
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Price_2
TEXT SUB: _level0.mc_1048578.dispWindow.sub_0.Description_3
DRAWLINE:   _level0.mc_1048578.dispWindow.sub_0



I can't for the life of me figure out what _level).mc_1048578, 1048577 and
1048576 is...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Ok, I've discovered the problem I was having previously -- to sum up,
I have a .swf movie that plays beautifully on its own.

I then started coding a shell to, on different durations (setInterval)
load in this and other .swf into a movieclip.

I've been VERY careful about scope issues, not doing anything in
_root, but each 'sub' flash has it's own named movieclip to load all
it's do-dads.

The SHELL movie uses a MovieClipLoader to load in each of the
subclips, and it's main object, gPlay (a global) has a
gPlay.onLoadInit(ev) as it's listener.

When the SUBCLIP does a SETMASK on some movies, they trigger the
gPlay.onLoadInit !!!

Now, here's the interesting tracing:

SETIMAGE MASK
SETMASK_level0.mc_1048578.imageL
X:  true
IN TF
SETIMAGE MASK
SETMASK_level0.mc_1048577.imageL
X:  true
IN TF
SETIMAGE MASK
SETMASK_level0.mc_1048576.imageL
X:  true
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048578 mc_1048578   7459
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048577 mc_1048577   7459
7459
dispItem  _level0.mainWindow.mc_1 7459
EV  _level0.mc_1048576 mc_1048576   7459
startItem

So it seems that the mc_1048576 is a new movie that is created based
on the setMask and then triggers any 'onLoadInit'  --- ???


WAIT:
In the subclip I've set 'this._lockroot = true' as a test.
I've changed any 'setMask' to manually masking in the timeline.
I'm still getting something weird:

EV  _level0.mainWindow.mc_1 mc_1   7347
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048578 mc_1048578   7527
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048577 mc_1048577   7527
7527
dispItem  _level0.mainWindow.mc_1 7527
EV  _level0.mc_1048576 mc_1048576   7527
startItem
  POS:  0
SUBIMAGE _level0.mainWindow.mc_2
14402
dispItem  _level0.mainWindow.mc_2 14402
EV  _level0.mainWindow.mc_2 mc_2   14402
startItem
  POS:  1
SUBIMAGE _level0.mainWindow.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Just for FYI - there are NO AS2 components in these movies - the one
that DID only had a Loader in the library.

This is driving me nuts.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: BUG: setMask calls onLoadInit (or setting a mask?)

2006-05-14 Thread grimmwerks

Sigh.

I'm an arse. It must be the two days of programming.

I mistakenly gave the subclips loader the main clips global object. Of
COURSE that would work the way it is.

Sorry for the white noise.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] dataGrid custom cellRender with image of external image?

2006-05-08 Thread grimmwerks

Hey all - I'm trying to script a custom cellrender with a datagrid;
I'm successfully passing in the local file path of an external file,
but this filepath won't work in a cellrender -- either as a loadmovie
or as a Loader contentPath -- yet the same loadMovie works outside of
a cellRender with no problems...

I'm basically trying to do a file listing app that shows a preview of
an image that is external to the application...can't figure out why it
won't work in a dataGrid.

Any thoughts?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] loading an external image into a BitmapData

2006-04-30 Thread grimmwerks

What would be the quickest way of flipping images into a bitmap data?

I found this nice example of bitmapdata being used for transitions
(http://www.senocular.com/flash/files/gridraisetransition.fla) but it
only works with library items; I've tried loading external images into
an mc and then getting it via draw but it doesn't seem to be
working...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] loading external swf, dynamically using it's library...

2006-04-19 Thread grimmwerks
I'm curious...

Say I've got main.swf which loads in sub.swf; sub.swf has within it's
library, a 'prefMC' which is set to be ready with the class of prefMC
on the first frame.

Can I, within main.swf, after loading in sub.swf, dynamically generate
another instance of prefMC within main.swf?
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Transition Manager problems

2006-03-09 Thread grimmwerks
I've got what should seem simple - 3 different slideshows on the stage
being fed from an xml file -- for some reason they're glitching out --
I'm thinking it's because of TransitionManager losing scope?

Ive got a zip up at grimmwerks.com/test.zip if anyone feels like
lending a hand.

Thanks.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: Transition Manager problems

2006-03-09 Thread grimmwerks
ARGH.
I found the problem - I was trying to do a reflection with another
class, and that messed with the display.

HOURS wasted on stupidty. Hooray.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] custom menus in projectors (dndTree)

2006-02-23 Thread grimmwerks
Hey all - I've got dndTree from Drumbeat Insight in an application;
when it's in authoring and .swf mode the custom menus work, but when
it's in projector mode they don't; what am I missing?

Thanks.
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: mProjector and recursive files...

2006-02-21 Thread grimmwerks
Actually found one on Beam Jive's weblog, but something about it is wrong:
http://www.beamjive.com/weblog.php?a=1id=112
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] files and folder run: the dreaded triple F

2006-02-21 Thread grimmwerks
I'm sure others can point out how to fix this; I'm using mProjector to
get a folder and file structure, hopeing to get a recursive
folder/file read working -- I'm using mProjector for this..
I know EXACTLY where the problem lies, but can't figure out a remedy
for it...(I'm using debug as a trace to a text box).

Originally from  BeamJive
(http://www.beamjive.com/weblog.php?a=1id=112) the basics didn't
work; it seemed to call the recursive function on folders but only
listed the top level:


function listDirectories(dir:String, retData:String):String {
 // First list the folders
  var folders:Array = mFile.listFolders(dir);
  for (var i:Number = 0; ifolders.length; i++) {
  debug(found dir named:   + folders[i]);
  retData += node type='1' label='+folders[i]+';
  next lines the problem lies
  retData= listDirectories(dir+/+folders[i], retData);
  retData +=  /node;

  }
  // And then the files
  var files:Array = mFile.listFiles(dir);
  debug(dir ++  files.length);
  for (var i:Number = 0; ifiles.length; i++) {
  debug(  --+ files[i]);
  retData += node type='0' label='+files[i]+' /;
  }
  return (retData);
}

---]

So I took the above, changed the middle part to:

tmp= listDirectories(dir+/+folders[i], retData);
retData += +tmp+ /node;



ARGH. I've tried flipping folder read and file read around (ie files
first, then folder).
I've tried various versions of reading the retData and appending, or
retData = the next listDirectories (since I'm SENDING retData in the
call -- but nothing I do is working properlyand felling incredibly
stupid on this one as I've done it before in Director...
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] mProjector and recursive files...

2006-02-20 Thread grimmwerks
Does anyone have a recursive folder/file checker that would work with
mProjector? I've done this before but having SUCH a brainfart and
would appreciate the assist.

Even looking at X-Ray's recursive feature but its' WAY more than I need
___
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 Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] easy to implement a* flash classes?

2006-01-18 Thread grimmwerks
Thanks all  --

Franto yours is the way I want to go   - but how can I modify your
code for a bigger map?  Meaning I've got a HUGE bitmap that I want to
create a matrix for -- and rather than the 8x8 tile I'm thinking
something much larger, ie 50x50 blocks - so I modified the mc's to be
50x50 -- also changed the code from '_y*8' to *50, but it's all
discombobulatedis it something within th mousedown and the 3
that I have to change?


Also - do the wall blocks HAVE to be there in order for it to function
- or the map.as is enough (was going to make an invisible wall block
if it had to be there)

And finally another question: is there a way off the top of you head
that I could actually use the yellow/drawn line as a guide for an
animation?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] clearInterval question

2006-01-18 Thread grimmwerks
Hey - say I've got a repeating setInterval.

If I hit clearInterval() while it's waiting, does it hit that function
one more time or  stop it immediately? I'm having some kind of ghosted
thing happening over here...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] windows flash standalone able to export standalonefile?

2006-01-08 Thread grimmwerks
Yeah; I thought about a 'player only' exe that would load in an
external xml I create (since that's how it's working internally) --
the trouble is that they wanted it to be 'packaged' for playback; my
original thought was using the QTXtra to export a full Quicktime movie
with all the slides as one quicktime - but to go full on Flash (and
flv) would negate that entirely.

I had thought I could use the F8 filters as well as part of the new
version - but since Director doesn't support that, only MX, that kills
that as well.

So my choices are:
a) flash plays in director shell and export talks to Director, exports
packaged zip with player and external media, xml of slideshow, MX only
effects
b) cut up the interface so that it's half flash and half Director, and
export Quicktime movie as the slideshow; becomes a bit of a pita as
Flash and Quicktime (on the stage) can't share the same rects without
some hassle.
c) have 2 different video files - flv and quicktime externally; user
sees flv but when they make an export I deal wtih the QT assets and
export QT. MX effects only but no Quicktime/Flash bothering.
d) A guiliess director app launches an F8 projector and they speak to
each other through a localconnection, same type as c.

So it might still be possible...

Thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] windows flash standalone able to export standalone file?

2006-01-07 Thread grimmwerks
Hey all  - I have to recreate a Director app/dvd I've done a few times
-- it's basically a presentation creation engine that allows one to
pick slides and video and create their own small presentation. The
client wants the ability to export standalone files, so I was
exporting quicktime moves from the app.

I'd prefer to use Flash only (for Flash 8) or if I had to Flash in a
Director shell -- but if I was considering a windows only application
done entirely in Flash, would there be any shell that can be used to
export either video ro another .swf?


Thanks all.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders