Making Components Accessible Help Needed
Hi i have 4 buttons on a page 2 are my own 2 are components and i want to set up a tab order, however i can only tab between the 2 component ones. I have set the tab order and added the following code to the first frame of the script. "mx.accessibility.ButtonAccImpl.enableAccessibilit y();" however this has no effect. please tell me whats going wrong.??
FlashKit > Flash Help > Flash MX
Posted on: 06-02-2005, 11:33 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Components Not Accessible After Movie Is Loaded.
Hi,
I have a MainMovie.fla in which I have several components in the library 'exported' for ActionScript.
Several custom classes reference these components.
If I run MainMovie.fla, everything works fine.
However, if I load MainMovie.swf using MainLoader.swf, my movie works great, but my components are not showing up.
I end up with a: Error #2007: Parameter child must be non-null.
What am I not doing correctly?
Thanks,
The Alchemist
Making Sites Accessible
Hiya everyone.
I was just wondering what everyone thought about making my website more accesible to my visitors. I'm working hard at the moment to remove those disgusting frames and so I'll direct you to this site instead.
There are a few little animations on there, I wondered if you have any pointers.
Making My Flash Application More Accessible...
just wondering what i can do to make my flash application more accessible ? so how to get back buttons working, or allowing it to be found on search engines, screen readers etc...
thanks for any advice
joey.
Making Flash Blind Accessible?
Hi!
Just had a very interesting email contact from a web site I manage. The user is blind and can not 'see' the flash buttons that trigger my audio samples. The screen reader obviously can't read them.
Is there a way to make the Wimpy player Flash button somehow accessible so a screen reader can recognize it and I can indicate to play the sample?
The code I am using is attached.
Thanks for any help you can give!
Attach Code
<!-- START WIMPY BUTTON: Standard HTML -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="wimpybutton104" width="25" height="25">
<param name="id" value="wimpybutton104" />
<param name="width" value="25" />
<param name="height" value="25" />
<param name="bgcolor" value="#FFFFFF" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="theFile=http%3A%2F%2Fwww%2Enatalie%2Dbrown%2Ecom%2Faudio%2Frandom%2Dthoughts%2Fthings%2Dthat%2Dyou%2Ddo%2Emp3%0D&playingColor=550A34&arrowColor=F9F2E0&grinderColor=4E2F1B&theBkgdColor=5B0000&rollOverColor=000000&buttonStyle=square" />
<param name="src" value="http://www.natalie-brown.com/audio/wimpy_button.swf" />
<embed type="application/x-shockwave-flash" id="wimpybutton104" width="25" height="25" bgcolor="#FFFFFF" loop="false" menu="false" quality="high" wmode="transparent" flashvars="theFile=http%3A%2F%2Fwww%2Enatalie%2Dbrown%2Ecom%2Faudio%2Frandom%2Dthoughts%2Fthings%2Dthat%2Dyou%2Ddo%2Emp3%0D&playingColor=550A34&arrowColor=F9F2E0&grinderColor=4E2F1B&theBkgdColor=5B0000&rollOverColor=000000&buttonStyle=square" src="http://www.natalie-brown.com/audio/wimpy_button.swf"></embed>
</object>
<!-- END WIMPY BUTTON: Standard HTML -->
Making Flash Accessible To Screen Readers
Ok. I'm making a website that serves up MP3s to users in a fairly straightforward manner. I'm delivering them by linking to the sound files directly. I also want people to be able to play these files without having to open up a media player, so I've used an inbuilt flash player wherever the files are that calls the MP3 with the Flashvars function (I'm not getting too technical here as I'm not a Flash coder and I'm using someone else's script).
The main problem that I'm running into at the moment is that I would like to make my Flash Player accessible to people who are using screen readers, like JAWs. When I check the 'make movie accessible' panel in MX, and assign tab orders to my various buttons, the flash movie is accessible via keystrokes if you're just using your browser, but if you turn JAWS on the flash becomes inaccessible. The screen reader recognises the Flash Object, and reads out what I've put in the elements, but will not let me tab between them. I'm assuming this is some kind of conflict with the TAB key commands in explorer not being the same as the TAB key commands in JAWS. Is there a way (with Flash) that I can get around this? Do I need to assign keystrokes to each button in my Flash movie? (and if so, how? the Help section in Flash was quite vague about this).
I would love to hear from anyone who has used Flash in an accessible way, especially with JAWS or any other screen reader.
what macromedia says
Making Variable Values Globally Accessible In My Code
I have certain variables, and when I declare their values within a function I want the value to be accessible in other functions. Right now it's not, so obviously I have a scoping problem.
For this example, I have a function that decides if an avatar is too close to the side of the screen, in which case it sets a flag var tooClose:Boolean = true; Of course my other functions don't see this and aren't getting the message.
In old 2.0 I would have just said _root.tooClose = true or I would have made the variable global.
Could someone please help me here? Its something I find myself needing quite a bit.
Making Text Boxes Accessible To Movie Clips
Hey,
I have a Flash front end connected to a MySQL back-end database and I am trying to send some text input to the db. The input text box is available on the root level and within this same level I have a movie clip which contains the loadvariables AS. In the PHP script (which is initiated through the movie clip), I need to be able to access the text within the input box on the root level - any suggestions on how I can do this? Is there a way I can make the text input available to everything..?
THANKS!!!
R.S
Help Needed With Components.
I'm using scroll pane in my movie, I modified the images correctly but when I attach my movie using the linkage, it seems that the movie appears larger and if it scrolls up or down, it will move out of the border i set it to. Can ne1 help me? Thanks a bunch!
*Dud
LOL
Making Your Own Components
G'Day all,
I have just made my own component which basically builds a group of radio buttons etc. However even though this was my first attempt it turned out pretty clumsy and it took me two days to build. Has anyone perfected making their own components and if so, what is the trick?
Making Components
i have made a scrolling text box that loads HTML formatted data into a dynamic text field and scrolls the bar as needed...it all works great!
then our graphic designers make designs using about four different scrollbox sizes and i have to create the file four different times!!! so frustrating!!
are there any good tutorials or books out their showing how to create flashMX2004 components as i think this is the best way to go....i cant keep creating different scroll boxes when asked!!
thanks for any help!
Making Components
how do you make components i mean i am sure i could figure it out but a tutorial would probably cut down the time i spend trying to figure it out
Making This Using V2 Components...
Hello, i deperatly need a system for a listing. A single XML file that will display information in 2 fields. The first field will be a list component that shows a list names - the second would be a text field of a sort that displays text (description) of the name provided in the first field. So a list of names, and when a name is clicked from the list, a description is loaded into the text box dealy. All this information from a single XML file...something like
PHP Code:
<solo>
<player>
<name>Bob</name>
<details>bob is good</details>
</player>
<player>
<name>Jim</name>
<details>Jim is Bad</details>
</player>
</solo>
xml in that sort of structure...
i saw a way to do this sort of using what looks to me like ancient code, not utilizing the XMLConn or Datasets at all See Here...and i am clueless how to do this sort of interface with v2 components as mentioned above. Anyhelp would be great!
][
Making Components
Hello.
I'm making my own components, which I can do fine if it's a simple thing like a button. However, if it's a more complex series of nested movieclips etc I can't get it to work. For example, if I have myMC inside myMC2 then all my code talks to myMC2.myMC.etc etc. When I convert the master mc, myMC2 to a component, it fails because the code can no longer see myMC2.
So, I guess my question is, can we make more complex flash components and is there any help anywhere? I have Googled but not found much.
Ta, A.
Making Age Verification Using Components
I am making an age verification swf to check a user's age and then transfer them to the appropriate page.
I want to use combo box components for them to select Month, Day and Year, so three separate combo boxes. I want to know how to use the combo boxes to pull the Month, Day, Year info from them and then use them in actionscript to get the elapsed years answer.
I found this code on how to do age verification but was wondering if someone could help me by informing me on how to use combo boxes in this code.
Sample Code I found concerning age verification:
code:
// sample age
userAge = "2/15/1972";
userAgeArray = userAge.split('/');
mon = Number(userAgeArray[0]);
day = Number(userAgeArray[1]);
year = Number(userAgeArray[2]);
// in case user entered '64'
if (year < 4)
year += 2000;
else if (year < 100)
year += 1900;
birthDate = new Date(year,mon-1,day);
todayDate = new Date();
elapsedYears = todayDate.getYear() - birthDate.getYear();
if ((todayDate.getMonth() < birthDate.getMonth() ||(todayDate.getMonth() == birthDate.getMonth() && todayDate.getDay() < birthDate.getDay())))
{
elapsedYears--;
}
trace("Age of user: " + elapsedYears);
if (elapsedYears >= 19) {
// pass
}
else {
// fail
}
Making The Components Of This Site.
I would like to know how to make the pop-up menus and the marquee box found in this site. Please help.
http://www.visualxtreme.com/virtual400.html
Dynamic Components - Guru Needed
If you are a guru then you may have my answer!
I'm still getting used to creating components so I am a bit of a newb; this however does not shadow my actionscript knowledge b any means!
I tried flashcomponents.net tutorial and was simple enough.
But when I tried to dynmically attach the FtriangleClass example and pass the params it would not attach:
_root.attachMovie("window", "window1", 10, {_x:100, _y:100});
or
_root.attachMovie("window", "window1", 10, {myVar:"yummy", myBoolean: true});
This for some rason will not work with my created component but will work just fine with say the FScrollbar created by Macromedia.
SO I assume I am doing something wrong. I even compared the two for missing elements and no luck
Any help on this matter would be greatly appreciated cause I am gonna pull my hair out soon
Best Regards. Matty
Hide Scroll MC Components When Not Needed
I have two movie clips that scroll my text up and down. I have a dynamic text box that calls the variable "myText". I want to scroll bars to be accessible when the text overflows, but disappear when the text fits within the box. Any help would be appreciated!!
Thanks!!
More Help Needed Custom Scrollbars Etc With Components.
Hey,
First of all I wanted to thanks lost in beta for the help with my last question. Everything worked out perfectly.
Now, I added some scrollable text using the mx components. I have lots of experience with adobe photoshop and other raster programs. So I was wondering if there are anyways to tweak the scroll bars/buttons etc that flash automatically uses, with some of my own, preferably without going through too much trouble.
Thanks in advance again.
Chris
Components Styling: Guru Needed
I think I need some help in explaining styling components, or otherwise the Flash documentation is just plain wrong
What I'm trying to do is style the checkbox component.
More specifically I want to change the color of the checkbox.
According to the docs I could do it like this:
ActionScript Code:
my_cb.style.setStyle("symbolColor", 0xff0000);
But....it's a no go.
Any ideas?
UPDATE: Making Age Verification With Components
Ok I have modified some code and am almost there, just need some expert help.
I have used three combobox components for Month (instance name DDmonth) Day (DDday) and Year (DDyear).
The code in my actions layer is this:
code:
// set variables for birthday (month, day, year)
mon = DDmonth.selectedItem;
day = DDday.selectedItem;
year = DDyear.selectedItem;
birthDate = new Date(year,mon,day);
todayDate = new Date();
elapsedYears = todayDate.getYear() - birthDate.getYear();
And I have attached this code onto my button
code:
on (press) {
if ((todayDate.getMonth()<birthDate.getMonth() || (todayDate.getMonth() == birthDate.getMonth() && todayDate.getDate()<birthDate.getDate()))) {
elapsedYears--;
}
trace("Age of user: "+elapsedYears);
if (elapsedYears>=19) {
// pass
submitMessage.text = "Please Proceed";
} else {
// fail
submitMessage.text = "You are not old enough";
}
}
The code to populate my combobox is as follows:
code:
stop();
// set variables for birthday (month, day, year)
mon = DDmonth.selectedItem;
day = DDday.selectedItem;
year = DDyear.selectedItem;
birthDate = new Date(year, mon, day);
todayDate = new Date();
elapsedYears = todayDate.getYear()-birthDate.getYear();
trace("Your birthday is "+DDmonth.value+" "+DDday.value+" "+DDyear.value);
//Month combobox listener
DDmonthListener = new Object();
DDmonthListener.change = function(eventObj) {
var eventSource = eventObj.target;
var theSelectedItem = eventSource.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
trace("You selected "+theSelectedItemLabel+".");
};
DDmonth.addEventListener("change", DDmonthListener);
//Month create the items
var item1 = {label:"January", data:0};
var item2 = {label:"February", data:1};
var item3 = {label:"March", data:2};
var item4 = {label:"April", data:3};
var item5 = {label:"May", data:4};
var item6 = {label:"June", data:5};
var item7 = {label:"July", data:6};
var item8 = {label:"August", data:7};
var item9 = {label:"September", data:8};
var item10 = {label:"October", data:9};
var item11 = {label:"November", data:10};
var item12 = {label:"December", data:11};
//Month populate the list box
DDmonth.addItem(item1);
DDmonth.addItem(item2);
DDmonth.addItem(item3);
DDmonth.addItem(item4);
DDmonth.addItem(item5);
DDmonth.addItem(item6);
DDmonth.addItem(item7);
DDmonth.addItem(item8);
DDmonth.addItem(item9);
DDmonth.addItem(item10);
DDmonth.addItem(item11);
DDmonth.addItem(item12);
//Day combobox listener
DDdayListener = new Object();
DDdayListener.change = function(eventObj) {
var eventSource = eventObj.target;
var theSelectedItem = eventSource.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
trace("You selected "+theSelectedItemLabel+".");
};
DDday.addEventListener("change", DDdayListener);
//Day populate combobox
for (var day:Number = 0; day<=30; day++) {
DDday.addItem({label: (day+1).toString(), data:day});
}
//Year combobox listener
DDyearListener = new Object();
DDyearListener.change = function(eventObj) {
var eventSource = eventObj.target;
var theSelectedItem = eventSource.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
trace("You selected "+theSelectedItemLabel+".");
};
DDyear.addEventListener("change", DDyearListener);
//Year populate combobox
for (var year:Number = 1914; year<=1989; year++) {
DDyear.addItem({label: (year+1).toString(), data:year});
}
// no delay in comboboxes
var foo = DDmonth.dropdown;
var foo = DDday.dropdown;
var foo = DDyear.dropdown;
//Set up Button component
myButtonListener = new Object();
myButtonListener.click = function() {
if ((todayDate.getMonth()<birthDate.getMonth() || (todayDate.getMonth() == birthDate.getMonth() && todayDate.getDate()<birthDate.getDate()))) {
elapsedYears--;
}
trace("Age of user: "+elapsedYears);
if (elapsedYears>=19) {
// pass
submitMessage.text = "Please Proceed";
} else {
// fail
submitMessage.text = "You are not old enough";
}
};
myButton.addEventListener("click", myButtonListener);
My output window gives me this message:
Your birthday is undefined undefined undefined
Can someone please help me!
Making A Preloader Work With Mx 2004 Pro Components
Hi all - according to the rule books, the components included with a flash movie are loaded before anything else, including a preloader - so my current % loader doesn't show (I get a blank screen) until the components have loaded and then it appears (Setting itself automatically to 60-odd percent) before carrying on as it should.
To stop this, I've read that I should set all components so that they do not export in the first (Or 0 by the looks of it) frame. This seems to cause a problem as all my flash objects load, but the components don't.
How do I get both to work hand in hand??
thanks
frank
Making Code Hints And Help Files For Components
how can i make code hints, highlighting and help files ( liek the ones within flash for how to use the component and for all the different functions that can be used with it) to be viewied in teh help window of mx2004. any help appreciated and hopefully today since i want to get finished before i go on holiday tommorow
oh. also i started making the component from the tutorial here on ultrashock and have followed that turoial before, but how can i make it so that trhe component doesnt go into the folder 'Standard Components'
i posted it here cos i wasnt sure if it were really something for components thread as it isnt directly related to components, but if it is better off in the components thread please move it to there
Assistance Is Needed W/MX Components In A Form Mail Page
I have created form mail before in Falsh 5 w/input text boxes only. Now that MX has the UI components a form mail can really be a great tool. I understand how to configure the components with the info that is needed. I am confused on how to write the actionscript that will take out the variables and send them to the cgi script. I looked at the Pizza tutorial that macromedia has posted on its web site and applied the concepts to my form and the values were not sent to the cgi script. I e-mailed Macromedia tech support for assistanceand they responded by saying the following: "CGI scripts are Case sensitive. You should double check on the label names of your components. You should always double check you naming convention because it causes simple problems into complicated issues. However, we apologize but we may no longer go further with the scripting as this may be too complicated."
Can anyone assist me in understanding how to use a CheckBox, ListBox, and ComboBox in a form mail and have the selected values sent to a cgi script?
I greatly appreciate all assistance provided.
Thank youin advance,
Evan
Preload From Components Making Huge File Size..
im having trouble making a simple preloader using the progress bar and loader component while keeping a small file size. i have one made using 2 layers: one with a loader and other with the progress bar, thats it nothing else. when i publish it the file size is 106k..something im doing must be wrong. here is my fla if anyone can help it will be appreciated.
http://www.exraze.com/files/preshane.fla
Error Making Chart Components Selectable In Flex
Hi all,
I'm getting the following error when I make a bubblechart selectable
TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.events::ChartItemEvent@41747c1 to mx.events.IndexChangedEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:dev3.0.xframeworksprojectsframeworksrcmx coreUIComponent.as:9051]
at mx.charts.chartClasses::ChartBase/http://www.adobe.com/2006/flex/mx/internal::selectItem()[C:Workflexdmv_automationprojectsdatavisualisa tionsrcmxchartschartClassesChartBase.as:2503]
at mx.charts.chartClasses::ChartBase/processRollEvents()[C:Workflexdmv_automationprojectsdatavisualisa tionsrcmxchartschartClassesChartBase.as:2277]
at mx.charts.chartClasses::ChartBase/mouseDownHandler()[C:Workflexdmv_automationprojectsdatavisualisa tionsrcmxchartschartClassesChartBase.as:4248]
The only code I changed was
adding in the following to the <mx:bubbleChart tag
selectionMode="multiple"
and making by bubbleseries selectable
bs.selectable=true;
Anyone have any idea why I'm getting this error!?
Thanks,
Derm
Preload From Components Making Huge File Size..
im having trouble making a simple preloader using the progress bar and loader component while keeping a small file size. i have one made using 2 layers: one with a loader and other with the progress bar, thats it nothing else. when i publish it the file size is 106k..something im doing must be wrong. here is my fla if anyone can help it will be appreciated.
http://www.exraze.com/files/preshane.fla
Rpg Making Help Needed For A Newbie
I'm making an Rpg with flash and have alot of the code needed except for the hittest when my little guy runs into walls and the like.
so far i have this which makes him stop if there is a wall to his left, but only to his left ...
guy.onEnterFrame = function(){
if(this.hitTest(wall)==true){
this._x += speed;
}
}
ok i know it's a bit rusty but there has to be an easier way than this to make hittest, it would take me weeks to ad different instance names and y, x coordinates. PLEASE tell me there is another way, if there isn't well ill just have to sit at my computer for days on end adding pointless actionscript.
Making A Game: Help Needed :P
first thing, I wanted to make my game like supermario, (well, only where if i jump on my enemys head they die), Would hittest do the trick for that problem?
Also,then I started to mix my game with madness interactive.
How do I make it so that my characters hand follows my mouse, but dosent leave the body?
kinda confsing
Help Needed Making Switch Statement
for a hit_test in my as3 game i would like to make a switch statement to call on dif. movieclips to have the hittest. how do i do this?
my collision code:
Code:
function Collision():void {
for (var i = 0; i < level.mc.numChildren; i++)
{
if (getQualifiedClassName(level.mc.getChildAt(i)) == "Building") {
hit_test(hero.mc,level.mc.getChildAt(i),false);
}
}
}
instead of having just "Building" i would liek to be able to add others like "Tree" "Water" etc.
any ideas?
Help Needed In Making Website(beginner)
Hai Friends,
I am trying to make templates like those found in monster template I could find free tutorials from CG tutorials site..I want to make a page that popup from nowhere and after that its contents should come from a side.I did popping up from nowhere by converting it to 3 movieclips and the inside the first movie clip i extended it to 30 frames and by making alpha to zero and scaling and after that writing actionscript to buttons i made the page like poping up from nowhere but now i want the contents to come from sides..I even tried duplicating movieclips but contents are coming along with the popping up page How can i make the contents come from sides when the page has come to a still.Can you please help me..
Help Needed On Making A TweenMax Slideshow
I wanna create a slideshow like:
http://www.htc.com/www/product.aspx
Where each product slide off the page and came in another with a next and previous button
But I am stuck with this actionscript 3.0:
stop()
import gs.TweenMax;
import gs.easing.*;
TweenMax.from(pix01_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix02_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix03_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix04_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix05_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
function onNextClick(evt:MouseEvent):void {
nextFrame();
}
next_btn.addEventListener(MouseEvent.CLICK, onNextClick);
function onPrevClick(evt:MouseEvent):void {
prevFrame();
}
prev_btn.addEventListener(MouseEvent.CLICK, onPrevClick);
Im kinda new at this Adobe Flash.
It will be greatly appreciated if anyone can advice.
Thanks.
Help Needed Making A Mute Button
OK, I am no Flash newbie but my Actionscript knowledge is seriously pathetic…
I have a simple animation synced to music; everthing is on the main timeline no MC’s. I need to make a button that sets the music volume to 0 (I'm not looking to stop the music, just mute it!) then when the button is clicked again the volume returns to 100.
There must be a simple line of code that will do this, so how should the code on my button look? onRelease ......then what????
Sorry for asking such a dumb question, I am foremost a designer / animator, this scripting malarkey just doesn’t come naturally to me, so please go easy on me.
Thanks in advance
Help Needed On Making A Generic Slideshow
I wanna create a slideshow like:
http://www.htc.com/www/product.aspx
Where each product slide off the page and came in another with a next and previous button
But I am stuck with this actionscript 3.0:
stop()
import gs.TweenMax;
import gs.easing.*;
TweenMax.from(pix01_mc, 1, {blurFilter:{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix02_mc, 1, {blurFilter:{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix03_mc, 1, {blurFilter:{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix04_mc, 1, {blurFilter:{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix05_mc, 1, {blurFilter:{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
function onNextClick(evt:MouseEvent):void {
nextFrame();
}
next_btn.addEventListener(MouseEvent.CLICK, onNextClick);
function onPrevClick(evt:MouseEvent):void {
prevFrame();
}
prev_btn.addEventListener(MouseEvent.CLICK, onPrevClick);
Im kinda new at this Adobe Flash.
It will be greatly appreciated if anyone can advice.
Thanks.
Urgent Help Needed - Making A Fireworks Animation
Edit: I'm using Flash 8
I say urgent because I'm under a time constraint to make this (it's gonna be a present for someone, strange as that may sound).
Anyway, here's my dilemma. It's a fireworks program. What it'll do is pick a random message (I'm gonna use an array to store the different messages), shoot up a firework (with a random color, and preferably with the ability for the firework to be shot up from a different position every time), the firework will detonate, and a message will "sprinkle" down (see: http://www.homestarrunner.com/main12.html under email to get a basic idea if you can't visualize it).
So far, I've experimented with a shape tween (I essentially quartered the image - I started with a keyframe with the text on the top, broke it apart twice, pulled it down below the stage, cut it into tenths longways, separated those out, cut it into tenths sideways, and separated those out), but it's really tedious, and I'm not sure it's working exactly as I want it to. So does anyone have any ideas as to a better way to accomplish this? I'd appreciate it so, so much.
Help Needed With A Game I Am Making--Its About HitTest/duplicateMovieClip
Hello...
I'm making a game with lots and lots of the same movie clips and I don't want to give thousands of items the same actionscript. So logically I thought I should use actions on frames (makes sense...to me at least) but when I used that, nothing happened. can anyone explain what went wrong/how to fix it? I only need a little help. Heres the description:
I have a guy that when he hits a coin, the coin needs to disappear (I will use removeMovieClip later, but for now I want this) and change the dynamic text box to +1. The var name for the text box is "_root.money". The instance name of the coin(s) is "coin_mc". I put this code on the frame:
money = 00;
if (_root.guy.hitTest (_root.coin_mc)) {
_root.money++;
_root.coin_mc._x = -50;
_root.coin_mc._y = -50;
}
I know changing the x & y is "cheating", but this is temporary. thank you for helping if you reply. Posting your name/answer to my problem will earn you a place in the credits of the game!!!! (if it works)
PS-- I am currently toying with the code to get it to work.
Help Needed Finding Tutorial In Making Stationary Objects Look 3d
as said in the subject line, I'm looking for a tutorial in making a stationary object look relatively 3d
I'm not talking about moving the camera around the screen or any action scripting special effects
I'm talking about a tutorial that shows me some tips and tricks into creating an object that looks relatively 3d
for example, the 3 in the attached .fla file
I have tried looking on the internet and forums and stuff but either i'm blind or stupid cause all i could find was stuff to do with moving the camera around the screen or using actionscript to do special looking things.
ur help will be greatly appreciated
[help Needed]Making A Text/browser Based Rpg With Multiplayer Elements
Hello there, I know what you think now " AMAGAWD ANOTHER N00b who found out he wants to make rpg". But naah, right im just a beginner, i dont know much about actionscript or java/c just the basics and I need some help with few things, willing to pay if its needed.
What am i working on:
It will be a browser based flash rpg game, not platform but more like text and pictures based, like for example gladiatus. I also want to include few mmo elements ( high scores, maybe some arena battles but i dont seek help with that now) . Idea is done, everything is written down on a piece of paper and i started making few maps, lands, buttons etc.
Help needed with :
First of all I need to make up something like login system, and i have absolutely no idea how to make it ( if anyone could help with this please try talking about it in simple "human" language so i can understand and check things around.) No idea if that could be done in flash, but probably not.
Second thing i need is some kind of Character creation and saving system. I wanted to use shared objects for saving. So far i found out how to make a simple gay text, save and load it but that doesnt really give me any sense how to make my game save with that.
I seriously need help with character creator, or something similar. You wont move your char in this game so it shouldnt be hard to make, as i said, text/pic based, maybe it could just be a little picture in some corner of your screen, not more, not less.
Well i aleready forgot half things ive written down in here:S lol, i will need help with few more details later but thats not really important atm
Thanks for reading this gay text
oh and i know basic javascript, html and xhtml if that could help:P
Clips Still Accessible
Hi,
If you use load movie to load a movie, that contains child clips (each having been created with the export to actionscript used as well), and then you delete that move, are the child clips still in the library and accessible to the main movie? or are they all deleted as well?
thanks
phil.
Flash, Accessible Or Not ?
maybe this wasnt quite the right place to post this but anyway...
working on a dissertation which generally debates weather flash is accessible or not.. in all ways really, eg.. search engine optimization, disabled users, back buttons etc...
i was just wondering what everyone els's views are on this, some developers despise flash and will always argue that code and css is better..
thanks for any opinions
joey.
'this' Is Not Accessible From This Scope
I get this error when attempting to run my current movie:
Quote:
'this' is not accessible from this scope
The error is coming from a class containing public static functions, but it seems these member functions cannot access each other. Here's a simplified example of my problem:
ActionScript Code:
class miscUtils {
public static function makeString():String {
return "a string";
}
public static function traceString() {
trace(this.makeString());
}
}
How can I accomplish this successfully?
Accessible Flash
Hi all,
I work for a web design company who for some reason have got it into their heads that flash = bad. The main concern is that it is not accessible to screen readers etc.
Is Flash accessible? What about in menu's / navigation?
Any help in this matter would be great
This' Is Not Accessible From This Scope
I am sure there is an easy fix for this problem but I am trying to create a remoting connection from within an AS2 class. I am getting the following error...
Line 50: 'this' is not accessible from this scope.
pc.responder = new RelayResponder(this, "onGetRecords", "onError");
If anyone could point me in the right direction. The code so far is as follows:
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
import mx.utils.Delegate;
class com.oop.ContentLoader
{
static private var __gatewayUrl:String;
static private var __service:Service;
static private var pcendingCall;
function ContentLoader() {};
//PRIVATE
//__________________________________________________ _________________________
static private function loadContent()
{
__gatewayUrl = "http://www.mydomain.com/flashservices/gateway.php";
__service = new Service(__gatewayUrl, null, 'testService', null , null);
NetDebug.initialize();
pc = __service.getRecords();
pc.responder = new RelayResponder(this, "onGetRecords", "onError");
}
static private function onGetRevords(re:ResultEvent)
{
trace('loaded');
}
}
[AS2] Super Not Accessible
Hi,
this is utterly strange. At one point a class, that I wasn't editing or anything, stopped working saying that
Quote:
There is no property with the name 'super'.
more specificaly
Code:
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 41: There is no method with the name 'super'.
super ( x, y );
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 91: There is no property with the name 'super'.
return super.length;
Total ActionScript Errors: 2 Reported Errors: 2
The Vector class is nothing special... it's just a subclass of flash.geom.Point.
I tried clearing the ASO files a thousand times, restart flash, resave the Vector.as file and still nothing. Have you ever experienced such an error?
Flex 2 Help Not Accessible
Hi,
I hav installed Flex Builder 2 on my machine. Strangly i'm not able to launch its internal help files (F1). It gives me error "Help cannot be displayed. The embedded application serever could not run help web application."
I hav un-installed and re-installed the Flex. But of no use. Can anyone help me out?
thanks.
Accessible XMLList
I'm wondering what the most efficient way of making an XMLList available to anything that needs it. Basically, I load images into two movie clips, fade out the one on top, move down one depth, load a new image and the process repeats...the problem is that I'm only able to do the first two images as I'm not sure of how to access the XMLList to change the image.
Once I get that I believe I'll be able to get the rest. Do I have to create a getter function? If so, how would I do that? Here's what I have for the xml loading so far.
Code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("../banner_images.xml"));
//LoadXML function
function LoadXML(evt:Event):void{
var xmlData:XML = new XML(evt.target.data);
ParseImgs(xmlData);
}
function ParseImgs(imgInput:XML):void{
var imgAtts:XMLList = imgInput.img.attribute("src");
//trace is fine unless I'm trying to access this information
//outside this function.
trace(imgAtts[0]);
}
SharedObjects Accessible Across URLs?
Hey Guys!
I'm using MX. My goal is to have a SharedObject get set in one URL/SWF and then in a different URL/SWF, load that same SharedObject and change or dump its value. These URLs are still on the same domain by the way.
The first SWF has this code:
_so = SharedObject.getLocal("IntroCheck");
today = new Date().getDate();
if (_so.data.playedToday == today) {
***do some stuff***
} else {
gotoAndPlay("Main", 1);
_so.data.playedToday = today;
_so.flush();
}
}
The second SWF has this:
_so = SharedObject.getLocal("IntroCheck");
_so.data.playedToday = null;
_so.flush();
***go to the first URL/SWF***
Is there an obvious reason why the second URL is failing to access and/or update the value of "playedToday"? Can SharedObjects not be "shared" with any SWF other than the one that spawned it? Thanks in advance for any help you can give me!
Bootsy
Vars Accessible In Different Scenes?
can i make variables that can b accessed in different scenes? i tried making them into globals but i still cant seem to get them to work. thanks
Creating Accessible Content
I tried to made an accesible movie. Where can i get some screen reader? Its free or must i pay for it?
I read some information on macromedia pages, but i dont understud all, how can i make my site with this movie accessible.
How doas it work with IE browser. Have you some good samples?
Thanks Jan
|