ActionScript 3.0 :: Custom Component Inspector Not Setting?

Apr 21, 2009

i never use compenents, and was recently asked to build one. Ha. Anyway, i have a working class that does all i expect, however, when transforming the class to a component, i am having trouble getting the inspector to actually 'set' the variables. below is a very general idea of what i am doing. All the variables show in the spector, but only the default values are working at runtime.

[Code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Add A List To The Component Inspector?

May 10, 2010

I'm creating a component which requires the selection of one item from a list of items in the component inspector. If you look at the checkbox component, you'll see a tag called labelPlacement which allows the selection of one of four choices. I would like to reproduce this for my component.

I do not need to display a list using my component, I just need to allow the choice from a list.

View 1 Replies

Flex :: Setting Content Area In Custom Component?

Dec 11, 2009

I am trying to define the content area of a custom component that extends mx:VBox. The component has predefined headers and footers (visual children) and I want to set the area in the middle for adding children to the component. The component will be used like this:

<custom_component>
<mx:button/>
</custom_component>

How would I set this content area?

View 3 Replies

ActionScript 3.0 :: Read Component Inspector Values?

Sep 1, 2009

I have a created a component, and I can get the value in component inspector(code is in timeline)

But now I want that code to be in .as file.

how can I get access to the component in the stage and how to get its parameter values.

View 1 Replies

IDE :: Inspectable List Values In Component Inspector?

Jul 14, 2010

I have them appearing fine in the component definition panel, but the values entered here seem to be overridden by the component inspector and the var doesn't appear here unless I enter it manually and then there's no way to make it a list.In my class I have:

Code:
[Inspectable(defaultValue="controls", type="list", enumeration="controls,noControls")]
public var controlValue;

[code]...

View 1 Replies

Flex :: Setting Up Content Children For Custom Mxml Component

Dec 9, 2009

I am trying to develop a custom component to act as a divider.

[Code]....

I would like to use this component to assign objects like this:

[Code]...

Unfortunately, this does not work. I get a compiler error saying: In initializer for 'left': multiple initializer values for target type mx.containers.Canvas.

View 1 Replies

Actionscript 3 :: Setting A Default Skin For A Custom Component In Flex 4?

Aug 18, 2010

How do you set the default value of skinClass for a custom component in Flex? I've extended the DropDownList with my custom component, but I would like to specify a default skin to go with it instead of always setting the skinClass value for each instance.

View 1 Replies

Professional :: CS5 Component Inspector Panel - Slow Performance

Aug 31, 2010

I'm curious when Adobe are going to repair the performance issues inside component inspector panel in CS5? Scrolling through the properties of some components is ridiculously slow, 486 like slow...

View 2 Replies

ActionScript 1/2 :: Component Inspector Within Schema Called Formatter?

Feb 21, 2011

I found that there is a setting in the Component Inspector within Schema called Formatter. I am wondering if this is what I use, and if so how to format for time such as HH:MM:SS ? Or if I have to use something else?

View 1 Replies

Actionscript 3 :: Why Won't Visual Elements Display Inside Custom Component Extended From Another Custom Component

Sep 6, 2011

I created a custom MXML component, TurboContent, that extends the NavigatorContent class:

<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

[Code].....

In this case, the 'myButton' component never shows up, but all the elements of the base component do (3 buttons and a datagrid).

View 2 Replies

Put Scroll Of Tree Component In Left Side Of Component Or Creating A Custom Scrollbar For Tree Component

May 20, 2009

is there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component

View 13 Replies

Flex :: Put Custom Code In A Custom Component In Flash Builder?

Dec 11, 2010

In the main file, I would write[code]...

But if I want the component to have that behaviour innately, where do I write it in the mybutton mxml file to have it reference itself?[code]...

View 2 Replies

Css :: Add Custom Style Property To MXML Custom Component?

Jun 22, 2011

I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :

[Code]...

My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.

View 2 Replies

Flex :: Dispatching Custom Event From A Custom Component?

Sep 8, 2011

I have a custom Flex 4.5 component (to be used in a List) -

Game.mxml (represents a clickable playing table in a card game):
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer [code].......

But I never see the "game clicked: " trace. Does anybody please know why? I'm probably missing something minor, because I can see the "Clicked: 8946" trace.

View 3 Replies

Flex :: Disptaching Custom Event From Custom Component?

Feb 16, 2012

This is similar to the question asked here. I am dispatching custom event "ShopEvent" but i am getting error "Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent"Note: Error is thrown from the parent custom component (3rd code snippet), I have added more details thereThis is my custom event. See the first constant, I copy pasted the event name in custom components.

package com.events
{
import flash.events.Event;

[code]......

View 3 Replies

ActionScript 3.0 :: Custom TreeItemRenderer Removes Custom Component?

Jan 16, 2009

I have created custom TreeItemRenderer in which i am trying to draw colored Hbox bar at each node except root. Intially when i click on root node it opens first child node with bar but when i open leaf node it does not showing bar and removing existing bard from other few child nodes. Its calling itemrenderer on mouseonver eventhough i have disabled.Attaching Code here

package Adodbe.renderers
{
import flash.display.DisplayObject;[code].....

View 0 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Pass A Variable From Custom Component A Different Component?

Dec 8, 2011

In my custom component (Login), I create and set a variable userName, it is bindable: [Bindable] private var userName:String; userName = txtUsername.text; I need to pass that variable to a different custom component (Overview), here is the code of the viewstack:

[Code]...

I've searched for a way, but I haven't found one that does the trick.

View 1 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

ActionScript 3.0 :: Setting Custom Font TLF Text

Mar 7, 2011

How can I set a custom font while creating a link with TLF text? Here is my code:

[Code]...

Everything works fine but I would like to use:

- Helvetica Neue Bold as my custom font
- Add tracking or letter spacing
- Embed the font in my swf

View 0 Replies

ActionScript 2.0 :: Custom Drag And Setting Boundaries?

Aug 22, 2009

I'm using a custom drag for easing properties:

ActionScript Code:
var yMouse:Number;
var xMouse:Number;
onEnterFrame = function(){
yMouse = _root._ymouse;

[Code]...

As you can see, I'm trying to prevent it from passing _root.block by only allowing the mouse's Y to be followed when it isn't passing _root.block. The only problem is that once it hits _root.block, there's no way to drag it back from _root.block. It gets stuck. Is there a better way to prevent it from passing _root.block but allow it to be pulled back from _root.block

View 1 Replies

Flex :: Setting Multiple Styles To A Custom LabelItemRenderer?

Nov 19, 2011

I made a custom LabelItemRenderer, inside it I want to give some additional style to a StyleableTextField. How can I do it without losing inherited styles? I tried different things, but always got an error saying antiAliasType must be set.

s|List.customListStyle
{
fontFamily: Arial;

[Code].....

How should I set my text field style, and then set it in the createChildren method?

View 1 Replies

ActionScript 2.0 :: Setting An Array As Part Of Custom Class

Sep 1, 2006

i am trying to make a custom class that has a small number of variables but I can't seem to get the array part to work.[code]I can't seem to get it to work. I can set and access the other variables OK its just the array thats giving me problems.

View 2 Replies

ActionScript 3.0 :: Custom Class Setting Properties Through MXML

Mar 10, 2009

I have just created a custom AS3 Component to use in an MXML project.[code]but then i lose some re usability.What do i need to do to be able to set properties from mxml?

View 3 Replies

ActionScript 2.0 :: Reference Preview From Inspector?

Jan 6, 2009

I've built a component with custom inspector and preview file. I was wondering haw can I call an embedded function in preview from inspector?

The problem I've got is when I open two new FLA files and put the component in each file the preview doesn't refresh itself while switching between active windows (I have to make a change inside the inspector to update the preview)

View 0 Replies

IDE :: Filters Not Working In Properties Inspector

May 21, 2009

I drew a logo and made it a movie clip but I can't get the filter in the property inspector to work correctly. The logo is blue and the shadow shows up blue and the bevel won't work.

View 1 Replies

ActionScript 2.0 :: Setting A Component Variable

Mar 23, 2009

How do I set/access the "Text File" variable as shown in the two pictures. _root and _global don't work.I also tried to access it from _root.CrosswordPuzzle.cp_words_textfile.I don't get components.

View 1 Replies

AS2 :: Setting PlayheadTime Of MediaPlayback Component

Nov 8, 2010

I'm building a custom Audio Player. The whole thing drives a MediaPlayback component. I have a scrubber set up that moves with the progress of the song. I want to be able to click and scrub with it though. Currently I have it set to set the playheadTime equal to the percent distance the slider is dragged to times the totalTime of the playback component. After the release of the slider I trace out the playheadTime and it seems to be fine, but I can't get it to resume playing at all. Here's the code in the controller:

var totalDistance = bar_mc._width - slider_mc._width;
var wasPlaying = false;
this.onEnterFrame = function(){

[Code]....

View 1 Replies

ActionScript 3.0 :: Setting Parameters Of A Component?

Mar 12, 2009

I'm trying to dynamically set some parameters of a component using AS3. The component has a parameter named "imagePath". I want to set this to a variable named "pathVar" This is where i'm at.

Code:
var pathVar
pathVar="images/folder1"
imagePath=pathVar

This clearly isn't working.

View 1 Replies

Media Server :: Setting Custom Virtual Directory In VOD Application

Jun 15, 2010

I am running Flash Media Streaming Server 3.5.1 r516 on a CentOS system. I also have WHM/cPanel installed on this system. My scenario is this. We have a large number of MP4 media files that are currently located in a web root directory created by cPanel: /home/mediafa/public_html/fullservices. These all work without a problem when doing progressive downloads. However, we also want to make them streamable with FMS as well. From the documentation, I should be able to create an entry in the /<fms install dir>/applications/vod/Application.xml file to look up files in that folder.

Here is my VirtualDirectory block:
<StreamManager><VirtualDirectory>
<!-- Specifies application specific virtual directory mapping for recorded streams.-->
<Streams>/;/home/mediafa/public_html/fullservices</Streams>
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
</VirtualDirectory></StreamManager>

However, when I try to connect to a file that is in that directory, I get a 404 error in the access.00.log file. I've tried to change the owner/group on the fullservices folder as well as the owner/group of the target file to the fms user/group, but I still cannot connect to it. The connection address is rtmp://<ipAddress>/vod/mp4:1005-03m_256k.mp4.

View 1 Replies







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