Search found 416 matches

by sritcp
Sat Jul 06, 2019 2:34 pm
Forum: Internet
Topic: How to check if there is internet connection?
Replies: 22
Views: 16837

How to check if there is internet connection?

Before accessing, say, an online file, an app has to check if there is an internet connection, right? Is there an LC command to do this? tsNetGetStatus(pID) seems to be for a specific transfer, not a general check. There is a section in the User Guide named "Transferring Information with Files, the ...
by sritcp
Thu Jun 20, 2019 2:21 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

Re: More than one browser object on a card?

I have figured out the issue, I think. The group (with the browser) has to start out hidden in my program and is shown when a button is clicked. This seems to be the issue. If the card opens with the group showing, there is no problem, But when the group is hidden and is then shown, both browsers st...
by sritcp
Thu Jun 20, 2019 2:02 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

Re: More than one browser object on a card?

Tried it on 9.0.4 Same result. Didn't try with 9.0.5 etc. I generally like to keep away from release candidates and previews. Once the browsers vanish, I can get back one of them (the one within a group), by clicking the visibility button on the Project Browser (by hiding and showing). The other bro...
by sritcp
Thu Jun 20, 2019 1:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

Re: More than one browser object on a card?

Sorry, forgot to mention.
I am using LC 9.0.2 on Mac 10.14.5
by sritcp
Wed Jun 19, 2019 11:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

Re: More than one browser object on a card?

Ok, I got it! I needed to zip it. Open the stack; card 1 is a dummy with a button to go to card 2. Card 2 has two browsers - one on the card, the other inside a group on the card. They are set to sample .pdf files online. If the pdf files show on the first go-around, please navigate to the first car...
by sritcp
Wed Jun 19, 2019 11:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

Re: More than one browser object on a card?

Hi Richmond: I had not posted the stack to begin with because the answer might simply be that more than one browser widget is not allowed on a card - no need to investigate further. In any case, when I try to upload, it says "invalid file extension: .livecode". When I click "Add File" under "Attachm...
by sritcp
Wed Jun 19, 2019 9:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: More than one browser object on a card?
Replies: 7
Views: 5383

More than one browser object on a card?

I understand that the browser displays above all other controls regardless of its layer number. Does that mean you cannot have more than one (non-overlapping) browser widgets on a card? I am having problems with two browser widgets on a card (one of them part of a group, which stays invisible and is...
by sritcp
Mon Jun 17, 2019 1:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 15
Views: 9778

Re: Environment: which applies when?

That helps. (Although there is still a great deal of iOS fog in my mind!)
Thank you.

Sri.
by sritcp
Sat Jun 15, 2019 6:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 15
Views: 9778

Re: Environment: which applies when?

... In particular, use specialFolderPath("resources") to find videos and keep the videos in the same folder, or a subfolder, of the mainstack. The dictionary says, "On iOS systems, only create files in the "documents", "cache" and "temporary" folders. Be careful not to change or add any files withi...
by sritcp
Sat Jun 15, 2019 4:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 15
Views: 9778

Re: Environment: which applies when?

Klaus: It is not "development" and "mobile" at the same time! See, "play video" works only on mobile, where it plays a video fullscreen. "Player" object works only on desktop OS. So, while developing I put in "if the environment is ...." clause, so it works on both (while testing). If the simulator ...
by sritcp
Sat Jun 15, 2019 3:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 3296

Re: Player won't load source file by button script

The problem occurs if you set the layer AFTER you have set the filename.
Set the layer first, it works!
by sritcp
Sat Jun 15, 2019 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 3296

Re: Player won't load source file by button script

I think I have figured it out. The culprit is

Code: Select all

set the layer of player 1 to top
in my original code. If you delete it, it works. If you add it, it doesn't. Something about changing the layer of the player after setting the filename or before "showing" it, I don't know.

Regards,
Sri.
by sritcp
Sat Jun 15, 2019 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Player won't load source file by button script
Replies: 5
Views: 3296

Re: Player won't load source file by button script

Hi Klaus: I am not getting the same result! By the way, to avoid the parenthesis issue, I tried set the filename of player 1 of this card to "/Users/Sri/Desktop/myVideo.mp4" I also tried to put the file path string into a temp variable first. None of these works. The player shows, but is an empty an...
by sritcp
Sat Jun 15, 2019 2:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 15
Views: 9778

Re: Environment: which applies when?

May be I wasn't clear about my confusion! Suppose I want to play a video in an iOS app, being developed on a Mac. The code might be if the environment is "development" then show player 1 start player 1 else if the environment is "mobile" then play video tVideoURL end if Would it be appropriate to us...

Go to advanced search