ActionScript 3.0 :: Make Components/SWC Files?
Jun 5, 2009How do you make components/SWC files? Are they same thing? I would like to build an API, but I don't know where to begin. Hopefully I am making sense.
View 4 RepliesHow do you make components/SWC files? Are they same thing? I would like to build an API, but I don't know where to begin. Hopefully I am making sense.
View 4 Replieshow do you properly handle namespace collisions in SWC files if one SWC has fewer classes from that namespace than another?I have a rather large Flash application which I'm building in Flash Builder (because coding/debugging in the Flash IDE is.not good) and I've got a ton of external SWC files which I'm linking in to my application. This has worked well so far - the file size is on the large side, but it's a lot simpler than loading in SWFs, especially since I am extending most of the classes in each SWC and adding custom code that way (it's a very design-heavy app.) The problem I'm having is when I have Flash Components, like ComboBox or TextInput, in more than one SWC. Whichever SWC was compiled last will work fine, but the others will fail with errors like the following:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@1f21adc1 to fl.controls.TextInput.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
[code].....
I've been researching components, ComponentShim, etc. but I'm running up against a brick wall. I thought it might be the fact that some of the components had their skins modified in the source FLA, so I tried replacing them with the default skins. How can I ensure that I have the components imported and available to all my classes, yet still be able to skin them and include them in my various FLAs?
How do I get round the following error: Access of undefined property pMatrixBack . How do I access this component from within the ascript file?[code]...
View 2 RepliesI have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.
I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.
I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.
PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc
PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.
I am trying to understand how to make components, I have found this:[code]How would I use that in my flash? I don't understand.. I tried doing trace(intHeight); thinking I would get 100, but all I got was NaN.
View 9 Repliesiam streaming my web cam to FMS .... i have got a latency of 1 -2 second,,,,,, What should i do to reduce the latency,,,,,, is ter any change i can make in FMS files(xml files) in order to reduce the latency......
View 6 RepliesI'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.
View 2 RepliesI am using flashcs5 to make a standard component, the component is a rectangle box, i have set three public properties by inspectable tag.but when export to the swc file and using to a new flashcs project that only one property is valid. [URL]
The following code is binded to rectangle box,
package com.iyoya.ui {
import flash.display.MovieClip;
import flash.filters.BitmapFilter;
[code]....
After browsing the internet for a while I found everyone shows you how to make a custom preloader with your own graphics which is all fine and good but what about the people who just want to use the components and be done with it? I know I would have to use the UILoader and another
component. How to use the necessary components to make a preloader? I have quite a big swf and I need one.
I usually write something like this:
<mx:VBox height="100%" width="155">
<mx:Button label="b1" width="100%"/>
<mx:Buttonlabel="b2" width="100%"/>
[code].....
when I inserted the code some of the symbols on stage disappeared. This did not surprise me because I did not understand the code, but then when I deleted the code it did not revert back. I dismantled the frame and dragged new symbols on stage and I still could not see them when I tested the movie. Checked to see if any code was written anywhere else but could not find any. The only code I had was a gotoAndStop which I was using simply to view that specific frame. when I removed the gotoAndStop finally the images appeared. If I placed a stop on the frame I wanted to view, then it worked fine but a gotoAndStop did not work as I was left with a white screen. Finally I had to recreate everything in a new document and then the gotoAndStop worked, but I have noticed that if I drag certain components on stage then I have a similar disappearing act.
View 5 RepliesHow can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application?I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make sure they both load at the beginning, so that when I change to B I don't have to wait for it to load?
View 1 RepliesI have a vertical tab-bar with 4 items with different sub tabs. All the four items use data from a single xml file, which is a big file. When the user clicks on a tab, while the data is being loaded this error is shown. TypeError: Error #1009: Cannot access a property or method of a null object reference. I want to disable all the tabs while the xml file is being loaded.
View 3 RepliesHow can I make a global varaible ArrayCollection that I can call from differint classes/components in flex?
View 1 RepliesI am working on a text adventure game which will have at least a few components (a text area for narrative and text input for user input) on the stage at all times. Therefore, I have created those components statically through Flash's WYSIWYG design environment. I gave them instance names "myTA" and "myTI" respectively. I was able to get my main class (the document class for the stage) to interact with them (dynamically adding text one character at a time like a typewriter at runtime), but other classes in the same package don't seem able to recognize the stage components. Below is the relevant [code]...
View 5 RepliesDo you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.
View 1 RepliesI am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....
[Code]...
Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?
<com:MyComp1>
<com:MyComp2>
<com:MyComp3>
[code]....
how i can use actionscript component code in mmxl components,as in actionscript components we use classes ,but in mmxl component we can not use classes function, so how i can use actionscript component code in mmxl component
[Code]...
but i cant use this code in mmxl components how i can use public class DialogTitle extends HBox implements IBindingClient in mmxl component code,what are the way to use it,sorry i am newbie if it is silly question
Im trying to make a menu for a web page using menubar and menu components, is ther any way of making os specifing that the menu can get drawn out of the canvas, since i need that the bar is thin for getting in a space betwen to image headers.
View 1 RepliesI'd like to make a series of components into a solid, consistently repeatable object. For example, suppose I have a "notification" template that I want to add to a notifications area every time something new happens. This template includes an icon (Image), text (label), and some space between these two things.
I want to take a template like that and make it so I can invoke it with a function like add_notification("icon", "text"). How would I go about doing that?
1.) Is it possible to make a file in Flash at 1280 X 720 and so I can import it into Final Cut Pro and edit it together with other video shot at 720?
View 2 RepliesI have Adobe Master Collection 5.5. I am not much of a fan of Flash, however I have a project that requires me to build a Flash object/file[code]...
View 2 RepliesI'm actually an artist who happened to stumble on flash and have been subsidizing my income with animation projects for some time.My question, query, bane of my existence is the automation of my e-cards.Many many people ask how they can send my cards. Up to now I have been manually customizing cards. whew.I would like to make the .swf files fully automated so people can fill out the "to, from, text message" and e-mail a notice to a customized animation.Is there a generic code I can cut and paste? Beyond basic html code,(seen on my site)
View 3 RepliesI have a webpage that I have a video linked to play when a user clicks on it - simple enough. With flv (v9 and below) videos, I have no issues serving it up to the user and them viewing it - with a f4v file this is a different animal, nothing happens, the web page player sits there spinning like it is going to do something and never does, like it cannot read or understand the video file.
how to make f4v videos play in a web page? My flv's are working fine, but cannot seem to get the better compressed f4v's to work right. I do not have DW CS4 or I would have tried to see how the code worked there. I created these videos in Premier Pro and exported via the Adobe Encoder in CS4. The video is beautiful for the same size and quality compared to the hazy flv's, so I really want to use the f4v's, I just cannot seem to get it to work.
I want to make 3 animated gif files for all 3 stages of button. If I use transparent png files when creating gif Im gonna preserve transparency of png files, my question is if I import transparent gif animation to flash and convert them to button stages are they going to keep their transparency. If somebody know how to do this please help.
Gif animations is going to look like this: metallic looking orb rotates on transparent background on x axis from left to right side of gif file, what I need is that when I upload swf file containing this gif to internet, you can see only metallic orb and everything around it need to be transparent so you can see web page background. It should be looking like flash file is part of the background and interacting with it.
How would you go about accessing a movieclip inside another movieclip using a class file?ould you have to export every single part of a movieclip? Can it be done by just exporting the main movieclip?
View 2 RepliesI'm trying to get this xml 'image_loader' (similar to kde wipes) rotation thing working for this page i'm working on. i have to make some adjustments with the path to the files according to how it is going to work on this site i'm working on. i'm not sure how or where to change the path in the actionscript to get to the path.
i've included a folder called '- example working without paths' which is to show how it is supposed to look. this works when everything is in one folder. but, when i setup the site structure the swf can't find the xml or the images to load...so i'm not really sure how to fix it. the 'root.hml' in the root folder represents the main html file that i'm using for the site.
I was just wondering if there was a simple way to make external code files in actionscript 1.0 and then call the files into your program with a simple line of code like you can in the newer versions of actionscript.
View 1 Replieshow do i make flash save to my .txt files, i'd like this in asp, php annoys me. Okay just use the example: my variable i want send is a impute box (instance box1, var box2). So... if you could just attach it (fla, txt and asp files)
View 3 Replies