| Duplicating loader component BUG!!! |
|
 |
Index ‹ flash-actionscript
|
- Previous
- 2
- transitions within one swf?this is something I've been trying to research for a while now and on various
forums, no one has ever been able to answer me. I can only assume that this is
a very difficult thing to do. If you guys don't know then I'm not sure what to
do to learn this.
- 2
- Timer Assistance RequestThere are a lot of posts regarding timers that I have read, but I am still
having trouble incorporating a timer with a conditional statement.
Three circles appear randomly. For each circle that appears, I want its
correlating box to appear for five seconds. I want the appearance of the boxes
to happen in the order they are numbered. (Check to see if circle 1 is
visible. If it is, display box 1 for 5 sec. Then, if circle 2 is visible,
display box 2 for 5 sec.)
Any help is appreciated.
//Makes boxes 1-3 invisible.
box1._visible = false;
box2._visible = false;
box3._visible = false;
//Randomly sets visibility of circles 1-3.
circle01._visible = Boolean(Math.round(Math.random()));
circle02._visible = Boolean(Math.round(Math.random()));
circle03._visible = Boolean(Math.round(Math.random()));
//Uses a circle's visibility to make the corresponding box visible.
if(circle01._visible == true){
box1._visible = true;
}else{box1._visible = false}
if(circle02._visible == true){
box2._visible = true;
}else{box2._visible = false}
if(circle03._visible == true){
box3._visible = true;
}else{box3._visible = false}
//Stops movie.
stop();
- 2
- Problem with Flash UI componentI am creating a quiz using macromedia template. I want to control the answer
checking myself. But i am not able to contol the push button provided. Can i
change the actions for the same button? Or can i control the entire quiz with
myown button?
Thanks
MVN
- 2
- Preloaded pics not fully loadedPROBLEM: I want to load 9 pics and once they are loaded I want the animation to
start. The animation is a simple swipe off the movie clips containing the pics
across the stage. While the pics are loading, there is a simple 'Loading...'
move clip playing. This seems to work ok when I 'view as streaming' in Flash,
but when I view online the images don't seem to be loaded before the animation
starts. See at: www.simongroup.biz. Click 'Services'. Under the list of
services, click 'billboards/signs.' This is even more apparent when viewed at
56K dial up or lower. FILE CONSTRUCTION: First Frame is the 'Loading...' clip.
Second Frame is the 'Loading' clip and the adHolder move clips that the images
load into. The code for this frame includes the pics being loaded into the
adHolder clips using the loadMovie as well as: onEnterFrame=function(){
Loaded=adHolder1.getBytesLoaded()+adHolder2.getBytesLoaded()+adHolder3.getBytesL
oaded()+adHolder4.ol_one.getBytesLoaded()+adHolder5.mk_3d.getBytesLoaded()+adHol
der6.mk_future.getBytesLoaded()+adHolder7.bi_buildings.getBytesLoaded()+adHolder
8.getBytesLoaded()+adHolder9.getBytesLoaded();
Total=adHolder1.getBytesTotal()+adHolder2.getBytesTotal()+adHolder3.getBytesTota
l()+adHolder4.ol_one.getBytesTotal()+adHolder5.mk_3d.getBytesTotal()+adHolder6.m
k_future.getBytesTotal()+adHolder7.bi_buildings.getBytesTotal()+adHolder8.getByt
esTotal()+adHolder9.getBytesTotal(); percent=Math.round((Loaded/Total)*100);
if(percent>=100){ gotoAndPlay('start'); } } Note: Some of the pics have a
shadow. The shadow is in the adHolder clip so that it swipes with the pic
during the animation. That's why some of the pics are loaded into a clip inside
the adHolder Clip. So anyone know what's going on here?
- 2
- Real Player filesHow do i make a link to launch *.ra files ?
I mean by loading the Real Player for playing the music
- 3
- bringing a movie to the top????Hi
This problem could be solved by assigning proper depth to each MC. Here is
explaining the same withh few steps:
1. Assuming u have 10 MC. Now attach those to the stage using attachMovie()
2. Assign unique depth tto each MC ( say 1,2,3 ....,11)
3. Now when u click on a Particular Instance to drag then set its depth using
swapDepth(15) // 15 or the heighest depth than the given to other MC)
4. Once it stops dragging then set its swapDepth back to the orignal. But
first u need to store its inital depth using getDepth() in to a variable.
I hope this would help u !!
Ashish
- 3
- mc hierarchy rearrangementcan i alter hierarchial links of mc's?
say i have an mc named "pea" attachMovie'd to mc "can". "can" in turn, attachMovied to "table", which is on _root. Can i get that "pea" into mc "fork" on _root (i need that pea be moving together with fork AND be above all other peas and cans in depth stack).
i did try _root.table.can.pea._parent = _root.fork and it does the assignment, but does not rebuild hierarchy, means i still can't move the pea together with fork. what should i do?
thanks
- 4
- Passing values to Windowhi..
i am very new to flash... i am trying to open a Window at a click of a
button and attach movie to it... now i want to pass the values of the component
on the main document to a component of the movie clip... i cant figure out how
to accomplish it..:confused;
please help.... the code o have written is
on(click)
{
import mx.managers.PopUpManager
import mx.containers.Window
var my_win = PopUpManager.createPopUp(_root, Window, true, {closeButton: true,
title:"My Window"});
my_win.setSize(300,400);
my_win.attachMovie("name", "name_mc",my_win.getNextHighestDepth() , {_x:0,
_y:20}); //attaching
my_win.name_mc.name_txt.text = "Hello"; -----------------------> name_txt is a
text box in the movieclip
//////////////////////
//adding a listner to the popup window for closing
//////////////////////
windowListener = new Object();
windowListener.click = function(evt){
my_win.deletePopUp();
}
my_win.addEventListener("click", windowListener);
}
- 5
- Setting scroll pane contentI need to set the content of a scroll pane to a movie clip that I build dynamically from a list of thumbnail images. I was doing this in Flash MX with the setScrollContent method. From what I can see in Flash 2004, you can only set the scroll content to a file or a movie clip from the library. Neither of these options will work for me, since I must create the content on the fly. I'm trying to work with the content property but am not having any luck. Does anyone have a suggestion or example?
- 5
- Drag and RotateHi all,
i'm working on a projekt, which is a card game and i need to implement some
kind of rotation function.
Actually i can drag, pick up and drop the cards.
Now i want the cards to rotate depending on the movement of the users mouse
when he drags a card.
I tried to do it on my own but i can't figure it out.
As an example of what i mean check this link please:
http://www.thibaud.be/
I don't need a complete solution but an advice or a link to a tutorial that
deals with this kind of problem would be very nice.
Thank you very much.
- 6
- Window pop-upHi. I want to create a pop-up showing a movieclip called "mcTest" whenever a
button instance named "btButton" is released. How can i do that using a window
component? I tried this code, but it doesn't work
import mx.containers.Window;
import mx.managers.PopUpManager;
btButton.onRelease = function():Void{
var cwMessage:MovieClip = PopUpManager.createPopUp(this,
mx.containers.Window, true, {contentPath: "mcTest", closeButton: true});
}
I have already set the mcTest to be exported for actioscript with the linkage
identifier "mcTest". Could anyone help me please?
Thank you all!
- 6
- HOW GO TO FULL SCREEN?I have a movie in flash and i want if someone knows to tell me what action
script i have to put in first frame to play my movie in full screen and also
what what action script i have to put in a button to go back to normal mode?
thanx....
- 8
- Forms: Drop Down Menu?I would like to add a selection list to my flash form and set the var to
?0000Tnfm?. To use the classic Pizza Analogy:
The user enters his name and address in input fields, then selects the size of
the pizza from a drop down menu. Somewhere in the code the var needs to be set
to ?0000Tnfm?so that the data can port to my CMS.
Thanks in advance!
- 11
- scroll pan component problemIt looks like if you override the code in the doLayout() function of the
ScrollPane (the actual function doLayout is in the ScrollView class) to do
the same code it would normally do, just put the vScrollbar on the left
(vsb.move(lo,to)). That might work, it is just a guess.
Jim Fee
"sebnewyork" <email***@***.com> wrote in message
news:c0cf9g$o1c$email***@***.com...
> Hi all
> using Flash MX 2004 pro, I am using the scroll pane component
> I have managed to customize all the elements of the component, exept ONE,
and
> it is killing me
> I want the scroll bar to be on the LEFT of the scroll pan, not the right
> The only solution I have found is ridiculous: I've had to invert the
whole
> scroll pane with the free transform tool, but as a result the content of
the
> scrollpane is inverted too! That's hilarious! But really not satisfying
> Any help?
> Thanks in advanc
>
>
- 11
- switching frames in side by side movieclipsI have a single scene, which contains side by side movieclips. The movieclip on
the left contains a series of buttons. I would like to have these buttons
control which frame of the movieclip on the right side of the screne is
displayed. Please help.
Thanks,
Michael
|
| Author |
Message |
karmas

