Re: [Flashcoders] [OT] AMFPHP not working with PHP 5.2.2. in Safe Mode

2007-05-30 Thread dnk

No worries! I had the same issue too!

On 5/30/07, JulianG [EMAIL PROTECTED] wrote:

thanks! that fixed it!
JG

dnk wrote:
 This is a known issue. Patrick had psted a fix or workaround on his blog.
 Check it out:
 
http://www.5etdemi.com/blog/archives/2007/05/amfphp-fix-for-php-522-compatibility-issue/



___
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@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] [OT] AMFPHP not working with PHP 5.2.2. in Safe Mode

2007-05-28 Thread dnk

This is a known issue. Patrick had psted a fix or workaround on his blog.
Check it out:
http://www.5etdemi.com/blog/archives/2007/05/amfphp-fix-for-php-522-compatibility-issue/




On 5/28/07, JulianG [EMAIL PROTECTED] wrote:


I anyone using AMFPHP with PHP 5.2.2. ?

My hosting company has updated the PHP installation and my AMFPHP just
stopped working properly.

The error message I get everytime I attempt to call a method (using the
browser) is the following:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION
cannot be activated when in safe_mode or an open_basedir is set in
/home/httpd/paulasedacca.com.ar/public_html/_amfphp
/browser/client/AMFClient.php
on line 119

I've been reading and the CURLOPT_FOLLOWLOCATION thing has been changed
in PHP 5.2.2.

Any ideas?

Thanks,
JulianG




___
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@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] amfphp.org?

2007-05-15 Thread dnk

looks like the domain has expired (May 7th). I am assuming the project is
not dead, but it is rather just an over site by the owner. Does anyone have
any info on this? How about a spot to download the latest?

d
___
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 is the right time? Flash vs flex (not features though)

2007-05-09 Thread dnk

Hi there,

I have been learning flex over the last month or so, and had done a
moderate amout of flash 8/as 2 class work.

I can obviously see that flex 2 for apps hands down. However, when is
flash (cs3) more appropriate? Web sites? Or is that even true? Is it
just more of a preference? I am excluding doing any real animation.
Because to me that is obvious as well. So I guess whcih is more
appropriate for general website construction? I tend to use a lot of
remoting, and again I am sure it is more of a preference type thing,
but just thought i would ask...

I know there were othjer discussions regarding flash vs flex, but I am
not really asking about the advantages of one over the other (pre
se)



d
___
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] smaller project management

2007-03-17 Thread dnk

Please reply off list as I do not want to congest this list with an
off topic (is it?).

Can anyone recommend a smaller open source project management web
based system that is more directed at workign with a client as opposed
to working internally?

Thanks!

d
___
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] major cache issues -- browser and ASO? -- insanity sets in.

2006-11-02 Thread dnk

Hi there.. I have a movie that loads other swf's that make remoting calls.

Now i have a FLA where I removed some text fields, and then added some 
as well as modifying my class to react with these fields.


Now I have deleted my ASO folder, cleared my browser cache, deleted the 
old file from my ftp server, rebooted my machine, and compiled my FLA, 
then uploaded, and for some reason my flash file shows the old text fields!


This is driving me insane! I have tried in firefox and safari (so yes I 
am on a mac), and the issue is the same! I have tried switching file 
names, appending URL strings and so on


Is there some other flash caching mechanism i am missing?

help?!?!?!


Dustin


___
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] AS 3 - event args

2006-10-31 Thread dnk

Mike Chambers wrote:

2 other options:

Just have one event handler per button.

or use an anonymous function

myButton.addEventListener(MouseEvent.CLICK, function(){doSomething(1);});

private function doSomething(index:int):void
{
trace(index);
}

(I havent tested the code above, so there might be some syntax errors).

Personally, I would always have one event listener per button as I 
feel it make it a little easier to read the code.


mike chambers

[EMAIL PROTECTED]
Hey - the anon function seems to be the way that resembles what I used 
to do. The only reason I do not have a unique one per button is say for 
example I have 25 buttons and I loop through to create the instances and 
the event listeners - then have a function that performs the same 
actions (with a different index number). Then I only have to write out 1 
function for the 25 button instances. Unless there is a way to do it 
with a loop, I would then have to write out 25 unique functions to 
handle the button events - correct? That is if I was going to do it your 
preferred way with unique button functions


Dustin
___
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] AS 3 - event args

2006-10-27 Thread dnk
Hi there. I am just beginning my adventure into AS 3, and came upon 
something.


In AS 2 I used to use a custom delegate class to deal with scope issues, 
but also be able to pass args (in an array, single string, etc) to my 
event functions.


So for example, I might have something in AS 2:

// snipped fro ma method
for (var j:Number = 0; j  5; j++) {
   this._targetMc[dtBtn + j].onPress = 
MyDelegate.create(this, onPressed, j);

   }


// event method
   function onPressed(i:Number) {
   trace(i);
   }

So the custom class would allow this to work in my classes.

Now in AS 3 as I have read, the basic delegate class is no longer needed 
as the scope issues are dealt with now.


So how would I go about accomplishing the same thing in AS 3?

passing an arg to an event method?

Thanks!

Dustin


___
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] ::dk :: passing args to onPress, onRollOver, etc

2006-10-16 Thread dnk
Hi there, I am trying to write a few mouse events for multiple 
movieclips. Now say I have the following:


function writeBtnEvents() {

for (var i:Number = 0; i  35; i++) {

this._targetMc[btnHldr + i].onPress = function(i:Number) {
trace(pressed:  + i);
}

this._targetMc[btnHldr + i].onRollOver = function(i:Number) {
trace(roll over + i);
}

this._targetMc[btnHldr + i].onRollOut = function() {
trace(roll off);
}

}

}

