ActionScript 1/2 :: Designer Trying To Code, Deadline By Tomorrow?
Oct 29, 2010
I've placed this code on the root time line and it works great, however i need to print multiple MovieClips and I can't do that unless I place all of the MovieClips into one MovieClip and that's where this code stops working. This code keeps two seperate MovieClips on different layers "physically" connected while dragging one. But as soon as I place the two MovieClips into a new MovieClip "MainClip" -
_global.dragging = 0; someListener = new Object(); someListener.onMouseMove = function () { if (_global.dragging == 1) { diffx = _global.oriX_MC1 - _root.MC1._x; diffy = _global.oriY_MC1 - _root.MC1._y; _root.MC2._x = _global.oriX_MC2-diffx; _root.MC2._y =
[code]....
View 1 Replies
Similar Posts:
Aug 6, 2005
how to display what date will be tomorrow (if today is saturday, august 6, 2005, i want it to say : sunday, august 7, 2005) also, the time in UTC.
so time and date, but 24 hours later.
View 3 Replies
May 12, 2008
I have an RFID reader scanning tags. The first IF statement works flawlessly with my counter to detect if it should log the item in or out. The 2nd and 3rd don't work at all. I've tried 3 IFs, I've tried 1 IF and 2 ELSE IFs, 1 IF, 1 ELSE IF, 1 ELSE...nothing works. This project is due tomorrow and no one else at school has figured it out yet
stop();
/**SERIAL SERVER**
/**java -jar ss6.jar at the command prompt**/
[code]....
View 2 Replies
Jun 7, 2007
I am a newbie to Flash. I am working on a template website with a deadline. I was able to change the text, remove items I did not need and add some additional text.....but I cannot get any of the links in either of the two top flash animations (the menu and the header) to work. I am using Flash CS4 (and Dreamweaver CS4). I have tried to add a link to the text, and in the AS. But then they do not seem to be working at all
View 1 Replies
Feb 22, 2010
I am a newbie to Flash. I am working on a template website with a deadline. I was able to change the text, remove items I did not need and add some additional text.....but I cannot get any of the links in either of the two top flash animations (the menu and the header) to work. I am using Flash CS4 (and Dreamweaver CS4). I have tried to add a link to the text, and in the AS. But then they do not seem to be working at all.
Here is a link for a zip'ed file with the index.html webpage, the swf files, and the fla files. Webpage_and_Flash_Files.zip/ I am on a deadline to get this up,
View 6 Replies
Mar 8, 2005
i imported some sound into my movie, and since doin that my preloader only shows when its about 60% percent done, any one know how to make it show from the start?also my sound controls are contain in a movie clip wich slides down when u roll over, using hit tests, when u lower the volume down it works fine, but when the controls slide back up, and then u roll over again the volume is the same, but the slider is back at the top, any ideas?
View 3 Replies
Apr 29, 2009
I'm having problems with flash debugging on Mac OS. It crashed at various points regardless if I'm using the projector debugger or browser plugin (regardless of browser).
The only common denominator I see is that a method seemingly in the debugging code is causing a security sandbox violation with localhost, and then everything crashes.
P.S. Tried both 9 and 10 debuggers
View 1 Replies
Sep 15, 2010
I am looking to have a program developed sush as the virtual designer type program.Where as I can basically upload a photo of an interior or exterior of a home and then choose different materials for the walls or siding,etc.The thing is I am not sure if flash is the program that would handle this sort of thing or if I should be looking somewhere else.There is an example available on my website NJ remodeling contractor.You will see a link to the designer app I am talking about at the top under the latest news.The only problem with this application is that it was suppose to allow me to use my own images and allow my remodeling customers to go on and make changes to their photo.This option is still unavailable so I was looking into just having the application built
View 5 Replies
Nov 26, 2011
I am a homebuilder and I would like to create an exterior visualization tool to help my clients choose thier exterior siding, roofing & brick colors. My on-staff architect can create photo-realistic renderings of our different models. The question is how would I go about substituting materials for different parts of the home. Would I start with a base model with no textures applied and then have each of the textures or colors applied? Would this be acheived using masks?
View 3 Replies
Aug 3, 2010
suggest a tool or component to integrate with web based application with a workflow or business process designer ...
View 2 Replies
Mar 12, 2011
What does a web designer need to migrate to Flex quickly? A: tell me how I can get good fast B: tell me why it would be unrealistic to learn Flex quickly I want here both sides of it.
TELL ME WHAT I NEED
- Projects I need to complete in Flex
- Tutorials
- Key concepts
- Other technologies in a nutshell (webservices, SOAP, AJAX, HTML5 etc.)
[code].....
This Flex reference should include everything needed for beginning Adobe Flash Builder 4
View 1 Replies
Jun 23, 2009
To enter static text in Flash, the only measurement option available for the text size is points,while the measurement for"Letter Spacing" appears to be pixels (based on my own observations, can't find documentation to verify this). Can either option be changed so that both options are measuring pixels or point/em units?
For instance in InDesign, the type size is in points and the "Tracking" is 1/000th em (see comment here). Both measurements are based on the same basic unit, while Flash seems to be using two different basic units of measuring.
View 1 Replies
Jul 25, 2011
I was trying to build an application where a designer has created content on the timeline as a sequence of key frames. Each key frame is completely different. When the application is started I choose one of the frames, move the play head to that frame and stop (using gotoAndStop). Next, by referring to symbols in the key frame by name, I use AS3 to allow drag and drop, and I also do some programmatic movement.
The problem is that when I move to a different key frame on the timeline using gotoAndStop, the symbols that were touched by AS3 in the previous frame, even if they are not referenced by the designer's key frame, show up on the stage. It is as though any DisplayObject that I touch with AS3 becomes divorced from the timeline.
how to programatically work with timeline (MovieClip) content that was manually created by a designer. This just seems like it should be a really common use case. It seems that about the only thing I can do safely with the timeline is to move the play head and respond to events (if I don't change the state of DisplayObjects in the timeline). Also, is there any good documentation on how objects get allocated and destroyed when the timeline plays?
View 1 Replies
May 1, 2009
I'm thinking of creating a visual template of a movieClips in a .fla file for the designer to adjust and tweak. Then in flex builder 3 (actionscript project) I load in that .swf file and use the references to the movieClips to adjust location, size and color of objects... Hope that made sense...
Along those lines... is it possible to grab the graphic information of an entire movieClip? Let's say there's a movieClip with a red 4 pixel line on the top then 2 pixels further down there's a grey rectangle that's 400 pixels high. These were drawn with vectors in the flash environment.
View 6 Replies
Jan 30, 2009
I need some scripts for the countdown with a current date like 01.30.2009 to count down to meet the deadline - 04.16.2009. how to do that except I can only build a very simple countdown.
View 9 Replies
Jan 12, 2011
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
[Code]...
View 2 Replies
Nov 20, 2010
here's a part of my code:
player_mc.onEnterFrame = function() {
if (enemy0.hitTest(this)) {
enemy0.speed = 0;
} else {
[code]...
Note the red code, I need to repeat this an unknown amount yet multiple times but with the number on the end of enemy incremented by 1 each time. It starts with 0 as you can see the code just above the red. I heard about for loops using 'i' but im unsure about how to use it.
edit: ah, this forum isnt letting me highlight red. Everything in this editor is also failing. well, when I say code in red i mean this code:
if (enemy1.hitTest(this)) {
enemy1.speed = 0;
} else {
enemy1.speed = 1;
}
View 3 Replies
Jan 29, 2012
I'm looking for a way to have my main timeline code interact with code inside of a symbol.I'm tying to get my timeline inside the symbol to gotoAndPlay(10) when something happens in my main timeline code.
View 3 Replies
Jan 22, 2011
I'm looking for a workaround to the "AdSense does not let you choose only images but no flash" issue. I'm rather a newbie to JS, but is there any way for one script to prevent other scripts embedded in a site from detecting the presence of the flash plugin? Even if it doesn't work with AdSense, it would be nice to know if there's a hack to do this that might work in other settings.By the way, I suppose I wouldn't care if it failed to work on IE or obsolete browser versions.
View 1 Replies
Jul 10, 2003
I have attached a simple test fla.I am trying to centralize my code in all my movies using dot notation instead of spreading my code all over the place. It never works, I must be doing something wrong.The test .fla has a movieclip with a timeline animation. I used the linkage identifier to name it 'reload' AND named the instance 'reload'.
_root.reload.onRollOver = function() {
this.gotoAndPlay(2);
}
The pointer doesnt even change to a hand.
View 4 Replies
Mar 27, 2011
Got to the point where the hole in my AS3 knowledge is getting large!Realising I have confusion about the relationship of:Body of code on first frame of AS3 file.(Which I have so far used to create instances of library objects using addchild and make calls to class code).Is this code called the document code? What do people call it?Numerous classes linked together by extending each other etc.Library objects (usually graphical objects)Should it be done differently? have the following problems due to lack of understanding:Addchild complicated from a class but straight forward in main body code.Cant call functions on the main body code from classes, because class code does not know the main body code exists?
View 1 Replies
Feb 4, 2010
I have 2 tables,a main table with a field code as primary key, and other table detail, named p.e. DetailTable, with 3 fiels as primary key.What I want to do, it's a delete a row in MainTable, all the rows in DetailTable,where field code is the same as field code in MainTable should be deleted too.Here is the SQL to create the tables.
var sql2:String = "CREATE TABLE IF NOT EXISTS MainTable [code]....
when tables are created, insert data. I connect without problems, delete a row in MainTable (see the code), for example delete row with code=4, but in the DetailTable, all the rows with code=4 are NOT deleted Why?
[CODE]// Inside a class
private var conn:SQLConnection;
public function constructorClass(){conn = new SQLConnection();ConexionBD();}[code]...
View 3 Replies
Jun 9, 2011
I've literally been staring at this for 7 hours. I'm missing something.I have two movie clips on the stage. The instance name of the first is puzzleAK. The instance name of the second is pieceAK.The first is linked to a custom class called GeoPuzzle. The second is linked to a custom class called GeoPiece.The code compiles but throws an error (as explained).The code in the main timeline:
puzzleAK.fullName = "Alaska";puzzleAK.abbrev = "AK";puzzleAK.isLocked = false;trace ("made it through puzzle definitions: " + puzzleAK.fullName + " " + puzzleAK.abbrev + " " + puzzleAK.isLocked);
[code].....
View 7 Replies
Dec 27, 2010
Is there a way to make code on the timeline and code in a separate AS file communicate with each other?I have two buttons, a yes button and a no button.I have a confirm box which is a movie clip. In the movie clip I have the two buttons on it and code so that every time one of the buttons is clicked it runs a function.I have the rest of my code for the movie (so the code to make the confirm box appear) on a separate AS file.Is there a way I can define the functions on the movie clip and run the functions with the separate AS file?
View 7 Replies
Aug 25, 2004
What library/API or even a program for converting flash code into html 5 code automatically do you recommend me?
View 2 Replies
Mar 19, 2009
converting the following code (i got from some site, i can't remember which) to on-frame code:
Code:
onClipEvent (enterFrame) {
with (_root.player) {
// Controls Player Speed
[Code].....
Basically its a movement and hittest script for a maze. It works great but I need it running within an onEnterFrame in the frame code.
Currently the code is on a clip which contains the clip "walls". and player is on the _root timeline.
View 1 Replies
Oct 22, 2011
I had a 2 frame setup with some actionscript for each frame. Tried to move it all into one class file and a
1. frame .fla. ; Hiding and showing the resp. moviclips when i virtually move from frame 1 to frame
2. Now I get these ...Error #1069: Property edit_panel_mc not found on flash.display and there is no default value. errors or..
when i thought beeing clever adding the stage. prefix ReferenceError: Error #1069: Property edit_panel_mc not found on flash.display.Stage and there is no default value. The mc's are on the stage... i have a single .as classfile. Why cant I reference them? or how should i do it/ what should i do to change it from beeing .fla script to class script.
View 9 Replies
Nov 17, 2011
I'm working on an app for iOS where I want to load content dynamically from the library that contains text and graphics inside different MovieClip's.However, I have a problem, the code I have is for bitmap!How can I change it so it works for MovieClip instead?I want to use the MovieClip instead of bitmap?Also want to use the MovieClip class instead of Sprite class?[code]
View 5 Replies
Jul 9, 2010
I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine.
The whole aim of this is to render a waveform as quickly as possible. I know very little about pixel bender. I can basically make a new file and create a shaderJob of it in flash but I'm really uncertain how to approach this...
[Code]...
View 1 Replies
Oct 1, 2009
I see a lot of tutorials about coding actionscript 3 when they use all the code in a Class.I keep thinking every time why they use it in a class, instead of using actionscript on the stage.why it is more functional to code a class instead of putting code in the stage actionscript?
View 3 Replies