ActionScript 3.0 :: Flash Components Not Working Together
Jul 19, 2010
I have 2 components in my Flash doc called
"slideshowpro (SSP)" and
"thumbgrid (TG2)"
with corresponding linkages
"net.slideshowpro.slideshopro.SlideShowPro" and
"net.slideshowpro.thumbgrid.ThumbGrid".
When I publish and upload the SWF to my website, [URL], SSP and TG2 are not linked and only SSP resizes to browser and functions in full screen mode. SSP works great but TG2 does not move. How do I link SSP and TG2 so that they both act in sync when full screen function is used and when resizing to fit browser.
I used the following AS3 for SSP:
import net.slideshowpro.slideshowpro.*;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
resizeHandler(null);
function resizeHandler(event:Event)
my_ssp.setSize(stage.stageWidth,stage.stageHeight);
} stage.addEventListener(Event.RESIZE, resizeHandler);
I have decided to give these components in flash a try and can't get it to work.I am using the following components, a Checkbox(instance name chkPrivacy), TextInput(instance name txtName) and a ComboBox(instance name cboName) on my stage.I have a "submit" button that I made.On my submit button, there is the following code:
Code:
on (release) { cmdSubmit_onRelease(); }
On frame 1 of my timeline I have the following code:
When I try to submit, I get an error like it could not find the file form.php+txtName=undefined+cboName..... something like that.I dont know how to get that checkbox thing working to send a variable out to my form.php
I 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....
I have a form and everything is components: labels, comboBox button. I have applied a text format to all the elements. I want the user to select a font from the combo box drop down and then all fonts change. However, I can only get this to work when I don't apply any textFormats to my components initially. I know in as2 you had to setNewTextFormat, is it somewhat similar with this setStyle?
Here is my code:
PHP Code:
package { import flash.display.*;
[code]....
I should point out that the font of the comboBox does change because that doesn't have a text format applied to it.
I have a main movie that loads a child movie clip. The child movie clip is a security access movie with 2 input boxes (standard input box components). When I run the child movie on its own the input boxes work fine.When I load the child movie from the main movie input boxes do not allow me to write in the input boxes. The cursor remains blinking inside the component but does not respond to keyboard.This is the code in the main movie that loads the child:
security.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, fsecurity); function fsecurity(e:ContextMenuEvent):void{var loadera = new Loader();addChild(loadera);loadera.load(new U
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?
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
I have bought some flash components that used to work in Flash 8 and CS3, but suddenly they do not appear in my components list within Flash CS4 ! I have reinstelled them with components exchange and apparently they are successfully installed , but once I enter Flash CS4 there are not.
I am mostly intersted in modyfing the components appearance in Flash (CS4) than pulling an swf file which I could include in swf-lib. Right now I am kind of forced to make it via movie clip export it, and build functionality in Haxe.Which as you imagine is not handy and timeconsuming (especially that fl.controls used to work for me very well, I barely had to modify any mechanics, sometimes was just adding functionality).
I'm developing a website in flash which have the option to be displayed in fullscreen, but the website has a video player inside which has the same functinoality. When I change the web to fullscreen mode the video is displayed instead of the main web. I have figured out that the instruction is also the same, so how can I decide which component should be displayed in fullscreen ? The video or the main web depending on the situation
I'm a .Net developer who is trying to mend my evil ways and learn the Adobe development cycle--so if this a really obtuse question--please forgive me. I was once a graphic artist and I am very familiar with some Adobe products. I am having trouble understanding the workflow as it pertains to creating custom controls, or even reskinning controls and then using them in Flash builder. I haven't really dug into Catalyst, but I am comfortable in Flash Professional and I would like to believe I could take designs from my employers graphic artists, created in Illustrator, and bring the artwork into Flash professional and create custom components, or more likely skinned components, in Flash and export them for use in Flash Builder.
Our goal is to allow designers to create vector graphics skins for controls and applications in Illustrator (or possibly Fireworks) and to be able to apply those skins to controls and custom components in Flash Builder for deployment to the web or the desktop in an Adobe Air application. Ideally the designer would be able to update the designs easily at a later point.
Flash allows for skinning to be done fairly easily within the Flash application, but I have had some problems exporting controls or even implimenting them in Flash builder. The only "video" on that workflow used a movie clip from Flash and set it's "isButton" property to true in Flash Builder...so if a designer built a simple button and designed the states in Flash, I would have to convert it to a movieclip?
If I start with a Flex ready component from the "AeonGraphical" library, and apply a new skin, how do I successfully import that into Flash Builder?
- MX skins can be created in Illustrator and Fireworks and imported into Flash Builder however the format is obsolete and the designs rasterizes and are unacceptable even before scaling.
- Illustrator files can be saved in FXG format and dropped into an assets package in Flash Builder. These images can then be easily used in FB; however mapping them to a control requires each state to be a separate image and to be manually wired to the states of a skin. This is method of skinning is feasible but not ideal...Am I missing a step or improperly importing the files?
- Illustrator files can be saved as an FXG file and imported into Catalyst. In catalyst the artwork can be associated with a control type and the states of the control can be edited in using illustrator. The catalyst file (FXP) can then be imported into Flash Builder as a project which will provide a skin for that type of control. Remaining problems include scaling (skin doesn't stretch) and referencing the skin outside the project.
So that leaves me with Flash Professional as the seemingly most competent tool for creating & skinning custom controls. Using the very detailed and helpful online documentation on customizing controls (found here) I can create custom skins and have no problems implementing artwork from Illustrator--for an application authored in Flash Professional (not so much for Flash Builder).Catalyst can let you create "one off" costum controls easily, but creating one custom skin for several buttons (for example) is not so intuative and pulling it into Flash builder yeilds mixed results...
Flash is in and of itself a rich IDE and could be used to create an event driven application for AIR, but its not really geared to that user triggered, event-driven development model. I have been able to adjust my mindset to create successful prototypes of form based/even driven application that take advantage of Flash's powerful features, but some of my coworkers are having trouble adjusting their Microsoft Mindset (despite exposure to the remarkably "derivitaive" Expression studio) and strongly prefer the Flash builder coding environment.
Are there any resources; web pages with examples or step by step walk throughs, or videos which follow a process of taking a design from a grapjics application and using it to create a custom skin--and applying it in Flash Builder? The process is fairly straitforwards in Flash Professional--but my team and I are having less success in Flash Builder.
As a longtime user of Adobe products, I have by nature of that association become the inhouse Adobe Evangelist and not only have I taken the position seriously--I have managed to convince upper management to abandon WPF and Pyxus (for mobile applications) and develop AIR applications which will span platforms and lend elements to mobile AIR applications. They have even initiated a program which will likely result in our delivering Andriod based tablets to our dealer networks preloaded with AIR applications for business.
While I know know this is all "do-able" I am working double overtime to become competent enough to make this happen...but the workflow between Flash Builder and Flash is only sparringly covered online and the information lacks details...I have found that browsing the online videos sometimes turns up better results than searching (doing "Google Gymnastics")--for example Flash Downunder series has great stuff that doesn't always show up when searching Google...And we joined Lynda.com, and while they have lots of great stuff, they need to develop more stuff on CS5 specifically...
Where can I find information on creating/applying custom skins from Ai to Flash Builder and all points between? (I'll buy any recommended books as well...) Of course we have agressive deadlines and unfortunately there is no experienced Flex/Air developer on our staff (yet)...The "Classroom in a Book" series on Flash and Catalyst have only just started shipping...is that where I should look? Are there any online resources that address both skinning and creating custom components for AIR applications in Flash and/or Catalyst?
I have a flash project, its working fine in local system, but the same file is not working in live here is the link of the site, its showing blank page, the flash contents are not loading... [URL]
I have a flash project, its working fine in local system and checked this file with uploading in someother websites, its working fine there too, but the same file is not working in live here is the link of the site, its showing blank page, the flash contents are not loading.URL...and here the same file which i have uploaded it in other server its working fine.URL...
I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.
i have a "swf" file which is picking url from xml & displaying the image, when i tested it locally it works fine, which means it picks up URL from XML & displaying corresponding image. After i uploaded it on server, it doesn't show anything.
I have a project in flash cs5 with some buttons and textInputs. Ive linked my project up with Flash Builder and now want to access my textInput from within my Flash Builder source. i gave the textInput instance name of "txt1" in Flash CS5 but when i try to reffrence it in my Flash Builder project there is no option to set it as type TextInput. I can only set it to type MovieClip and when i do that and publish it tells me cannot convert from fl.controls.TextInput to MovieClip.
first I tried to install the NewGrounds Ad component for AS 3.0 which delivers as an .xmp file. I doubleclicked it and in the Extension Manager it's listed as active under Flash CS5. I restarted flash, but the component does not show up in the components list.I then tried to install the minimal components fromwhich are delivered as an SWC. I went to the ActionScript 3.0 settings in flash, went to the "library path" tab and clicked browse to swc to select the SWC file. but these components don't show up in the components list either.
Ok so I am a complete noob at flash [URL]..I am trying to change all the purple to blue and trying to get rid of the text with the link but I still want it to link to them pages
I have tried to change the colors in flash for each one but it has no effect do I have to create a new action script for it if so what do I need to put in there?
I have a custom mxml component that contains a couple of images and 4 buttons. The component file already contains a clickHandler for each of the buttons. I need to be able to either access the clickHandler or create another function and attach it to those buttons from within my Main.mxml file. Should I add to the original clickHandlers? if so, how do I apply the method to my Main.mxml file?[code]...
I have an issue with applying backgroundColor to a TextInput component in Flash. I have a MoveClip called LastLayer; in that Layer i designed the TextInput by using components.Now I want to add the background color for the TexInput. How can i add the background color? txtUser is the instance name for my TextInput component. I tried this code, but it does not work:
i'm attempting to write an mxp, and have found the folllwing links:[URL]i've started to read and sort of understand how this all comes together but can anyone out there point in the direction of further tutorials or at least advise on whether i'm on the right track on not
Just wondering if anyone out there knows how you can keep the components in Flash from loading on the first frame. I want to use a preloader but it is defeating the purpose when I insert a component on a later frame because it all loads in the first frame preventing my preloader from showing right away. I have tried changing the linkage on the component to not export on the first frame,
I am trialling Flash Builder 4 Premium.I'd like to know if it is possible to use components designed for Flash (e.g.URL... amongst many others) in Flash Builder 4? How can I import them? By import, I also mean they are first class citizens like the out-of-the-box Flash Builder 4 components.
I created a 9-scalled background in Flash CS5 which is working fine in Flash CS5.But when i imported it as embeded graphic in Flex, and change dimensions in runtime, 9-scalling doesnt work.Here is my code.
Basically I've created a simple flash form which is linked to a PHP processor to email to a client. I have both simple text input fields, and the ComboBox and DateSelector components from the flash CS3 menu.
Inputs from the text fields work fine and appear in the emailed form, I have set the var fields on these. However the ComboBox and DateSelector inputs don't appear, and i cant figure out how to set the var fields on these. How do you get the text/whatever is chosen from these components to actually appear in the emailed php form!?