Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
tgleaton #1
asfunction help with components...
Hello,
I am trying to figure out how to asign text in a scrollPane component actions
to load other movies into different levels in my flash movie. Basically, I
have a scrollPane component. It has a lot of text in it. I want to be able to
have certain parts of the text act like buttons to call other movies on
different levels when pressed. I can do this using invisible buttons but
sometimes the buttons are not aligning up with the text. I was told asfunction
would be the way to go. I tried finding information on this but I have not had
much luck so far. Has anyone done this and know of any good tutorials or a
good way to explain this.
Thanks........tg
tgleaton Guest
-
FMS UI Components?
Do you think if FMS support communication UI Components (like SetBandwidth)? May I have the url and I can download themfor flash cs3. Thanks ... -
fcs components.
hi all, i just installed a version of fcs 1.5 mx in my machine. i have fp 9, and authoring flash 8 and mx 2004. it installed the server in my... -
ASFunction again .. very close but not quite there
I have to call a new XML file from the current XML file via a link from what is playing in the TextArea. That link will load a new title into a... -
asfunction and mouse events
I am trying to use an asfunction from a longish text (400 lines) in a text field. My goal is to show a short, explanatory text in a second text field... -
Any components of .....
Has anyone written a component like "Mail Merge" or "Poll Management" in ..NET Can anyone share or redirect me to any URL... Regards, -
dk_says_hey #2
Re: asfunction help with components...
first off, i've never heard of asfunction, it probably doesn't exist. you can
get at the content of a scroll pane by 'ScrollPane.getScrollContent()' you
could put functions in the movie clip in scrollpane to line up the buttons.
dk_says_hey Guest
-
Dave_090 #3
Re: asfunction help with components...
I'm not sure if this will help:
not to sure what a scroll pane component is but if it is like a text field
then this should be somewhat accurate.
asfunction works with <a href> tags but instead of a hyperlink it can call a
function.
<a href="asfunction:function_name, +arguments">text here</a>
then you would have a function name, in this case function_name,
function function_name(){
createEmptyMoveClip("clip",1);
clip.loadMovie("movie.swf");
}
which would handle the loading of the movieclip.
You shouldn't need to pass any arguments unless you are loading the movies
from an array in which they have index value then you will need to do some
argument passing.
hope this helps.
Dave_090 Guest
-
Dave_090 #4
Re: asfunction help with components...
hey I don't know why my text was deleted, but you can go to the actionscript dictionary to see how to use an asfunction method
a href="asfunction:function_name, +arguments" text close a
Dave_090 Guest
-
Laiverd.COM #5
Re: asfunction help with components...
check manual again; it DOES exist ;-)
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-
tgleaton #6
Re: asfunction help with components...
Yes, there is something called an "asfunction" and the "scrollPane" is a
component found in Mx just like the scrollBar. I have found some things on the
asfunction in the actionScript dictionary, just not exactly what I want it to
do. I also have a book "Flash MX Designer's ActionScript Reference" that has a
little bit about it but not in-depth enough for what I am trying to do.
Basically, when the movie with my scrollPane comes up I want to be able to use
asfunction to load another movie into the same level as the one which already
has the scrollPane component loaded into it. This involves using the
asfunction which looks something like this:
Hope this explains it a little better. I tried the following example but
could not get it to work.
Create a function on the main timeline something like this:
code:---------------------------------------------------------------------------
-----
jumpFrame = function(targetFrame) {
gotoAndStop(targetFrame);
};
--------------------------------------------------------------------------------
2. Ensure that "Render as HTML" is selected in the dynamic textfield
properties.
3. Use the "a href" HTML tag to create links that jump frames. For example:
code:---------------------------------------------------------------------------
-----
<A HREF=\"asfunction:jumpFrame,5 \">Click here to go to frame 5</A>";
tgleaton Guest
-
Jack. #7
Re: asfunction help with components...
dk_says_hey says-
TOTAL BS, read the help files>never heard of asfunction, it probably doesn't exist
tgleaton, check this thread-
[url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=194&thre[/url]
adid=783051&highlight_key=y&keyword1=asfunction
hth
Jack. Guest



Reply With Quote