I read somewhere that you can not pass args to an onPress function, etc. 
Is this true? Is there a better way to accomplish something like this?


d
___
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] ::dk:: understanding roll over with addEventListener

2006-10-16 Thread dnk

Steven Sacks | BLITZ wrote:

BTN_Foo.onRollOver = Delegate.create(this, fooRollOver);
BTN_Foo.onRelease = Delegrate.create(this, fooRelease);

etc.
etc.

:)

___
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
  

Thanks Steven

I had found out that one earlier today. The reply is appreciated though!


Onto the next issue I am having... =-)


Dustin
___
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] ::dk:: understanding roll over with addEventListener

2006-10-14 Thread dnk

eka wrote:

Hello :)

if you use Macromedia's V2 components, the Button component don't have 
over
and out event  you must override the class and add your custom 
events.


EKA+ :)


Pointers to any docs on how to do that?

Thanks!

d


___
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] ::dk:: understanding roll over with addEventListener

2006-10-13 Thread dnk

Hi there - this is probably a simple question, but...

I have been using addEventListener with button components:

this._targetMc.btn.addEventListener(click, MyDelegate.create(this, 
onHit));


Then the onHit function deals with it.

Now I need some rollover  rollout functions.

So I wrote those, and then tried adding the event with:


this._targetMc.btn.addEventListener(rollOver, MyDelegate.create(this, 
onRollOvr);
this._targetMc.btn.addEventListener(rollOut, MyDelegate.create(this, 
onRollOut);


Yet nothing is called - what am I missing?


Not sure if it matters, these actions are within an AS2 class.

Thanks in advance!

d


___
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 9 specific as 3 tutorials

2006-10-08 Thread dnk

Hi there...

I was wondering if anyone has come across and flash 9/as 3 specific 
tutorials? I doubt I will be using flex for some time (as I only have a 
mac), and was hoping to look at some stuff from the flash 9 POV. I 
looked at the one in the adobe developer center.



Thanks!

d
___
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] flash 9 specific as 3 tutorials

2006-10-08 Thread dnk

dnk wrote:

Hi there...

I was wondering if anyone has come across and flash 9/as 3 specific 
tutorials? I doubt I will be using flex for some time (as I only have 
a mac), and was hoping to look at some stuff from the flash 9 POV. I 
looked at the one in the adobe developer center.



Thanks!

Let me rephrase that I am looking for these resource in which could be 
considered reliable. I mean I have found some blogs, etc, however I 
have no idea if they are doing proper coding practices, etc.


Once again - thanks!

d


___
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] usefull firefox extension

2006-10-01 Thread dnk

Hubert Cumberdale wrote:

http://addons.mozilla.org/firefox/3469/

While running any .swf Flash file in your browser you can see all the 
output

generated by the trace flash functions in this sidebar component.

F.
___
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

Man i hope they come out with a os x version


Handy...
___
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] remoting alternatives?

2006-09-27 Thread dnk

Bjorn Schultheiss wrote:
 
VIVA LAS VEGAS


Awesome work :)




  


When I went to check it out - I could not find an English version of the 
site - am i just missing it?



d

___
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] ::dk:: issues with external data and external swf

2006-09-26 Thread DNK

Bjorn Schultheiss wrote:
 
What error is it throwing?


Regards,
 
Bjorn Schultheiss

Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, 26 September 2006 1:53 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] ::dk:: issues with external data and external swf

Bjorn Schultheiss wrote:

Dk,

Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?


Regards,
 
Bjorn Schultheiss

Senior Flash Developer
QDC Technologies



No errors!

Just missing data. Like I said the data is making it into Flash (as 
determined with service capture), but just not displaying. It displays 
fine when not loaded into another movie.


d

___
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] ::dk:: issues with external data and external swf

2006-09-26 Thread DNK

Alain Rousseau wrote:
This may be a scope issue. 

Do you make use _root to reference the lower level of your loaded swf ? 
And are you loading the swf in a movieclip or a Level ? 


Either way _root will reference back to _level0 wich isn't the same scope as
your loaded swf. 
Try replacing _root with this or a relative path to the movieClip or

textfield you want to target (ex : this._parent.myTextField).

HTH
Alain



In my original posting I had mentioned that there was no use or _root. I 
always use a relative path as opposed to an absolute to avoid scope 
issues. Even if there is no swf to be loaded, etc. I always use this


The movie is being loaded into an empty movie clip.

Dustin
___
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] ::dk:: issues with external data and external swf

2006-09-25 Thread dnk
Hi there - I have a movie in which I use remoting to load images and 
data. When run on it's own, it functions perfect. When it is loaded into 
another movie, some data does not load. I have used service capture 
and my data is in fact returned. Now I am pretty confident with the code 
since it runs on it's own perfect. I thought at first that it might be a 
scope issue or an issue with the _root time line - but I have ruled that 
out as I only use a relative path as opposed to an absolute path.


IS this a known bug? I have been googling for a few hours already.


Thanks in advance!



___
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] ::dk:: issues with external data and external swf

2006-09-25 Thread dnk

Bjorn Schultheiss wrote:

Dk,

Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?


Regards,
 
Bjorn Schultheiss

Senior Flash Developer
QDC Technologies

  
They are in the same domain, and I created a crossdomain.xml to cover 
various hostnames (just in case). The required remoting classes are 
compiled in as when the movie is not loaded into another, it runs as it 
should. The issue is only when it is loaded into another movie.


Dustin
___
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] ::dk:: getColumnNames not returning all column names

2006-09-19 Thread DNK

aaron smith wrote:
You can also use commands in PHP to send data to the NetConnection 
debugger.



?php

