Writing action script from books or memory?
hey guys. I mess around with Flash and get into the most
basic action scripting. My question is, for the most part, do
designers all copy existing code and modify it to fit thier design
needs, or do they just write it themselves all the time? I really
cant imagine the latter. Im hoping that designers always have tons
of books around.
"Nicknamenick" <[email protected]> wrote in
message news:ebue8f$s0c$[email protected]..
> hey guys. I mess around with Flash and get into the most
basic action
> scripting. My question is, for the most part, do
designers all copy existing
> code and modify it to fit thier design needs, or do they
just write it
> themselves all the time? I really cant imagine the
latter. Im hoping that
> designers always have tons of books around.
Books don't do it for me. It takes too long to get the right
kind of example from books. What I do is to make folders of Flash
source code that is categorized. One of the advantages of
helping people on these forums is seeing so many code examples.
Whenever
I run across a good example of something or write a piece of
code for someone I save it as a reference in one of the folders.
Now
when I need any code I either write it from memory if it's
short enough or go to one of my source code folders for examples. I
have
lots of books but that aren't nearly as valuable to me as my
sorted source code.
Online website sources such as flashkit.com and others can be
very counter-productive for me. The examples are often old code
from
Flash 4 and 5 and usually written by an amateur with bad
coding style. The online book recourses like safari.com are great
though.
You can search for code snippets through all the Flash books.
tralfaz
Similar Messages
-
Problem with action script from Schewe and Frasier book.
I am working on a Photoshop CS3 action script to
open raw files, do a couple of modifications
in Camera Raw, exit camera raw and save
the file as a jpeg.
I think this should work, because I am working
on an example out of "Camera raw with Adobe
Photoshop CS3" by Schewe and Frasier which
shows the step recorded.
See page 344 of Schewe and Frasier.
In figure 9-11 you see, after the open
statement, 10 lines of details like
"As camera raw"
"Model:Canon 350d" etc.
I get the file path and name line, but
none of the other details reflecting
actions in Camera Raw.
The problem is that in setting up the action, none
of the steps done in camera raw after I do the
open get recorded.
And it works in my old CS version !
Out of frustration I repeated the action
script creation in my old CS version and
it worked fine.
Any idea where I am screwing up ?Crappy format justification:
I sometimes have a day of family
type pictures that are in raw format
that I want to put up on the internet
quickly. I would like to be able to
apply the "Auto" feature, as in general
it seems to be pretty good for something
quick.
OK, it sorta works in CS, go here
http://www.angelplace.net/photos/sample.jpg
It sets up all of the details and gets the
"As camera raw" but opens the .dng file
rather than the Camera raw window.
The point is, these important settings
seem to be saved, which does not happen
in CS3. -
Recommendation for Action Script Text book?
I am looking for a good reference to a text book on Action Script, both 2 and 3.
(hard copy text, it is easier than having stacks of windows opened and sort through to find what I need)
Some of the questions that a good text would answer are:
1: How do I know what base classes to import into any given .as file to cover the functionality?
2: How linkage works and what I can apply it to.
for instance if I want to add an event listener, can I do stage.addEventListener(....etc)
when the class is linked to a movieClip. If I use this.addEventListener, it attaches the
event listener to the object to which the class is linked, right?
3: The feature sets that each version of Flash Player supports, as well as browser
Flash plugins.
4: How to handle permission problems when attempting to send data via post to a server
(if have been following an example and get errors regarding permissions when attempting
to have action script send data about the Flash plugin the client is using).
5: How javascript in a pdf file differs from browser javascript where embedded Flash content
(in the pdf file) is concerned.
6: How to troubleshoot AS2 and AS3 linkage problems.
(I have followed an exercise example in text I use, mentioned below, and have had the
result fail without errors. But I suspect there may be a difference between CS3 and CS4
that would account for this).
Initially, I have been generating at least 4 different versions of swf files for each version
of Flash Player back to v7. Javascript and server side code is used to determine which
version to load for the client requesting it.
Currently I am using the Adobe pdf manual and Lynda.com: 'ActionScript 3.0 for Adobe
Flash CS3 Professional Hands On Training', although I am using Flash CS4 Professional.
It is a starter text but not extensive into theory and practice.
I have done tons of Javascript and PHP programming (PHP on the server side).
It is better for me to have as much information and guidance in a text book than posting
to a forum for every problem I encounter.
Than you for advice and suggestions
ASJWhat Tiago said.
Here my list:
Essential Actionscript 3.0 by Colin Moock : http://oreilly.com/catalog/9780596526948/
Actionscript 3.0 Cookbook: http://www.oreilly.com/catalog/9780596526955/ -
Stop() does not work, action script from 2.0 to 3.0
Hi everybody, some years ago I have created a website in Flash with Actionscript 2.0
Now the customer want to change something in the text and I stumble upon the action script 2.0 has become 3.0
This means that my stop() (I have kind of menu on the left that should display afterwards from frame 5-10 for instance)
Now my swf works when I execute it locally but when online it just goes on and on ....
anyone an idea ? I am getting crazy ...
Thanks in advance !
the site can be looked at www.kitwerken.be/index.php
and the concerned part is "Over ons"I don't think the actionscript could have changed itself. If you are using Flash CC then the problem is that Flash CC does not support AS2, so it took your file and changed it to AS3. You will need to get your hands on an older version of Flash (CS6 or earlier) to edit the file and keep it as an AS2 file.
-
Changing an action script from 2.0 to 3.0 & Flash 5 to the latest??
I have an action script 2.0 that I need to change to 3.0 and was wondering how to do that. Also wondering since I did this a number of years ago, I need to have my Tsunami menu updated to the latest Flash movie. Is there a way to do this?
you have to understand as2 code so you can see what's being done and then you must understand as3 code so you can rewrite it. there are some automated conversions that can accomplish some of that but i haven't seen any that are less time-consuming that doing it the long way.
-
Launching an action script from within my program
I am trying to develop an application that will launch Photoshop, load an image, load a saved action, run the action on the image and the save the image with a new name. I am writing the application in c#, and I have PhotoShop CS2. Any help, would be greatly appreciated, or if you could just point me in the right direction. I have the CS2 SDK, but from what I've read so far it is for developing plugins.
Again thanks for all input,
Allanyou have to understand as2 code so you can see what's being done and then you must understand as3 code so you can rewrite it. there are some automated conversions that can accomplish some of that but i haven't seen any that are less time-consuming that doing it the long way.
-
Hello,
I have an action script that produces an ebook cover. I used this action script a few months ago several times to create some covers, but recently when I use it on the same computer it is not working anymore. The computer has adobe photoshop 6.0 software installed. I get many different errors such as "The object previous document is not available", the command move is not available, the object layer front is not available etc...
Is there some type of general setting that might have changed in my software that is preventing the action script from working now? It was just working 3 months ago with no errors.
Thank you.Thank you for your answer. I realize it is difficult to diagnose without seeing exacts. The script runs in two steps. Step 1 it open the flat cover. Then you edit the text. Step 2 it then product the ebook cover.
This worked perfect just a few months ago. Now the exact script I run from a few months ago no longer works. Step 1 is fine, but step 2 gets a bunch of errors I mentioned.
The mode is set to 8 bit channel.
Is there any other setting I could change to possible make this script work? It just doesn't make sense why it worked a few months ago and now it is not working on the same computer.
I am wondering if I changes a setting in photoshop without know or something.
Thank you. -
Not able to convert my application file from mxml to Action Script
Hi,
In my mobile project I want to convert my application file from mxml to ActionScript.When I do this I get error and when I digged into the code I found that the error comes in preloader class initialize method as preloader property in System Manager class is null(line 2026 in SystemManager class).it actually represents the splashScreen class.When I tried to set the splash Screen the document says we cannot set this property from action script.
I know we have an option of action script mobile project but it doesnt recognise TabbedViewNavigatorApplication.
So how can I overcome the problem.I get the following error:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.preloaders::Preloader/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:261]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\4.5.1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:2103]
at mx.managers::SystemManager/initHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\SystemManager.as:2588] -
Flex with any ORM - Writing Model classes and action scripts redundant?
Hi,
I am using Hibernate with Flex. I have all my model classes
as POJOs. Now if i have to access these POJOs directly from flex, I
need to write action script reference classes for all my POJO model
classes. Since mapping POJOs with action script reference classes
is so mechanical, i am wondering if there is any tool to read all
the properties from the POJO's and convert them to action script
reference classes automatically. Is there any way that this can be
automated?
Thanks in advance.
Chandu.If you use Granite Data Services, there's something called
"gas3" (I think is the name). You may be able to use it even if you
don't use Granite.
I didn't care for learning how to use it (plus it uses
Groovy, more needless stuff to learn I guess), so I can't say how
well it works. I just wanted a simple custom ant task that
generates ActionScript classes for my Java classes. So I ended up
making my own. It's definitely not trivial but it's not that hard
if you're very good with Java and reflection. -
Using FDM Import Action script to import data from ERPI table "tdataseg_t"
Hi Experts
I have extracted data from EBS using ERPI and loaded into the intermediate table "tdataseg_t"
I am trying to use Import Action script within FDM to extract data from "tdataseg_t" table (where ERPI extract data is stored) as i could not use the normal import script.
Requirement : I have to restrict the custom 2 dimension based on Account dimension.
Dim Account
Account = ???? ( i am struck here)
If Account = 1000 to 5000 Then
Custom2 = Right( product , 5)
End If
but , I could not find the exact syntax to call the Account dimension from the "tdataseg_t" table.
Please Advise
Thanks
Sak
Edited by: user12292415 on Feb 26, 2012 1:19 AMHello,
Importing data via a manual script defeats the purpose of ERPi. As it will not provide you an audit trail, drill-through/drill-back, etc.
Your best bet is to use the default settings by the software. Just because it returns more records than you want is not a bad thing. You can conditionally change/alter the information either in an EventScript inside of FDM or by mapping the un-needed information to IGNORE.
Thank you, -
Can access c++ library from flash action script by using SWC lib?
We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
Thanks,
SauminiI don't think Alchemy will help you. The reason is Alchemy does not give socket capabilities beyond what Flash provides.
-
Adobe Configurator - how to invoke action or script from html widget?
How to invoke action or script from html wiget in Adobe Configurator?
Please help! I tried to make it about 5 hours!
I need something like that:
I click link or image
...and it runs action.
Thanks!If you click on the question mark ( as shown below) on the right of Configurator 2 window
the user guide installed on your computer within Configurator 2 will open
Anyway once you have your action or script button in your panel you must select it and configure it in the inspector palette -
Exists some book of the Reilly in Portuguese? I look action script 2.0
Exists some book of the Reilly in Portuguese? I look action script 2.0
Existe algum livro da Reilly em português ? procuro o action script 2.0
http://translate.google.com.br/translate?hl=pt-BR&sl=en&u=http://oreilly.com/catalog/97805 96006525&ei=hyn0S9ymC4GRuAe59ODbDQ&sa=X&oi=translate&ct=result&resnum=1&ved=0CBsQ7gEwAA&pr ev=/search%3Fq%3DO%2527Reilly%2Baction%2Bscript%2B2.0%26hl%3Dpt-BROpa!
O ' Reilly em Português para AS 2.0 não conheço.
Não sei se ajuda, mas para AS 3.0 tem uma apostila bem completa da Adobe, vide link abaixo.
http://help.adobe.co...programming.pdf -
In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3
In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3 I get this error message Scene 1, Layer 'Layer 3', Frame 1, Line 2, Column 7
1119: Access of possibly undefined property showMenu through a reference with static type Class. This is the debug scrip this.loadVariables("_urls.txt") Stage.showMenu=false; stop(); I don't know how to fix this. Can any one Help. The movie loads to 99% then stops and reloads again. over and over again.Stage is a protected keyword in AS3 and it has no property showMenu
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l -
Books for SAP Script from SAP Press
Do we have any books published for SAP Scripts from SAP Press ?
Hi,
Yes-> http://www.sap-press.de/katalog/buecher/titel/gp/titelID-667?GalileoSession=74564414A2Qf67.aL0Q
Have also a look at
http://www.amazon.com/gp/product/1893570142/102-2992344-7930525?v=glance&n=283155&n=507846&s=books&v=glance
Eddy
Maybe you are looking for
-
I keep getting this error when trying to download iTunes 10.7. Any suggestions on how to fix this? The feature you are trying to use is on a network resource that's unavailable. Then it tells me to find a path that is available.
-
How to convert MM:SS into Seconds with varying values of Minutes length.
I have one table in Oracle where there is one Column "Duration" and it is having entries like 59:00, 30:00, 59:05 30 120:45 etc. These entries are in Minutes and Seconds with MM:SS Format.Where MM:SS stands for Minute and SS is seconds only. Minutes
-
Binding a shared variable to a NI-PSP data object does not work
Hi, I want to share data between a RT-target and one or more hosts (LV 8.6.1). The network shared variables are deployed to the RT-Target. According to NI accessing shared variables from another project or host has to be done by defining a shared va
-
Hi, i have created purchase order. Here vendor currency is USD. So when i am creating the purchase order for material which currency i have to mention. In program is it necessary to convert the currency. Edited by: Hima on Mar 25, 2008 5:30 AM
-
hi guys, i need some input here. hope u guys can give me some. i've created some process flows. when i'm trying to deploy my process flows, i got an error saying that i don have a workflow repository in my target database. so i can't do my deployment