|
Posted: 2004-6-26 4:51:13 |
Top |
flash-actionscript, Duplicating loader component BUG!!!
I saw a thread that there is no way to duplicate a dynamic Image.
Is this true or not?
|
| |
|
| |
 |
karmas

|
Posted: 2004-6-26 7:25:00 |
Top |
flash-actionscript >> Duplicating loader component BUG!!!
I'm searching the whole world trying to find an answer......somebody....... plz........
|
| |
|
| |
 |
| |
 |
Index ‹ flash-actionscript |
- Next
- 1
- Formmail.cgi & actionscript 2.0 questionWhat's up everyone! I'm having a terrible time trying to find out why Formmail
is not receiving the "recipient" variable from flash properly. I never had a
problem until now. Just recently, i noticed i was not getting emails from
through my website, and then i did a mock email to myself- through my website
and noticed an "Error: No recipent" notification! I have never changed my code,
and i went and verified that my code is the same and i'm puzzled at this
problem. Anyway, here's the code:
//---------------------<send form LoadVars>------------------\\
var gatherForm:LoadVars = new LoadVars () ;
function sendForm() {
gatherForm.recipient = "email***@***.com";
gatherForm.visitor_comments = contactForm.userComments.text;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_primaryphone = contactForm.userPhone.text;
gatherForm.send ("/cgi-bin/formmail.cgi", "POST");
//---------------------------------</send form
LoadVars>----------------------------\\
As a note: in flash, the text input field that holds my email address, already
has the instance name of "recipient." That was something I already double
checked. I keep getting the Error: No Recipient for some reason! Finally, i
called my web host provider andthey did a test on the formmail.cgi script and
it's working fine (the link to the html test of the formmail.cgi script-
www.iibyandre.com/testform.htm).
Thanks for any help guys.
- 2
- Creating A Variable Using VariablesI need to make a loop (which I know how to do) that needs to do this (which I
have no clue how to do):
Take arrayval and add the varaiable from the loop to make a variable name in
which I can use to call them from flashvars
i need something like
var arraycount = 3
for(var c:Number=0; c < arraycount; c++){
array[c] = arrayval# (<--- where the number is 3 so that I can get the
flashvar that is arrayval3)
}
- 3
- Preloader and AmfPHPI knew there was something wrong and i found it now i need to fix it.
What it is, is when after my preloader finishes loading large images and the
messageboard, i get the images no problem (shgows the preloader works) but the
messageboraddoes not work. In flash 8 works fine but on the server it doesn't.
I have used amfphp a lot and i know all the files are alright so that cannot be
it. The only difference is the length of time. It takes longer on the server
and the data is not loaded. I wonder why/
Info:
I have exported all my AS2 classes to the second frame so my preloader will
work and my messageboard is on the third frame.
If you want anymore info please just ask. I have been trying to sort this out
for a long time. (and I'm mean a long time)
- 4
- Sound buffering questionsI'm using actionscript 2's Sound class to load mp3's. I noticed as3's Sound
class has buffering support, but not as2's ?
If as2's Sound doesn't support buffering natively, do I use _soundbuftime to
set buffer time? I'm planning to support flash 7 and plus.
Also, I've read some articles online about detecting client bandwidth, if
you'd like to share your way or suggest a good way of doing it in AS, it'd be
nice too. Thanks.
- 5
- open fileIs there a way of opening a *.pdf file, that works for mac and pc? I've tried using fscommand but it didn't work.
- 6
- 7
- Loading XML into dynamic text boxesI have an XML document and I am trying to load the text from that doc into
corresponding dynamic text boxes in flash. I wanted to use a loop to do this
because I have 30+ textboxes to load text into and I thought this would be
easiest to do. I know that the XML is being parsed and I can get it into the
dynamic text boxes without the loop so I know the loop I'm trying to use is the
problem. The dynamic text boxes are named "page1box0", "page1box1",
"page1box2", etc. Here is my AS code (and I'm using Flash 8):
//create new xml object
xmlDoc = new XML();
//ignore white space in xml doc
xmlDoc.ignoreWhite = true;
//used this in a loop to ensure that xml doc loaded
xmlDoc.onLoad = function(success) {
if (success) {
//trace(this);
j=0;
while (j <= xmlDoc.firstChild.firstChild.firstChild.childNodes.length) {
currentXML =
xmlDoc.firstChild.firstChild.firstChild.childNodes[j].firstChild.nodeValue;
trace ("currentXML = " + currentXML);
currentBlank = _root["page1box" + j + "_txt"];
trace ("j = " + j);
currentBlank = currentXML;
j++;
}
//trace ("currentXML = " + currentXML);
} else {
trace("xml not loaded");
}
};
- 8
- Loadmovie Loads a JPG?I'm trying to use loadMovie to load a jpg. I don't understand what ourMovieClip
in the below example stands for.
Macromedia says "The following example loads a JPEG image from the same
directory as the SWF File that calls the loadMovie action:"
loadMovie("image45.jpeg", "ourMovieClip");
I'm trying to load the jpg onto the main timeline. Is it also possible to
attach it to a movie clip like with a swf?
- 9
- 10
- Variables didn't pass from javascript to FlashHi.
I try to send 3 var from js to flash. I follow the 'Flash Integration
Kit' and I can activate the Flash function from js but var didn't pass.
This is the code, can you tell me what wrong with that?
Thank!
html & js side:
<script type="text/javascript" src="com/JavaScriptFlashGateway.js">
var test;
var uid = new Date().getTime();
var flashProxy = new FlashProxy(uid,
'com/JavaScriptFlashGateway.swf');
function appelFlash(a,b,c){
flashProxy.call("ChangeFace", a,b,c,);
}
</script>
...
<div class="avatar">
<script type="text/javascript">
var tag = new FlashTag('avatar.swf', 150, 300);
tag.setFlashvars('lcId='+uid);
tag.write(document);
</script>
</div>
...
Flash side:
import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);
function ChangeFace(t,c,j){
_root.dump.text="t="+t+", c="+c+", j="+j;
}
- 11
- Using XML to load text and images.I'm in the process of creating a porfolio section on my website.
I would like to use XML to load Project name, Description and a picture into flash.
I have a good understanding of how to structure the XML document.
I am also fairly compitent in actionscript.
I need help with getting flash to read the XML and then setting up the text fields to and picture holder.
Any help would be greatfully received.
Please if you're going to post scripts, can you comment as much as possible.
I'm not looking for a fully finished website just a clear explaination so I can learn this very useful/adaptable technique.
Many thanks.
Jolyon
- 12
- Help me, Where is wrong?the following cord defined a Class:
class myMsg{
private var E0001:String = "1111111111";
private var E0002:String = "2222222222";
private var E0003:String = "3333333333";
public function getMsg(MsgNo:String) :String{
var Msg_string:String;
//switch (MsgNo) {
// case aaa :
Msg_string = eval(MsgNo);
//break;
//}
//return Msg_string;
return Msg_string;
}
}
when I use the Class :
var message= new myMsg();
var s = message.getMsg("E0001")
But it dosen't return s with "1111111111".
How can I get the "1111111111";
You know I don't want to use the "swtich-case" in my function "getMsg",because
I have lots of message.And if then,my code will be too long.
How can I do?
Many thanks!
- 13
- Sliding menu type thingyOnce again I am stuck, and would like to request some help.
Basically, I am attempt to create a sliding menu type MC, with an unlimited,
or unknown number of menu items. I want to give the user of my application the
ability to add or remove items to the menu my clicking a button. When the user
removes an item, I want the items below it to slide up into the hole that was
created. To see what I have done so far, and to download the FLA, please go
here?(please try and ignore the code and screen design, and this is just an
early prototype? )
FLA: http://greatplains.novations.com/order_II.fla
SWF: http://greatplains.novations.com/order_II.swf
If you add so 5 new MC items; via the Add Program button, and then attempt to
remove item 3, it want items 4 and 5 to slide up and then be labeled 3 and 4.
Hopefully someone can give me some pointers as to what I am doing wrong?
Thanks,
- 14
- importing text fileI have a dynamic text box that will hold a restaurant menu. Can I format the
menu in Dreamweaver, save it as a .txt file and somehow import it to this
dynamic text box?
If not, is there a way to avoid stringing out the variable data such as the
following?
textboxVariableName = "<b>Appetizers</b><br><i>Baby Back Ribs</i><br>$5<br>
... etc ... etc."
Matt
- 15
- get url from SWFI'm calling the same swf file from different aspx page. Based on the aspx file
name, I need to do some code change on the action script. How can I get the
aspx file name from which the swf is called? I tried the _URL which gives the
location of the SWF file.
|
|
|