NetDebug::trace( somedata or some $var );

?

you can use that anywhere in a service method and it will send it to the
netconnection debugger. just use those to debug it..

hope that helps..

smith




On 9/18/06, dnk [EMAIL PROTECTED] wrote:


Hi there.

I have a remoting app in which i use PHP/amfphp to get data into my app.

Now in my PHP I have the following SQL query performed to create a join
on 2 tables...

SELECT dkcms_photo.*, dkcms_profiles.uFname FROM dkcms_photo LEFT JOIN
dkcms_profiles ON dkcms_profiles.uId = dkcms_photo.phUsername ORDER BY
phMod DESC

Now when I test the query (by running at the mysql command line), all
the data is returned as expected.

I then test the php in the amfphp service browser and again - same thing
all data is returned as expected.

Now - in flash

When I try to access the one column name returned by the join - I get
undefined. So I then used the getColumnNames function (and trace the
results) to see what is actually being listed in flash Well as
expected, none of the columns from the second table are actually making
it into flash.

Does anyone have any ideas?

d
___
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@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
I have tried both, but for some reason my debugger is messed up and will 
not work. I tried both methods.


Now as for your first post, regarding checking out how the return object 
is mapped - why would it be any different for a sql join than a regular 
sql query.


At any rate - it is in fact something that needs to be checked out. 
Later this eve, I plan on buying service capture - the trial had saved 
me a few times and wanted to buy it anyways.


d
___
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] ::dk:: getColumnNames not returning all column names

2006-09-19 Thread dnk

aaron smith wrote:

im guessing your just having issues with how the data is mapped in the
result vars. Are you using NetConnection debugger to look at the 
results, so

you know exaclty how the return object is mapped to the data.. IE(
recordset.getItemAt(0) );..

see what i mean?

Ok - I did further testing. I purchased service capture to do a more 
extensive check, and for some reason (not sure if it is amfphp or not), 
in the debug (for a response), it shows the SQL query as being:


SELECT * FROM dkcms_photo ORDER BY phMod DESC

Hence my missing fields.

Now in my PHP class I have this for the actual SQL query:

SELECT dkcms_photo.*, dkcms_profiles.uFname FROM dkcms_photo LEFT JOIN 
dkcms_profiles ON dkcms_profiles.uId = dkcms_photo.phUsername WHERE 
uId='trevor' ORDER BY phMod DESC


So it makes me wonder why amfphp is returning the other sql query?

As stated before, my query works as expected in the amfphp service 
browser, and as well as running the query in the mysql command line and 
even in a phpmyadmin interface.


dnk
___
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] ::dk:: getColumnNames not returning all column names

2006-09-19 Thread dnk

dnk wrote:

aaron smith wrote:

im guessing your just having issues with how the data is mapped in the
result vars. Are you using NetConnection debugger to look at the 
results, so

you know exaclty how the return object is mapped to the data.. IE(
recordset.getItemAt(0) );..

see what i mean?

Ok - I did further testing. I purchased service capture to do a more 
extensive check, and for some reason (not sure if it is amfphp or 
not), in the debug (for a response), it shows the SQL query as being:


SELECT * FROM dkcms_photo ORDER BY phMod DESC

Hence my missing fields.

Now in my PHP class I have this for the actual SQL query:

SELECT dkcms_photo.*, dkcms_profiles.uFname FROM dkcms_photo LEFT JOIN 
dkcms_profiles ON dkcms_profiles.uId = dkcms_photo.phUsername WHERE 
uId='trevor' ORDER BY phMod DESC


So it makes me wonder why amfphp is returning the other sql query?

As stated before, my query works as expected in the amfphp service 
browser, and as well as running the query in the mysql command line 
and even in a phpmyadmin interface.


dnk
___
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

Problem solved!

Another developer modified the wrong php class!   :-p



d
___
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] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-19 Thread dnk
Hi - I have had a few times where I need to call the redraw() function 
to recreate my scrollbars after the data is loaded
But I obviously need to wait until the data is completed. The times I 
seem to have the issues is when loading something that takes a bit 
longer (IE an image or something after a returned record set) into say 
an html text field (with a scroll bar) or something into a scroller pane.


Is there something that makes this a little easier? Or is it the type of 
thing where I need to do some sort of setInterval



Thanks!


d




___
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] ::dk:: getColumnNames not returning all column names

2006-09-18 Thread dnk

Hi there.

I have a remoting app in which i use PHP/amfphp to get data into my app.

Now in my PHP I have the following SQL query performed to create a join 
on 2 tables...


SELECT dkcms_photo.*, dkcms_profiles.uFname FROM dkcms_photo LEFT JOIN 
dkcms_profiles ON dkcms_profiles.uId = dkcms_photo.phUsername ORDER BY 
phMod DESC


Now when I test the query (by running at the mysql command line), all 
the data is returned as expected.


I then test the php in the amfphp service browser and again - same thing 
all data is returned as expected.


Now - in flash

When I try to access the one column name returned by the join - I get 
undefined. So I then used the getColumnNames function (and trace the 
results) to see what is actually being listed in flash Well as 
expected, none of the columns from the second table are actually making 
it into flash.


Does anyone have any ideas?

d
___
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] scrollpane not showing scrollbars - dynamic content

2006-09-09 Thread dnk
Hi there - I am having an issue where I have a scrollpane component on my stage 
that
loads and uses an empty movie clip from my library. Now that clip (from the 
library) has
a few remoting calls in it that dynamically populate the MovieClip with text 
fields,
etc. These text fields are then populated with results from my database. The 
scroll pane
is set to auto for the vertical scrollbar.

Now my issue is that when the content is loaded, a vertical scroll bar does not 
show
even though it should in this case (I know there are many results from the 
database).

