SWF in A.MAker question

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

SWF in A.MAker question

Postby zartan917nyc » Sun Jan 25, 2009 6:43 pm

Hi
Im new to the forum and AM. I come from a flash background.
what I like about AM is its so easy to pick up and start using for
versatile results...So I am making flash swf mini games and followed the
online tutorial/got it working click a flash button AM reacts....but I

didnt see any specific code for passing a flash string to vbscript...
for instance, how can I have the score of the flash game swf passed
to a score variable in AM? Any help, thanks in advance...

GAbriel
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Candle » Sun Jan 25, 2009 8:43 pm

You could write to a ini file and then have AM read it.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

thanks for quick reply...no ini "skills"

Postby zartan917nyc » Sun Jan 25, 2009 11:42 pm

I have about 12 swfs I want to include in the demo but dont know how to bridge via ini..is there a link or better yet, if it is simple enough can an
example be sent/posted? My dynamic text string name can be "score" to use with the example...Thanks!
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Mon Jan 26, 2009 1:28 pm

All you have to do is export the data you want from the SWF (you need to recode the flash object) to a file named after your choice like this:

[1]
1=text you want to store

let's say your file is named score.ini

Use this code on AM to read from it
Code: Select all
scorevariable=Action.ReadINI("score.ini", 1, 1)
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

which goes where?!

Postby zartan917nyc » Mon Jan 26, 2009 8:33 pm

thanks for the help am still new to this though...
where does the AM code go -- in the vbs global procedures?

I had it there before would I just add:

If p(0).Value = "test" and p(1).Value = "test2" Then
Action.GoToFrame "Solid02"
scorevariable=Action.ReadINI("score.ini", 1, 1)

Action.UpdateHotspotsState

End If

I have test and test2 set up in flash and the button communicates to
go to solid02, but how do I set up the file in flash (keeping the "test" and "test2")...

would it involve Instance name scorevariable? or would it be named in the
variable property section in flash? Would you recommend I post the fla here? I think I may be halfway there!!!! Thanks
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Tue Jan 27, 2009 2:46 pm

What I meant was actually to create an ini from the flash executable if that is possible, containing the needed info, then use the code provided from within AM to retrieve the score
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

thanks for reply! Active messageboards rock!

Postby zartan917nyc » Tue Jan 27, 2009 10:24 pm

Oh I see. I may have to think of another way then...
Ideally I wanted to have part of my project a card game...
flash for animations/movies and AMaker for the shell/recording/saving
of cards in deck...
but this may be confusing as Id perhaps need to go back
and forth with the data and have no idea about flash ini
etc...IDEA: Maybe I could do the card game all in AM and keep flash as the minigame section that reveals "passwords" when typed in AM gives bonuses......Or use entirely flash and maybe AM for a different project...
Could you recommend a workaround/plugin such as "a card generator"
any advice/actual examples/thoughts help. Thanks again :)
G.
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Tue Jan 27, 2009 10:33 pm

You can watch this topic here: http://www.adventuremaker.com/phpBB2/viewtopic.php?t=3778&highlight=blackjack
and then ask cpk for help because he had done some more progress than what is described in the topic
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

excellent!

Postby zartan917nyc » Tue Jan 27, 2009 10:45 pm

thanks for helping a newbie like me heheh
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Tue Jan 27, 2009 10:55 pm

That's why we are here... :)


EDIT:
This could help: http://www.video-animation.com/dbase002.shtml
Last edited by Lyberodoggy on Tue Jan 27, 2009 10:57 pm, edited 1 time in total.
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

yes!

Postby zartan917nyc » Tue Jan 27, 2009 10:57 pm

So many messageboards are not taken care of/poor attitudes. Thank God for helpful people like yourself. Now I know more which direction my game shall go!

G.
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Tue Jan 27, 2009 10:58 pm

I just edited the post above, added a link, which you should give a look to ;)
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

will take a look thanks

Postby zartan917nyc » Tue Jan 27, 2009 11:22 pm

I notice it has php and lotsa tutorials have javascript for this...which may not work for my project since itll be offline..just wondering does AM take
javascript? OK thanks Ill keep refining my ideas. Peace.
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm

Postby Lyberodoggy » Wed Jan 28, 2009 1:38 pm

AM doesn't support js CURRENTLY :wink:

But it's got nothing to do with that, you can script with java for the flash object and vb for your AM object
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

adventure maker ever expanding!

Postby zartan917nyc » Wed Jan 28, 2009 6:07 pm

Yes Im sure newer versions of AM will have more top notch features.
If anything I will use AM to make the PSP/IPHONE version and maybe
flash for pc/mac. OK THANKS AGaIN!
zartan917nyc
Junior Member
 
Posts: 9
Joined: Sun Jan 25, 2009 6:36 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron