Go Back   Northcode Support > SWF Studio Plugin Development
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 2011-03-03, 05:06 AM   #1
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Arrow sysinfo plugin

hi
i want sysinfo plugin
but i cant download it from : http://www.northcode.com/studio/plugins/sysinfo.html

pls give me this

i want to build a cpu usage meter but dont have sysinfo plugin

tnx
fkafaie is offline   Reply With Quote
Old 2011-03-03, 08:26 AM   #2
Dan
Registered User
 
Dan's Avatar
 
Join Date: May 2003
Location: Ottawa
Posts: 416
I suspect you got that link from a post that was made back in 2001. Needless to say, that's not "current".

The SysInfo plugin is part of SWF Studio V3 now. There's no need to download it separately.
Dan is offline   Reply With Quote
Old 2011-03-04, 12:11 AM   #3
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Exclamation

Quote:
Originally Posted by Dan View Post
I suspect you got that link from a post that was made back in 2001. Needless to say, that's not "current".

The SysInfo plugin is part of SWF Studio V3 now. There's no need to download it separately.

yeas i know but my swf studio v3.7 dosent have plugin

and now im conect to internet by Dialup !!!!!!!!!!!!!!!!!!!!

i cant download again swf studio

pleas send me sysinfo.dll that i copy it in my plugin folder
tnx dear
fkafaie is offline   Reply With Quote
Old 2011-03-04, 01:28 AM   #4
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
There is no SysInfo plugin anymore (it's part of the core now, see SysInfo) so there's nothing to send you and there was nothing in the old SysInfo plugin that would help you create a CPU usage meter anyway.

The only command that might be relevant is ssCore.SysInfo.getCPUSpeed but that gives you the speed of your CPU (never changes) and it's been there since version 3.0 build 2039.
northcode is offline   Reply With Quote
Old 2011-03-05, 04:47 AM   #5
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Quote:
Originally Posted by northcode View Post
There is no SysInfo plugin anymore (it's part of the core now, see SysInfo) so there's nothing to send you and there was nothing in the old SysInfo plugin that would help you create a CPU usage meter anyway.

The only command that might be relevant is ssCore.SysInfo.getCPUSpeed but that gives you the speed of your CPU (never changes) and it's been there since version 3.0 build 2039.
hi dear firs sorry for my bad writing im from iran and cant write english very well

second i didnt know that its no change
tnx e lot

if it work may be very cool in flash project.
i work hard to creat this
do u have any idea about creat cpu usage?
fkafaie is offline   Reply With Quote
Old 2011-03-07, 01:43 AM   #6
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
Since there's no function in SWF Studio to get this information your only options are (a) write your own plugin (b) query WMI for the information you need or (c) find a command line tool that dumps the info you need, call it from SWF Studio and read the results.
northcode is offline   Reply With Quote
Old 2011-03-08, 11:29 PM   #7
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Exclamation problem

Quote:
Originally Posted by northcode View Post
Since there's no function in SWF Studio to get this information your only options are (a) write your own plugin (b) query WMI for the information you need or (c) find a command line tool that dumps the info you need, call it from SWF Studio and read the results.
i write this code in my flash project

PHP Code:
var return_obj ssCore.SysInfo.getIPAddress();

ssDebug.trace(return_obj.result);

tx.text return_obj 
and i want to sent it to a dynamic text but it dosent work

pleas help me
fkafaie is offline   Reply With Quote
Old 2011-03-08, 11:51 PM   #8
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
You need to look at the result property of the return object, like you're doing in the call to ssDebug.trace.
Code:
var return_obj = ssCore.SysInfo.getIPAddress({});
ssDebug.trace(return_obj.result);
tx.text = return_obj.result;
For this to work you also need to make sure you have synchronous commands enabled or the return object will be undefined on the next line where you're trying to use it.

Code:
ssCore.init();
ssDefaults.synchronousCommands = true;
var return_obj = ssCore.SysInfo.getIPAddress();
ssDebug.trace(return_obj.result);
tx.text = return_obj.result
The call to ssCore.init and the setting of ssDefaults only has to be done once in your application. Normally this is done at the very beginning of your application.
northcode is offline   Reply With Quote
Old 2011-03-09, 05:48 AM   #9
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Talking tnx very very much

Quote:
Originally Posted by northcode View Post
You need to look at the result property of the return object, like you're doing in the call to ssDebug.trace.
Code:
var return_obj = ssCore.SysInfo.getIPAddress({});
ssDebug.trace(return_obj.result);
tx.text = return_obj.result;
For this to work you also need to make sure you have synchronous commands enabled or the return object will be undefined on the next line where you're trying to use it.

Code:
ssCore.init();
ssDefaults.synchronousCommands = true;
var return_obj = ssCore.SysInfo.getIPAddress();
ssDebug.trace(return_obj.result);
tx.text = return_obj.result
The call to ssCore.init and the setting of ssDefaults only has to be done once in your application. Normally this is done at the very beginning of your application.
i test this code and its work
i very happy new
and tanx alot

send may project to u every time it complete

but one question>::

i want to sell my work may b i creat template and sell it

u think that i can make many mony?
fkafaie is offline   Reply With Quote
Old 2011-03-09, 09:18 AM   #10
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
Quote:
i test this code and its work
i very happy new
and tanx alot

send may project to u every time it complete
You're welcome. I'm looking forward to seeing what you've built!

Quote:
i want to sell my work may b i creat template and sell it
You can do whatever you want with your source code, as long as you're not selling copies of SWF Studio with it

Quote:
u think that i can make many mony?
It all depends on how many people need what you're selling.
northcode is offline   Reply With Quote
Old 2011-03-12, 03:41 PM   #11
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Quote:
Originally Posted by northcode View Post
You're welcome. I'm looking forward to seeing what you've built!


You can do whatever you want with your source code, as long as you're not selling copies of SWF Studio with it


It all depends on how many people need what you're selling.


new problem
i write this code in my project :
PHP Code:
ssCore.Win.setStageAlign({align:"TL"});
ssCore.Desktop.changeResolution({width:1280height:768colorDepth:32useDirectDraw:true}); 
and then a button that have this code:
PHP Code:
ssCore.Desktop.changeResolution({permanent:false});
ssCore.Win.center(); 
but when i click it it dosent work
by this button i want to exit fullscreen mode
fkafaie is offline   Reply With Quote
Old 2011-03-12, 03:50 PM   #12
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
The call to Desktop.changeResolution requires the width, height and colorDepth parameters. If you want to change back to your original resolution you need to remember what they are before you change them. You can get the original values from ssGlobals.ssDesktopWidth, ssGlobals.ssDesktopHeight and ssGlobals.ssDesktopColorDepth. Whatever changes you make using Desktop.changeResolution are undone when you end your app unless you've set the permanent flag to true (but that is ignored if useDirectDraw is set to true).
northcode is offline   Reply With Quote
Old 2011-03-13, 12:55 AM   #13
fkafaie
Registered User
 
Join Date: Mar 2011
Posts: 10
Quote:
Originally Posted by northcode View Post
The call to Desktop.changeResolution requires the width, height and colorDepth parameters. If you want to change back to your original resolution you need to remember what they are before you change them. You can get the original values from ssGlobals.ssDesktopWidth, ssGlobals.ssDesktopHeight and ssGlobals.ssDesktopColorDepth. Whatever changes you make using Desktop.changeResolution are undone when you end your app unless you've set the permanent flag to true (but that is ignored if useDirectDraw is set to true).
tanks very much
fkafaie is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes