ActionScript 3.0 :: Creating UNEDITABLE Packages With *.as Files?

Jun 15, 2010

I have a flash file that uses many classes i have done. Now, another person wants to modify that flash file, but for that i need to give him my classes too; if not, he will be unable to recompile the flash file. The problem of this is that i want to protect my *.as files where my classes are written (yeah sounds pretty anti - open source, but i need to protect my work ). So, how can i make that? Is there a way to convert all those clases into a kind of uneditable package that can be read by the flash file for importing process but the user is unable to edit or view?

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Importing Packages/files?

Dec 6, 2010

I was working with a sample code and when I do a 'cntrl + ENTER' I get a 'Type was not found or was not a compile-time constant: LoginEvent' error I also get the same error for the other events of 'RoomEvent' and 'XIFFErrorEvent'. My source files 'Test.FLA' and 'Test.AS' are located here: 'xiff_3_0_0src' whereas the various packages refered to in the source file are located here: 'xiff_3_0_0srcorgigniterealtimexiff'. My import statements are as follows:
 
import flash.display.MovieClip; import org.jivesoftware.xiff.conference.Room; import org.jivesoftware.xiff.core.JID; import org.jivesoftware.xiff.core.XMPPSocketConnection; import org.jivesoftware.xiff.events.LoginEvent; import org.jivesoftware.xiff.events.RoomEvent; import org.jivesoftware.xiff.events.XIFFErrorEvent;

View 1 Replies

ActionScript 3.0 :: Flash Creating And Having Flash Find Custom Packages?

Jun 14, 2010

I'm just getting off the ground as an AS3 programmer and I'm having a lot of trouble getting Flash to recognize my packages. My intention is to keep a code library of all my AS3 source data and have Flash simply go fetch classes from there.

I have set Flash's source path to the following to accommodate my library:

C:Documents and Settings<username>My DocumentsMy DropboxCodeAS3src

However, when I attempt to include a class into a .fla, Flash gives me an error that it can't find the AS class files in the .fla's folder at compile time. So it seems to not be detecting the AS class files in the source path I have set.

Within src, the folders are structured as follows:

srcsivyrmap<AS classes here>

In my AS files themselves, I have written the package and class declarations as follows:

