Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2008, 07:53 PM
Member
 
Join Date: Nov 2007
Posts: 46
Default getvariable problem

here i am, with another problem :
i use this code:
Code:
		case "save":
		var f = FlashPlayer.getVariable("_root.f")
		var h = FlashPlayer.getVariable("_root.h")
		var c = FlashPlayer.getVariable("_root.c")
		var d = FlashPlayer.getVariable("_root.d")
		image = Image.captureMovie();
			// crop
			image.crop(f, h, c, d)
			trace (f+","+h+","+c+","+d)
			// save file
			var f = "jpg files(*.jpg)|*.jpg|";
			var path = Dialogs.fileSave(f,"","");
			trace(path);
			image.save(path); 
			break;
but this results in just the whole movie being captured.
what am i doing wrong? ???
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 06:54 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: getvariable problem

not sure but you define f h c d with _root... i think thats why you get whole movie
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:42 AM
Member
 
Join Date: Nov 2007
Posts: 46
Default Re: getvariable problem

but when i trace them with:
Code:
trace (f+","+h+","+c+","+d)
i get the right numbers ???
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 10:33 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: getvariable problem

The "crop" method receives integer arguments only, so please use
Code:
image.crop(parseInt(f), parseInt(h), parseInt(c), parseInt(d));
And please be sure that f,h,c,d are integers, without points. It's a no good design, we will improve it.
Reply With Quote
  #5 (permalink)  
Old 01-20-2008, 12:07 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: getvariable problem

SWFkit please do explain Parese function, if not right topic here, please send a PM!
Appreciated by Snapz!
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 04:52 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.