Now i am pretty sure that my issue is that when my contentPath is set for the
scrollpane, there has not yet been any content created in the MovieClip - hence 
no
scrollbar. My data does in fact populate, and all of it is there - but the 
scrollbar
just does not show up when it should.

Any ideas?


d
___
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] Vob to FLV without Sound

2006-09-02 Thread dnk

Sönke Rohde wrote:

Hi,

Thanks for clearing this up but I expected Squeeze to handle this internaly.
Does anybody know a solution where video and audio of Vob-files are
converted together?

Thanks,
Sönke

  


Well this is a little bit of a 2 step process, but you could use 
handbrake if you are on a mac, and convert the VOB to MP4 (with 
audio), then squeeze it into the FLV.



d



___
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] working with dynamic images using mysql database

2006-08-22 Thread dnk

bhasker u wrote:

HI, all

I was trying to incorporate a small interface in my flash site where I 
would
like to load 9 thumbnails(images) in 3*3 grid, when ever the mouse 
moves on
to thumbnails should able to show the enlarged view in given space 
defined
beside the thumbs, loading the images from a folder is quite simple 
but here

iam interested to *load images from databse* using mysql.

can any one of u plz help me on this.





1) Flash remoting - you will need it to connect your AS with a server 
side language (IE PHP, .net, java, etc)


2) Choose your server side language.

3) Choose the gateway or server side remoting. Some are built in, IE 
Coldfusion, others have an opensource one like AMFPHP for php, others 
you have to pay for.


4) write code server side to connect to the database.

5) write AS to use the remoting gateway to connect to the serverside 
scripts.



This is obviously VERY dumbed down and not very detailed.

I personally use PHP/AMFPHP/MYSQL.

I like it.

d

___
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] getting my info into flash

2006-08-22 Thread dnk

Flash guru wrote:

Hey all,

I have a project a that calls for a database to spit out results to a query
and display it in flash. I'm using php and I've gotten to the point where I
have the information I need but I don't know how to get full arrays back
into flash. I've been searching for tutorials with no luck, can anyone 
point

me in the right direction.

thanks.



Flash remoting and amfphp.

http://anfphp.org

d
___
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] [Fwd: relay responder method never called]

2006-08-22 Thread dnk

Bbt Lists wrote:
Can things like whitespace produce this kind of result? How about 
spaces instead of tabs (code formating)?


Just having a hard time tracking this issue down.

Just to recap, and possibly add more info:

I had a remoting project that just stopped working. I put traces in on 
the method that calls the php service, and one in the relay responder 
method. The first trace is fired, but not the second one. I then had 
my PHP class use touch to create a file on the server to see if it is 
fired - it is. but for some reason the relay responder method is 
never fired. I read something about having white space in the PHP 
class outside the php class chokes amfphp (well rather flash) - but - 
I don't have any - so I am wondering if there is any other thing in a 
php class that would cause flash to not know how to handle the 
results? Are there php settings maybe that could effect it? The server 
host also updated our server that day. But my other remoting classes 
are working. Even this class is working in other areas in the movie - 
it is so perplexing. I just need to figure out why the responder never 
happens (as this is a live site). Thanks in advance for any info!


Thanks!


ok - I have been doing more testing. I have 2 sections in my site that 
use the same remoting classes and AS classes. I was using service 
capture to monitor the requests and responses. Now there are some 
differences, but I am confused as to why.


Now here is my header that is sent (in both the good and bad responses).

POST /gateway/gateway.php?PHPSESSID=6d9efe423051258bf5c7de48f97c 86f2 
HTTP/1.1

Accept: */*
Accept-Language: en
Accept-Encoding: gzip, deflate
Cookie: PHPSESSID=6d9efe423051258bf5c7de48f97c86f2
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) 
AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3

Content-Type: application/x-amf
Content-Length: 140
Connection: keep-alive

Now the differences are in the returned headers. Here is a good response 
header:



HTTP/1.1 200 OK
Date: Wed, 23 Aug 2006 01:12:51 GMT
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 
PHP/4.3.11 mod_log_bytes/1.2 FrontPage/5.0.2.2634a mod_ssl/2.8.22 
OpenSSL/0.9.6

X-Powered-By: PHP/4.3.11
Expires: Tue, 22 Aug 2006 21:12:51 GMT
Cache-Control: no-store
Content-Length: 1523
Keep-Alive: timeout=30, max=100
Connection: Keep-Alive
Content-Type: application/x-amf

Now here is the response header that is from the call that does not work:

HTTP/1.1 200 OK
Date: Wed, 23 Aug 2006 01:10:58 GMT
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 
PHP/4.3.11 mod_log_bytes/1.2 FrontPage/5.0.2.2634a mod_ssl/2.8.22 
OpenSSL/0.9.6

X-Powered-By: PHP/4.3.11
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, 
pre-check=0

Keep-Alive: timeout=30, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/x-amf

Now as you can see - there are some differences. But I am not sure why I 
am getting differences.


dnk
___
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] relay responder method never called - SOLVED

2006-08-22 Thread dnk

Ok! I got it solved!

All I have to say is: BUY SERVICE CAPTURE (not affiliated). That program 
saved my life. In the problem area of my movie, I had 3 different called 
to classes. I had checked them all in the online service browser 
(amfphp's), and all looked ok. Even when I accessed my PHP classes 
direct - no errors. At any rate the 3rd class was messing my other 2 
classes up. Why? I do not know, but there was definitely an error in the 
3rd. When using Service Capture, it showed a fault in the class I was 
not even trouble shooting!


code (String): AMFPHP_RUNTIME_ERROR
description (String): mysql_fetch_assoc(): supplied argument is not a 
valid MySQL result resource

details (String): /home/lifetim/public_html/gateway/services/LastUpdate.php
level (String): Warning
line (Number): 47

So - all I did was fix 2 lines of code in the 3rd PHP class, and bang! 
The other two started working.


Thanks to those who replied.

MUCH APPRECIATED!

dnk
___
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] relat responder method never called

2006-08-18 Thread dnk

Hi there


I have some remoting function (amfphp) that have relay responder... no I 
have a trace in the call, and in the handler... and the trace never is 
called in the handler. What would cause the handler to not be called?


I had it working before, and now all of a sudden - no go!

Ideas?


d


___
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] diff between var == value VS var eq value

2006-08-15 Thread dnk

Grant Cox wrote:
eq has been deprecated in favour of == for many years now.  While they 
should be equivalent, you should not use eq unless you are targeting 
Flash Player 4/5.


Is the code where == didn't work for Flash lite?

Yeah - that is what I thought. I was just checking for an empty string 
on a returned record set, and all I changed was:



if (var == ) {


to

if (var eq ) {


and that gave me the expected results.

I am just targeting flash 8.


d
___
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] diff between var == value VS var eq value

2006-08-15 Thread dnk

Haikal Saadh wrote:

Yes, they are different.r

Actionscript dictionary says 'eq' is deprecated. It just compares 
string representations, so what you might be doing is comparing a 
number to it's string representation (User input, perhaps?): 
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary198.html 




What == does depends on what sort of data you're comparing. Again, 
from the dictionary:


The definition of equal depends on the data type of the parameter:

Numbers and Boolean values are compared by value, and are 
considered equal if they have the same value.
String expressions are equal if they have the same number of 
characters and the characters are identical.
Variables, objects, arrays, and functions are compared by 
reference. Two variables are equal if they refer to the same object, 
array, or function. Two separate arrays are never considered equal, 
even if they have the same number of elements.



Well here is a sample of what I was trying to compare...


var myLink:String = this._targetMc._DB.getItemAt(0).link01;

if (myLink == ) {
trace(it was empty);
} else {
trace(It had the result:  + myLink);
}

And I was just getting hte else returned with no myLink var shown (when 
the loop had the record empty). Then I switched to:



if (myLink eq ) {
trace(it was empty);
} else {
trace(It had the result:  + myLink);
}

And it worked as expected.


That is what confused me. And I really do not want to use the eq as it 
is depreciated.


d
___
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] [:::] appending html to a var for display not working and code not runnign as expected.

2006-08-15 Thread dnk
Ok so i have a recordset with links in which I am building an HTML 
string for display in an HTML field. Now for some reason the html traces 
out fine, but when assigned to an html txt field - the filed just shows 
as blank.


Now I do realize that the eq in this code sample is depreciated, 
however that is on another thread (as the == gave weird results). And 
I do realize that my if statements are backwards as I check for equality 
and do nothing until the else statement, but again, I was getting weird 
results (I was trying to test for an empty field from a database return 
- through amfphp - this seemed to be the only way I could get it to work 
- and I hate that it is not proper code).


Anyways - onto the code.

function handleGetLinks(re:ResultEvent)
   {
   this._DB = re.result;
   // initialize the last record count
   this._lastRecord = (this._DB.length - 1);
  
   //for (var i = this._currentRecord; i = this._lastRecord; i++)

   var myHtml:String = ;
   for (var i = 0; i = 10; i++)
   {
   var myLinker1 = this._DB.getItemAt(i).link01;
   var myLinker2 = this._DB.getItemAt(i).link02;
   var myLinker3 = this._DB.getItemAt(i).link03;
   var myLinker4 = this._DB.getItemAt(i).link04;
   var myLinker5 = this._DB.getItemAt(i).link05;
   if ((myLinker1 eq ) || (myLinker1 eq undefined))
   {
   }
   else
   {
   myHtml += a href=\ + myLinker1 + \ 
target=\_blank\ + myLinker1 + /abr;

   }
   if ((myLinker2 eq ) || (myLinker2 eq undefined))
   {
   }
   else
   {
   myHtml += a href=\ + myLinker2 + \ 
target=\_blank\ + myLinker2 + /abr;

   }
   if ((myLinker3 eq ) || (myLinker1 eq undefined))
   {
   }
   else
   {
   myHtml += a href=\ + myLinker3 + \ 
target=\_blank\ + myLinker3 + /abr;

   }
   if ((myLinker4 eq ) || (myLinker1 eq undefined))
   {
   }
   else
   {
   myHtml += a href=\ + myLinker4 + \ 
target=\_blank\ + myLinker4 + /abr;

   }
   if ((myLinker5 eq ) || (myLinker1 eq undefined))
   {
   }
   else
   {
   myHtml += a href=\ + myLinker5 + \ 
target=\_blank\ + myLinker5 + /abr;

   }
   }
   if ((myHtml eq ) || (myHtml eq undefined) || (myHtml eq null))
   {
   trace(it is empty);
   } else {
   trace(myHtml);
   this._targetMc.collectiveLinks.html = true;
   this._targetMc.collectiveLinks.htmlText = myHtml;
   }
   this._targetMc.collectiveLinks.htmlText = myHtml;
}

Now to me what I thought should have been the proper way to test would 
have been:



if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null))
{
myHtml += a href=\ + myLinker1 + \ target=\_blank\ + myLinker1 
+ /abr;

}

but then the trace of my results does not even work (it includes the 
records that are empty).


And to top it off - no matter what my text field does not have the HTML 
loaded into it.


It seems like something like this should be so simple.


d





___
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] [:::] appending html to a var for display not working and code not runnign as expected.

2006-08-15 Thread dnk

eric dolecki wrote:

Why are you using this. ?





Sorry - I should have specified that this code sample is a method inside 
a class. Not run inline in the main fla.


d


___
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] [:::] appending html to a var for display not working and code not runnign as expected.

2006-08-15 Thread dnk

André Goliath wrote:

if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null))
{
myHtml += a href=\ + myLinker1 + \ target=\_blank\ + myLinker1 
+ /abr;

}

but then the trace of my results does not even work (it includes the 
records that are empty).



Shouldn´t it be  


if ((myLinker1 != )  (myLinker1 != undefined)  (myLinker1 != null))

?


Well I am testing for any of them, not all of them.

IE  or null or undefined.


d

___
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] [:::] appending html to a var for displaynot working and code not runnign as expected.

2006-08-15 Thread dnk

André Goliath wrote:

Well I am testing for any of them, not all of them.


Why would you want to do that?
do you want results such as

myHtml += a href=\\ target=\_blank\/abr;

in case myLinker1 is 

or

myHtml += a href=\undefined\ target=\_blank\undefined/abr;
 
in case myLinker1 is undefined?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, August 15, 2006 7:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [:::] appending html to a var for displaynot
working and code not runnign as expected.

André Goliath wrote:

if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null))
{
myHtml += a href=\ + myLinker1 + \ target=\_blank\ + myLinker1 
+ /abr;

}

but then the trace of my results does not even work (it includes the 
records that are empty).



Shouldn´t it be  


if ((myLinker1 != )  (myLinker1 != undefined)  (myLinker1 != null))

?


but if you look I am testing if they are NOT equal to those things.. as 
in if the results are not null/undefined or ... then write out the 
links with the returned data. So then they would write proper html links.



___
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] [:::] appending html to a var for displaynot workingand code not runnign as expected.

2006-08-15 Thread dnk

André Goliath wrote:

Yes, but you need to connect them with AND and not with OR, try this:

(this is your current code)

// 
//

var myLinker1 = undefined;
trace(myLinker1 = +myLinker1);
if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null)) {
trace( i exectue!);  //traces
}
var myLinker1 = ;
trace(myLinker1 = +myLinker1);
if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null)) {
trace( i exectue!); //traces
}
var myLinker1 = null;
trace(myLinker1 = +myLinker1);
if ((myLinker1 != ) || (myLinker1 != undefined) || (myLinker1 != null)) {
trace( i exectue!); //traces
}

// my Code

var myLinker1 = ;
trace(myLinker1 = +myLinker1);
if ((myLinker1 != )  (myLinker1 != undefined)  (myLinker1 != null)) {
trace( i exectue!); //does NOT trace
}





Just to be clear I want to code to execute if the var is undefined or 
null or an empty string.




now here is my exact test code (modified to loop though):

var aMyLinker:Array = [null, undefined, , somnething];
for (var i:Number = 0; i  4; i++)
{
trace(aMyLinker + i +  =  + aMyLinker[i]);
	if ((aMyLinker[i] != ) || (aMyLinker[i] != undefined) || 
(aMyLinker[i] != null))

{
trace( i exectue!);
}
}

Now as my understanding is this should not trace I execute UNLESS one 
of the array values is equal to something BESIDES null, undefined or .

So the results should be:

aMyLinker0 = null
aMyLinker1 = undefined
aMyLinker2 =
aMyLinker3 = somnething
 i exectue!

But i am getting:

aMyLinker0 = null
 i exectue!
aMyLinker1 = undefined
 i exectue!
aMyLinker2 =
 i exectue!
aMyLinker3 = somnething
 i exectue!

Am I misunderstanding something so basic here?

!= checks for inequality correct?
|| defines OR correct?

so any comparisons separated by the || should check if any of the 
comparisons are true. As in any one of them correct?


I have to be missing something here..


Thanks to everyone.

d

___
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] [:::] appending html to a var for display not working and code not runnign as expected.

2006-08-15 Thread dnk

dnk wrote:

And to top it off - no matter what my text field does not have the HTML 
loaded into it.




I wanted to thank everyone for their great help in explaining the other 
part of this original post regarding the testing... now i just wanted to 
touch on the other issue i was still having with this


I was trying to assign html to an html text field.. and for some reason 
it comes up as empty - even though ha trace of the same var holding the 
html shows all my results. I checked and double checked, and it is set 
to html, set to multi line.



ideas on this one?




___
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] [:::] appending html to a var for display not

2006-08-15 Thread dnk

John Mark Hawley wrote:

Do you have the italic and bold versions of the font used in the field in your 
library, if you have embedFonts set to true?



Don't think so - as they are not used on this field.

___
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] diff between var == value VS var eq value

2006-08-14 Thread dnk

Is there a difference?

I have had some code that will not work using the == and then does 
using the eq.



Any issues?

Just curious what the difference is.

d



___
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] |:::| can you write dynamic meathods in a class?

2006-08-13 Thread dnk

Ramon Miguel M. Tayag wrote:

Sometimes some events pass their own args and you dont even see them..

Try changing your function to this:

function onHit1(o:Object, n:Number) //the o object is passed by the 
listener

{
   trace(it was hit with the number:  + n);
}


That worked perfect!!!


Thanks sooo much!

d
___
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] dynamic text fields missing content

2006-08-13 Thread dnk
Good day - I have a dynamic text field that fulls data from a class. Now 
when viewing local on my desktop - all is good. But once I upload the 
swf to the server - it disappears.


Any ideas?

I have been googling, and found many references to issues similar - and 
most said it had to do with static text fields with the same font.


I have tried many of the solutions - some from un-embedding the font, a 
new font or adding the font to the library. I still get eht same issue.

Any ideas?

I am using flash 8.

d





___
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] inconsistancies with movies (online vs offline)

2006-08-13 Thread dnk
Hi there - I have been battling with a bunch of odd behaviors with a 
few movies I have been working on. It is in fact driving me mad.


inconsistencies include:

1) text field (dynamic) will not populate when viewed in a browser from 
a web sever vs working fine when testing out of the IDE.
2) html text fields (dynamic) show html when viewed online vs not 
showing when testing out of the IDE.


Those are the main ones. And the other thing is that it is not always 
consistent! Sometimes this happens and other times it does not!


I have been working on 1 stupid text box for hte last 4 hours without 
progress. Googling and so on.



Has anyone had experiences like this? And even better yet a solution? I 
have updated my flash, moved my flash player back to 8 (from 9) and back 
to test. Updated the IDE, and so on.



I am going bald on this one.


thanks.


d


___
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] |:::| can you write dynamic meathods in a class?

2006-08-13 Thread dnk

Bjorn Schultheiss wrote:

Hey Guys, check this out


Var clickHandler:Function = MyClass.staticMethod;
var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
newBtn.addEventListener(click, Delegate.create(this, function(evt:Object,
meth:Function, args:Array) { meth.apply(null, args) }, clickHandler, args )
); 
That is a good idea! I just tried one of simpler layout (at least to me 
in terms of what I understand in AS)  works like a charm:


import utils.Delegate;
//Create array to pass multiple args in - both string and number for testing
var aMyArgs:Array = [1, 2, 'three', 4];
//use the delegate
this.menuBtn.addEventListener(click, Delegate.create(this, onHit1, 
aMyArgs));

//create the btn event to handle the click
function onHit1(o:Object, n:Array)
{
   for (i = 0; i  n.length; i++)
   {
   trace(it was hit with the arg:  + n[i]);
   }
}

This is VERY handy (well to me anyways) to be able to pass in what ever 
args I need to.


d


___
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] |:::| can you write dynamic meathods in a class?

2006-08-12 Thread dnk

On 8/11/06, Jeroen Beckers [EMAIL PROTECTED] wrote:

Just to be complete: Yes, it is possible!

Example:

var myFoo = new Foo();
myFoo[test+5] = function()
{
trace(hello world!);
}
myFoo.test5();


//Foo.as
dynamic class Foo
{


}

And to your second question:

Delegate returns a function. Setting the onRelease to
'Delegate.create()' is nothing more than setting the onRelease to an
ordinary function like this:
btn.onRelease = function()
{
trace(Hello World);
}

the only thing Delegate do, is modifie the scope of the function.
So, yes, you CAN overwrite 'delegate instances'.

Ps: Delegate instances isn't even the right term since you don't
create an instance of the Delegate class. The 'create' method is a
static method that just takes some arguments and returns a function.

Got it ? :)

Thanks for the pointers!

One thing I need to clarify...

I want to write the methods INSIDE the class. Would that work?

For example:

class TheMenu {

function TheMenu() {

}
function buildMenu() {

for (var i:Number = 0; i  10; i++) {

this._targetMc.createObject(menuMc, menuMc + i, 
this._targetMc[this._currCat].getNextHighestDepth());


this._targetMc[menuMc + i].menuBtn.onPress = Delegate.create(this, 
[onHit + i]);


function [onHit + i]() {
   trace(the button hit was hit);
}

}

}

}




___
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] |:::| can you write dynamic meathods in a class?

2006-08-12 Thread dnk

Ramon Miguel M. Tayag wrote:
http://board.flashkit.com/board/showthread.php?t=662329highlight=delegate 




How do you call this class?

I tried


import com.includingatree.utils.Delegate;
//use the delegate
this.menuBtn.addEventListener(click, Delegate.create(this, onHit1, 1));
//create the btn event to handle the click
function onHit1(n:Number)
{
   trace(it was hit with the number:  + n);
}


But I get returned:

it was hit with the number: [object Object]


What would I be 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


[Flashcoders] DK - destroying objects from a class using array notation

2006-08-10 Thread dnk
Hi there! I have a class in which a few objects are created from my library 
(loader
component instances and a button instance). They were created sequenciually (IE 
hit0,
hit1, hit2, etc) At any rate - I need to destroy them abd then recreate them.

I am having some issues finding the proper syntax to use destroyObject

For example I tried.


(from within my class)


function killElements() 
{
  for (var i:Number = 0; i  35; i++)
{
  this._targetMc.destroyObject(slidemenu[theThumb + i]);
  this._targetMc.destroyObject(slidemenu[theHit + i]);
}
}

this obviously does not work


My target hierarchy is

_root._targetMc.slidemenu (with the button and loader objects created in here).

Ideas?

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


Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk

Andy Stone wrote:

Have you tried...
 
this._targetMc.destroyObject(eval(slidemenu.theThumb + i));



Sometimes I find eval works when [] doesn't. -Andy




I have not tried that - I will give it a go in a few hours.


Thanks!

d
___
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] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk

Arul Prasad M L wrote:

snip

If its mx.core.UIObject's destroyObject that you are talking about,
destroyObject takes the instanceName of the object, not the instance
reference. you'll just have to pass the instance name as a string.

snip

I did in fact realize that this morning once I read up more on the 
destroyObject function.


I did get it working (to a point).

Now for some reason the command is working to remove my component loader 
instances, but not my buttons. I think it would be important to mention 
that my button instances are NOT a component button. They are simply a 
regular button (transparent) that is attached from the library with a 
linkage identifiers. So I just need to get them destroyed as well. I 
suspect there is a different command to do that since they are not 
components I am searching, but have not yet found out how to... so 
if anyone knows - it would be appreciated.


Thanks in advance!

d

___
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] New Flash based website

2006-08-10 Thread dnk

Aaron Buchanan wrote:

Hi Bjorn,

There is an issue that occurs when users with smaller monitors (13
macbooks) accessing 100% flash content. Say you do not want to scale the
content down to 13. You also do not want to write a flash scroller, because
the browser has excellent support and performance for this, and Flash might
have a harder time.

So my solution is that I detect the window height/width, and if they are
less than my minimum, I set the swf object to my minimum height, otherwise I
allow it to be 100% with noScale.

You can see an example of this at a site I am working on (still in dev):
http://build.lab-media.com/mpvs

Cheers!



Are there any good tutorials on this subject?

d
___
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] DK - redrawing interface elements after destruction

2006-08-10 Thread dnk
Hi there - I have two methods in a class - one that creates a bunch of 
thumbnails, and one that wipes them out to be redrawn again at a later 
time (due to requiring a different number of thumbnails).


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. Now 
I did a bunch of tracing tests to see if:


1) they were created properly
2) if they were put into the proper x  y locations
3) if the buttons created were actually there by the proper instance names
4) the buttons were actually the proper type (ie instanceof)
5) if the MC's created were actually there by the proper instance names
6) the MC's were actually the proper type (ie instanceof)

They all traced back properly. But for some reason the buttons do not 
work (the cursor does not change into the hand). And no onPress events 
are fired.


I loop through a database result to build the buttons within empty MC's 
also created at runtime. While it loops it is also creating runtime 
loader components and assigning thumbnails to them.
Then when a person clicks for the next page of thumbnails, another 
function is called which uses destroyObject to remove my loader 
instances, and then uses unloadMovie to remove MC's which contain my 
buttons. Then the recordset is incremented and the function is called 
all over to build the next pages of thumbnails.


ideas?
___
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] DK - redrawing interface elements after destruction

2006-08-10 Thread dnk

Anthony Lee wrote:


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. 
Now I did a bunch of tracing tests to see if:

Hi dnk,

This may not be a proper answer to your question, but when faced with 
this kind of headache I stick all the problem buttons, thumbnails etc 
in a single movieclip, delete that clip to clear them, and redraw the 
whole thing from scratch. Bad for the processor, good for my sanity.


Tony
Well that is essentially what I am doing. Although my code writes a 
bunch of empty MC's and then removes them after - and then tries to 
recreate it.



create (simplified):

for (var i:Number = 0; i  35; i++) {
//create empty MC's to hold reg. buttons (non components)
this._targetMc.slidemenu.createEmptyMovieClip(btn_mc + i, 
this._targetMc.slidemenu.getNextHighestDepth());

//create loaders for thumbnails.
this._targetMc.slidemenu.createObject(Loader, theThumb + i, 
this._targetMc.slidemenu.getNextHighestDepth());

//create the actual btns from my library into the empty MC's
this._targetMc.slidemenu[btn_mc + i].createObject(HitDk, theHit + 
i, this._targetMc.slidemenu[btn_mc + i].getNextHighestDepth());

//add content to loaders
this._targetMc.slidemenu[theThumb + i].contentPath = this.baseURL + 
myThumb;

}

remove (simplified):

for (var i:Number = 0; i  35; i++) {
//remove the loader components
this._targetMc.slidemenu.destroyObject(theThumb + i);
//unload the MC's containing my non-component btns
this._targetMc.slidemenu[btn_mc + i].unloadMovie();
}

Now like i said - the 2nd time it runs the create portion, everything is 
messed up - which makes no sense to me. I mean if it worked the first 
time, why not a second? The only thing I can think of is it by chance 
the objects are not actually removed (even though a visual test says 
they are).


ideas?


Thanks.

d



___
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] relative target from external AS class file [dnk]

2006-04-20 Thread dnk
Hi there..

Out of my personal preference, I preferto avoid absolute paths and use relative 
paths in
my actionscript (easier to port in movies and movie clips, etc).

Now in my current project I have been having a go with a custon class I wrote 
(which
obviously resides in an external AS file), and I am having a problem trying to 
figure
out what is the best way to code my paths and still maintain portability

In my external class AS file I have:

function handleGetBlog(re:ResultEvent)
{
this._DB = re.result;
// initialize the last record count
this._lastRecord = (this._DB.length - 1);
// initialize title
_root.blog_mc.user_txt.text = this._DB.getItemAt(this._currentRecord).User;
}

As you can see in this case I need to target a text field (user_txt) that 
resides in a
movie clip (blog_mc) that resides on the root time line. Is there a better way 
I can
target this? Without having to use the _root to access it? In hopes to re-use 
this class
with other projects, I have no idea if this class will be used in a nested 
movie clip
and so on. I could just modify it (and maybe i will have no choice), but I 
am hoping
to write portable code.

Any suggestions?

Thanks!

Dustin
___
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] relative target from external AS class file [dnk]

2006-04-20 Thread dnk


snip
I am having a problem trying to 
 figure out what is the best way to code my paths and still maintain 
 portability
/snip

Ok - I have come up with a way, but I am wondering if this is the best way to 
do it...

I call my class with:

var myBlog:BlogData = new BlogData(this);

So I pass in the reference to my current MC.

In my external class I then set a private var (through the classes constructor) 
that
holds this data (just showing needed code in the constructor):

function BlogData(theTarget:MovieClip)
{
// Initialize the target MC
this._targetMc = theTarget;
//test the target
trace(The target is  + this._targetMc);
}

Then when I need to target the text fields I can do so with:

this._targetMc.user_txt.text = myUser;


it works. Does anyone see any issues with this? Is there a better way? Or is 
this the
best way to accomplish this?


Thanks!

Dustin
___
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