Re: [Flashcoders] Copy Paste into Firefox

2006-07-12 Thread Rick Lecoat
Tony;

Is there a chance that the pasted text is actually including a carriage
return at the end? Sometimes I've copy pasted stuff into a one-line text
field and thought where is it? when actually I've included a hard
return in the copy and so the pasted text has been pushed up one line,
out of sight.

Don't know why this would be different in IE and FF though, so maybe
it's not that, unless IE treats pasted carriage returns differently.

It's a long shot, I agree, but a quick thing to check before delving deeper.
HTH

-- 
Rick Lecoat

--
Original message:
Received from [EMAIL PROTECTED] on 12/7/06 at 07:20

Hi,

This is really simple question but I can't seem to dig up an answer.  
copy paste flash firefox seems to match everything but what I need  
on Google. So sorry in advance for bringing up this topic which must  
have been covered before.

WTF is the problem with pasting text into the flash player on Firefox.  
I have an application that requires users to copy in a string for  
translation. Works fine on IE, but on latest version of Firefox  
running on XP or 2000Pro the keyboard shortcut to paste text from the  
clipboard won't work. Not unless you press it twice, then you get the  
text twice...

TextField, TextArea or TextInput component it make no difference, and  
I get the same thing when calling the swf from a html page or  
directly, eg. mydomain/test.swf. Right click paste works but I can  
hardly ask my users to do that now.

Any leads appreciated. Links, work arounds, anything.

Oh, the swf is compiled for the flash 7 player.

Thanks in advance.

Tony



___
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] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Hi,

I'm trying to pass a sting variable (var teamName:String) to a dynamic
text field nested inside a couple of layers of MCs. The path is correct
because the text field is being changed by the variable, but the string
itself is corrupted or something because the variable's contents seems
to be being altered.

Trying to send the string Mr Jones results in the text field showing
M Joe. Trying to send the string Executive results in the text field
displaying Eee.

As you can see, it is not even a simple truncation of the string (such
as perhaps might have been the case if the text field were not big
enough to hold the string); it is as if Flash is just choosing a few
letters and ignoring the rest.

Can anybody shed any light on this? I'm new to Actionscript and every
(probably simple) stumbling block like this throws me completely out of
the ring.

Many thanks.
-- 
Rick Lecoat


___
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] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Chris, thanks for your speedy reply (I guess that if I was going to get
a reply at 8.30 in the morning UK time it would have been from Australia!)

Like I said in my initial post, I'm completely new to Actionscript (and
all of Flash, really)
and so your response, whilst I am sure it is the correct answer, is a
bit cryptic to me. Could you maybe flesh out your reply with a bit of
'idiot guide' stuff so that I can take it and run with it?

Many many thanks.

-- 
Rick Lecoat

--
Original message:
Received from Chris Velevitch on 5/7/06 at 08:45

Sounds like restrict is not null.


Chris


___
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] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Ian and Adrian;

You hit the nail on the head; it was indeed a lack of embedded
characters and my own stupid fault because whilst I *had* embedded the
characters for the intended usage (uppercase only) I neglected to stick
to those when I was running my trouble shooting tests, and included
lowercase as well. 
There also turned out to be a secondary (or maybe primary) problem --
targets not yet being instantiated at point-of-code -- that needed
fixing before the font embedding issue made itself known. And of course
when more than one thing is giving trouble simultaneously it's hard to
figure out just what is going wrong. Now that that both are fixed it's
working fine.

However, I'm still slightly confused, because I thought that if the font
was installed on the machine that is testing the movie then it would
still show up okay whether embedded or not. The fact that it doesn't is,
of course, a benefit because it gives early warning of non-embedded
fonts but it does run contrary to what I thought I understood. Live and learn.

Chris: Thanks for elaborating on the restrict issue. Looks like I won't
need to explore it just yet, but it's good to know about. (Since I'm
very new to the Flash/Actionscript thing and am learning 'on the job'
with a project deadline looming I'm being pragmatic and just learning
the bits of AS that I need to make the project work. I'll flesh out my
knowledge afterward).

