[Flashcoders] Shared Objects -- help with troubleshooting,please!

2006-08-04 Thread dls

I don't seem to be doing something correct.

I am trying to set a Flash equivalent of a cookie then check for it.

In my 1st movie:

myNameStatus = (normal);
myTutorialStatusSO = SharedObject.getLocal(tutorialStatus );
myTutorialStatusSO.data.thingIsave = myNameStatus;
myTutorialStatusSO.flush();

In my 2nd movie (trying to read it now)

//retrieve the shared objects...
myTutorialStatusSO = SharedObject.getLocal(tutorialStatus);

//give the results a name we can use...
my01_01_01MapStatus = myTutorialStatusSO.data.thingIsave;

My expectation is that my01_01_01MapStatus would equal normal.
Instead when I view the variables I seem to have nothing...

Thanks in advance,
Dan Sherman
___
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] OT- Flash Designer/Developer Needed Freelance

2006-05-30 Thread dls

Hello All,
I am looking for someone to help me with ongoing small animation/coding 
tasks in Flash.

There would be a rather steady stream of work for the next month or so...

Particularly I am hunting for someone who is very good (and quick) at 
producing nice motion graphics in Flash, I would like to pay a flat rate 
for each individual job, but that fee would be based on an estimate of 
around $30/hr.


You must be located in the U.S. (Sorry, it's just too complicated 
tax-wise to work internationally now).


I know this isn't thegravy train but I'm working with a client with 
rather shallow pockets, as I get work that pays more the $30 mentioned 
above could certainly go up.




Please respond off-list at [EMAIL PROTECTED]

Thanks!
Dan Sherman
___
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] UGENT -- using variable in absolute path --Deserate!

2006-02-04 Thread dls

Thank you!
Is this similar to the  eval function?
--dan

_root[tempUSname].text = _global.c1schoolName;

good luck.

On 04/02/06, dls [EMAIL PROTECTED] wrote:


Sorry for the urgency, but I have a morning deadline today.


Have a series of dynamic textfield on my stage named: usName1 , usName2,
etc.
I am trying to populate specific fields with some text.
I am trying to choose which field is populated dynamically.

(I have hard coded the _root.currentNameNumber for the example below)

_global.c1schoolName = Fenwick;
_root.currentNameNumber = 1;
_root.tempUSname = usName+currentNameNumber;
trying to dynamically choose the text field usName1  this is where
it breaks!
_root.tempUSname.text = _global.c1schoolName;


If I hard code the text box name it works OK
_root.usName1.text = _global.c1schoolName;

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





--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] if not working. (urgent help again?)

2006-02-04 Thread dls

Don't know what's up, but the following if statement doesn't work...
both variables trace to be 5.
both values were loaded from an xml document and assigned variable names.



if(_root.c7parent == _root.c3id){
 //do something

 }


oddly, if I use the following code it works!!??? could this be some sort 
of data type problem?


if(_root.c7parent != _root.c3id){
 //do something

 }


Thanks in advance

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


working with numbers loaded from XML was [Flashcoders] if not working. (urgent help again?)

2006-02-04 Thread dls


I am really stumped and desperate here!


seem to be having trouble working with variables brought in from XML
the value of the variables are numeric.

when I reference them in code for comparison, they don't seem to work

example
_root.first  traces to show 5

_root.second traces to show 5

if (_root.first != _root.second) {
do something
};

should fail, but seems to behave as if true

I'm thinking it's a problem with referencing the xml object instead of a 
numerical value, but I'm at my wits end here.


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


Re: working with numbers loaded from XML was [Flashcoders] if not working. (urgent help again?)

2006-02-04 Thread dls

Rob,
First, Thanks for your help!
I haven't used parseInt before, I'll start hunting for info on it right 
away.

Anything you could share would be appreciated!

When I publish and use List Variables in the Debug menu the variables 
brought in from xml show up as objects, not values.


my use of the XML object is shown below.


Please forgive my ignorance,
--dan


var myXML = new XML();
myXML.onLoad = processXML;
myXML.ignoreWhite = true;
myXML.load(school_list.xml);
function processXML(success) {
if (success == true) {
_root.first = 
myXML.firstChild.childNodes[0].childNodes[0].childNodes[0];
_root.second = 
myXML.firstChild.childNodes[1].childNodes[0].childNodes[0];


_root.gotoAndPlay(map);


}
}








stop();


It is hard to see how they are brought in from XML in your code extract.

Have you run the text through parseInt to convert them from strings to
numbers?



Ron


dls wrote:



I am really stumped and desperate here!


seem to be having trouble working with variables brought in from XML
the value of the variables are numeric.

when I reference them in code for comparison, they don't seem to work

example
_root.first  traces to show 5

_root.second traces to show 5

if (_root.first != _root.second) {
do something
};

should fail, but seems to behave as if true

I'm thinking it's a problem with referencing the xml object instead of 
a numerical value, but I'm at my wits end here.


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



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


Re: working with numbers loaded from XML was [Flashcoders] if not working. (urgent help again?)

2006-02-04 Thread dls

Would this be a correct use of parseInt?
parseInt (_root.first)

would parseXML parse all of the XML at one time?

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


Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-04 Thread dls

Thank You, Everyone--- WORKING LIKE A CHARM!

Now get away from your computers and go have a great Saturday!




Would this be a correct use of parseInt?
parseInt (_root.first)


Yes, but it's usually a best idea to pass the number base as a parameter -
in this case, 10 for decimal

var xx = parseInt (_root.first, 10);

If you don't, it will still work, but if you have some number with trailing
zeros like 071 on the string it'll think they're octal numbers (on this
example, converting it to 57 instead of yhe expected 71).


