Sorry To Bother You With Another Component Question...but This One Is A Bit Different
I have somewhat of a simple survey dillio that I am attempting to create in flash using some components that come loaded w/ flash. The problem is that certain components (only checkbox's and a combobox so far) move from thier placement on the stage in development mode. I have tried assigning them positions via actionscript, which didnt work, and also I have tried deleting them all and trying again. I am sorry for the bother, but I have really tried to figure this one out on my own and nothing is happening for me. Any help out there?
FlashKit > Flash Help > Flash MX
Posted on: 06-12-2002, 03:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Sorry To Bother You
i tried to upload a movie but i need help... probably a really stupid question: what is 'rrggbb format'?
A Little Bit Of Bother
Howdee peepz! Its been a while since I posted :(
I'm building an .ap with a cursor preloaded like windows but I can't it to work properly.
This is on the _root
Code:
//
// BUTTONS //////////////////////////////////////////////////
////////////////////////////////////////////////////////////
image1_btn.onRelease = function():Void {
fStartPreload("load/beach.jpg", "content_mc.mcholder");
};
//
image2_btn.onRelease = function():Void {
fStartPreload("load/building.jpg", "content_mc.mcholder");
};
//
// LOAD FUNCTION ////////////////////////////////////////////
////////////////////////////////////////////////////////////
function fStartPreload(sURL:String, sTarget:String):Void {
cursor.url = sURL;
cursor.target = sTarget;
cursor.gotoAndPlay("egg");
trace(sURL + " " + sTarget);
}
and this is inside the cursor on a frame marked "egg" (for egg timer)
Code:
stop();
this.onPress = null;
//
this.target.loadMovie(this.url);
//
onEnterFrame = function ():Void {
var bytes_loaded = this.target.getBytesLoaded();
var bytes_total = this.target.getBytesTotal();
if (bytes_total > 0) {
var percent_loaded = bytes_loaded / bytes_total;
preloader_mc.value = percent_loaded;
if (percent_loaded == 1) {
delete onEnterFrame;
play();
}
}
};
thanxInAdvance();
.
Button Bother
Hi, what am I doing wrong?
please take a look at http://myweb.tiscali.co.uk/just4tests
sorry I haven't done the preloader yet.
the second hand that you see(the cursor)is loaded into the movie
with the loadMovie command. My problem is I cant get it to interact with the rest of the movie. For example clicking on the buttons has no effect.
could anyone please let me know what script I am missing.
Thanks for your help.
[CS3] Why Bother With Packages?
I know this a real noob question but I can't seem to get an answer in plain english from anywhere. I've been creating games in AS3 with .fla files. I type all code on the one frame, no imported packages or custom classes at all.
I've been avoiding document classes, custom classes and packages for a while now. The process appears to be a very round-about way of doing what I already do. The way I understand it, at least two files are needed (the .as file and the .fla) I need to import the .as into the .fla and the .as needs to be saved every time I want to test the movie.
I suspect I'm missing something here. Please enlighten me. What are the advantages of going to trouble of setting up packages and classes?
Rulers ? Why Does Flash Bother
why is it when I click on an object on the main stage the x and y axis are related to Rulers but an object in an MC has no relevants at all?
If i select an object in an MC and it is smack in the middle of my stage, the info pallet keeps telling me that it is 6px away from the edge. what is with that. whats the point in having rulers if it doesnt rated to Levels???
Am I missing something here?
DON'T BOTHER, Problem Fixed.
.
Attach Code
Hey all,
We've got a client's PHP website that we're converting to ASP(*sigh*). The big challenge is that we've got a Flash navigation movie that's being fed PHP page session variables for highlighting selected nav items.
Here's the PHP code:
<?php session_start(); $_SESSION['page']='music'; ?>
And here's the corresponding Actionscript:
_root.home = page;
if (_root.home == "music") {
trace("music");
_root.subnav.gotoAndPlay("music");
}
else if (_root.home == "radio") {
trace("radio");
_root.subnav.gotoAndPlay("radio");
}
Does anyone have an ASP solution that's similar to this?
Edited: 12/27/2006 at 01:10:55 PM by oskom
I'm Just Curious About Something So Don't Bother Comig In This Room
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Untitled-2</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="260" HEIGHT="70" id="Untitled-2" ALIGN="">
<PARAM NAME=movie VALUE="Untitled-2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Untitled-2.swf" quality=high bgcolor=#FFFFFF WIDTH="260" HEIGHT="70" NAME="Untitled-2" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>
Spot Of Bother Loading External Swf
Oh dear oh dear
I need to load an external swf into a movie clip.
the path is:
_root.mcInfo.mcPanel.mcGallery1
I've tried:
loadMovie("gallery.swf",_root.mcInfo.mcPanel.mcGal lery1);
with no success.The movie loads, into the mcGallery but decides that it wants to be bigger than the mcGallery. Doesn't matter if I make it the same dimensions as the mcGallery.
What am I doing so wrong
Regards
Simon
Don't Bother Reading My Last Post Just Read This One
Hey, if you answered my last posts, thanks but you didn't need to. i think it would be better if someone was to send me the Fla file of a pretty complex movie. Doesn't have to be to complex but i would really appreciate it if someone was to send me something,
So if there's anyone out there that is willing to do this that would be good. And no i'm not going to use it as my own or anything like that.
Thanks in advance. cyaz
Loadmovie(image...)... Oh Bother, A New Page
k, sorry if i seeem a little blunt or pokey... its late.
i have a button which is in a movie clip; this clip is duplicated to a number of records...
when the button is pressed it will load its target in a new window instead where it is directed.
evening giving it a direct link _root.imgholder.loadMovie("back.jpg") it will load to a new page whereas if the button is moved to the root, it works fine ? ? ? ive never come across a problem like this before, as i have a simular one working.
Any ideas?
thanks,
Matt
Exception-Handling Cycle - Why Bother?
I've got a basic understanding of how the try/catch/finally block works, but I can't seem to figure out why I should bother using it.
If I know an error is occurring or about to occur, why build a try/catch/finally architecture to 'gracefully' handle the error when I could write code to prevent the error from occurring in the first place?
Thanks in advance for any enlightenment on this subject.
Exception-Handling Cycle - Why Bother?
I've got a basic understanding of how the try/catch/finally block works, but I can't seem to figure out why I should bother using it.
If I know an error is occurring or about to occur, why build a try/catch/finally architecture to 'gracefully' handle the error when I could write code to prevent the error from occurring in the first place?
Thanks in advance for any enlightenment on this subject.
I Hate To Be A Bother: Buttonover To Change Dynamic Text
This is probably simple, but I've searched tutorial after tutorial, torn apart the Flash Help, and gone through 35 pages of this very board looking for something relevant, but I haven't found anything this close(simple). Just so you know, I DID try to do this myself.
I'm attempting to create a wegpage, that allows a user to see the title of a song in a lower feild using dynamic text, activated by a mouseover up above.
The button is a simple button, and appears in a movie in the tenth frame, after a short animation. The button itself is a layer above the animation, and appears exactly on the tenth frame, with the lower frame having a stop action in the same frame. Here are the button actions I have listed as following:
on (rollOver) {
songInfo = "passing for priviledged";
}
on (rollOut) {
songInfo = "";
}
I created a Dynamic Text box in the same tenth frame, with the variable name "songInfo". (No "")
I'm trying to get it so that the dynamic text changes according to buttonover(there will be six eventually), and then reverts to blank when the mouse rolls off.
The movie with the button itself is accessed as a 2nd frame of a movie on the main timeline.(Using a gotoandPlay command from a menu button) It seemed at first that the Stop action was affecting it, but I have to use it to end the animation, so it doesn't loop, right?
I also tried just putting a plain button, using the same rollover action, and targeting a dynamic text feild on the main page. It refuses to change text, whatsoever.
What am I doing wrong?
Speed Of My Button Component Versus Adobe Component
I've been happily creating my button component and things have been going well until I got to the point of creating the mouse down state.
I've modeled the structure of my components very similar to the Adobe supplied components, but I notice my component is not as attentive to mouse events as the Adobe components. I can click my mouse over one of my buttons fast enough that the button doesn't register the click.
But no matter how fast I click the Adobe button, it always registers the clip.
Is the speed difference the fact that my button doesn't use the Component shim? I plan to either use a shim or convert the component itself into a compiled clip, but for development purposes, I thought it best to reference the UIcomponent source.
I would appreciate your thoughts,
Thanks, Jennifer
AS3 Component Instantiation With Dynamic Variable Component File Name
Hello! I am passing some variables from my server to a Flex application. One of these is the name of an MXML component that will be opened in a pop up. Since I am doing this dynamically is there a way to set up an AS3 variable so that say (in pseudocode):
ActionScript Code:
// serverSideVariables['mxml_component'] = "Dialog"
var myClassNameVar:String = serverSideVariables['mxml_component'];
// then I want to do something like this:
// in static code this would look like: var myClassToInstantiante:Dialog = new Dialog();
var myClassToInstantiante:myClassName = new myClassName();
Is this possible?? Thanks!
Checkbox Component To Toggle ComboBox Component
I've got a script that dynamically generates a grid of checkboxes and combo boxes. I'm trying write a handler to toggle the Combo boxes on or off when a user clicks on the corresponding checkbox. To do this, I add a property called "bound_to" when duplicating the checkboxes. The "bound_to" property contains the instance name of the combo box that I want the checkbox to control. So here's my onChange handler:
Code:
function toggleComboBox(component) {
trace(component._name+" has been selected ");
trace("bound to "+ eval(component.bound_to));
if (eval(component.bound_to).getEnabled == true) {
trace("enabled must be true for the target");
eval(component.bound_to).setEnabled(false);
} else {
trace("enabled is false for the target");
eval(component.bound_to).setEnabled(true);
}
}
My trace actions show that the correct instance names are saved correctly and this function works to enable the combo boxes, but it won't disable them. The problem is with the IF statement I think. It always returns false so I can only toggle the combo boxes on, but not off again. Is my syntax wrong or am I doing this the wrong way?
Component Themes - Changing Button Component
I am creating a custom theme, or skin, for my components and I have figured out how to edit most pieces but the most used is the most elusive.
Does anyone know how to edit the look of the button when creating a new theme?
I am finding that you have to edit the ClassObject but Macromedia's help is very confusing, they talk aobut creating a button dynamically then about the ClassObject but don't put all the directions in one place.
Maybe someone knows a good tutorial
Thanks
Newbie Needs Component Help (Input Text Component)
Very easy i am sure.
I have a input text component on my stage. When it is CHANGED I want to move to the frame specified. IE 4 frames in target movie.
When I put 4 into the text box, I want my actionscript to go
x = this.text;
this.parent.targetswf.goToFrame(x);
x = "";
Only problem is I cant seem to use the on Change event? It says I need to use an InstanceName.AddListener. Can someone explain this to me as I couldn't find any help regarding this ?
Thanks
MCM
Changing The Color Of A Component Inside A Component?
I've been going over these docs
http://livedocs.adobe.com/flash/mx20...3.html#3148563
http://livedocs.adobe.com/flash/mx20...=00002960.html
http://livedocs.adobe.com/flash/mx20...=00002096.html
and I've been able to customize my List component like
mp3list.setStyle("color", 0xFFFFFF);
But I cannot get change the UIScrollBar or Button components. I've tried several things
Code:
_global.styles.mp3list.Button.setStyle("backgroundColor", 0x0000FF);
_global.styles.Button.setStyle("backgroundColor", 0x0000FF);
Nothing is working
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Component Inspector For Custom Component Questions
Hi --
I am wondering if it is possible to make the component inspector somewhat
dynamic for use with a custom component. For example, I have a component
where the user can choose to have a value set automatically or the user can
have it set manually and enter a range for this value in two component
parameters. Is it possible to hide to parameters in the component inspector
when a third parameter is set to TRUE and to show those two when the third
is set to FALSE?
Thanks
Rich
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
UICombo Box Component Calling A Calendar Component
Hi I am trying to use a Combo Box that will call a calander component with the onChangeHandler.
I want it so when the user clicks the combo box a calander shows up, the user then selects there date and that date will be the current label value of the combo box.
I am using Flash MX and actionscript 1.0 so this is what i tried with no succes and was just a basic shot in the dark.
CODEfunction cmbHandler(component){
var cal = FCalendar;
_parent.createEmptyMovieClip(cal_mc,1);
cal_mc.loadMovie(cal);
component.addItem("Select Date",cal_mc);
component.setLabel(cal.getSelectedItem());
}
Loading Component Inside Scrollpane Component
Hello,
Can anyone help me out in adding a scrollpane on to the screen through actionscript and after that adding any component inside the added scrollpane component.
Thanks in advance.
[Component] Targeting Flash 6 ScrollPane Component
Hey All,
Been a while... hopefully somebody can provide some insight into what I am missing here.
I have a Flash 6 ScrollPane - yes, I know it's old, but it is also easy to do custom skinning. I had data loading into it from the library by using createEmptyMovieClip and then attachMovie to grab an MC from the library.
This all worked fine until I had to place the ScrollPane into a MC in the library, dynamically attach it to the stage and then assign the content. Now I can only get my content MC to display on top of the ScrollPane, not in it. Here is a sample:
ActionScript Code:
function showPop(popType) {
popContainer = _root.createEmptyMovieClip("popWindow_mc", 350);
popWindow = popContainer.attachMovie("pop", "pop_mc", 1);
popWindow.pop_sp.boundingBox_mc._visible = false;
popScrollClip = popWindow.createEmptyMovieClip("scrollClip_mc", 400);
popScrollContent = popScrollClip.attachMovie("scrollMC_disclaimer", "scrollContent_mc", 1);
popWindow.pop_sp.setScrollContent(popScrollClip);
};
"pop" is the linkage name of the MC that contains the ScrollPane and "scrollMC_disclaimer" is the linkage name of the MC that is the content to be scrolled.
Any ideas as to what I am missing? Any help is greatly appreciated. Thanks in advance!
Component Preloader, And Component Menu
i'm trying to use a component preloader to load a component menu, will this work? I have a more detailed post in the "Newbies" section of the boards...here's a link
http://www.flashkit.com/board/showth...hreadid=471088
If you have any idea how i can get this to work plz post...i really like this loader and it would be great to use.
Creating A Component Within A Component Class
Basically I have a component with I have associated a class with - and then attached it to stage using attachMovie and make references to it using its linked name which works great. However within this class I want to attach another movie clip component - which works however how to I reference this second component from this class using linkage doesnt work neither does assigning it to variable. The only way is to call the class - which gives undesired results.
What is the proper way to have a component within a component?
[F8] Tree Component Within Accordian Component
Hello all!
I've done a navigation scheme that uses both the accordion and tree components. The data being gathered is from an XML file. The only problem i'm having is getting the tree components to display the data that they're being provided with. I did traces and I found out that they are getting the data...but it simply isn't being displayed. Can anyone take a look at the FLA and see what's going wrong?
http://www.jake3p0.com/downloads/accordionTreeNav.zip
Window Component With Loader Component
I have the SWF loading into a shell using a Loader component. Within one swf is a trigger for a window - which ,suprise suprise, doesn't work. It works fine if I access the swf directly just not when loaded through the shell. I have added the component to the shell fla and then although a window component loads up, the content (which is linked in the library) is not found. Anyone come across this before?
Attach Code
correctAnswerBtn.onRelease = function() {
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {closeButton:true, contentPath:"CorrectAnswers"});
my_win.title = "Correct Answers";
var winListener:Object = new Object();
winListener.click = function(evt_obj:Object) {
my_win.deletePopUp();
};
winListener.complete = function(evt_obj:Object) {
my_win.setSize(my_win.content._width+7, my_win.content._height+32);
my_win._x = ((Stage.width/2)-(my_win._width/2));
my_win._y = ((Stage.height/2)-(my_win._height/2));
};
my_win.addEventListener("click", winListener);
my_win.addEventListener("complete", winListener);
};
Menu Component And Window Component
I have a dilema. I'm trying to create a flash application that is basically a rich text editor
well, I'm trying to make a menu component to open a window component which has a close button
here is a part of my code (attempt 1):
PHP Code:
import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var my_mb:MenuBar;var myProfile:Menu = my_mb.addMenu("My Profile");myProfile.addMenuItem({label:"View/Edit Profile Information", instanceName:"newInst"});myProfile.addMenuItem({label:"See My Profile", instanceName:"openInst"});//THE LISTENERSvar mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) { case "openInst": var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {closeButton:true, contentPath:"openDialog"}); var winListener:Object = new Object(); winListener.click = function() { my_win.deletePopUp(); }; my_win.addEventListener("click", winListener); break;}
The problem with this script: when I test the movie, the movie freezes and Flash asks do you want to disable the script and etc..
so I tried doing the same by attachMovie() :
PHP Code:
//THE STUFF FROM BEFORE switch (menuItem_obj.attributes.instanceName) { case "openInst": _root.attachMovie("Window","openInst",this.getNextHighestDepth()); openDialog.setSize(623.9,310) openDialog.closeButton = true; openDialog.contentPath = "openDialog"; openDialog.title = "Open Document";//HERE IS THE PROBLEM: openDialog.close = function() { trace("Closing..."); removeMovieClip(_level0.openInst); } break;
The problem from the 2nd Code Box: I can't close the box. When I press the X, it won't close it.
So...basically what I'm asking is...How do I call a Window Component from a Menu Bar Component and let the Window Component also close correctly when the user closes it.
Thanks in advance for your great help!
AS2: Menu Component & Window Component
well, I had a question Yesterday, and posted in the Flash 8 Section of this forum...well, I have a question now...When I open a Window Component(with a movie clip inside it ...ofcourse) via Popup Manager from the Menu Component, the Window opens up, but I can't go back to the menu and open it. Any suggestions on how?
Here is a part of my code (which I believe will summarize the rest of my code):
PHP Code:
import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var myProfile:Menu = my_mb.addMenu("File");myProfile.addMenuItem({label:"Open", instanceName:"openInstance"});var mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) { case "seemyProfileInstance": var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Open Document", contentPath:"openDialog", closeButton:true}); my_win.setSize(320, 240); var winListener:Object = new Object(); winListener.click = function() { my_win.deletePopUp(); }; my_win.addEventListener("click", winListener); break;
Loader Component And List Component
Hello everyone,
using AS2.0 does any one know if i can push or add a list component inside a loader component?
This would allow me to add as many List components as i want "dynamiclly" while letting the loader component grow as needed with the usuability of the scroll bar on a small stage.
thx
Datagrid Component Vs. Dataprovider Component ?
could someone help me out here? i am attempting to use some methods on my datagrid, but for some reason only one method is functioning.
by methods i mean this:
(DataGrid component)
myDataGrid.getColumnAt(index).width
myDataGrid.removeAllColumns()
(DataProvider compnent)
myDP.removeAll()
here is what i did:
Code:
drag and drop a datagrid component onto stage
give it an instance name of quiz_dg
here i call a function that populates an array (1 row) and assigns the array to my datagrid:
Code:
function doll(blah) {
toy();
quiz_dg.dataProvider = test;
}
this is my function to populate the array:
Code:
var test:Array = new Array();
function toy(blah) {
test.addItem({Tmp1:tmp1,
Tmp2:tmp2,
Tmp3:tmp3,
Tmp4:tmp4,
Tmp5:tmp5,
Tmp6:tmp6,
Tmp7:tmp7});
return test;
}
so here is my dilema:
Code:
no matter how i add code to manipulate my quiz_dg, none are recognized, i did figure out that some methods, manipulate the datagrid, and the same methods do not affect the dataprovider what so ever, thus the reason for having two different methods to clear a datagrid.
DataGrid Component:
Code:
you can use myDataGrid.removeAllColumns(), but it also tells me this:
Calling this method has no effect on the data provider. Call this method if you are setting a new data provider that has different fields from the previous data provider, and you want to clear the fields that are displayed.
so i had to use myDP.removeAll() to clear my datagrid
here is what i did to use myDP.removeAll():
Code:
drag and drop a datagrid component onto stage
give it an instance name of quiz_dg
function doll(blah) {
toy();
test.removeAll(); //clear previous items
quiz_dg.dataProvider = test;
}
var test:Array = new Array();
function toy(blah) {
test.addItem({Tmp1:tmp1,
Tmp2:tmp2,
Tmp3:tmp3,
Tmp4:tmp4,
Tmp5:tmp5,
Tmp6:tmp6,
Tmp7:tmp7});
return test;
}
so what i would like to use is:
Code:
myDataGrid.getColumnAt(index).width
any help is greatly appriciated....
ra2833
Need To Change A Video Component To Something Like A FLV Playback Component For Video Playlist
I'm pretty new to all this flash stuff, but have been getting my way through it the last few months. I bought a template a few months ago for my wife's Wedding Videography Company. I've been struggling trying to get a Video Playlist with working video for quite some time now, but found a good tutorial on Adobe's website recently. The template is exactly what we want except that it does not have any playback buttons at all.
We are using Flash CS3 and unfortunately are limited to AS2, not AS3 as the Template that we bought for the website is only AS2, as I've been learning that video is much simpler in AS3.
The Adobe template is listed here...
http://www.adobe.com/devnet/flash/ar...wnload_06.html
I want to change out the "Video Component" to something that allows me to have a skin that has like Play, Volume, etc.
Any help with being able to swap it out and have the XML file link to the appropriate new component would be greatly appreaciated.
Component In Component Panel
I have a component, the problem is that I have to copy the component in the libraries of different files to utilize it what I want is.... I could place this component in a folder where I can see it in a flash component panel. I could do it by placing the fla in Documents and SettingsApplication DataMacromediaFlash MXConfigurationComponents but for this I have to place it manually is there a way through which I could do the same thing..... I need a kind of a setup for my component I know theres a way to do it in flash can u help me with that (flash extension)
Its urgent as usual
Wadood
About Making Component, Using Component
I didn't know what you are so busy, sorry...
I made very simple component
grayButton.fla, grayButton.xml, grayButton.mxi
I installed grayButton.mxp
but testFile does not work in its own way
please help me , please...
grayButton.fla ===================
grayButtonClass component's first frame action ---------------------
#initclip 1
grayButtonClass=function(){
this.w=this.grayButtonMc._width;
this.h=this.grayButtonMc._height;
this.setWH(this.w,this.h);
}
grayButtonClass.prototype=new MovieClip();
Object.registerClass("grayButtonClassSymbol",grayButtonClass);
grayButtonClass.setWH=function(w,h){
this.grayButtonMc._width=w;
this.grayButtonMc._height=h;
}
#endinitclip
grayButton.xml======================
<customactions>
<actionspanel>
<folder version="6" name="grayButtonClass"
id="grayButtonClass" index="true"
tiptext="grayButtonClass">
<folder version ="6" id="Methods"
name="Methods"
tiptext="grayButtonClass">
<string name="setWH"
object="Movement"
text=".setWH(%w%,%h%)"
version="6"
tiptext ="button Size"/>
</folder>
</folder>
</actionspanel>
<colorsyntax>
<identifier text="grayButtonClass"/>
<identifier text=".setWH"/>
</colorsyntax>
</customactions>
grayButton.mxi======================
<macromedia-extension name = "grayButtonClass" version = "1.0.0" type = "flash component" requires-restart ="true" >
<description>
<![CDATA[grayButton is good]]>
</description>
<ui-access>
<![CDATA[ no item ]]>
</ui-access>
<author name = "okbary" />
<products>
<product name = "Flash" version = "6" primary ="true" />
</products>
<files>
<file source = "grayButton.fla" destination = "$flash/Components" />
<file source = "grayButton.xml" destination = "$flash/ActionsPanel/CustomActions" />
</files>
</macromedia-extension>
testFile=======================
testFile's first frame action ----------------------------
grayButtonClassSymbol.setWH(300,300);
this.stop();
testFile does not work ..
please help me
MX Button Component > 2004 Button Component
HELP!
okay, I'm moving from MX to MX2004 and I'm having trouble with MX2004 button component. I'm used to the change click handler function and I know for MX2004, I need to use a listener but I can't get my code to work. Whats wrong?
ActionScript Code:
onSubmitListener = new Object();onSubmitListener.click = function();{ //Create a new LoadVars instance for the form data formData = new LoadVars(); //Initialize formData variables formData.txtZip = ""; formData.cboDist = ""; formData.dealer = "stores"; //Gather the order information into a LoadVars Instance formData.txtZip = escape(txtZip.text); formData.cboDist = cboDist.getValue(); formData.dealer = "stores"; //Create another LoadVars instance to receive the server's reply replyData = new LoadVars(); //Initialize reply variable replyData.reply_txtZip = ""; replyData.reply_cboDist = ""; replyData.reply_dealer = "stores"; //Specify a function to call when this new instance receives the reply replyData.onLoad = handleReply; //Submit the data formData.sendAndLoad("http://www.blahblah.com", replyData, "POST"); //Telling the user what is happening scroller.text = "Please wait while your information is being processed. . .";}onSubmit.addEventListener("click", onSubmitListener);}function handleReply(success) { if (success) { trace("done loading"); scroller.html = true; scroller.htmlText = replyData.textfield; } else { scroller.text = "There was a problem submitting your information. The server my be down or not responding."; }}
MX Button Component > 2004 Button Component
HELP!
okay, I'm moving from MX to MX2004 and I'm having trouble with MX2004 button component. I'm used to the change click handler function and I know for MX2004, I need to use a listener but I can't get my code to work. Whats wrong?
ActionScript Code:
onSubmitListener = new Object();onSubmitListener.click = function();{ //Create a new LoadVars instance for the form data formData = new LoadVars(); //Initialize formData variables formData.txtZip = ""; formData.cboDist = ""; formData.dealer = "stores"; //Gather the order information into a LoadVars Instance formData.txtZip = escape(txtZip.text); formData.cboDist = cboDist.getValue(); formData.dealer = "stores"; //Create another LoadVars instance to receive the server's reply replyData = new LoadVars(); //Initialize reply variable replyData.reply_txtZip = ""; replyData.reply_cboDist = ""; replyData.reply_dealer = "stores"; //Specify a function to call when this new instance receives the reply replyData.onLoad = handleReply; //Submit the data formData.sendAndLoad("http://www.blahblah.com", replyData, "POST"); //Telling the user what is happening scroller.text = "Please wait while your information is being processed. . .";}onSubmit.addEventListener("click", onSubmitListener);}function handleReply(success) { if (success) { trace("done loading"); scroller.html = true; scroller.htmlText = replyData.textfield; } else { scroller.text = "There was a problem submitting your information. The server my be down or not responding."; }}
WTF Component Boy?
Working on my personal site and ran into some component craziness.
Was originally playing with the linkage properties of the mc's in my main movie (_level0) while investigating some preloader issues( preloader not showing up until 50K or so loaded....) - But fixed that issue....(linkage creating size issues on the first frame)
.....wouldn't you know it....I fixed the preloader problem, but the buttons of my component scroll bars have now decided that their presence is no longer required. All that is left is the scrollTrack. (????)
Here's the URL :
http://flashsucks.tripod.com/white.html
(Home and Resume sections, specifically.....)
Does anyone know what happened here?????
Also - this site has about 10 _levels. There are component scroll bars on several different _levels - all of which have disappeared - even though I did not modify any linkage properties of these movies. (Is is b/c the components all download on _level0?)
Anyway - I know I could fix it by just dragging a new component on the stage in place of the old one - BUT I really want to know what happened - in case it happens again....probably something I skipped in my recent hurried switch to MX.
Any help would be greatly appreciated!
Component BUG?
This is driving me crazy. Im trying to make a simple scrolling text.
This should be very easy, right.
I put my textbox on the stage, set to dynamic and multiline, and give it an in stance name.
I drag the component scrollbar on to stage next to my text. I target the textfield with the scroller.
I put my text in the text box. this is where I find the problem Flash will not let me resize the textbox to the desired size and the resize handel on the text box should turn black to let you know you have dynamic text, it dont do that. When I publish the movie the scroll bar seems to target the textfield because it has a srollbar but only scrolls 2 lines of the text and the whole text box is displayed. hope this was not too confusing. I have a small notion I might have a corrupted font. So I re installed all my fonts. Nope not the problem. Oh and I reinstalled flash also. I looked all over Macromedias Site, nothing. If anybody has any clue as to what is going on please let me know.
Thanks
-dahc
Component Help
I have a button inside a component. How do i set a parameter with a link value and have the button use that parameter's link value? I'm not sure what the on (release){} code is.
does that make sense?
thanx.
//23
Component Help
I am trying to write a music player component. The player loads a random sound and then loads the next sound after each song is complete. The only problem I am having is updating a dynamic text box (instance name txtSongName) when the onSoundComplete function is called. I would be greatful for some assistance.
Code:
#initclip
//================================================
//initialize class
//================================================
function JukeBoxClass() {
this.init();
}
JukeBoxClass.prototype = new MovieClip();
//================================================
//initialize function
//================================================
JukeBoxClass.prototype.init = function() {
//========================================
//LOAD RANDOM SONG
//========================================
SongList = this.SongList;
SongNumber = random(this.SongList.length);
MySong = new Sound();
MySong.loadSound("music/" + SongList[SongNumber] + ".mp3",true);
this.txtSongName.text = SongList[SongNumber];
MySong.start();
trace(SongNumber);
trace(SongList[SongNumber]);
MySong.onSoundComplete = function() {
if (SongNumber == SongList.length-1) {
SongNumber = 0;
}
else {
SongNumber++;
}
trace(SongNumber);
//Load the Next Song
MySong.loadSound("music/" + SongList[SongNumber] + ".mp3",true);
MySong.start();
//Display Song Name
this.txtSongName.text = SongList[SongNumber];
trace(SongList[SongNumber]);
}
Component Help ?
hi all, i recently d/l UI component set 2 from the macromedia site but have no help guide's to any of the new components like progress bar ??? can someone tell me where a useful tut is available.
thanks
protocol
|