Thanks to everyone for all your help.
I'm sure I'll be back again with more questions *very* soon...

-- 
Rick Lecoat

--
Original message:
Received from Adrian Park on 5/7/06 at 09:24

This sounds to me like what happens if you embed a certain set of characters
in the field but then pass it a String including characters you haven't
explicitly embedded. I'm guessing you may have pasted a string into the
Include these characters: field in the Character Embedding window? If
so, only those characters will be embedded with the field and you'd probably
be better off just selecting Basic Latin in the predefined character sets.

HTH
A.


___
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] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Back again.

Well, I *thought* it was working...
What do you guys make of a situation where a movie works in Test Movie
but not from the web server? Here's the deal:

variable1:String populates textField1  (initial value =  )
variable2:String populates textField2  (initial value =  )
variable3:String populates textField3  (initial value = Click on a
photo to learn more about the person)

Variables get changed according to button clicks.

When I run Test Movie, the first two fields are blank as expected and
the third one shows the instructional text as set by the variable.

Publish... upload to server... clear browser cache to be sure...
But now:

first two fields say ee
third one says undefined

Clicking buttons, which should rewrite the text fields, also gives the
same results.

For the record, text fields one and two just have uppercase glyphs
embedded, whilst the third one has upper and lower case, numerals, and
punctuation. These choices are appropriate to the text that the button
clicks will enter.

So, why will it work in test but not online?
Hlp!

-- 
Rick Lecoat

--
Original message:
Received from Adrian Park on 5/7/06 at 10:54

Glad to be of help Rick.

On the font embedding thing v. the font being installed on your machine, I'm
pretty sure that if you specify a font but don't embed any characters then
Flash will use the installed font but if you embed then Flash will only look
to the embedded characters for display and will ignore the installed version
of the font. Hope that makes sense!

Good luck with your deadline!

A.



___
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] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Call off the hounds, I've solved it. 

it turns out that when the a nested movie clip called the variables it
called them from one nesting level up, and I'd coded that as
_root.variable. Flash was fine with that in testing, but the browser
plugin didn't like it. Once I'd changed the path to _parent.variable it
was all working as planned again.

Odd that the Test Movie behaved differently though.

-- 
Rick Lecoat

--
Original message:
Received from Rick Lecoat on 5/7/06 at 13:23

Back again.

Well, I *thought* it was working...
What do you guys make of a situation where a movie works in Test Movie
but not from the web server? Here's the deal:

variable1:String populates textField1  (initial value =  )
variable2:String populates textField2  (initial value =  )
variable3:String populates textField3  (initial value = Click on a
photo to learn more about the person)

Variables get changed according to button clicks.

When I run Test Movie, the first two fields are blank as expected and
the third one shows the instructional text as set by the variable.

Publish... upload to server... clear browser cache to be sure...
But now:

first two fields say ee
third one says undefined

Clicking buttons, which should rewrite the text fields, also gives the
same results.

For the record, text fields one and two just have uppercase glyphs
embedded, whilst the third one has upper and lower case, numerals, and
punctuation. These choices are appropriate to the text that the button
clicks will enter.

So, why will it work in test but not online?
Hlp!

-- 
Rick Lecoat


___
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] MovieClipLoader vs component

2006-06-30 Thread Rick Lecoat
Hi to all on the list from a new sign-up.

I'm also new to the whole AS thing, so do please bear with me if I ask
questions that seem obvious or stupid to those with more experience then
I (which will be all of you).

The book that I used to teach myself Flash offered two ways of loading a
SWF inside another movie; one was by using a movieClipLoader, and the
other was by using a Loader component.

The first way seems more complicated (needs for AS code), but I'm also
wondering if it offers more control than the component option.

What is generally considered to be the better way?  
Thanks in advance; 

-- 
Rick Lecoat


___
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