- zeh

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


[Flashcoders] clearing variables from memory after use...

2006-02-01 Thread dls

Might be counting angels on a pin head here, but:

if I set alot ( think hundreds) of _global variables  such as:
_global.state1 = Wisconsin;

I assume they slow the performance of my player.
Is there a way to clear them after use?
(or more specifically, the ones I don't need -- I could figure out how 
to specify that in the code)


Thanks for putting up with my ignorance...
--dan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] clearing variables from memory after use...

2006-02-01 Thread dls

Thanks Roman!
I will make it a practice to start  dumping the variables after I don't 
need them!

--dan

Roman Blöth wrote:


dls schrieb:


Might be counting angels on a pin head here, but:

if I set alot ( think hundreds) of _global variables  such as:
_global.state1 = Wisconsin;

I assume they slow the performance of my player.
Is there a way to clear them after use?
(or more specifically, the ones I don't need -- I could figure out 
how to specify that in the code) 


Oh my, this really is a matter in Flash... Since we have often 
experienced variable's values not being cleared after use, we do the 
following:


my_var = null;   // This first step probably is useless, but ALWAYS 
use DELETE!

delete my_var;

If the value contained within the variable is a movieclip, then make 
sure that this mc has an onUnload-handler that does the above with 
all variables and to avoid instances from floating in memory after 
having deleted, unloaded and removed them, if possible don't use 
static values!


I have made the experience that static instances stay in memory after 
there is no reference to them left, since I set them all to null and 
then deleted them. Then, when I re-create an instance of such static 
stuff, it isn't created anew, but Flash uses the old piece that rests 
in memory.


Maybe it's just that I don't really, really understand the concept of 
static, but I know it can lead to unpredictable and hard-to-track 
errors.



Best regards,
Roman.


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


[Flashcoders] How to call functions in sequence

2006-01-28 Thread dls
Trying to cut down on hundreds  of lines of repeated code with 
functions, but I have a real newbie question:


What is the best way to get functions to fire in sequence.
(have function 1 wait until function 2 is finished etc.)
Right now the functions below all fire at the same time.

function1 ()

function2 ()

function3()


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


Re: [Flashcoders] How to call functions in sequence

2006-01-28 Thread dls
Thanks! I can tell right away that functions are going to save me a ton 
of troubleshooting!

Do you know if they speed up player performance as well?
--dan


function1() {
function2();
}

function2() {
function3();
}

You could also use onEnterFrame to conditionally check for flags
indicating the progress of execution:

var f1Fired = false;
var f2Fired = false;
var f3Fired = false;

this.onEnterFrame = function() {
if (f1Fired) {
 trace(f1Fired);
 function2();
} else if (f2Fired) {
 trace(f2Fired);
 function3();
} else if (f3Fired) {
 trace(f3Fired);
} else {
function1();
}
}

function1() {
f1Fired = true;
}

function2() {
f2Fired = true;
}

function3() {
f3Fired = true;
}

Or setInterval could be employed, but it sounds like you need
sequential executions of your functions, in which case setInterval is
inappropriate.

hth

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


Re: [Flashcoders] How to call functions in sequence

2006-01-28 Thread dls

That's a drag!
Well, I'll use them sparingly -- they helped alot in this project.
Thanks Again!
--dan


The more of them you use, the slower the performance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] using variable in new color target

2006-01-27 Thread dls
Trying to get the following to work, sure my logic is a mess, but I 
would appreciate any help.

Have an early deadline today...


_root.listItem1.onRollOver = function(){

   _root.currentShortName = nameOfMovieClip;

   myColor = new Color (_root.tempRegionCopy.currentShortName);

   myColor.setRGB(0xff9966);

}


-dan

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


[Flashcoders] Good Intro to Flash and SCORM?

2006-01-20 Thread dls

I need to hand roll some content in flash that can be tracked using SCORM.

Anyone have a good online reference I can start with?

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


[Flashcoders] Flash 8 and Rosetta -- MacIntel

2006-01-10 Thread dls

Anyone know if Flash8 will run on the new Intel-based Macs?

If you haven't heard the news, visit apple.com
--dan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Some Safari browsers stops loading

2006-01-09 Thread dls

Either you fixed it, or it's not happening on my system.
Flash player 8,0,22,0
Safari 1.3.1 (v312.3.3)
OS 10.3.9

Everything looks OK.

Good luck,
--dan



No inconvenience, I had the same thing happen loading a 1MB jpeg. Safari
didn't like it. The good news was I didn't need to worry about Saf, so I
ignored the problem.

Not an answer I know, but just so you know someone else has had problems.

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Santana
Dardot
Sent: 09 January 2006 13:48
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Some Safari browsers stops loading



Hi all,

We have developed a website over here and we tested it in the major
browsers, including safari.
Everything worked well, but I received an e-mail from an user telling that
the website
always stops on while loading on 66%...He uses safari.

I have made tests with all the versions of safari (1.2, 1.3 and 2.0) and all
the
flash player 7-8 releases for mac (the detect flash only allow these
versions), but I couldn't simulate the bug.

Could you guys that use safari please take a second and test it for me? If
you have found the bug,
please send me a private message to [EMAIL PROTECTED] with the following
information:

- Safari Version
- OS Version
- System Information (Memory, processor)

The URL of the site is: www.reversoromanelli.com

Thanks in advance and sorry for any inconvenience this e-mail may have
caused to the list.

Thanks,
Santana Dardot

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


[Flashcoders] Generating XML file from projector

2006-01-07 Thread dls
Other than SWF Studio from Northcode, does anyone know of any other 
flash to .exe software that allows your projector to create XML files?


Thanks in Advance,
Dan Sherman
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders