ActionScript 2.0 :: AS And Windows Programing?
Feb 22, 2004
In actionscript you can create objects wich are somewhat like classes in C++. I've been trying to recreate the Windows class in AS... the problem is that to my knowledge an object cant be reused so to say- create as many windows as i like, all with different attributes(some based on user input). am i wrong?
View 1 Replies
Similar Posts:
Oct 29, 2010
I'm new to ActionScript 3.0, some time ago I was developing some websites using ActionScript 2.0 - mainly timeline scripting. As I want to come back to developing websites, but I don't want to go back to AS2 I'm learning AS3. On that occasion I want to learn class based programming and to learn it I'm trying to build the image portfolio website. Before, my projects build was based on main.swf file which was loading external swf files for every 'module' of the website and now I'm not entirely sure how to organize my project using AS3. So for the example let's say the website I'm building will have:- Main stage- Menu- Links content displayer- Footer Links would look like the below:- Main image gallery- Another image gallery- Contact form- About me- News module Now the question is, what is the best practice for building this kind of project?Should I create Main swf file that will load all external content as swf files (image galleries engine, contact form, about me, news module) and place it on the stage? Or should I create separate class for each of the part of the website?
My concern is, that with separate swf files, I could update just one part of the website and upload it on the server and that part was loaded when needed. With project build based on classes, after updating one link's class I'll have to compile whole project - of course it's not a big problem, but then the website will be in one file, which can grow every time I'll update the links. The swf file will contain data that may never be used so this could be easily separate swf file loaded only on request.
View 1 Replies
Aug 31, 2010
I come from game programing using c++ and glut (which is an external library to display sprites and stuff). in glut you do everything in the code there is no drag and drop, this is nice since all the control is at the code itself, this is also annoying because when you want to display something you need to guess the right coordinations, this requires a few tests until you get the right coordinations.
Now in flash you do have the drag and drop feature which is great but it doesn't go well with the OOP concepts, at least for me.my dilemma is: do you create your frames (symbol creation and placement) by code only (but miss the drag and drop freature of flash) or do you create pre-made frames by drag and dropping symbols from the library?
View 3 Replies
Feb 2, 2006
i wanted to make a flash document , that when i try to click my mouse 1 as fast as i can on a button, it will measure how many mouse1 cliks per second,and display the mouseclicks/second in the corner , i was wondering how to do this , i am the noobiest noob at flash programming ever.
View 6 Replies
Jun 18, 2005
How to stop Actionscript flow for few seconds like sleep function in other programing languages?[code]...
View 7 Replies
Oct 28, 2011
I'm having an issue with the PDF displaying outside the viewable area of the mx:HTML control in Flex. When the application starts up - the mx:HTML is set to a certain size, but can be enlarged if the application is maximized. These are the following conditions to replicate it: Issue only happens in Windows (Windows 7, not on Mac) Issue only happens with Reader X installed (not with previous versions) Issue only happens when running the built app, does not happen in debug / development mode from FlashBuilder
[Code]...
View 1 Replies
Feb 5, 2010
I want develop an application on windows mobile.In this app, i need to show some Flash games to the end user.ow should I do?embed an Flash ActiveX Control (in Windows mobile Form application) ?embed an IE control?BTW (because i do not have a windows mobile device now)Can I views flash in IE of the windows mobile device?for play flash, Macromedia Flash Player 7 for Pocket PC should be installed on your windows mobile emulator.DIT2:after practice i found following package should be installed before your windows mobile progr
Vista SP2
Visual Studio 2008 SP1
Windows Mobile Device Center
[code].....
View 2 Replies
Feb 23, 2011
I'm running ant to compile a Flex application, and the build keeps failing when running it on a windows command line. Other people in my team can successfully run the very same build under mac and linux. This is the error shown in the command prompt:
[Code]...
All tokens are set in corresponding build.properties and filter .properties files (and, as I said before, it compiles perfectly under mac and linux). The windows version is 7 Ultimate, FLEX_HOME is set as an environment variable to the Flex SDK 3.5 (the 3.5.0.12683 build that comes with Adobe Flash Builder Burrito). ${compiler.fork} is set to false, to avoid an issue with the SDK and the source files being in different logic drives.
View 1 Replies
Mar 8, 2010
I'm using Flex in Flash Player 10 on Windows, using FileReference to load a file into memory, as below.My issue is that when a file is locked by Windows, my FileReference is not giving me any feedback that the file is inaccessible--it simply never dispatches any events after my calling load().Does anyone have insight into how to tell that Flash Player is unable to open the file?
var fileReference:FileReference = new FileReference();
private function onClick():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, onSelect);
[code]....
View 1 Replies
Nov 25, 2011
From an Adobe Air application, I need a function to launch the Windows Virtual Keyboard (c:windowssystem32osk.exe). I tried the Native Process, but it didn't work when telling it to execute cmd.exe /C osk.exe. How should I launch the keyboard application from an Adobe Air application?
View 1 Replies
Aug 29, 2009
i setup alwaysOnTop="true" in mx:WindowedApplication alwaysOnTop="true" tag. but this does not work in MAC but works in windows.
View 1 Replies
Aug 24, 2010
I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in windows media player and that required the installation of three codecs : Mp4Audio.ax, Mp4Video.ax, Mp4Src.ax.
As i see it, it will be very convenient if i could embed a windows media player plugin in flex or i could specify the audio and video codecs in the flash player
View 1 Replies
Feb 6, 2012
I have a flex application (.swf) and want to create a projector file. When I choose File-> create projector I get the .app file because I work on a Mac. I know I can create both projector formats for windows and mac using the export feature in Flash Professional. But this is not an option since it's Flex.Is there any other way rather than switching to windows to create the file?
View 1 Replies
Sep 21, 2009
I want to provides an option in my air/flex application. A user can check an option and the application starts when windows starts.I don't find with google how to do this, someone knows do that ?
View 1 Replies
Jul 30, 2010
does anyone have an idea or developed before windows authentication through flex application.I have a semi solution when user enters his/her AD username and password, and application send this data to web service which handles AD authentication, but this is one extra step which will give full comfort for users.
View 1 Replies
Jan 12, 2010
I am working on a short animated story, which has a scrubbable timeline and chapter headings. I used TimelineMax for sequencing it. For the most part, it is working fine. I am seeing some strange behavior that pop up, though: sprites disappear, functions stop responding to user input, seams of the sprites become transparent -- all small issues but pretty hard to nail down because they happen in Mac only.
So I am wondering what is wrong with Flash, and why it misbehaves on a Mac?
View 2 Replies
Mar 1, 2012
we're having a strange problem on a project here. When we use NetConnection in combination with a NetGroup to initiate communication between two local AIR applications on Windows XP, they always both connect to the NetGroup succesfully and detect each other as neighbors. However, on Windows 7 both applications connect succesfully to the NetConnection and NetGroup both don't detect each other as neighbors.To reproduce this problem, here are two AIR applications:[code]
These applications can connect and send message to each other without a problem on Windows XP. On Windows 7 however, they cannot.Does anyone know why this wouldn't work on Windows 7 and what steps can be taken to make it work? It's critical to our project that this works.In some cases, the applications take quite a long time to detect each other as neighbors (up to 15 seconds in some cases), in other cases they detect each other immediately. Does anyone know what could cause this delay?
View 1 Replies
Mar 17, 2009
I have been deveolping my new site, which is in it's early stages and have most things working ok but i need to open new windows from buttons in the main swf file. please check out my link to see for yourself! new windows load in the same window ad the main swf. [URL] I have been using this code on the thumbs on my design and illustration sections
on (release) {
getURL("javascript:NewWindow=window.open('url.html ','newWin','width=1133,height=425,left=425,top=113 3,screenX=1133,screenY=425');NewWindow.focus();voi d(0);");
}
each of the thumb windows being a different specified size.
View 1 Replies
Oct 31, 2009
I'm trying to fix that terrible dual montior full screen bug by patching NPSWF32.dll - it worked fine on XP but on Windows 7 I can't find the file anywhere to overwrite.
View 1 Replies
Jan 25, 2010
I used Flash a wee bit several years ago, but now with AS3 I'm a bit out of my depths... Anyway I have this template I'm adapting, and at the moment it is a thumbnail gallery that loads via an external xml file, and the fullsize image it loads is a link to an html file. The only thing is that it loads the html file in a new window and I want it to load in a popup window. I have figured out how to make a regular popup window using AS3 but that doesnt help me for this case as the actionscript is a bit more complex and going via the xml.... I have honestly spent a good 8 hours scouring the net for tutorials and nothing tells me exactky what I need to know to adapt my particular code.
Here is the code in my actionscript that seems to be calling up the html link part of the xml file:
function pic_click(e:MouseEvent):void
{
navigateToURL( new URLRequest( flashmo_tn_list[current_no].url ),
flashmo_tn_list[current_no].target );
}
[Code].....
My question is, is there a way to alter this code so that all the files in the xml will open as popups?
View 3 Replies
Jun 2, 2009
I have installed the CS3 on a Dell workstation with Windows XP SP3 and when I try to exit when finished, Flash will not exit. It seems like it is trying but will not close. There is no error, the program just sits there. You have to right click on the program and click close to get it to close. Then the program wants to send a error.
View 1 Replies
Jun 21, 2009
Is there a setting in Windows XP or Internet Explorer which prevents swf files from playing? If so, where is it? (The Flash player is installed.)
View 2 Replies
Aug 31, 2009
I'm kind of new to flash, and I'm working in CS3 AS3. Here is my code. - Home is my button instance name
[Code]...
Now, _top, _self, I can't get anything to work for what I want to do. What I'm trying to do is make it so when I click a link, it opens it in the SAME tab. I have seen many (dozens) of these problems, but none seem to help. On firefox, it openes in a new tab, (I have it set so windows open in new tabs), on IE it opens in a new window, and in chrome it opens in a new tab. Please help me fix this problem,
View 5 Replies
Sep 7, 2009
I'm having a problem I haven't seen before with a Flash application I'm working on. I have attached two images of a part of the screen: one is taken with 16 bit color setting and the other with 32 bits. The texts are standard dynamic text fields.when i view the app at 32 bits all colors seem to be OK, but when I set it at 16 the textboxes seem to have a different background color, even though it's set to transparent!
View 1 Replies
Sep 20, 2009
how to use flash, which is a daunting task. To make matters worse, my mouse will not click whenever a new window opens. For example, the dropdown windows that pop up when you click the corner of some of the tools. (like the tool to draw a rectangle or oval, etc.) Icons will highlight when I move my mouse over them, but clicking does nothing at all. I have the Adobe Post Production Suite, and it does this for all of the programs I have tried so far. For example, when recording in Soundbooth I can't click the record button or the stop button. Thus far I have been using the enter button and shortcut keys to get by, but this doesn't work all the time because some features don't have shortcuts. My laptop is a Dell Studio XPS. It's a little over a month old, and I've never had this kind of problem before. I tried running the programs while using a Wacom tablet to see if my mouse had gone bad, but nothing changed. I've searched the forums and haven't found anyone with similar problems. This really has me stumped. Another problem that I think is related: I can't change the colors of objects in flash. Whenever I open the color palette and put my mouse over a color, it shows up as gray. (All the colors show as the same shade of gray.) I've used lots of programs since I've had this computer, and never had anything like this happen. The only thing I can think of that might cause a problem is that my computer is a widescreen. This sometimes causes a problem with certain applications because the windows are too tall.
View 4 Replies
Nov 4, 2009
I have a new i5 core computer running Windows 7 64bit retail. With Kaspersky Internet Security 2010 installed Flash CS4 becomes so unresponsive that it is completely unusable. Uninstall KIS and it works absolutely fine. I've already read on another forum that someone else is experiencing the same issue with the same combination of products.
View 5 Replies
Aug 14, 2010
I made 4 windows (squares) and they each have a dragbar (moveiclip).Here is some code so you can drag them:
MC_windowQ.dragbarQ.onPress = function() {
startDrag(MC_windowQ);
MC_windowQ.getNextHighestDepth();
};
I also have code that stops it dragging. What I need answering though is how to make the window get the highest depth (so that it is on top of the other windows after pressing the dragbar. I tried using getNextHighestDepth() but it doesn't seem to be working.
View 3 Replies
Nov 18, 2010
I see this error pop up when using IE 8 in 64 bit mode and don't know what to do or how to fix it:
Webpage error details
Message: Syntax error
Line: 2
Char: 1
Code: 0
URI: http://cartierbuyer.com/flashdetect.js
As far as I know, this was installed by FLash CS4 properly. Is it now outdated?
View 1 Replies
Sep 9, 2010
I created a CD presentation that runs an executable file (fscommand), it works great on XP and vista, but windows 7 doesnt open it. Have anyone run into this before?
View 2 Replies
Mar 8, 2010
I was cheating from a sample program to integrate with Flash. I able to add a reference to ShockwaveFlashObjects.dll to my windows app, but What is 1- AXShockwaveFlashObjects. 2- How to add a reference to it, or I have to create it using some tool?
View 2 Replies