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


Similar Posts:


ActionScript 2.0 :: FLVPlayback - Setting Path In Component Parameters

Oct 4, 2011

I have a video which has an flvplayback inside. I have been using it for others flv. But with these 3 flv, when I set the path in the component parameters, flash shuts down. I have used aftereffects, media encoder to convert them from mov and avi to flv.

View 0 Replies

ActionScript 3.0 :: Setting Parameters For A Loaded Swf

Jun 6, 2010

I am trying to load an external swf (which, come to find out, does not include the background color of the loaded swf) into a movieclip. It seems to be pretty easy. But the movieclip I am loading it into is smaller than the swf I am loading. Is there a way to specify size parameters? In other words, is there a way to scale the swf down so that it fits into the movieclip?

[Code]....

View 2 Replies

Data Integration :: Setting Parameters Flash From Php?

Apr 6, 2007

I would like to set these parameters in flash using a php/mysql database :

button1.maxQuantity
button1.name
button1.option1Name
button1.option1Value
button1.price ;

How would I go about doing that?

View 13 Replies

Flash :: Setting Default Parameters In A Class?

Apr 16, 2011

quick question:Is there a better way to do this?

public class ribbon extends Sprite {
private var fallAmount,taper;
public function ribbon(FallAmount=50,Taper=0.2){
fallAmount=FallAmount;
taper=Taper;
}

View 2 Replies

ActionScript 2.0 :: Zoomable Map Within Frame - Setting StartDrag Parameters?

Jul 13, 2004

I've got a zoomable map within a frame, and of course I don't want it to be dragged out of view, right? So, how do I set the startDrag (L,T,R,B) parameters when it's a different size when it's enlarged (zoomed)?

if ( between Size>100 AND Size<200) {
startDrag(this, false,400,150,600,250);
} if ( between Size>200 AND Size<400) {
startDrag(this, false,500,250,500,150);
}

View 4 Replies

Flex :: Passing Parameters To Component?

Apr 20, 2010

I've got 2 files, my Application and a custom component. In my component I have a httpservice and a string named _requestUrl that is bindable. The httpservice uses this.

<mx:HTTPService id="srv"
url="{_requestUrl}"
result="parseHttpResult(event)"

[Code].....

View 1 Replies

ActionScript 2.0 :: Custom Component Parameters?

Oct 4, 2010

I'm trying to figure out how to set a custom button component's parameters dynamically using actionscript. Can't seem to find any documentation on this. My custom button component has parameters named "Item ID", "Item Name", and "Item Price".

View 1 Replies

ActionScript 3.0 :: Adding Component Parameters / Properties?

Feb 17, 2009

I've exhausted searches looking for how to add properties to the component properties panel for a custom AS2 and AS3 components.This Adobe Livedoc suggests using Inspectable tags before variables:[URL]I've also tried adding the components via the Component Definition dialog in the library.Both methods work in that they produce an .swc, but neither adds the properties into the Component Properties.

View 1 Replies

ActionScript 2.0 :: Custom Component And Parameters(inspectable)?

Nov 19, 2007

I have made a SWC that works as it should but im trying to add in a userdefined parameter

Code:
class blah{
var myparameter

[code]....

View 1 Replies

ActionScript 1/2 :: Passing Video Into Flv Playback Component With Extra Parameters?

Mar 9, 2010

I've been given a video url that I want to pull into an the flvplayback component. The url for the video I've been given is:The problem is when I set the contentPath with the above url the component won't load the video with the extra parameters ?var_log=102|441100001-1|- added as it says the path must end with .flvI am asumming that the video provider needs this extra var/parameter to be called in order to track the number of video requests, in which case I will need to keep this in.

View 2 Replies

Flex :: Send Parameters From A Component To Main MXML Application

Aug 8, 2011

I would like to send variables or parameters from Component to Main (MXML) Application. Like my component is FileUpload.mxml and would like to forward the uploaded file details from FileUpload.mxml to Main.mxml.

I tried the following procedure :

com:FileUpload id="fp"

to get the reference for the FileUpload component, however, I am unable to get the variables from the FileUpload.mxml file.

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 :: 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

AS3 :: Setting Scroll Position For ScrollPane Component?

May 19, 2009

I ve got a series of frames, each with its own instance of a scrollPane called actionText. When navigating from frame to frame I want the vertical scroll position of actionText to reset to 0.For some reason these separate instances of the component are inheriting scroll positions from one another,for example,if I scroll to 50% in one frame, jump to a new frame with a new instance of actionText, that new instance starts at 50%, not 0.

I should be able to set the scroll position by actionText.vPostion = 0 but I get Position is an undefined property of the object actionText .Roll over either the star one or star twotabs and select any action item, scroll the text down (actually a pdf converted to swf), then navigate to another action item and the new scrollPane does not default to 0. Only stars one and two are coded.[url]......

View 3 Replies

Flex :: Setting Variables During Component Initialization

Oct 25, 2010

I am loading a component which makes a HTTPService call to get data that will then be used to set certain variables in the component. I make the HTTPService call in an init() function (for the initialization event) and then set the variables according to the data received in the HTTPService result handler. However, the variables are still null at both the initialize stage and at the creationComplete stage. If I try and read the variables in a creationComp() function (for the creationComplete event), those variables are still null. Is this correct?

I guess I don't understand the flex initialization cycle very well. When are those variables actually set and available to be used? I need to manipulate those variables automatically after the component loads. Is there an event that comes after creationComplete that is appropriate or some other way to approach this? I am using Flex 3.

View 2 Replies

ActionScript 2.0 :: Setting Property Of Duplicated Component?

Aug 31, 2004

ive got a radiobutton component on my stage named radio1. I need to duplicate it and then change a few properties, but i cant seem to get the path/naming right. This is my code:

Code:
i=2;
radio1.duplicateMovieClip("radio"+i, radio1.getNextHighestDepth(), {_x:20, _y:20});
_root["radio"+i].setLabel("test");
i++

if i use a constant name instead of "radio"+i it works but the ["radio"+i] seems to be the problem, could someone help me with this? (using flash mx)

View 7 Replies

Professional :: Setting A Poster Frame In The Flv Playback Component?

Jul 19, 2010

I just spent 2 hours scouring the web for the answer. All I'm seeing is a whole lot of "how do you do it" and a lot of "do a google search for it'. I found a tutorial for CS4 that looked promising yet when I tried it in CS5 the damned Preview attribute (or whatever) just sits there looking at me. You're supposed to be able to click on it and choose a frame. I click and double click and nothing happens.

View 3 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 :: Flex: Setting A Style That Is Not Supported By A Component

Sep 2, 2010

I am wondering if flex enforce style settings and throws compilation errors if a style that is applid to a component that is not supported by it. Has any one tried it before ?

View 1 Replies

Actionscript 3 :: Setting Source Of An Image Component Not Working?

Dec 10, 2011

I'm pulling in a xml-file with just one result in it. One of the nodes is picture, which contains a link to a picture. This is the xml-file:

<artist>
<id>502</id>
<name>Bad Religion</name>

[Code]....

I've tested the url, and it's correct. This is how I try to bind the url to the image instance (artistPic), but it's not working. Displaying the artist name does work.

var artist:XMLList = new XMLList(event.result);
artistPic.source = artist.picture;
lblArtistName.text = artist.name;

View 1 Replies

ActionScript 3.0 :: Setting Listener To Respond To FLV Component On Resize

Jan 11, 2010

I am trying to set a listener so that I can respond to an flvComponent when it resizes etc. I am not uses any home made classes. I have stripped the code right down to this, and it still wont work! Have dragged a flvcomponent onto the stage and given it the instance name myVideo.

ActionScript Code:
stop();
myVideo.addEventListener(AutoLayoutEvent.AUTO_LAYOUT, fred);
function fred(e:AutoLayoutEvent){
trace ("hi from fred");
}

when I test I get "type was not found or is not a compile time constant:AutoLayoutEvent". I can do all sorts of processes like changing flv being played, moving it around etc.

View 2 Replies

ActionScript 2.0 :: DataGrid Component - Setting Stage Width?

Feb 29, 2008

How to get my data grid working so that it is set the stage.width - 250; therefore it would scale with the window when minimized.

View 3 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

Flex :: Setting Font Size Of Header Of TitleWindow Component?

Mar 7, 2011

How can I set font size of title property (header) in TitleWindow component? If I use fontSize property, it sets the font size for all components in TitleWindow, which is not what I want. I only want to set it for the title. I'm using Flex 3.

View 1 Replies

ActionScript 2.0 :: Setting Component Properties Of Dynamically Created Movieclip?

Mar 2, 2008

I created a movie clip symbol with a user interface in it, using the standard components. It contains various components that I draged on the stage. I named the instances (e.g titleLabel). Then I created an ActionScript class for that user interface. Under the linkage properties of the symbol I specified that class. In the class itself, i declared the attribute "var titleLabel:Label". I thought this would be the same instance from the symbol? But: Trying to set the text of the Label AFTER the movie was dynamically added to the parent does not work. I cannot access any properties.

Here is the example:

My Class for the user interface:

Code:
import mx.controls.*;
class Information extends MovieClip {
var titleLabel:Label; //this is the same instance name as in the symbol

[Code].....

View 1 Replies

ActionScript 3.0 :: Flash - Setting The Color Of The Text Of A TextInput Component

Oct 22, 2010

I'm having trouble setting the color of the text of a TextInput component. I know there is a TextField within it, I'm trying several methods, but none works:

[Code]...

View 1 Replies

Flex :: Setting Skin Class On A Host Component But It Is Giving Null Point Exception?

Apr 19, 2011

ADOBE SYSTEMS INCORPORATED Copyright 2008 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the license agreement accompanying it.

[Code]...

View 1 Replies







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