Code:
package sivyr.map {
// Includes
include "flash.display.Sprite"

[code]....

And when I write an include to grab one of these classes, I write it as:

Code:
include "sivyr.map.Grid"

View 2 Replies

TextInput Becomes Uneditable After Set With AS2.0?

Jun 10, 2009

I have added a TextInput component to my movie and named the instance "fname".I use the following simple code...
 
fname.text = "test";
 
Problem is that once the text is set using AS2.0 it becomes un-editable and a user cannot change it.

View 2 Replies

Flex :: TextInput Has Become Uneditable?

Mar 4, 2010

I have been developing an application for the past couple of weeks and as of yesterday all of the textinputs have become uneditable. It seems like when you click on one it switches between the focusIn state and then back to the focusOut state.

View 2 Replies

Actionscript 3 :: Make A Grid Cell Uneditable?

Jun 10, 2011

I'm using an AdvancedDataGrid in ActionScript 3/Flex 4. The grid has 5 columns: Caller Intent, Labels, Strategy, Confirmation Mode, and Confirmation Promptlet. All columns are editable except for Labels. However, if you change the Confirmation Mode value to NEVER, the next column Confirmation Promptlet becomes uneditable and is set with the value 'n/a' (this is the desired functionality).Unfortunately, the image is not clear. In the second row, I changed the Confirmation Mode value to NEVER. This is what happens when I start tabbing out of the Confirmation Mode cell:

1st Tab: Confirmation Promptlet populated with 'n/a'. I don't see anything in focus.

2nd Tab: The 5th tab from the left in the view stack (dark grey) is in focus.

3rd Tab: I don't see anything in focus.

4th Tab: The button with the green '+' (top left) is in focus.

5th Tab: The grid itself is in focus.

6th Tab: Finally I get to the Caller Intent cell of the next row (when this image was captured)

I tried setting tabEnabled="false" and tabFocusEnabled="false" for the button. I set only tabFocusEnabled="false" for the AdvancedDataGrid. But then the Tab focus starts moving to the components in the upper right panel and lower right panel.

I need to accomplish 2 things:

1. Have tabbing be contained in the grid, in the upper right panel, and in the lower right panel. Meaning tabbing should not cross from one area to another.

2. Have an uneditable field not mess up the normal tabbing behaviour.

View 2 Replies

ActionScript 3.0 :: Creating Interactive Files With More Than One URL

Apr 22, 2009

I want to create more than one button instance that go to different URL address's. From the Adobe Video Workshop, I got the code:

[Code]....

I get 1021 duplicate function error. I think I understand in priciple what's wrong but don't know how to fix it. MyI knowledge of Action Script 3 is zero. What I need is sample code that works that I could copy and paste, with appropriate changes.

View 4 Replies

Actionscript 3 :: Creating Gif/bmp Files With Flex?

Mar 15, 2010

public function bmdToStr(bmd:BitmapData,width:int,height:int):String {
var encoder:JPEGEncoder = new JPEGEncoder();
var encBytes:ByteArray = encoder.encode(bmd);
return ImageSnapshot.encodeImageAsBase64(new ImageSnapshot(width,height,encBytes,"image/jpeg"));
}

As of now, I am creating JPEG image from bitmapdata as above. I can use PNGEncoder for creating png images as well. How do I create .bmp or .gif files?

View 1 Replies

Flash :: Creating .as Files With Adobe AIR?

Aug 23, 2010

Is it possible to write text using Adobe AIR so that I can save it as an actionscript class file?

I want to generate my own classes using air, I just have not found anything that explains how I can save say a text file as a .as file.

View 2 Replies

Flash :: Creating AMF Files For Caching?

May 3, 2011

I would like to create some AMF files for caching on a server.

I am wondering if the best approach is to reconfigure BlazeDS to create these files so it spits out local files?

Or if is possible to use as3 itself to create the files.

View 1 Replies

Php :: Creating Vector Files Programmatically?

Sep 6, 2011

create vector files programatically? The company I'm working for has to deliver vector assets to our clients (which are originally designed in flash, then the elements positions,scale and other details are stores in the database), and we want to eliminate the need for a human to actually create the vector graphic.

View 3 Replies

ActionScript 3.0 :: Creating And Saving XML Files

Dec 1, 2009

I am trying create a tool for office use which builds a XML file on the users computer. I am able to output XML to the trace screen but I want to take it a step further and have that XML code saved to a document on the users computer. Each time the user enters text and hits submit, a new block of XML needs to be saved to that file. From what I understand, I need a "middle man" application such as Adobe AIR. Can someone point me in the right direction? I have been trying to research this for a few days now. And if AIR is the solution, why is it so non-user friendly to get the extension to work? I also heard something about being able to do this with CS4.

View 4 Replies

ActionScript 3.0 :: Creating Slideshow Of Swf Files

Mar 3, 2011

i am trying to develop one a story using flash.i have 7-8 animated swf file story. now i want to create a slideshow such that when i will click on 1st swf , next swf will play. i was tried in following way.

1.take 1st index page of story as a fla file.

2. then when i 'll run it i will click on it(using button), then one swf file is loaded.i dnt know how can i click on swf file so that next swf will play?

View 0 Replies

ActionScript 3.0 :: AIR Creating Hidden Files?

Jan 19, 2010

Is it possible to create a hidden File object for example in documents directory?

View 1 Replies

CS3 Creating A Workable Fla Form From Swf Decompile Files

Apr 20, 2009

My mission here (and I'll try not to convolute it too much!) is to edit a flash based form from a decompiled SWF. The form's main purpose is to record user information in text fields, attach a file and email both to an external address using a few PHP scripts (I'm presuming) to dictate how the information is delivered. My problem is that SO THINK decompiler does not attach ACTIONSCRIPT to the layers and frame in the timeline, instead it exports each Action-script as a seperate .AC file. I have not yet been able to export an FLA that allows me to edit the scripts effectively, and am wondering if there is a more effective way to use a decompiler in this case, or if there is another solution to the problem.

View 4 Replies

Professional :: Creating Flash Gallery For SWF Files

Jun 24, 2010

Is there a template out there for a flash gallery to display other swf files? Like an image gallery, but instead of images, they are swf files (some could be interactive as well.

View 3 Replies

C# :: Creating Flash Files And Animations Programatically With Dot Net

Aug 16, 2011

Is there any Actionscript-C# API/Libraries available so that i can create a flash file via my C# program and manipulates the content of that (Ex : Add a motion tween animation to it). I have seen something similar to this in adwords.google.com (to create promotions/ads)

View 1 Replies

ActionScript 3.0 :: Creating Links Automatically Between SWF Files

Jan 13, 2009

I've been given a bunch of .swf (about 100) that I need to link together. Rather than doing it manually, old-school style, I decided to write a document class that will sort the content, animate transitions and create links automatically. The basic idea is that all content on the stage conforms to a naming convention whereby all buttons are prefixed with "btn_" + nameofswf.swf - the code recognises this and adds event listeners. The background image is simply called "background". I might add some further functionality later for rollovers, depending on what I need. As a frame script, the code works perfectly - it's when I converted into a class the fun begins.

The code:
package hair {
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.motion.easing.*;
import flash.events.*;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Creating Asp Files Using Front Page?

Jul 23, 2002

creating asp files using front page 2002. i have created some pages and I am able to enter data in to the form. But, when I try to display the data from the database, its giving the below error:

FirstName LastName Address
Database Results Error

The database connection named 'connDatabase' is undefined.This problem can occur if:

* the connection has been removed from the web

* the file 'global.asa' is missing or contains errors

* the root folder does not have Scripting permissions enabled

* the web is not marked as an Application Root.

View 1 Replies

Creating Link To Host AS Files On Site (Error 404)

Dec 1, 2009

Why creating a text link to a .as hosted on my site creates a 404 error? If I change it to .txt it works fine but I'd really like the user to be able to open the file directly into Flash.

View 3 Replies

ActionScript 3.0 :: Creating A Download Link (without Using Class Files)

Sep 3, 2009

I have a movie that is going to be playing in our onLine Learning Site. I want to include a link to download a few documents, and I just don't know how to do that.I do Not KNOW what the complete HTTP url will be, just the directory path by that I mean, I know the files will be in "VideoFilesHighRes1.MOV" but I don't have access to the complete URL. This isnt a problem when it comes to loading other Flash objects (IE sounds, different clips etc) For some reason I didn't think the "getURL" request was valid in AS 3.0.....

View 1 Replies

Actionscript 2.0 :: Creating Links That Save Files To Desktop?

Feb 2, 2010

I've been developing a Flash cd-rom for a client, and a particular page in the movie has an "press room" that will contain links to images and pdf's located on the cd-rom itself. I'm familiar with creating buttons, and set up a link like this on the button.

Code: Select allon(release){
getURL("images/feat_prct.png");
}

Obviously, it's a pretty simple link that brings the image up in the browser. That's great and all, but I'd really like it to bring up the option to save the image somewhere. I know that a reasonably smart person could just click on it in the browser and either pull it to the desktop or "save as", but I'd like to eliminate that step for them. I'd also like to be able to create buttons that link to pdf files in the same way.

View 3 Replies

Flash :: Professional - Creating / Editing / Converting Sound Files To .wav Or .mp3

Jan 28, 2010

I am curious about where I can find sound files that I can use in Flash CS4 or some software that may be usefull in creating/editing/converting sound files to .wav or .mp3 for use in Flash. I should probably also note that although I do have Flash CS4 I am very low on funds for software

View 2 Replies

ActionScript 3.0 :: Creating A Simple Link Between Files On Computer Using Flash Cs4?

Oct 4, 2009

a code for creating a simple link between files on my computer using flash cs4? Im trying to link sperate swf files within the folder. Im trying to make a cd and i have 5 sperate swf files that need to link to each other and back to the home page which is also a seperate swf file.

View 4 Replies

ActionScript 2.0 :: Multiple Sounds - Creating Separate SWF Files To Represent Each Sound

Sep 20, 2002

I've created a small application that links various Sound Clips to corresponding Sound variables, and the individual start and stop commands work fine. However, when I try altering the volume, the controls affect all the sounds in the movie. I'd like to refrain from creating separate SWF files to represent each sound, but I will if I have to.

View 1 Replies

Media Server :: Creating Streamable Audio Content From Short Multiple Input Files

Jun 9, 2010

My question is how possible creating streamable audio files /mp3/flv/ from multiple input files. The server is vps linux without soundcard, installed flash media server 3.5. My task is creating mixed mp3 output file.The input files are 2 mp3 file = 2 channel, uploaded to a server by the user.Controls: volume pitch, equalizer, fading that is controlled from client side flash appThe problem it should be in real time, when the user control the volume pitcher channels  etc  could be heard the result in the client's flash player on client side.For that purpose I tried to split the audio files into 1 sec pieces, and changing the splits only, and when done joining them together.

Feeding them to flash media server there was more problem:-the server streamed not the actual file but probably from cache -the streaming was always stopped after 1-2 seconds - using client side dynamic streaming /without joining the files / only the last file was played - using server side playlist playing more files was not played all the files So the question which way possible creating streamable files, or is there a better solution than splitting them.

View 3 Replies

IDE :: Packages Cannot Be Nested

Mar 18, 2009

I am a novice in ActionScript 3.0. I am trying to use the sample code from AS 3.0 tutorial but it return me an error "Packages cannot be nested". How can I fix it? Here's the sample code: fla file format.

[Code]...

View 1 Replies

IDE :: Setting Up The Packages?

Apr 11, 2009

I want to set them up with packages but tried before and failed.At the moment, I've made a folder,

C:/flash/mbl

In there, I have all my classes that I want to reuse. what do I do next? I'm using Flash CS3, would also be useful to know how to do the same in Flex Builder 3.

View 6 Replies

ActionScript 3.0 :: Packages With More Than 1 Class?

May 2, 2010

I almost have it, ( I think) but whenever I try to use a package with more than one class in it -- even the standard ones supplied in the ActionScript references, they don't work.And, if I have anything in the flash file other than an empty single frame, it breaks.  So this precludes the use of library objects, which, if you CAN use them, saves a lot of coding time..

View 3 Replies

ActionScript 3.0 :: Using Packages In Flash?

Mar 4, 2011

I am trying to develop a away3d project to learn away3d. i searched internet and found some sample codes but all of them are including packages like

package
{
....
}
 
but i could not integrate the packages into flash action script panel. I copied and pasted but it always fails.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved