Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 04:03 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Code working when testing application but...

not working when the application is built and running.

it checks for a number from xml... depending on status, one mc is supposed to be visible...
it works fine when i test my application.... but it doesnt work when i build application and run.


Any known problems on this point ?
Reply With Quote
  #2 (permalink)  
Old 06-05-2008, 03:21 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Code working when testing application but...

i found where the problem is but i canr get around it

following code is supposed to print "Some text" in textarea but when built the application it does nothing... but when hitting F9 in swfkit it works fine

Code:
button.onRelease = function(){
	resultLoa.onLoad = function(success) {
		if (success) {
			if (resultLoa.res == "OK") {
				medd_text.text = "Some text"
				}
			}
		}
	LVar.avpa = "1";
	LVar.sendAndLoad("http://mysite.com/status.php",resultLoa,"POST");
}
swfkit seems to disturb result thats been loaded, when trying following

Code:
button.onRelease = function(){
	resultLoa.onLoad = function(success) {
        medd_text.text = resultLoa.res
		if (success) {
			if (resultLoa.res == "OK") {
				
				}
			}
		}
	LVar.avpa = "1";
	LVar.sendAndLoad("http://mysite.com/status.php",resultLoa,"POST");
}
then output is undefined
Reply With Quote
  #3 (permalink)  
Old 06-05-2008, 10:22 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Code working when testing application but...

That's strange, the code should work without difference between f7 and f9. It seems that on f7 mode it cannot get the remote variable. F9 or F7 don't affect your code, please try to check the other possible problems.
Reply With Quote
  #4 (permalink)  
Old 06-07-2008, 06:13 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Code working when testing application but...

ive been working on this problem last 3 days and with no success, so i had to rewrite code and use other code

still the problem is bugging me
Reply With Quote
  #5 (permalink)  
Old 06-08-2008, 03:22 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re: Code working when testing application but...

Maybe it's something with security settings
I had a similar problem when calling a php script on a site from flash
When calling it from flash directly it worked
when calling if from a swfkitprojector it failed when the projector was packed with the application
Reply With Quote
  #6 (permalink)  
Old 06-08-2008, 06:23 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Code working when testing application but...

wierd, allmost same thing works fine in my other application :S
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:14 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.